<?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_c87ff70d-5af2-4742-9715-d913cb82997b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_a3f71c53-bbb5-4741-b436-956e5524e130">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_146b9364-0a31-4e51-b2c6-fcccfc86dbe9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_cc8a9c4b-065b-49cc-bc12-b3c56642434d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_6b0db95f-bc64-4093-b192-c12cd03dc62b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_e9564669-dd7d-4441-9880-4ca1527f68ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_b0900f21-6eb6-4855-93c4-6d79ca1a760c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_be4f77d8-42a0-4dc6-9ec1-50299bab2b6c">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_a7b9a046-1c76-4927-aafb-5591fc6d446f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_b5a2fa0c-9e4b-48f2-82ec-bdfb8be6d685">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c87ff70d-5af2-4742-9715-d913cb82997b"
      id="F_bda09ed1-1b2f-4623-9111-c4c63d4228e4">&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;16,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_c87ff70d-5af2-4742-9715-d913cb82997b"
      decimals="-6"
      id="F_c393fc20-2895-41f7-90c2-905559ddcd2e"
      unitRef="U_USD">16000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
