<?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_29c0266d-c81a-4e32-80b9-fca9cd6e7930">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_c0bb2200-3e18-420d-b672-d4679546ad47">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_5986a589-f156-4cd6-9923-72de67f6f6d3">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_dd500eeb-6df7-450b-84cc-3097505688a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_4bdc25f9-2dd6-4f1d-b587-47a20128858e">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_0e4655fb-4660-4018-b245-9e5876ab66ef">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_7f3599bc-3a04-4581-8a75-b512b548de19">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_fe5abb4d-773a-404f-973d-d7ff4f9118bf">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_43faf9e2-6426-4792-8900-61ac48a0c4f9">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_5105adec-bfff-4874-8c84-c894a4d7fe8b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      id="F_ad653721-5359-4de1-8571-863a2656f904">&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;2,247,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_29c0266d-c81a-4e32-80b9-fca9cd6e7930"
      decimals="-3"
      id="F_a9d384f7-1c4f-4528-989c-151e17d09f0a"
      unitRef="U_USD">2247000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
