<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_4bba1211-faa0-495e-91f9-63f38e54cda1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_8847fac1-4a0a-4bb8-980d-605cc5cb00f3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_e5dcc690-7adb-4abc-8c57-c3d11e6c4a77">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_1381ff27-02d1-4ca8-b34d-9d4d79ca9e73">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_e52ec3aa-499c-4676-a49b-14de6c26b127">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_d07ebe97-d930-45a0-a52c-286374ce162e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_7a34b91a-0097-4976-9b80-70c99cb68395">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_d7fd0d1b-d4a6-4e26-87c6-fa657a04d424">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_ca7e2909-9fde-4f2b-9611-865472ddc72d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_4fa38a4e-7510-4b37-9461-87054beb0813">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4bba1211-faa0-495e-91f9-63f38e54cda1"
      id="F_2565987b-0c42-4f16-b95a-8a1b80860958">&lt;p style="tab-size:26.66px;font-size:12pt;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;15,500,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_4bba1211-faa0-495e-91f9-63f38e54cda1"
      decimals="-3"
      id="F_b8eccae3-5fe1-4bce-99eb-30e1ac5f1e61"
      unitRef="U_USD">15500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
