<?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_4d0d3e4b-714e-4d08-b940-53720f00855c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-11</startDate>
            <endDate>2026-05-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_422b2dc4-5e56-407b-a4d4-069f690555f7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_4a0e151e-8623-4c52-a548-cfb3c9c5a4ca">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_e855c3a0-50a2-46d9-abea-4f2ae8ae8dd2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_19ee2760-4874-47eb-a9b4-7cfa14cd3cab">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_a513a7b7-4fec-4e2f-a3a4-c17779d7f8c2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_e2b641df-4a8c-4968-82a9-a1297dd232c1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_6e844d76-7d65-4aa7-8545-14866980c6b4">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_b6367093-5f42-460c-b77e-2c882e2e6a40">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_0b568b90-2853-4d53-a98c-a952d0b491b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4d0d3e4b-714e-4d08-b940-53720f00855c"
      id="F_f568069b-bca3-43da-83eb-682be8d7a397">&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;2,129,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_4d0d3e4b-714e-4d08-b940-53720f00855c"
      decimals="0"
      id="F_902f3733-db36-4514-b0a2-aa8b1a510ef1"
      unitRef="U_USD">2129000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
