<?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_7ad59908-1cae-4b5a-89ca-27df208ced7f">
        <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:FormTp
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_20e6ce9c-f1b4-4ed8-a8b5-d04abb579abb">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_17166ed2-2171-4414-b9ff-9c23a7eef3dd">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_bfc46a46-739b-4b50-ad97-06b84160c69f">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_1419dc1c-ba14-4c5b-a10b-2982e326ab24">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_e7d643d1-b982-43e1-9ec0-12628636ae02">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_7b0e3b91-7d5d-4649-8b35-0286e875c8a5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_86345562-7527-434d-81f4-ce797453f500">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_505744ca-787b-487b-bad3-934697cfe5df">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_497e00b5-3983-4c20-bf57-e0782c75ae3d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      id="F_89653776-c782-4f6e-b2c5-1da93b8d9be3">&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;1,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_7ad59908-1cae-4b5a-89ca-27df208ced7f"
      decimals="-6"
      id="F_be8155dc-a753-40dd-8288-c7d4f7b51587"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
