<?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_6982c657-2595-48fc-89bc-a61b8d995bbe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_64c50587-64a9-4fcc-9755-76ee82320c09">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_701b4ec2-3154-4a6a-a9ff-9034cd8e500d">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_edb7ff97-52a3-4ce5-9837-d0cb0995c38a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_51eb440b-0f3b-4e69-9506-1cd668ba835b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_f7020492-3eab-4711-8318-670c051fdabf">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_4402830b-2030-4b7f-9536-85cf1597cce8">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_651a435d-b714-4eb6-9ce5-0824e4f69d92">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_1e6e2dd6-dee5-4ac6-b8fb-fdd0b3848a0e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_92e5d192-b1e8-4622-a14f-603df56ca229">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6982c657-2595-48fc-89bc-a61b8d995bbe"
      id="F_8310e617-60ab-438c-aec8-36ec284aff6b">&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;2,363,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_6982c657-2595-48fc-89bc-a61b8d995bbe"
      decimals="-3"
      id="F_10234a5b-bf40-4e94-adbf-7600b07ac99f"
      unitRef="U_USD">2363000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
