<?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_6a68223a-cad8-4bd3-a43f-01c4b1cd559b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_3de84056-a1a6-43ef-9f91-89befcfef2d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_7d570bbc-1398-46af-ba9a-5ab7b179fef8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_cd7a4798-a156-45c4-99bd-33520225e1b4">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_3489d7e1-813c-4de5-831e-673255672764">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_73f9360b-204e-43a3-a948-74017db64077">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_f50e9e29-0ac9-4a28-ace5-0a342d627d3a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_da3e0eba-afc2-4803-84bf-fb93839d2fc9">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_4050e753-80c0-4177-96a6-f0981d3eee08">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_b71a62c1-0476-461b-bcce-d4e74482d272">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      id="F_c27269d9-9ea7-40c0-948b-01952249523b">&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;2,646,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_6a68223a-cad8-4bd3-a43f-01c4b1cd559b"
      decimals="0"
      id="F_e0d5ca82-97a6-435a-bfaa-af997e0ea289"
      unitRef="U_USD">2646000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
