<?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_61f9a4fd-8609-43ef-8eb1-4bfc657f7571">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_821e6f8b-fb92-47e2-b3a7-e212c49e3d0d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_4bb074eb-aa0f-4f82-bba8-49dc18d577f7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_c0bada04-939a-423c-9128-ed3404d2cef7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_2162f505-4861-49b4-9e40-f2be8c733e2c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_a354b55f-9902-4f87-a010-1f2d69d98376">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_4952a3a2-55e2-42a7-9930-511c70101bff">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_b928f633-9219-4659-a582-cb1837d54eb5">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_ae0e0356-5c98-47e9-97bb-ce27e4d6a887">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_dc4ae84b-1f20-4451-b341-30b4d409a3a0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      id="F_72cd2ddf-88ec-4cae-b70f-a51e52fd5a4f">&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;260,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_61f9a4fd-8609-43ef-8eb1-4bfc657f7571"
      decimals="-3"
      id="F_1a4f4f9e-8132-49ba-9756-a4dfeff64f8c"
      unitRef="U_USD">260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
