<?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_1c8c3050-7328-40c1-baa1-87cf8f4e16e3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_bcb46840-b578-4db2-bc28-bcd0ec0c36e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_fc8c00cc-541c-44c7-8251-005cbde95826">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_c5d7ca51-4f29-4a84-b810-fd81cc6f4904">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_444bfc1e-8352-4e01-8524-882c3304ccf5">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_807d19e2-40ce-4d3b-80bf-92591a2733f6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_c3b3a141-34f4-4ea1-8694-d7a09bcf3140">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_e001d738-4870-4cbd-ae74-c9aa6505ab89">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_6ab5df69-91e3-4c94-aa51-2a3bc15ef197">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_2ad9bf45-9714-4293-844d-597ba79665c0">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      id="F_623bc547-f589-418c-bf46-c3a68051e032">&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;7,505,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_1c8c3050-7328-40c1-baa1-87cf8f4e16e3"
      decimals="-3"
      id="F_f47c4b0f-e822-4bdc-96c2-4fded3293102"
      unitRef="U_USD">7505000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
