<?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_cbc1b31f-33bb-4941-a5ce-31a972337873">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_9d8579c6-b63f-489a-b151-8c78da3b65fd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_0ff1355e-f61e-409d-b5f9-87336d085074">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_5cc68644-ca51-4bb4-9439-24984df035c0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_82699d5d-6dab-4eaa-97be-95eee88a99f0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_dc9743e2-fb5d-43e2-976d-40ff2fa1b86b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_2f27fd69-bef1-411d-9185-c2b4cb0dc4c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_d87dc538-dc45-4ecc-b087-2b83016dcb20">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_e39af7f3-5735-4c8b-9ea2-97dbe8031a1e">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_1ea8ca80-7428-40cc-abbd-8ec2dd7ad32a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_cbc1b31f-33bb-4941-a5ce-31a972337873"
      id="F_0b5fabfb-2a07-44be-9d7e-6db7f2c43b83">&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;4,043,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_cbc1b31f-33bb-4941-a5ce-31a972337873"
      decimals="-3"
      id="F_bd4df166-decb-4b3c-b1fb-500f586ec221"
      unitRef="U_USD">4043000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
