<?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_c825635c-953d-4a24-853e-5ee8a7d59d42">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-07</startDate>
            <endDate>2026-08-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_30333fa1-a0aa-4c82-8528-2858a2930c57">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_d75182a2-6eee-40a9-b0f6-18b062854ac4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_7e1e3da9-a46b-4262-a5ad-be35e1c5fba2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_0555066c-782e-4205-9fb4-dd4fafa9c9ad">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_8e772bc5-cec9-4d48-acc0-cf7512a27424">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_619851bc-2815-4e82-9734-c824cfc552d7">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_c757c0b5-9b02-4e36-91cd-cf8c3cf8a3cb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_4cebba06-53d5-4671-9808-c6efe7f6896e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_b1c2209a-e317-48ae-b8d7-79d4516b90df">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c825635c-953d-4a24-853e-5ee8a7d59d42"
      id="F_9abf5a47-0254-448f-a413-e285cc2444bd">&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;4,950,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_c825635c-953d-4a24-853e-5ee8a7d59d42"
      decimals="-3"
      id="F_8ef2ce5b-0b66-4679-aaf4-c3d3107fe989"
      unitRef="U_USD">4950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
