<?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_3ca05469-84f5-4fe2-9aec-57efeb155c82">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_e3278fda-284e-47af-9c97-6c0b863da827">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_72bb580f-84b3-415e-bdd6-952f26d3e798">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_1eff6fd7-5733-4541-ad0c-a29df67b4767">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_d5baff5f-05da-457b-bce3-d6ec0c69d8eb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_b9afbeb9-0394-4781-85d1-03b2fc487e2b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_b7bcef6e-6cd3-4df3-b876-be0e7b83d699">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_9e1026f3-645b-4294-812a-48184e2e9ac7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_0633c963-8042-4769-acb2-c89c3188f830">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_3c6c5f6a-0310-48a8-b194-de7f080b732e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      id="F_5309460d-0700-4414-b208-b794484de9fb">&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;6,957,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_3ca05469-84f5-4fe2-9aec-57efeb155c82"
      decimals="-3"
      id="F_b9c64225-d1b0-4b43-be55-9b0402f8d1ba"
      unitRef="U_USD">6957000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
