<?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_86d5b948-f994-44a5-9c8f-36bac525ea1c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_2238db83-fb2b-417c-bf1d-1c516fcb5c96">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_31d7cbf4-935b-494e-b4ba-510258ef4f77">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_9299aff4-7aed-4d49-bcdb-988d09f003ca">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_e60a579e-f292-4a90-b820-1c55fd876bf1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_a729c41d-163e-4afb-8630-0af141440ec7">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_2bc4851b-9eff-4c1e-85da-f5c93744f790">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_87a1fc6a-d64f-4270-b820-bfae7c4eae74">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_5afc8453-391a-4c96-b563-50b600558d24">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_0094b638-6eac-4b84-ae7a-b74cce7c4bd8">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      id="F_83aa484a-6623-403f-98d4-3a76ac8c44a9">&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,640,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_86d5b948-f994-44a5-9c8f-36bac525ea1c"
      decimals="-3"
      id="F_29408ad5-f904-4c11-bfee-de1bfeb15683"
      unitRef="U_USD">2640000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
