<?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_8536cc19-33fe-4dcb-b214-1e0afd31ff85">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-13</startDate>
            <endDate>2026-05-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_b4e4494b-8470-4c3f-8027-d58b1ea6597e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_d50fd397-9a70-4ab2-86b2-a5ac2b697f19">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_33e2a950-424d-4c68-a79a-40c2a42d97e3">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_e2a60854-8ef6-41e3-ab68-fbdf7452f411">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_2cd6766d-0cdd-4550-8ff0-d222c7c2f32d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_e42034a3-a62d-4534-accc-67d7290eed69">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_18bcfd28-1f10-4d45-b901-1ec6f8f06d02">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_51bdffcd-2ce6-43ef-bd37-196bd666dd29">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_71c4e4c5-d626-4676-b763-710e88170e22">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      id="F_443ad3cc-48a4-47a1-9c76-b3521e6c8d84">&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;7,700,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_8536cc19-33fe-4dcb-b214-1e0afd31ff85"
      decimals="0"
      id="F_7a7b9efc-d37d-450b-b54b-a240437c7f89"
      unitRef="U_USD">7700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
