<?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_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-20</startDate>
            <endDate>2026-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_8d14711e-0e4e-414c-8d79-ec645e748d81">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_52bc9aa0-1bf6-4625-9615-304eab0324aa">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_c5bd08d0-c447-43e8-94f0-4b7536c680de">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_a1dc5161-83dd-4100-b5fe-4d56a8f3a223">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_152f0b78-e7cd-411f-90ed-5303890e1a23">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_f7bb9d41-354c-4d3a-8877-b7a572e8f710">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_0e50c81d-4994-4a0b-b34e-a58937d94496">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_f2bf2013-e997-455d-8a21-260302d00129">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_a185d7a5-a0a1-4b6e-bc7e-87936ac95701">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      id="F_78d49d7a-4339-47fe-90f3-0c7a4d971ea6">&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;2,000,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_5a55b25e-75e1-4f81-8e0b-eca2253a3c6e"
      decimals="-6"
      id="F_193a283e-bfbe-4ffd-ade3-e1d40c34bd92"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
