<?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_9f870da9-cb4e-4479-870a-9d3e36ad4bfb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-21</startDate>
            <endDate>2026-10-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_fd6286b1-5878-4e64-9f8d-ef63f4f21ab9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_fd8c12c7-1ef3-4cc1-a389-b24057fd27a5">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_ae13006c-fcd6-41f8-b343-a9b67e2d73c2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_1677a079-9494-44a1-8b5f-4f6a76e49f33">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_988b444a-7170-4427-b006-1e3345274a98">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_82e01949-f818-41c3-9688-0b38d7383c3d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_a0329a4f-b7f0-436e-a561-33f135435b82">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_667e76ba-3d00-4851-86f3-9b8e8097250e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_1df06fb6-41c6-4822-8468-af0151650ca5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      id="F_804e5cb7-a0e5-452e-ada6-7dfbb43210be">&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;3,994,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_9f870da9-cb4e-4479-870a-9d3e36ad4bfb"
      decimals="-3"
      id="F_b5f7c15a-0a45-4ac4-83de-dd3332460d37"
      unitRef="U_USD">3994000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
