<?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_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_ad998cc0-0b0a-459b-8037-df0bc9e1b32a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_fd35aeb3-2b48-448c-a3de-491fa43fb82c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_c118548c-b811-4b55-b4dd-7aa87c365fb7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_a3248b8b-fbea-42c1-a85c-34b9f4f1c36a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_6c7a2ccb-73d0-4a5b-867b-bfddc11b5aac">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_245edb21-15cc-4b2f-947b-2622726ebb61">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_9c93c499-cd76-44e0-ad88-f475a666cf91">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_ff0895fe-5f8f-4ea2-960b-ed297d1c06a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_bf746ca6-88de-4a32-b982-a6fbfb4495cb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      id="F_812f04c6-78e9-4b3e-a8c6-2a792c999caa">&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,432,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_ea0bcd9e-729f-4ce5-ab1a-ca1f3f519970"
      decimals="-3"
      id="F_a83f7b1b-8299-4868-bb50-f1ec0e32e4dc"
      unitRef="U_USD">2432000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
