<?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_f4c51f33-161a-4b32-9aef-26b5863397d4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_06e2cc4d-a238-4c91-99ae-d4970d158906">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_df9806a5-5852-494e-b1ed-495d2b8a93e6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_b234dc01-9329-488a-9ca9-62c82a148396">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_f5c8082b-5bd0-458a-85a7-61ca8965ec9a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_9d48277b-8b25-47f7-b1bd-d07b50fb139c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_50ac8069-f192-421e-91c1-de31e253fcad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_bc9aec11-adaa-4aea-bd5b-18f6ed183ea4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_daa2e93c-ff94-46c4-8dd0-2d520ac69914">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_9d30f3dd-859c-44c5-85f8-c5f5a20ccb9a">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f4c51f33-161a-4b32-9aef-26b5863397d4"
      id="F_1ea739a3-5836-42d8-8d38-ccbb3fbf2a97">&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,889,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_f4c51f33-161a-4b32-9aef-26b5863397d4"
      decimals="0"
      id="F_ecaba097-889c-41bb-963f-2a47f35a019e"
      unitRef="U_USD">1889000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
