<?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_ebdcfe29-16ae-4c18-9602-f7391d64ba72">
        <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:SubmissnTp
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_67aaecbf-4f07-43ae-842a-e06336b76034">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_8e05aa54-fb2b-4ee7-aa6e-f8745a02abc1">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_23c756c7-2e7c-4bc6-8efe-26b474829978">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_ff5a7a33-5249-4ccb-8e41-1e05e5c9b2fe">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_db741cfc-0915-4efc-9158-884955139c89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_046c4d62-91e2-46d0-931d-cb10bdc3e5ae">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_81573c0f-8bc1-4448-b30b-2fa9f16b6e00">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_0b6c6959-62f0-4876-9b19-3e54cf629e75">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_9e116c29-951c-44d7-94bd-ccd723f832cb">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      id="F_c41bfb3e-89c4-46cd-b72c-542f4e4452ea">&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_ebdcfe29-16ae-4c18-9602-f7391d64ba72"
      decimals="-6"
      id="F_07d5d9d3-b29b-4c1f-8e84-9426d27c1dbc"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
