<?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_d62b27eb-8d81-49df-98ea-a7e81be5966f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_40a22527-755d-47aa-85f4-31f91e590436">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_a1f8e0af-90af-4be0-b841-5727d0cdeb92">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_54537af9-9ddf-4475-a56b-7274ea0a76cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_01fad24b-1136-410c-8f3a-2946d813807b">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_b1853428-8cd2-45ba-bdd1-93691adf3aa5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_bde50fde-8c82-4e76-a9b2-5818daa585b2">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_6f6ee7e9-a930-47d0-97c6-e31fee0d9c4a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_c6c691f3-cfe4-4772-925f-1a56e572727d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_9695d162-f3e2-49c6-b7d4-b4523313fbfb">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      id="F_10a93c68-6dfd-49bf-a050-9f6a48c53812">&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 $&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,696,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_d62b27eb-8d81-49df-98ea-a7e81be5966f"
      decimals="-3"
      id="F_ce1bfa87-bb8d-40cc-9da4-5cfb217afd87"
      unitRef="U_USD">1696000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
