<?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_c5249c14-23fe-4f10-b3ca-91e447acec20">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_ac12ed48-733a-4c2d-a62d-c5d94e36daa9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_37f266ac-5992-4db4-9556-b6ce5f46abec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_e7424287-f8e1-4ca8-a4a2-7e12443c9bd0">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_3425f1a4-631b-4bdd-8489-829b8fcd9fd3">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_77fec9d8-2e18-448f-b3a4-d5280dae8acb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_4d322c63-0cab-4386-9147-ea6ef0900fc7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_1ef6c055-9ad1-4ad2-a3c4-5c9bcaae357d">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_5b7ed4d8-2326-4e1e-86d3-719afc525c85">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_ca8791e7-550c-455a-80a0-03bcd4df3532">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c5249c14-23fe-4f10-b3ca-91e447acec20"
      id="F_da95bed1-b250-4192-9d5f-961e3c902dc0">&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;540,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_c5249c14-23fe-4f10-b3ca-91e447acec20"
      decimals="-3"
      id="F_c6656fad-afba-41c8-a37a-140f4dc09e6a"
      unitRef="U_USD">540000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
