<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_7d374810-8739-4023-842e-54b8bf2fa2b7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_4d1c3b25-a6d9-4a5e-8afe-2ff586997b17">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_e2198fad-2dc5-4d37-a6b9-effafccaf9f4">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_501900db-e6ef-449e-a38e-51b4f3b33143">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_4eee0bab-9817-4b51-8a8a-d3bdb3a33cb9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_cb5784bb-b67b-4023-9fd1-37572e1d47b6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_cbde9dc9-ac7b-41a1-85e3-dd6e892a5a57">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_77ee97a1-3121-4e11-bb9d-2664cb50c835">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_76010c90-dcca-4140-bf68-e226def8468d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_1faf4e49-6f86-46d4-a6a7-4db36fae8845">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      id="F_159750e5-2b39-4135-aa0c-60329df0fd7c">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;2,282,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_7d374810-8739-4023-842e-54b8bf2fa2b7"
      decimals="-3"
      id="F_2aaf5647-e792-4d3d-9224-3aa43f5bdd48"
      unitRef="U_USD">2282000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
