<?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_d4ea9a92-eb56-40d0-a772-9974b89aac4b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-13</startDate>
            <endDate>2026-09-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_2a46716d-66b1-4c71-af82-7ca9a879f974">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_297e99a3-7603-4723-9498-4f7b5eda136b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_ba0ed885-a444-47fa-b4e6-70d272f441fb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_325fd699-0d47-48ce-b2ea-3676e85b7e1c">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_b6fc7449-3cae-46fa-ae0f-2489c2292cd7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_0c9658c5-8f5b-4f00-a15b-2abc15999b75">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_9b26540b-9810-4adc-ba6b-413f8bb4e4d7">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_7d1b29e3-01fa-4b93-a14d-45246f25c241">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_a660c422-4e1a-4274-9771-17a14c0f4c40">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      id="F_d25fc4bb-0047-4711-bce0-ef9260002872">&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;2,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_d4ea9a92-eb56-40d0-a772-9974b89aac4b"
      decimals="-6"
      id="F_e167a585-02b7-44c4-90cd-0b54275ec6b4"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
