<?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_32018d91-54a9-47e8-be09-6da6017250e0">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_26e9f9a5-18e4-4212-aee8-c7c7eb24b996">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_bd22af55-d02d-488b-ba08-166d568f1229">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_26650cc8-1b41-41ed-9631-91af9dc208f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_a5220bd4-5fe2-4af6-9bab-cd7cd63189e2">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_76cf3408-75ed-4cb7-9bd2-26c5be1662d1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_dda6f390-6717-4001-b581-121c990232bd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_1c3053e5-3683-4d8d-a12e-8244b71beaaf">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_e19df2ea-8462-4fb3-bceb-d0b24478b476">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_f622fb80-9cdf-46be-83ca-c06e7672c6e6">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_32018d91-54a9-47e8-be09-6da6017250e0"
      id="F_9e943ff2-b3b3-403f-a275-2db5e25ce1b1">&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,901,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_32018d91-54a9-47e8-be09-6da6017250e0"
      decimals="-3"
      id="F_26b78e15-33e8-4c07-a05b-825df7355216"
      unitRef="U_USD">3901000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
