<?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_5e3d6d37-b89f-4176-8025-4de15922d182">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_78bc2d2e-a7a8-43a1-9253-671a59839fb1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_cc3a365b-88af-4c85-99b8-efd514fdb67c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_bd81e658-127f-4298-a91f-00caba315a18">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_f42c27ca-4f15-4aaf-ac02-f81c6810e8aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_d71c77d4-6abc-4748-b3ac-9d29e6184ff6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_a6a12b8e-8bcb-4fa1-8dda-757af7ef1a17">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_46af9cac-160d-449c-b7cb-14e9d1a0862f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_f6223441-47f6-4a9f-a729-4ee2283ee8f3">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_af6369a9-6f7e-4750-854d-bfb16cd7a24d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e3d6d37-b89f-4176-8025-4de15922d182"
      id="F_1ed960c1-3792-4ad3-b3a8-895e56d0a303">&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,000,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_5e3d6d37-b89f-4176-8025-4de15922d182"
      decimals="-6"
      id="F_f9e495ed-67f1-4a7a-b824-ae2f11fb020d"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
