<?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_a1ae1cee-e864-4b6f-adbf-566e44e16875">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_aa854732-2bda-4a4b-83f8-fc6644064abf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_531aeb1b-feda-4a87-9e4e-7761caa2c586">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_63e466b8-44aa-4622-8d9f-33e2d617fef1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_fd069a09-f668-412d-ba53-a77a0ad2ff57">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_eb9fcc1f-109e-49c9-9c5b-bfa11785b742">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_9348c692-5bec-4d15-a9a5-b3f5adc85801">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_f2468f44-cbd2-4f68-9d9d-e3e99b35ca1a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_d6c9c3c9-8de4-4dc7-9fa6-ac9277f9cd33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_b67b9c4f-f11e-46d9-b1a4-2565350cd9d3">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      id="F_0f4f5ce1-40ec-4e2c-a5e0-115c688eed30">&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;10,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_a1ae1cee-e864-4b6f-adbf-566e44e16875"
      decimals="0"
      id="F_0a8ddf86-3351-4e4e-bbea-fe80d0c61b50"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
