<?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_3611d614-35fd-44cf-9475-c713647db281">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_cb6f4490-da85-4415-8c44-0dabeeab984c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_32629c31-7471-452f-be6f-17fab126be6c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_e436c58b-2e1d-4c63-bf4f-99aa63b5d312">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_1f58aa46-0410-4544-a713-2d9dd75be6f7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_366ed9cb-4446-475d-94d8-97ad3ec44d06">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_6de1f714-3b83-4151-a170-f75dad5fddb5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_160e78b1-8b3e-472c-8e01-2c8436d2971f">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_67594f69-bd50-4590-ad4e-e7ecd5633089">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_4ded3bad-1d39-49dd-8f30-5f0d4c055be3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3611d614-35fd-44cf-9475-c713647db281"
      id="F_51a44e68-0a6f-4b5c-84ce-a959224237d2">&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;1,331,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_3611d614-35fd-44cf-9475-c713647db281"
      decimals="-3"
      id="F_c8474d7a-9320-4e53-8f3e-ab730f5ceb8f"
      unitRef="U_USD">1331000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
