<?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_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_bc61869c-f93d-4bb9-b7c3-d759295d7495">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_b0d106bd-a5ab-4ab9-916c-eeb1bc3705fd">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_ee0cce81-5ed3-4d37-8cd9-d5473d75ecad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_386e25fd-50dd-4866-b016-71a4173c1468">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_5309300c-0d24-4d3c-b08a-1b424130cff2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_982a3e16-405e-46d6-80e4-3ab7c5bb1eec">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_962ac068-a7e5-4b7a-876a-d4f26b3f8d5f">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_b4448dba-535c-4345-a3f8-e1323f6d1df4">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_2730ed26-d3a9-45e2-a348-6c2de198719c">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      id="F_d4ebda0f-4642-4dc8-83fb-a9ed0f64947b">&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;7,767,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_c5175cc4-e947-4bd2-87bb-7c0764b8b8e7"
      decimals="-3"
      id="F_48c5311e-2f0f-4873-83a9-5b675e7b2335"
      unitRef="U_USD">7767000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
