<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_39f262eb-a242-4cc2-8f16-a0424784df65">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_aec827a3-ba86-4fcc-a26b-d3dbd0475973">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_d737ced8-eb96-414e-aa4b-1e91d3f025b7">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_8be366ee-06f0-4563-9e3f-997b3df4591b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_6b68cdc2-13d9-496d-bed7-90a90836b528">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_4b77ceac-4297-4c66-9d04-356b64f1f091">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_67a9d9d5-89fd-47b2-bc42-d719d6ef4f25">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_a0ac0a19-2477-40b0-90dd-7e0de351fb1a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_5402ca5e-def7-4455-838d-e423cbc9bffb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_a97c67db-9a31-446b-924b-c5ec5db117ac">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_39f262eb-a242-4cc2-8f16-a0424784df65"
      id="F_b73b011d-4920-49ef-a066-47061691ff5f">&lt;p style="tab-size:26.66px;font-size:12pt;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;5,000,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_39f262eb-a242-4cc2-8f16-a0424784df65"
      decimals="-6"
      id="F_1322b782-2c29-4854-b9e9-d97185edbceb"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
