<?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_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5">
        <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:FeeExhibitTp
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_d8c645c2-4107-4f97-aa02-978d3ad82f80">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_314633b4-1162-434d-a811-059b7026d5a5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_8877532d-2469-43e2-b2d6-3c1c4b5345d1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_b6f76a58-59bc-4e92-94ad-d4b483f09459">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_d4275113-08e7-4021-b063-2672e3e4353d">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_55e50d5f-d439-4672-9cac-5a34de55e18a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_c69368b5-d0fc-40ff-a786-be63a0f1897c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_a22207dc-8f44-4d6f-a8fc-f9591ea3ff67">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_9f03ce4e-8217-43b6-a03c-5c15ddcfc2d1">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      id="F_11980cda-bdf2-4144-a1b0-344ba9209df3">&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;795,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_bd5a3458-4e3f-4732-8f99-ac6f23c2d3c5"
      decimals="0"
      id="F_26c5f3ea-097a-4ecd-a0f6-1fa0139068c1"
      unitRef="U_USD">795000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
