<?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_66468511-e254-4c45-80ca-9557de42ebbb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_a4c9f141-2f3d-4771-8985-f6623673e9c2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_6338e3f3-8eca-4d11-b24e-82ad1917f1e8">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_1b674dfd-d219-4faf-b3a8-cb0254b08676">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_7cabfc0f-6cec-41aa-b157-ce795b65a554">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_c25b5641-9c5d-4a7c-a901-c2711351bed5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_4cc26cdb-bfd9-49bf-98bd-90e6a765b4c9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_8b904870-1f0b-4b6f-ad03-e0d1982b478f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_c1cb5090-610f-4c71-9f50-763d1daa43d6">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_d7224a1b-9d85-427c-8b16-dadde4fe857a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_66468511-e254-4c45-80ca-9557de42ebbb"
      id="F_66496ad4-f270-45c8-8fb0-9f3239b1076b">&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,597,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_66468511-e254-4c45-80ca-9557de42ebbb"
      decimals="-3"
      id="F_4e129632-dd3b-4bb0-84b4-4f93736462ba"
      unitRef="U_USD">1597000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
