<?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_ad41816b-2a27-4970-bb46-7659ee55076e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_67cec03d-606d-4e0a-9d3d-01d42cfc538e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_0d7a2c0b-acd1-45f6-96e8-3f4187c9809a">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_38f291e0-b328-4f75-94de-c3db26a6594d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_7a551fb0-109a-498b-9eb2-dfc6a16e1f23">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_23642eae-6882-40c4-b32b-be2721e22848">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_598a8808-07d1-4b80-b100-b76c7636b48b">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_32f8c5ea-85e6-41c1-a2a6-6d32fdee9163">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_44acb310-739d-4191-b950-7587ef863c48">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_df919c08-97cc-4f2a-8879-b4427022a144">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ad41816b-2a27-4970-bb46-7659ee55076e"
      id="F_466b34e9-fcc5-4914-97cc-5c12abb485bc">&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_ad41816b-2a27-4970-bb46-7659ee55076e"
      decimals="-3"
      id="F_5817f865-af20-4383-a245-0cae1ee9d28e"
      unitRef="U_USD">416000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
