<?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_c9f497f0-478e-4b36-98ff-331788827bbd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_7755d8b8-b70e-4e42-b17a-d36b82e1de31">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_ff3ceecf-f518-44c9-9499-1ecdc39c92e6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_c67cfe74-e178-4027-8df3-030908e84bcc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_79d4fe21-60eb-4a09-af3b-f5c97addb3e5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_8dc18a84-c09d-4f41-9824-8c03f37a7aee">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_2fdef61c-e041-4bae-9ece-3ea5a57be178">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_a2f36092-5b88-4f11-82a1-087e9aff278c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_2f2fd567-667d-4337-8050-8f1c91583657">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_795a592d-7ecc-45be-9ea8-a95ab44b71d9">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c9f497f0-478e-4b36-98ff-331788827bbd"
      id="F_a4c15bdd-40da-4bc7-904b-484e41de3184">&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;115,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_c9f497f0-478e-4b36-98ff-331788827bbd"
      decimals="-3"
      id="F_13293841-20bc-4334-995b-bccacc8bfa75"
      unitRef="U_USD">115000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
