<?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_4e9a17f4-36e4-4e5e-a300-10eb49156381">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_de09fc16-b04e-4d8d-a01c-926df0e9e0bd">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_36316218-a9ee-4d0c-8027-e3d8aa6b6ddd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_3065cb09-7219-4316-b4e9-c9116a839e10">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_9e18a000-3914-4356-9c9b-811a69d2c593">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_7f7d6821-03cd-425e-b4fc-ff2c7b22b4d1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_e2147c1d-5c21-49d5-a2c0-a2959acc97e0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_87c383c5-3e70-4ce1-806a-4889c7b1b14b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_d192cef3-7ac2-4c2a-882c-59a76406fcd6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_7fa763ec-aab0-4227-aec5-f4ca44efb37c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      id="F_46dcc581-114f-410a-b9c9-5ca4c827c8e4">&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,277,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_4e9a17f4-36e4-4e5e-a300-10eb49156381"
      decimals="-3"
      id="F_d21d51e5-a9ea-4681-9448-c8a734ffee3f"
      unitRef="U_USD">1277000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
