<?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_46562128-ed4b-4ad3-8b0a-bc6df393d138">
        <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:OffsetTableNa
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_b860d940-54d1-44aa-8ae0-4cf66d279f80">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_361310b1-11ff-474f-b8c9-85de015e04dd">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_d7c950b6-803d-4c04-9b91-81af2a451e15">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_1ac78ade-5853-4ada-9595-ee1c16dcfbab">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_021a93eb-9856-4922-bdb0-afdfaa0edd94">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_cf50951e-c4bd-4fce-9b49-b6e2e00426b2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_94d6cb3c-fd48-476d-9cd2-4cf0eb3403c7">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_e7e1d611-cde4-4103-b689-cf0e275822d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_d12abd8d-7912-44c4-957b-56ae68739394">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      id="F_bc8f930e-855e-413c-b374-14b0d6da2a6e">&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,800,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_46562128-ed4b-4ad3-8b0a-bc6df393d138"
      decimals="0"
      id="F_e2d69948-e85e-444b-b7cc-a83da49cc85a"
      unitRef="U_USD">1800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
