<?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_86930852-8611-4430-be74-d9cbb58505ba">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_ea1bad25-86a0-4336-80cf-b9caefe797c2">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_3130e8bd-7f21-44ec-95ad-b8e5793ca982">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_e4df1bab-f0ae-4b92-81f9-a73f2d4fb692">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_408997d4-2a06-44dd-bee3-72d03ae692f9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_b447c366-46a7-48b8-aba4-01b7a19b3281">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_3f6926f1-8f41-4ab6-972b-a5c201772d24">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_591f116d-50d2-46a0-b505-f249a6f5e04e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_ae81270f-b8d1-48b0-bec7-657cffc35062">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_e14f6e5d-0973-4512-9ec7-dcb8e6e6ecd2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_86930852-8611-4430-be74-d9cbb58505ba"
      id="F_7aba9276-6659-4172-ba72-851423752701">&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,002,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_86930852-8611-4430-be74-d9cbb58505ba"
      decimals="0"
      id="F_1f96d436-9853-4d52-9f27-b97e2e7c3a92"
      unitRef="U_USD">4002000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
