<?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_5c0c5b02-3072-4fac-8e79-62ad5792e7ce">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_20368385-ddb6-4bbf-9b83-6de743ece234">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_b76abbf5-8b5b-4f23-94ce-b1e7fff251b5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_58441888-08d8-481c-a345-8df80ddc33d8">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_eac67d9f-a1c2-445b-bfbd-c3728d8d6d03">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_0d69f905-021d-47a7-99a0-7d54627bd5ce">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_466c93d8-8e67-4da9-8f05-a1cc83b16395">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_dbaf9899-d742-4872-a2f9-9f59ff2c5159">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_45b784cf-8870-42d5-8e85-3e0155ab6c6c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_b419bfd2-350a-4919-9929-5d2644f50e30">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      id="F_db24a4aa-7229-4b80-ac34-e4597c5710ff">&lt;p style="tab-size:26.66px;font-size:12pt;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,660,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_5c0c5b02-3072-4fac-8e79-62ad5792e7ce"
      decimals="-3"
      id="F_52a95ea5-9bde-4702-97a1-684dce2b3cbe"
      unitRef="U_USD">6660000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
