<?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_4e586ce7-eb25-474f-b1c3-5154e8695ac6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-26</startDate>
            <endDate>2026-03-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_a9b62281-e67f-44fc-b844-3a836e6dc251">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_62d75e8a-6e74-4539-9ac4-66f4479eed7b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_dd082dd7-f998-4a7c-801b-3f31cdd80316">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_20154d9c-d4e6-4156-a9a5-44d9da940b0b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_dbea5e39-df93-4817-9d0b-f04d6f1bc31e">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_f92f3d51-b308-4059-94ed-ddef8162c985">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_973a838c-9016-4764-9ae8-abd9b59fe14c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_e1211805-9fb7-4653-b4d6-662049989b79">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_e5e13201-484c-4b22-bb5f-61bb0117f096">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      id="F_5565f149-7136-4f88-95be-174438f9b32f">&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;7,709,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_4e586ce7-eb25-474f-b1c3-5154e8695ac6"
      decimals="0"
      id="F_d8e901d4-2f67-4eed-8811-e801b9774f12"
      unitRef="U_USD">7709000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
