<?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_3563f826-c11e-45b4-9424-c40bc41544f2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_4e21426a-7042-4ac0-b054-c1cd8430656b">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_edad5381-ec52-4a41-a3fc-db31b808ceca">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_4189e3c4-8f37-438c-8683-0e3e1bca38cc">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_dfb596cf-328c-4f4b-a13c-6ce6fe1eae71">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_c3bbbea3-be8f-40d1-a736-8146089fed48">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_b487c35d-81e0-4608-9bb8-4d99702ef0cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_bb545ffa-32b1-4fc8-9a92-310289752921">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_1d2ef286-bbbd-4651-b7d9-cc3e64b5bd95">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_324d3421-a7e4-413b-8f68-be0c633f8b5a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3563f826-c11e-45b4-9424-c40bc41544f2"
      id="F_2c328497-e92c-4e67-953f-ccb702cc9bad">&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,395,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_3563f826-c11e-45b4-9424-c40bc41544f2"
      decimals="0"
      id="F_4de077a3-583f-43b5-bfbf-4709e3058b05"
      unitRef="U_USD">4395000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
