<?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_89c90956-fdcd-46e0-aae7-b2ce71c6710d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_65ec7f2d-3ab9-4ffa-8895-5041f93157b2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_ce2be4a2-1d4f-404e-adc0-8afa4000c291">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_d93bacf3-cfa9-44df-838a-3d2b111df442">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_21062bd5-396f-4d2a-b2de-4de34ff10f7e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_8fbe3d73-a287-4709-be04-29d9e4bbfbe4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_d97354d5-26d8-434e-9ac9-effdde38629a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_382213d3-5870-4dc0-be0a-0ca1b397d53d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_1fe2a8d2-7890-4d9a-865a-8dd095031451">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_30bf2a96-e656-4534-bf88-bc8320ac4b07">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      id="F_b05ef278-e999-49d5-8111-87add5c6a98f">&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;900,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_89c90956-fdcd-46e0-aae7-b2ce71c6710d"
      decimals="-3"
      id="F_55094436-27bf-4720-89a0-c04437e8187f"
      unitRef="U_USD">900000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
