<?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_e00a528d-a2b2-4c70-9389-c4696fda8727">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-08</startDate>
            <endDate>2026-10-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_a01cea59-ab36-4c9a-a15f-904e62e3d1bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_e275665a-e474-4a17-a560-b3b82b946557">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_b3f13c16-7940-4145-b242-b3b9cfc6641c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_603477b7-24d2-491c-a528-059140f10d4f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_8d61bd8b-0f2e-4c6e-bb5b-f972c396e4e6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_ee8b19f6-2d4f-41fd-abe4-d60e5cefbae0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_d537a23f-f0e4-4941-bdab-4a53d0d5cae1">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_df73e56c-9131-4f02-b817-754d3c7e0bc9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_01725f56-632c-47fa-a351-1e341a4f457b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e00a528d-a2b2-4c70-9389-c4696fda8727"
      id="F_9591b6bb-779a-4785-ab63-73f87566b450">&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;14,460,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_e00a528d-a2b2-4c70-9389-c4696fda8727"
      decimals="-3"
      id="F_6e4e4f5c-32e0-43ec-94b1-ac014946f70b"
      unitRef="U_USD">14460000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
