<?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_df2fcda6-b006-4b08-9517-bce8a007c6b5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_87405e15-c30c-446e-b3db-3d166c424254">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_70d3c8b4-0cae-4ec3-acab-c21371058915">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_15355883-7f68-45b0-9e0c-b9b8fdfc987d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_505aafcb-b7c1-4251-b984-ae35a151c379">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_bb3a206b-dc3f-47bf-8dfa-02cc15a67b26">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_39e5829d-d183-41d2-abf4-70d3e07b2090">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_5a99ac83-ba0b-43dd-80fe-dba041fb625d">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_edeea195-0ecb-4466-bf94-13c3586e0a05">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_103614e0-fed8-4ab4-bc3f-91cbb39c96aa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      id="F_602c9f08-4c17-4020-b75b-51de593a38a1">&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;4,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_df2fcda6-b006-4b08-9517-bce8a007c6b5"
      decimals="-6"
      id="F_ae70dfd9-9dcd-4671-a218-9d622e99bf6d"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
