<?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_c5c23733-7ac1-4e49-919b-e86cef0153e7">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_99bee44b-d703-4750-8767-dc1b3dc463fb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_97c6a821-eb82-4e41-bdff-9d9e35f94c09">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_0ed6c4eb-16ce-491b-b2bc-0445f1c15241">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_be776074-ab69-4a43-959b-47eac94cc3f0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_0c98effe-5ad7-4c09-8673-7724e24ce6b3">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_83dd7eff-f2e2-4293-96b3-14cb2ef994c1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_aa922311-959f-43b1-bb8b-b6f42502249d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_f2ba159c-dd26-4762-acb0-7968c54f44bc">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_48d041e9-7626-4f0e-82c0-177318e1ce76">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      id="F_cac6a005-e056-4033-8ca7-114d3ee8dc97">&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;15,294,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_c5c23733-7ac1-4e49-919b-e86cef0153e7"
      decimals="0"
      id="F_491eeadc-a17e-4279-af3c-d9e2a2a63b06"
      unitRef="U_USD">15294000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
