<?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_2173ec08-c5fa-4a4a-828b-4e1998dd317c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-25</startDate>
            <endDate>2026-03-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_0738f222-8977-4964-bfba-02a6b6a2a5bb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_143cd3fe-1a05-4683-bfca-20c6e9b29257">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_beb6f34e-d4d2-4e8a-8d47-a7cf57a8a7a2">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_88fbb1cc-1327-47dc-8804-5ec41f720893">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_9278e261-d234-472c-8bcd-a6a8ea5e1081">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_17349ad2-5d36-4156-9fcc-d2b1f2bb319b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_fe7eac6c-5336-4978-af12-ab2565b0cd3c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_5d332f7b-888d-4b65-8195-9531756e46fb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_0c6fb047-8536-4e08-af5c-3fba2322c1e2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      id="F_0f7b65b2-74d0-4777-bf4b-83f7d79d2054">&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;608,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_2173ec08-c5fa-4a4a-828b-4e1998dd317c"
      decimals="0"
      id="F_19bfe1de-64b7-4493-a8e6-b52f4ef29502"
      unitRef="U_USD">608000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
