<?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_2db4b27d-94e3-475e-9384-13b395754bd9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_d21e5487-0067-44f7-ba96-311dc9504b13">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_c1522f84-a373-45b6-880c-491cec50018f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_52f15adb-a07b-40c1-960c-b01b75935a57">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_70fa59c4-b86a-486d-a018-9d14d71909e0">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_8ac81da9-0003-42e1-ade3-ec18564c5716">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_61ae7fa3-6a50-48b0-8eb5-151cdeb1e4d5">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_11b06dd2-0f77-4edc-be99-3b1ce07a8924">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_972b82ea-7141-40d0-b66c-14374a39b861">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_86046a47-f892-4f24-9a71-a0ad16efab1d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2db4b27d-94e3-475e-9384-13b395754bd9"
      id="F_da952db2-acde-4fb2-82c3-87d1c2f63248">&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;428,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_2db4b27d-94e3-475e-9384-13b395754bd9"
      decimals="0"
      id="F_1cb58ef4-8207-47a1-957f-55ceb3401d1f"
      unitRef="U_USD">428000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
