<?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_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-28</startDate>
            <endDate>2026-04-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_d5643a4a-5354-438d-a30b-3c7be8a1d3ba">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_a5719d51-e8e3-4aa4-af12-a5ea6433f194">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_cdaad6a5-a9eb-408e-bfb6-15af56f4e980">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_f642580e-668e-4d74-8bb6-61d92eaf8788">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_56c2dd05-c9c6-408b-bcf7-3a212a65ddc1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_ba80f742-5c2e-4b03-b88e-45e6b4cb804f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_f8a8f5cb-eec4-427c-8ce1-516539869809">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_24be8b4f-c5dd-46eb-beb0-aad89d38dade">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_9b974849-8719-474c-bf76-895219600471">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      id="F_f02a47d6-6ab4-4b74-a781-9b0e2918e16c">&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;6,279,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_b2fc7e0a-6ddc-414f-ad62-1e7683c3eff0"
      decimals="0"
      id="F_c1bb755c-6d59-45f0-8c0c-f9b663e77fe1"
      unitRef="U_USD">6279000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>