<?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_06b56d81-2b1f-491b-ade9-8d43608f98b9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_28b9a9c5-6c03-4c9e-8b01-372a662c1a76">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_759e457c-8103-4281-9154-5e35d3ae83ce">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_e31193ba-62b6-43a5-94c3-b44dbd2966c9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_ad06ea79-c00b-4033-8320-5ff3aa914b06">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_3100a0c2-fce0-4417-a74b-62d1a5fcdc3d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_4182ff6a-24ea-4a4a-abb9-49b5efd8e624">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_3ac7d682-2c5b-4fda-bd1a-7479ee8cb745">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_bfbed338-9704-4e02-b7e1-dc855f34bccd">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_c29c8ea6-a4b5-4ab0-a1b1-16475a492dbc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      id="F_5872769d-172b-42ae-b133-d6d37844d20a">&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;1,000,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_06b56d81-2b1f-491b-ade9-8d43608f98b9"
      decimals="-6"
      id="F_8a65209d-aa49-4909-841e-cf2f3978448a"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
