<?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_58f1ed17-ffaf-4cb5-b118-7209a31a1965">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-11</startDate>
            <endDate>2026-09-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_1f8e41b8-3f16-4745-8db6-dbf19ebde4d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_b0b9ee3d-64ce-47e1-a65b-c922750f882e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_9ec29fb6-643b-4e27-9ac7-e00764a17ce3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_45f3eab1-708b-49b5-a4ef-923ff81407dc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_a4a08d5d-885d-49b4-8bcf-97b97289d331">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_b1ddbd1a-ec0c-4310-91fa-0a5afaa699b6">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_b99891c4-0443-4726-97be-10d22a325f64">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_780f6a2b-0c80-4059-bddd-0b477b291c4d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_973da0e1-b75d-4108-92db-5d620d46e311">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      id="F_6ce8bc91-4682-495b-b49b-1fdceb32ff92">&lt;p style="tab-size:26.66px;font-size:12pt;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;847,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_58f1ed17-ffaf-4cb5-b118-7209a31a1965"
      decimals="-3"
      id="F_51688198-b7c3-4f3f-b99c-ef778d72f61d"
      unitRef="U_USD">847000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
