<?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_12d6ffe0-01fa-4200-af3a-06a4f1b94da0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_da627c39-65ad-4ae9-8849-dcfbd01cbf05">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_d1e4ea87-1e53-49e0-866a-38b5b936e49c">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_b58cceca-6398-4400-9a55-0458b6ab8a7e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_040e0cb7-5ed2-49eb-9c46-5cd087c3eea0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_42121df8-b25a-4ff8-a3e1-94518efeb020">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_98ba09ad-9c7e-49ad-be0d-38cb374b9967">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_7d52a887-fd8b-4a7d-9e25-dfe0d4c9256e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_3e390309-ecb1-4df1-94ef-560485cf90f9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_76c9ff9c-57f5-4ae1-9824-3af53b83d9b4">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      id="F_f958b336-2cba-4c3c-914f-e88193f3d2d0">&lt;p style="tab-size:26.66px;font-size:12pt;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;1,746,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_12d6ffe0-01fa-4200-af3a-06a4f1b94da0"
      decimals="-3"
      id="F_877630f8-ea32-44c4-8e5b-78257f4016ed"
      unitRef="U_USD">1746000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
