<?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_3563e855-5ea7-4681-89e4-36497b651f69">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_4c657364-7a5b-4a13-9914-152ecb5710b3">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_43e7239e-167e-4105-a27b-0fa2f4439a23">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_5f54030f-350c-43b5-9316-c5ab3ce2281a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_c7d29e77-13c0-403e-8ded-9c313e94c343">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_95e884d0-ecba-41ad-bc8d-495f8b837120">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_9cb0efbd-74d4-45d4-9591-d6d5ad206db2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_71b9e5f8-76aa-4033-bab0-e6dc9ad3dfd6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_f1f5f6af-23fc-48f6-8b0d-56988ddea3f1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_af6e625b-8f4e-405b-b5f5-e3b1e674b999">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3563e855-5ea7-4681-89e4-36497b651f69"
      id="F_cb89e3fb-1b9c-408b-b2de-e61d83d75140">&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,117,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_3563e855-5ea7-4681-89e4-36497b651f69"
      decimals="-3"
      id="F_5f53e2b0-8a2d-4d38-b389-eb288c30a565"
      unitRef="U_USD">2117000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
