<?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_920535f6-6476-4dfd-ba75-fec827cefd10">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_b5a2e87b-edc2-4c37-b66e-535258895ee9">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_c8a78185-6e80-4948-b9b6-a210fe96d812">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_9b7f8a08-3ab1-4054-8f3f-aabbf7ecbaf9">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_a68945c3-fcd9-4741-80f3-d2f91760124c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_9e3fe84e-c867-45ef-9068-2422514eeb43">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_0b1cbc03-e8b2-427a-b762-f7cb7160735c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_f2c8346a-b950-4d4c-8bfb-45e367987be5">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_71dbdc3c-3377-4d7f-b2f2-4fff497f39a3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_5a4ba638-28aa-4aad-954d-5191408b93cb">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_920535f6-6476-4dfd-ba75-fec827cefd10"
      id="F_5fdcefde-9827-4a6b-b9eb-42cfca92a58b">&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;5,595,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_920535f6-6476-4dfd-ba75-fec827cefd10"
      decimals="0"
      id="F_12b32adc-e6d9-4b68-8a31-4d3d812bb4a4"
      unitRef="U_USD">5595000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
