<?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_d0ee4b2a-7bde-4407-8055-481fd41430a4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_7f147fe5-6941-4832-9cf9-264c8a0f0a85">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_8b002c72-1c88-4c88-9145-99d21d4cd3a0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_384fd953-9a56-404b-93e4-483d6e27f032">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_7864fb6e-9468-405c-ab13-6a9023ddf302">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_a22e4dc7-b9b7-43c4-afbd-d2e5a10e6499">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_dd1ecc03-a2bb-486e-b2c3-cf09f2d135c6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_791a940d-3292-4f16-acbe-1a610b2e769c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_e765537c-6233-4ca2-b229-ee5f27351c5d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_f9ae87ae-f30c-4d94-8db2-01dfb02ed6af">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      id="F_dcf0cc20-7130-4330-9753-70983a6bebbf">&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;2,978,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_d0ee4b2a-7bde-4407-8055-481fd41430a4"
      decimals="-3"
      id="F_6e1f1026-3345-47aa-a5ed-edaf1e3564c6"
      unitRef="U_USD">2978000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
