<?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_59392292-1769-4c43-9b5e-8661f9e9911c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_60a79366-1bd6-40b7-be71-d369306e6df0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_0ed3c895-bfc7-4b87-9905-581a3379d862">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_76d70438-cdf7-4aa4-8e95-404208bf92d3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_25e6777f-ff39-4796-a81c-15ef6ef4cbc6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_756e6c7b-b13a-4dfd-91de-c8d9def0af72">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_13ca32a9-f669-4b52-868b-2328783a8bc9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_f43458ee-0a2a-4094-ac7d-dbfc810e3293">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_b4753772-8667-4f85-b9bf-096fed3c0707">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_c8a88a73-2431-4d96-9679-d61b232c92ac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_59392292-1769-4c43-9b5e-8661f9e9911c"
      id="F_09bcb1f4-8491-4963-9fff-a1dead4c823b">&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;18,712,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_59392292-1769-4c43-9b5e-8661f9e9911c"
      decimals="-3"
      id="F_06e53eda-3f62-4b5b-870a-ba62156114b0"
      unitRef="U_USD">18712000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
