<?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_f2207314-8e85-4ff7-adad-9b63c4b7696c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_e12b8dab-888e-4c54-95ee-cc4f5726c00d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_d814a33f-70d0-4a61-87ec-995686be23fc">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_c0617fdb-0507-4d16-9353-4a852dc78eb1">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_425f0ced-6acd-49d4-bdcb-6e72cbe300b1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_f0ddb9ee-8973-4c88-a44b-4b28329ef690">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_a329668b-da76-4d8a-9d23-816e4b9844d9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_f98dd6f2-1668-40ab-b010-8ff1ead0fb5d">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_f8509e03-b6c3-4aa5-acb4-43898dc9663c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_a4396e83-f7b1-4cd9-ad63-2006802ae32e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      id="F_c6b1bdfd-8805-4cd6-98ae-490b8b4f2c56">&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;10,996,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_f2207314-8e85-4ff7-adad-9b63c4b7696c"
      decimals="0"
      id="F_a7a35eec-3914-44bd-95f3-3de3a96e00d5"
      unitRef="U_USD">10996000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
