<?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_8c554bef-82e0-4ca1-ad76-f505c510137a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_b579055b-71cf-4dde-95b8-9a32a7d64fb3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_06afbb0e-ea5e-4273-93ad-010220ceb397">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_a35bb471-99b3-4a8c-9655-8b7319b5e6a9">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_649726b6-414a-46c6-90b2-da89f4f3b394">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_241392bf-3e8e-44ec-a449-3d30046dc46d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_c205894a-6aa0-45c9-8bf6-d62a10059182">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_ce129edb-979f-4dbd-93ae-9f3e5bce92b6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_20c09241-e5f6-4854-bcdb-41c2ca4eb8e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_cf3b533a-a578-4552-91bc-1e2b4fed8231">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8c554bef-82e0-4ca1-ad76-f505c510137a"
      id="F_b21fba54-687d-4da8-82b1-b451f5878e99">&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;729,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_8c554bef-82e0-4ca1-ad76-f505c510137a"
      decimals="-3"
      id="F_5b52d847-13b4-42da-9b43-9ef567004005"
      unitRef="U_USD">729000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
