<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_36a664c6-7833-45c7-be7f-d9dfcef5cf26">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_f2d3b7b6-bdd2-4427-85ca-37daa656744b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_b92f221a-1a13-47a4-aa0b-8e4b72e8f2e0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_a991e1cd-1c5a-4d33-86ce-5f4632abae59">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_ded94584-8542-49a9-8bd3-c8168dffc2a6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_04925508-6955-4b80-b87f-df81bfd9e440">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_10eb9d18-0bdb-4f1e-a140-2b0c57a67790">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_47f36353-da11-466d-80db-855c1f8e10fb">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_dd44352f-5504-41c1-aea0-79a35c9fff1a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      id="F_02efc3cc-54bb-4cf4-8861-e92eaf0a523e">&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;9,405,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_75134a7b-bf3c-4ff9-923c-f3ecb5479d7c"
      decimals="0"
      id="F_43b824c2-9ec4-48c7-8801-8c600088f058"
      unitRef="U_USD">9405000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
