<?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_a03977c3-4eb6-404a-85d6-a72f80d0ce8f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-29</startDate>
            <endDate>2026-10-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_96670628-f58a-4950-81e5-5dc9ee2031cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_aa0e2bfd-f4f5-46c6-85b5-5eacaeb220c6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_045b1d7f-efb5-46b0-afc8-31cbf26f1237">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_d7ff2bbf-a4ef-4d83-9cee-a0953c10cb70">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_6d0bd24d-9ca5-4e08-9e59-17ddb530034b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_0987533c-4fb3-4dcf-9b6a-990bc27d1a2e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_50fb36f3-b974-44e3-a6dc-bc2cec03d221">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_1849cf45-3c4a-4cd3-9135-15d6206a1ea7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_9742557e-b19f-45e8-a85d-4f49946ebfdd">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      id="F_7666d6d6-19c7-43d8-a754-349a340aabc3">&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;515,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_a03977c3-4eb6-404a-85d6-a72f80d0ce8f"
      decimals="-3"
      id="F_f39319ef-0ecd-4e14-97b7-6cef03e40c18"
      unitRef="U_USD">515000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
