<?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_c86b21fa-e69c-474d-97f8-419dc9eabd22">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-13</startDate>
            <endDate>2026-07-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_5d9dcc93-c977-4ba0-a6a6-a4a9eb2b8c4e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_14f791b1-8a84-4ceb-95c6-03dfc085dd53">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_bff48b5f-5c55-4d3f-9389-ccc7b6b3dc7a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_7355a964-387a-45a5-b50b-ab5a8ae16723">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_381334bd-4774-4b97-a2b7-e917e3ef437b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_3da27de8-3dd7-4eea-b755-227e9cb42c64">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_4fd58289-32b5-44ed-a875-7a21438e4e44">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_b54e49f5-5bab-4e90-8a8b-8365e5d0554a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_723a87ca-b3ff-4ebe-8f5b-36973efe04ec">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      id="F_9126597a-4caf-471c-8c28-092daf192e8c">&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;250,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_c86b21fa-e69c-474d-97f8-419dc9eabd22"
      decimals="-3"
      id="F_6f2e5c19-b45b-4c05-91bf-24c6bb471ce5"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
