<?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_03a3ffe1-5b14-4ff0-8893-bada002630cf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_4ea023cf-01bf-4630-a070-bef4e20ff470">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_6537c013-c7dc-4039-863f-e20c5544de0a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_d6751781-78c7-4673-b411-a551ee03daf8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_dd473289-bf37-48f1-a677-b8c18a8f8cbe">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_43264fa2-a9e0-4f98-ac4a-33721e8f9efc">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_6976fb92-70b5-4e38-9b1c-5e39d4cff4dc">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_d846e8a6-7aaa-44a5-ab35-eeca2a6d708d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_00d6d510-3b19-4af6-b388-8239d1c6d336">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_b5ec5a3d-308a-43d6-9dc8-ab3f0f4f3766">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      id="F_aa2ecb93-b87f-4670-9efe-d2d652e37439">&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,700,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_03a3ffe1-5b14-4ff0-8893-bada002630cf"
      decimals="-3"
      id="F_26d49fbf-b41f-43b3-8b64-c63cccc6e9fa"
      unitRef="U_USD">2700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
