<?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_c2ea2c98-b898-4ca8-bf25-7a4590820ef5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_b523721c-75ab-41de-9fb5-5e7ca8a08cc0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_5e7b3da8-dfc1-4457-9d21-6cdcd1da6fe9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_f99a9046-5f2e-4e6d-8316-5fdf8ebb1f8d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_549104b9-6411-44af-9f51-4cf6f9fb185b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_de864f09-996e-4cc8-93fe-03b6a30ea348">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_0f2353ff-d28d-49b5-b8d2-05a2df1f3cdf">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_3921842a-3668-4240-b153-4935dab41f5f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_bb6a6270-512f-4b6c-9283-604acf444d65">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_d5a2d763-7242-4ad7-a344-8a25b7668340">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      id="F_e2397932-d625-4589-90e3-e8512e5c31a2">&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;1,537,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_c2ea2c98-b898-4ca8-bf25-7a4590820ef5"
      decimals="-3"
      id="F_f5030e9e-6e72-4f4f-b4cf-bd9ee6a45696"
      unitRef="U_USD">1537000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
