<?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_612ea9d7-45c8-48de-9358-3fe2b9431996">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_db91ae32-6473-47f3-b905-14041f7b024c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_97ea654f-53e6-4ca9-802e-2b26bcfdb5e0">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_9bb173fe-c5ca-44e8-8f48-bc6e4b5cba94">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_e9cd2640-ef35-46ca-bd8b-bd597cee615a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_70e7672c-0d2b-40a4-b2e2-891a11906eea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_08c62de6-5e8d-471b-aefc-47b214660558">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_3042ccbb-c1dc-43b8-bd72-9eec9a5e8418">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_b58611b6-8b4a-4b63-a78f-dae3a9bc88bf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_4571aca8-d9f7-4426-b5f5-3b486c7e4be3">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_612ea9d7-45c8-48de-9358-3fe2b9431996"
      id="F_ccffd699-a261-4749-8819-00927639e0fd">&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,358,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_612ea9d7-45c8-48de-9358-3fe2b9431996"
      decimals="0"
      id="F_6c4c9b8f-a32e-47a1-95ea-5411bd78cf9a"
      unitRef="U_USD">3358000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
