<?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_c9069884-07b3-41b2-9308-0b9065b78630">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_78c5f9d6-da8f-40b8-91e1-faa5fad6d420">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_f161dfd8-04e5-4e98-bb45-a0b6e73e13d6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_93c22eeb-15f5-418e-a5f7-5423af369af4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_370a6aa7-ef4c-4f42-8a4e-1f68a163f719">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_57515f91-4edb-4f27-adc0-504898b1a2c2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_9c5d4135-8287-44d5-bbd1-f85b9dbc8348">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_eca8ed10-5dec-4654-888d-b48dbc47d34d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_1edf370d-948f-4007-958e-96e6d41d184c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_756a4865-7f71-40b4-a8fc-8f6296248920">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c9069884-07b3-41b2-9308-0b9065b78630"
      id="F_a415e45f-e7aa-4970-a959-a9712c84f10f">&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;34,884,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_c9069884-07b3-41b2-9308-0b9065b78630"
      decimals="0"
      id="F_5ead2545-b1d3-4e2a-9261-4dc957ead319"
      unitRef="U_USD">34884000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
