<?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_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_26edc25c-5444-4ef7-926f-9cbc4d5bf561">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_4a347275-32cb-4a62-ab87-0994177a1992">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_eef7297e-3f51-47be-9878-fb2aad981b04">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_f33c8b69-2250-4718-93c6-dfe60c49473e">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_138b09c3-20d7-4d8a-aa87-dc258246d373">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_ed48a74f-18f9-408a-af69-fe72f29f61ad">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_b984623b-58ea-4c49-a8f8-64d7dfbf4e7c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_ab2c0690-0145-4330-ad38-86596e76db39">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_75b3bf42-758a-4f53-a204-7fd028b7b973">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      id="F_6c17d5e1-58d9-4400-9c70-b60920cc5424">&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,134,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_0e3cd0db-6917-4cb8-9cd3-5ab33e027e35"
      decimals="-3"
      id="F_ac433643-3b4e-4aef-afdf-85b470eb9ba0"
      unitRef="U_USD">1134000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
