<?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_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_6bf68ac5-5b75-4994-a4bf-066f0879ae7c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_f4e04b14-34d6-4004-9339-43dcf89da393">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_bb06c019-dcf3-4f8a-ad61-a7e86a562b37">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_be92c400-a68e-428a-ac93-1a35e91ce988">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_7fd45dac-9da7-46e5-aa4d-d038d9ae6133">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_c58d8658-2da2-4921-8d63-d91bb7de96cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_e1b522ce-c24e-45fd-a29c-3a6f7cc06172">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_487caa68-7a1a-4d28-bfa8-163e60937989">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_b50d19d2-9ea3-420f-b0c6-03ddf6605211">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      id="F_8d823c9b-cc43-4566-a767-3abf784dce4e">&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;23,075,310&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_f4c0edb3-f215-45cf-8f5f-3dc0bc03088d"
      decimals="0"
      id="F_f481a73f-2c36-46d8-94a2-aa3f544f8fae"
      unitRef="U_USD">23075310</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
