<?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_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_0b801be9-fde1-4397-885a-3dc02521cb88">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_3b00b27b-4e17-4bc9-9cf7-5100dd7ab207">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_625c3aeb-7a16-48ee-920b-d01c7f7cf865">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_539c5d80-395b-4c85-a2f9-5e67e08dd1dc">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_fd282987-dec3-4a6d-85a7-9743c101c6cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_e0dce141-7b48-4042-99b5-e71b284cab41">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_c2bde52a-ae8b-4a91-bdd8-11b9ea8d5a6f">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_3422c421-b5f8-46bd-aa5d-249adb5b1b18">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_ce6081d0-a530-4a61-bc0d-1b17e7be9d27">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      id="F_5103d0f3-2c5c-43b6-9061-9f87b387a4a2">&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;14,166,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_b8511fc2-34ae-4d9a-9bcd-d4521e74ae03"
      decimals="0"
      id="F_6d8630df-0b88-4617-bf5d-6f062c4a75b4"
      unitRef="U_USD">14166000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
