<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="P02_27_2026To02_27_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-02-27</startDate>
            <endDate>2026-02-27</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_CAD">
        <measure>iso4217:CAD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P02_27_2026To02_27_2026" id="ixv-18">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="P02_27_2026To02_27_2026" id="ixv-19">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb contextRef="P02_27_2026To02_27_2026" id="ixv-20">333-284538</ffd:RegnFileNb>
    <ffd:FormTp contextRef="P02_27_2026To02_27_2026" id="ixv-21">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="P02_27_2026To02_27_2026" id="ixv-22">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="P02_27_2026To02_27_2026" id="ixv-23">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa contextRef="P02_27_2026To02_27_2026" id="ixv-24">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa contextRef="P02_27_2026To02_27_2026" id="ixv-25">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="P02_27_2026To02_27_2026" id="ixv-26">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr contextRef="P02_27_2026To02_27_2026" id="ixv-13">The prospectus supplement to which this Exhibit is attached is a final prospectus for the related offering. The maximum aggregate offering price for such offering is US$&lt;div style="display:inline;"&gt;2,009,499,451.96&lt;/div&gt;&lt;div style="display:inline;"&gt;&lt;/div&gt;, which is the U.S. dollar equivalent of the maximum aggregate offering price of CAD2,750,000,000, as calculated based on the Bank of Canada daily average exchange rate on February&#160;25, 2026 of CAD1.3685 = U.S.$1.</ffd:NrrtvDsclsr>
    <ffd:FnlPrspctsFlg contextRef="P02_27_2026To02_27_2026" id="ixv-40">true</ffd:FnlPrspctsFlg>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="P02_27_2026To02_27_2026"
      decimals="2"
      id="ixv-41"
      unitRef="Unit_USD">2009499451.96</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="P02_27_2026To02_27_2026"
      decimals="0"
      id="ixv-42"
      unitRef="Unit_CAD">2750000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
