<?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_28896a44-7978-4846-a06b-408e5dacbf4b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_e6ce2e6d-9f01-4e06-a4c5-277c7e37448b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_014f5484-28d4-4db3-a1ae-dbd488d24711">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_31330c32-5827-4495-8164-078fe54b8a60">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_a8e29499-a04e-40bd-83e4-5cbcfa3783d2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_7d9ecf3a-f1cb-4b9a-84f5-65404979ea0b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_7cce35ad-6eb9-4fef-9a11-f6a461ab391c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_c86ca8b9-85cb-440c-bc87-c58f7beb7de8">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_bd84e6cb-091d-410d-9df6-9a9d22e6ff36">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_531c5e8a-45a6-474b-841b-30b2b4b0227d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_28896a44-7978-4846-a06b-408e5dacbf4b"
      id="F_3755c029-9e31-4192-b71e-257fa2708f3a">&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;6,224,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_28896a44-7978-4846-a06b-408e5dacbf4b"
      decimals="-3"
      id="F_1356c394-9251-4c21-aad0-cac0d6d3ef70"
      unitRef="U_USD">6224000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
