<?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_1a1f7933-541e-4e24-84a9-1de53558858e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_4a67777d-9daa-406b-a4a0-37b3f4e48291">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_965be4cf-ae07-44a1-bfcc-9cbdd39baa56">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_0cc4319e-f6a8-440e-bdc5-ff2385cd7b3c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_4a633bc6-6fd9-4da9-9d0f-a545c2b49faf">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_08542abc-70ab-45b8-b3d5-a3b3c60b451d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_23248f50-d9b8-48c4-ac3f-88d8f4aeb3c2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_2e1ea9ef-2047-4122-b162-34025b7f2c6c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_ea31e3a1-877c-4eab-a979-ac5130f24e6e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_3c3e4066-1348-45fc-824a-d11edeaba17f">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1a1f7933-541e-4e24-84a9-1de53558858e"
      id="F_7afbfcd9-06f5-4987-9387-565bcca72f01">&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,497,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_1a1f7933-541e-4e24-84a9-1de53558858e"
      decimals="-3"
      id="F_b2e7cba4-7c12-4642-a490-9e46f4205a73"
      unitRef="U_USD">1497000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
