<?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_a4f5904b-5854-455f-8f6b-4dfb8897d992">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_1ad59148-da90-4904-a73e-ceb8847552e2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_38d25126-ca8a-4874-8db8-6da07c2c27e5">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_aa0cd91f-218c-441f-9b57-e95fee766816">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_24efcd45-dcd5-4772-a32f-7c560df6ed60">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_3850c6ab-aaae-46a6-91f8-302ebd112855">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_45bf603f-a504-4ca6-9fc5-fae26819bbfc">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_9fc105b5-cc26-4939-97b8-a75f6dfd2ae6">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_c176ad8f-99dc-4f22-99f9-7c2ca752355a">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_c3e7436b-60c8-4719-b673-c51d5aca34af">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      id="F_81019ea1-2069-4264-8c3d-762c9e9d4b1c">&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,108,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_a4f5904b-5854-455f-8f6b-4dfb8897d992"
      decimals="0"
      id="F_13a1d929-1c02-48db-8776-31a5a2cac447"
      unitRef="U_USD">1108000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
