<?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_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_46e053fb-d671-4936-a9d5-1db46515bd89">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_2f0d390b-f971-41c2-be7c-f926b3a2feeb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_3276d06d-c677-4f8d-af72-7b476299fa1d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_8e1201e6-8a4a-45b0-8057-fdb0d8fcef10">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_7a6b02fc-79e8-419e-b867-cb5b8c32ad32">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_283cb5d3-baf9-42f6-b449-c5b44092034b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_2c89955a-761a-4408-a4bc-751d353725db">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_d32a0fc2-be31-4398-a185-db86daa514fb">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_f6e103a9-3da6-490e-80bd-af4b8cb333c2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      id="F_1cf23aaa-b3a5-41f8-92c1-11f4c55f76d3">&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;15,470,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_1b8fa5f1-cba5-4def-a3bd-5a4b579e6862"
      decimals="-3"
      id="F_fcd36aff-26b8-4031-9339-a9714c1de481"
      unitRef="U_USD">15470000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
