<?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_aa1a92c3-1691-4938-bd8f-4e0f617505a4">
        <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>
    <ffd:SubmissnTp
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_b81f9102-292a-47f7-8c78-290f0c76352e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_3fc8428f-e2b2-4f17-bab6-6383b41afdff">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_4637c094-3181-477a-9c24-dbbafb5c286e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_0bf9c632-38dd-4f9a-a04d-48a46ff450a0">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_57bd1340-e249-41ff-bac6-4aca504057ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_0e34b734-2804-4953-bae3-a549b5ef0cd9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_0ba9d6e0-a8c8-4f45-a0ca-61822fb44658">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_c0c811c9-6224-4252-aa06-74cc54a857ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_e7c0c60d-c117-4d7a-8b29-c7c2b118a223">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      id="F_ea4c8bc7-e55f-4c91-ba9f-ff3c14d6eedb">&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,045,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_aa1a92c3-1691-4938-bd8f-4e0f617505a4"
      decimals="-3"
      id="F_fca3d145-efdc-4a7b-afbd-77f2cc0b7911"
      unitRef="U_USD">2045000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
