<?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_36552765-47ad-44f0-9278-4d3a595d5bc4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_e5242379-01b9-4390-9ae4-86f0421956a4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_ffece6a6-794c-4868-9442-f1f3848cb027">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_1df4f42e-e3ec-4415-a4a4-8611735eaca0">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_13b385cd-ce43-4715-af62-09678045a44e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_60604bce-c41d-40c2-86e5-b5a9f7e7eb1e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_46e82646-006d-4819-a30a-ece6f6924d6e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_89648a2b-e415-4a61-a35f-87544b045220">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_8b278b6e-0eaf-4bc1-951e-2fd6f3c713d6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_5801a57d-f155-4971-b235-93422d48e381">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_36552765-47ad-44f0-9278-4d3a595d5bc4"
      id="F_04e7b46d-7665-4f98-8754-346794b13a84">&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;5,500,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_36552765-47ad-44f0-9278-4d3a595d5bc4"
      decimals="-3"
      id="F_5e524f94-22a6-4415-8001-c1034d9d5cf6"
      unitRef="U_USD">5500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
