<?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_ba9f3579-b2bb-45a3-8e74-d9438dc45d16">
        <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:FormTp
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_f0e1e6db-8b20-4d6e-a1de-bd312ce45c75">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_43ddefe6-1a01-41ee-8c10-52376badb438">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_07e158f9-b044-46b6-be3a-0351fd74394e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_1708e613-8889-47ee-9c95-4ffb391c8493">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_8160f9a5-70d9-49e2-ad63-f8725686e0a7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_0e28ded4-d263-4371-941a-6302983e958b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_6f171ea2-1abf-42ae-8d88-ebecc7732fd3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_c7374df6-ca99-46f2-bb8c-1e3249713f6b">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_9eae690c-1dc6-47bf-a23d-0381c5b99f57">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      id="F_d664f53a-f68d-429a-8008-12f1efde593d">&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;1,787,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_ba9f3579-b2bb-45a3-8e74-d9438dc45d16"
      decimals="0"
      id="F_8a59b5c4-ce0f-4754-a146-198ffa4f838b"
      unitRef="U_USD">1787000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
