<?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_13ee1720-a840-4b8f-b6f4-d07e9759e3db">
        <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:EntityRegistrantName
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_56cad37d-1ea7-4257-b4f4-66536853f70d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_a74504aa-b022-4fb5-bd95-6c94f5342c73">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_c21e8d26-a44b-427c-9f54-5323d7a1b36d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_3a47796a-85fc-49d4-86df-22c7e3219180">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_b7f010bd-158a-44c2-bb0f-fe8bb1c1bb0c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_b1b52d37-bc30-4fdb-9fa3-df0aa855cfbd">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_9b75d5e3-eb9d-43a9-b86c-71abde0fa5e7">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_9d2934a3-c652-4c32-bc7d-6215faac4871">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_524c521e-32f7-4737-a297-83ba3f9f0054">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      id="F_7dcfb763-9ef6-4ab0-87e7-1e754780e3fa">&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,000,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_13ee1720-a840-4b8f-b6f4-d07e9759e3db"
      decimals="-6"
      id="F_7af5520d-a910-41b9-b7b4-3598b53400e4"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
