<?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_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_1d514aaf-cd83-4210-845f-3353d0e281f2">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_519fbcdf-23ed-4e3b-ac2c-e31c8ad5194e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_fac997b2-b584-4b2b-ab2e-343037c7cef9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_683bf87e-9355-4ef1-b62d-334ff0ef9b13">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_5e01d056-0027-4dba-9c8e-897698e6aa4c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_4b38e8a5-50eb-4e26-bed5-41aa81cc413d">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_ea59470f-1ed9-47d4-a312-04bc4e282b2a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_bd1468ce-0e6b-464e-8685-471ec3e56fee">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_84fc92d5-b497-4dc9-8f3f-c117616ea732">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      id="F_cf2b485c-12cf-4588-be8e-c0fa2471714d">&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;876,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_fc10694f-a2e9-4adf-a1d6-f1c3c89684d8"
      decimals="0"
      id="F_01bc859b-b28b-4c04-b4d0-c879c3b25194"
      unitRef="U_USD">876000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
