<?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_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_e081dd0a-6279-4f21-85fa-d777f1ac6c22">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_ab98c30e-0f76-4839-bba4-5ad67553b40c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_c481aeb3-3c7c-44dd-ac7b-90fd822c0e6c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_62436d82-117a-456b-ab92-6a9ddf2ff956">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_b1fdae9c-969a-44da-b338-0d2e8be54c57">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_b04738d9-4f4b-41b8-9230-f057f3d17144">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_b7484a7c-0d4c-462e-a03b-b68b32610314">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_061c398c-4a59-4eb7-8397-f7d8be24dc20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_d6383829-8dc5-48ee-8fc5-97e34d99beed">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      id="F_acc5e45e-a5ac-498e-b30d-7bff75947536">&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;602,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_224a1348-5b81-4e2b-b35c-7b5f6ce2e64b"
      decimals="-3"
      id="F_1af9a773-aa0c-4a57-a164-f6e20aac18e3"
      unitRef="U_USD">602000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
