<?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_84cb26c4-8880-44e0-a6b9-5f868f452403">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_e7b76000-fc88-4dec-a734-c08204eb1dd7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_268eb6b2-b7c2-4f44-a2e3-2e45903fb8e2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_b5c1749c-6ee8-40c5-808f-a32142525f44">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_342ccea3-4dfd-41a0-8b39-b79ae1fe5598">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_78b4eab3-0b44-4024-b6cb-349a6c78eefa">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_965cfb48-ef77-46a3-b8c3-d14ccb7a97f0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_5e203c88-400a-487e-895e-df21ef16a2eb">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_fd59ff0b-342a-41cc-b97d-d8a547773113">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_79411db8-eae3-4665-a337-9fc7dfc66056">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_84cb26c4-8880-44e0-a6b9-5f868f452403"
      id="F_3e69a675-a38f-4a92-826b-131a6b67a778">&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;694,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_84cb26c4-8880-44e0-a6b9-5f868f452403"
      decimals="-3"
      id="F_286123f4-7373-4c4b-822d-54533fea17c6"
      unitRef="U_USD">694000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
