<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-26</startDate>
            <endDate>2026-02-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_211e919b-744b-4fc6-950f-d1bc0bc9f709">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_150d4733-7470-4a0c-bd95-cee878e76c6e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_ab6d2791-e61b-4f66-8584-316803a8fcef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_7af6f7f3-6e2c-4596-9412-3f46b51c053b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_beb639c7-b11a-43e9-92f1-3db723e3c1ff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_436e7cf0-6999-4300-85be-b796f54dd404">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_3bff1225-3e22-49f6-86d3-4aa61cfab66f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_2711c2fa-68ad-46e7-a89a-5edd3bc85d9d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_3b675e29-bcb8-4913-b8ba-214cff2cc41b">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      id="F_fdc54618-a037-4781-8713-368f24a0c6ec">&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;3,230,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_cb4c9967-bb5e-40f7-9efe-758aaf921ce5"
      decimals="0"
      id="F_669e5235-5818-4125-9f33-1fe6f74e10e2"
      unitRef="U_USD">3230000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
