<?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_91d376d6-2025-4961-8015-1fc6b3bd6478">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_4581571e-4836-446a-8e18-fd559592b3ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_45c5c15f-a4e9-490e-b1a9-f35ab80f6b38">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_98df5d6b-e95e-432e-87e8-d22b23acf316">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_96572788-24d0-49f3-9983-fd0c73d26595">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_e107d0e0-daaa-425a-8100-5af06a849092">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_90769bfd-f57d-4e04-af41-2bdae5337fc5">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_41356de8-8610-4bca-9f71-96142cfa8a54">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_7737a3fa-7a3e-45f3-8e5c-e76e71e7c329">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_b97bb1be-db32-42ec-8252-9620fa819d03">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_91d376d6-2025-4961-8015-1fc6b3bd6478"
      id="F_a8ead0b3-2f75-446a-b931-a3f92bab9adf">&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;1,448,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_91d376d6-2025-4961-8015-1fc6b3bd6478"
      decimals="-3"
      id="F_fe4082f7-3805-417c-b7a7-41f6b04e2741"
      unitRef="U_USD">1448000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
