<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_a9118de8-1638-45ff-a4be-ac23b31dfa56">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-17</startDate>
            <endDate>2026-08-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_c332e329-7c5b-4381-b85a-772d5f3f3950">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_600abc1c-bd37-4807-a231-002018e4e165">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_9be69cf5-8082-4129-a7a0-53f3b44dbd38">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_1c4365a0-41cc-494e-a76f-db32be807758">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_eb7ec52a-3f87-44f1-a1e1-d09d81bb04b7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_5b40ab8e-abcc-43ab-8e59-205641633253">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_af8fba73-b1fe-4493-aa9f-e73315c54dfe">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_a6e6fd43-e0ab-4563-a23e-e4ea65e0d6d3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_8ec55bec-5ba2-4c05-b0e1-ef19fc7840a6">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      id="F_e495065f-2601-48d0-a106-a661a8d69c50">&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,300,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_a9118de8-1638-45ff-a4be-ac23b31dfa56"
      decimals="-3"
      id="F_671c1e52-eb02-4a80-be48-03a0adf4028a"
      unitRef="U_USD">1300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
