<?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_771f4b4c-5c9d-4f5c-9f26-aeab09da7094">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-30</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_5321ee53-1b4c-456e-a3ab-689b96b9efb1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_b7571fc1-e853-4d42-9ccc-3f40e90635c5">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_4f9b145f-4614-46c3-ae5f-12ae3a3d1d03">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_ada20ec6-6ba1-47f1-9452-371b726c743d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_db9e4213-ecff-44a0-bce3-cc66c9c82f14">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_aa80b76b-7ffe-46be-921f-cf21ec1b2ca2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_17dae304-d214-4af4-9350-1f71a14e494a">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_d57506ad-570c-40bd-84c9-1d343a2f5f95">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_1aff0fcc-d743-40fd-b702-7b73ca97adb9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      id="F_18c33ba6-cfc1-4eb4-99a2-d63245723a63">&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;12,000,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_771f4b4c-5c9d-4f5c-9f26-aeab09da7094"
      decimals="0"
      id="F_5af471f7-ef3c-44b2-995e-bd4de6c46fed"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>