<?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_39a950d4-7771-4b9d-a29e-c18b2a708abe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_21539de5-837e-4ee2-9eb6-ef455ccbac1c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_699b7194-a066-4d80-94b9-cb2c2ec9b9d9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_d0a9140f-d2f3-4ddc-8919-b2168828ab7c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_f849e2a8-93ab-46be-bbd0-9c559d0690c0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_f9541fbf-f1f0-4649-90c5-8c38883c6811">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_98c65399-4f16-4e41-b920-2a6eb857cc55">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_3f910ed3-ca57-4d65-9231-ad5cfcceece6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_4dabf231-e047-414d-90e4-421d87a330e5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_f30060af-e938-4f76-bb00-c7d21af35058">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      id="F_1bb7157d-afea-4acd-b194-a5f303e55d92">&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,055,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_39a950d4-7771-4b9d-a29e-c18b2a708abe"
      decimals="0"
      id="F_e8460ea4-c221-40b8-9916-c29baaafb3f6"
      unitRef="U_USD">1055000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
