<?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_308f10f7-e52c-4e96-bf32-8d475e4bd847">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-18</startDate>
            <endDate>2026-03-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_4e5c7ef1-8281-4c57-a4f9-2ca1a14eaca9">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_1cfb0415-dc35-4f62-b56a-d8f3b33db794">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_d95f40c8-cb4f-462f-97ed-276c2d4cd1a5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_7ac02a6a-bf4b-4830-b754-8b52a4785d5e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_9b13d111-ef59-41fd-a546-d9733a39e954">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_6b27dd0f-72de-4856-a2b7-18b13dc76fbf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_318b444b-43da-416b-96b8-6c11daae1e5c">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_d284ac30-039f-494e-9fe9-3d372e9d1464">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_f7cc6177-88b7-4837-a8c2-e44d9d8bda0c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      id="F_94f669f3-11b5-41d5-8581-1af9f2456547">&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;1,000,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_308f10f7-e52c-4e96-bf32-8d475e4bd847"
      decimals="0"
      id="F_d0ad69be-dbcf-4ac9-9183-1b796f52d2db"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
