<?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_88971b8f-132a-41f2-b939-b69d68b121ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_4460fc93-c80a-47b7-a410-0d676820f28d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_bf5e2e9b-3e94-4c28-866b-e08b40fee505">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_c08fe6b9-66c0-4b6a-b184-e7839357d1d8">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_0ca855a8-accd-4797-b6f3-3a56195f83ee">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_7a8d6e0a-83fa-4f70-82f9-b37f4cce31cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_7defc7a8-1500-4aee-976e-437c615ab459">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_d1a5b436-0c26-4c56-9142-f6fc26b6a4c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_a8d2d6b6-89c5-4476-9d3a-f735c444fee9">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_193bda4c-8167-44b2-9e20-c1098198c693">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_88971b8f-132a-41f2-b939-b69d68b121ad"
      id="F_13c75cec-f090-4f33-b671-3f1d263e261b">&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;1,005,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_88971b8f-132a-41f2-b939-b69d68b121ad"
      decimals="0"
      id="F_f590c208-e5ce-4235-9aaa-46b0c103294b"
      unitRef="U_USD">1005000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
