<?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_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_286d3680-b680-4e74-bba0-e15330bd497a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_1b8e3ab5-f74f-44a9-a0e8-a04eaee2132a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_e5434a75-4b30-43a8-b511-3f5c8235f89c">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_80234daa-1fa5-4255-9c93-6f1f61026098">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_4cdd32d8-91a4-4b93-8509-47627f1aec55">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_2acb43b6-6642-45fd-ad4b-9e1b5b01de6d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_6096f2ea-ea34-4ca5-881b-1997b12b184b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_683c2a47-e0be-446e-9ee1-87e67de11c63">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_99af2f20-c4b3-416d-b904-b090d1d5700e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      id="F_cc43fd3c-83a5-4b87-9d96-3024e276e480">&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,719,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_e64e5dc2-71ba-4385-a1f6-350cfc2d2cda"
      decimals="0"
      id="F_632275e1-415c-45b8-a60c-1a7cec130e74"
      unitRef="U_USD">1719000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
