<?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_83d56155-eb82-4201-9d6f-f530ef92e3d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-23</startDate>
            <endDate>2026-09-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_bdd13977-e800-4ba8-8c84-fb0dec5d0411">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_9ab9d3b5-6070-4c9d-ac06-3c682543e9f9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_22b0a9cc-4ccb-41bd-84d0-f9fab9fd227f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_21face7b-617c-446c-8657-b227e62db34e">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_c3e4a511-7021-4e32-b7c8-62d36c0da4b6">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_bfae2bd0-ba2a-4cd3-98b5-44c68c825a78">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_d980cfa6-d162-4165-ba92-dc401bfeb810">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_ebccf646-99e2-4150-93b3-bf6280674fc4">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_1eff4eba-cbd1-443c-9f6f-fde555dfd67c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      id="F_6b07fbfd-8468-441e-a60f-3ff296ccb0bd">&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,029,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_83d56155-eb82-4201-9d6f-f530ef92e3d5"
      decimals="-3"
      id="F_f1866d63-0303-43b2-ba95-5c3e681a7565"
      unitRef="U_USD">1029000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
