<?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_8b03ffe2-2acb-4b87-8a5f-c01b659aa218">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-26</startDate>
            <endDate>2026-03-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_4bc5cdc2-b411-4f8f-8342-9685ebef1ca8">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_9b7e9890-4480-409f-a196-ea41c4ecf7f3">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_b2d55efd-2fb6-4bfc-b89b-2b3feaa52b03">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_4c0d9716-29d5-41da-9257-983bce794cd1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_c8fd0b35-1225-49e6-bd23-4e4c143ddd6d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_b3b770b8-b9ce-4646-9cf4-4f37be8264f5">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_2348ae3d-2932-480f-bfc8-96d7b03e26b0">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_338696e8-fcfe-4f76-bcd8-90ec20fbd013">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_2ee955e4-6c55-4242-b36f-2433f0e88d83">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      id="F_bc3548f4-71bd-4e7b-b75e-6535a8995d0e">&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,262,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_8b03ffe2-2acb-4b87-8a5f-c01b659aa218"
      decimals="0"
      id="F_677a5cff-832b-4bd3-a2cb-ecfc1355b6bd"
      unitRef="U_USD">1262000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
