<?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="P07_15_2026To07_15_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-15</startDate>
            <endDate>2026-07-15</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P07_15_2026To07_15_2026" id="ixv-15">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="P07_15_2026To07_15_2026" id="ixv-16">The Goldman Sachs Group, Inc. </dei:EntityRegistrantName>
    <ffd:RegnFileNb contextRef="P07_15_2026To07_15_2026" id="ixv-17">333-284538</ffd:RegnFileNb>
    <ffd:FormTp contextRef="P07_15_2026To07_15_2026" id="ixv-18">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="P07_15_2026To07_15_2026" id="ixv-19">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="P07_15_2026To07_15_2026" id="ixv-20">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa contextRef="P07_15_2026To07_15_2026" id="ixv-21">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa contextRef="P07_15_2026To07_15_2026" id="ixv-22">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="P07_15_2026To07_15_2026" id="ixv-23">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr contextRef="P07_15_2026To07_15_2026" id="ixv-35">The prospectus supplement to which this Exhibit is attached is a final prospectus for the related offering. The maximum aggregate offering price of that offering is $10,000,000,000.</ffd:NrrtvDsclsr>
    <ffd:FnlPrspctsFlg contextRef="P07_15_2026To07_15_2026" id="ixv-36">true</ffd:FnlPrspctsFlg>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="P07_15_2026To07_15_2026"
      decimals="0"
      id="ixv-37"
      unitRef="Unit_USD">10000000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
