<?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="C_61820625-9b51-42a5-8e3e-da617b347c88">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_cbe1c419-f707-4a70-ae7f-f2394c401d75">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_98e27ae4-565a-4e21-b649-6b5933dc843a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_d0f55492-d2fc-47f8-8b57-05f25ea08bfc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_e4faf5e9-23ae-4186-b972-9930e8a7881f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_25bae42e-29ef-4895-9332-28e1dfe80981">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_3238a582-ba65-4e03-ada8-70ca87db6ea1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_41358e60-6e5c-42e3-8dfe-75235fb3e43c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_e15504bd-c722-4b60-8c8f-f16bd55be9e5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_cbaf6e41-73d3-4edc-82c1-307d508307aa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_61820625-9b51-42a5-8e3e-da617b347c88"
      id="F_46d5ccd5-78c1-4b8b-968d-f46ffa7d0869">&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;753,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_61820625-9b51-42a5-8e3e-da617b347c88"
      decimals="0"
      id="F_c967cd1f-bcd6-4db2-87f4-d28969a2922c"
      unitRef="U_USD">753000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
