<?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_25d19781-5ed7-4ddc-b46a-4a997df698fe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_387d8c15-db0b-4a53-b8f9-3fc34bfe6c2a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_668a5d87-8b6f-42eb-b732-5a931fdb3385">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_d55183a3-2bf3-43e1-ad66-c183995b1430">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_bd34b321-38eb-4f8c-a328-1edd5f284361">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_bac9e692-c493-44e8-9bfd-d3825ce7c1b5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_99c89748-49dd-4ebe-8683-fe0ee5e085e7">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_74f2f614-e99e-48c3-92bf-b06732823cfe">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_782cbcd4-7645-4cce-8b54-8c1c962c9dfc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_e4090f56-2fd7-4545-90b8-39efc1387b8e">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      id="F_2704e269-7f0e-4995-ba01-b1e7ed67bdd2">&lt;p style="font-size:10pt;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;668,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_25d19781-5ed7-4ddc-b46a-4a997df698fe"
      decimals="-3"
      id="F_898b305f-2620-496b-847e-1add47070a38"
      unitRef="U_USD">668000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
