<?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="P05_28_2026To05_28_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P05_28_2026To05_28_2026" id="ixv-18">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="P05_28_2026To05_28_2026" id="ixv-19">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb contextRef="P05_28_2026To05_28_2026" id="ixv-20">333-284538</ffd:RegnFileNb>
    <ffd:FormTp contextRef="P05_28_2026To05_28_2026" id="ixv-21">S-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="P05_28_2026To05_28_2026" id="ixv-22">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="P05_28_2026To05_28_2026" id="ixv-23">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa contextRef="P05_28_2026To05_28_2026" id="ixv-24">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa contextRef="P05_28_2026To05_28_2026" id="ixv-25">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="P05_28_2026To05_28_2026" id="ixv-26">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr contextRef="P05_28_2026To05_28_2026" id="ixv-14">The prospectus supplement to which this Exhibit is attached is a final prospectus for the related offering. The &lt;div style="display:inline;"&gt;maximum&lt;/div&gt; aggregate offering price of that offering is $5,000,000,000.</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="P05_28_2026To05_28_2026"
      decimals="0"
      id="ixv-38"
      unitRef="Unit_USD">5000000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
