<?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_021717b1-580d-4305-9021-d0900bdc43db">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_c3a55b5f-d905-410e-8cb8-a8d7a1bedae3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_97bf203b-6ff4-4516-ad2b-986e38bc01e8">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_45bcaee5-7b96-4ecb-a962-cb895cdc4460">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_21988b7f-982c-48db-ae3c-af6049aea15d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_1211abd2-d1a1-4a87-b2cc-f6d88c986760">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_58d84a5f-bb10-465f-96f0-6823163f5fbc">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_a4bbe2c9-26f8-42c3-abfb-b10423dc03b3">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_21bc2681-cf0b-42fa-9dbd-84fa779ed0ac">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_d0f7f777-56cb-401b-892c-d5e40ae9a8d3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_021717b1-580d-4305-9021-d0900bdc43db"
      id="F_88ca833d-7732-4c51-a7f1-90a622f66116">&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;10,023,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_021717b1-580d-4305-9021-d0900bdc43db"
      decimals="-3"
      id="F_725bb56f-6eab-436d-8020-4a5a362f1abe"
      unitRef="U_USD">10023000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
