<?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_fb46f14d-f0dd-42e9-a273-a2541199c5bc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_a0889dd0-eb3d-4aa8-8f2d-080afead150f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_bb94001a-4f9b-4ebb-905b-2d93d30e2286">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_b390a2a0-8686-4df3-a6aa-d17259ccac79">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_cbe4dccf-36d2-47fc-b5fa-7a7245c7fca7">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_2de2cecd-74b3-4cbc-b56d-ae4abd7aaa59">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_2128b374-e4ec-42b5-aa99-a9ad7f97b708">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_f63d32ed-755e-4aa8-b2b6-24afc584fe22">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_46bb06fc-5991-4399-aea6-708dcd373037">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_2fcfce21-06ea-456e-8c11-e0fb230b54b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      id="F_3b827769-ca7a-4ff1-a418-09f4d7310847">&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;688,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_fb46f14d-f0dd-42e9-a273-a2541199c5bc"
      decimals="-3"
      id="F_28322f81-4848-4aad-8ede-7178dabb988d"
      unitRef="U_USD">688000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
