<?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_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_8b049834-a2b8-46d8-97e5-31b5ee91e683">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_936d1c74-efba-42aa-8199-60689a45353d">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_d2bb7351-303a-4ce2-9042-84366c969bc3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_72632ec6-aaed-4bda-870e-46abd2af9f51">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_3654aa27-16ad-42de-897c-cd84c947b77b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_ab1aa9bd-a3b4-4122-bdf3-7eaeb85cc290">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_be542599-e89e-4e14-b245-e87442dcb14a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_432f5dae-5274-4a6f-96c6-3c6b262bb8ba">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_349b38b4-3d98-493b-b342-fd2a48d17aa0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      id="F_07fadf58-9c0a-44d5-b995-e740d107e6f2">&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;5,000,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_8c7fc979-f314-4454-a8a6-23a8b2ddfdfb"
      decimals="-6"
      id="F_8e2460d7-26f7-4d38-86d9-b91d102e4db9"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
