<?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_803e7c12-02e0-412d-9692-b1fbae7de740">
        <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:FeeExhibitTp
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_1ffd9c3a-973f-4873-bb0a-d57079362e8f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_5f28e688-327b-451a-935f-2255b8adffcd">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_6c4313cb-5766-455e-9d91-45e762a3c104">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_e770d1e6-aa82-48f6-a429-bb3fcb6f3acd">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_ef539287-65c2-464f-80c5-c29509efa916">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_cd97c2b7-5b1b-43cc-94cb-1ea1e54c2cfe">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_cd50c98e-39b3-4044-9be8-ae3ad7eb1918">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_e4e13eef-7ae3-4f94-b9fc-4f3aa814a8f1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_037f95f8-426d-486c-9e8a-a6a17f61b6c5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_803e7c12-02e0-412d-9692-b1fbae7de740"
      id="F_646941e2-a386-45cb-8702-ed8343144b8b">&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;416,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_803e7c12-02e0-412d-9692-b1fbae7de740"
      decimals="-3"
      id="F_38e252c1-68fb-4e1c-87ba-349bb28f2f65"
      unitRef="U_USD">416000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
