<?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_be007b9a-7ecb-415a-aef5-b3de5190fbac">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_28b41a1e-c498-454c-a811-f20e61873730">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_92b81844-2033-4d66-b42c-ca7959d65f3c">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_a5bd5990-8a60-4ac0-a037-ca3c4ce1c956">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_afa7691d-bb58-4d1c-880a-f4ccc31c5a25">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_ef27b10f-6fb2-4e85-b820-8b911b6e5742">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_648a642c-0bda-4d54-9bd8-3a13aaf28f3c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_ae1d0307-b7fe-465f-b828-9f2ca984f441">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_ea2582e3-a44f-4ea4-a7e7-7d4385c220a3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_db30e573-73f4-47ec-9a2e-cc16ff01107c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      id="F_4a4d361a-c250-4937-a461-81fbb59d2656">&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;2,011,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_be007b9a-7ecb-415a-aef5-b3de5190fbac"
      decimals="0"
      id="F_e48502aa-bba8-40cc-a2b4-bf987203a1ea"
      unitRef="U_USD">2011000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
