<?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_706e677e-ca9c-43b8-b838-0f2e96245c67">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_aa5416d3-a1e2-4f75-9fc4-20becf11a1cb">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_95412a86-9463-480c-a4fb-153c46a0b540">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_db78cc12-0f4e-4d67-9581-d0efda7450da">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_41ade072-e613-48cd-9c3d-526b2fcfd55d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_3076ebbd-c0e6-4845-b901-b188dda53a7d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_7e01e069-d9d8-4b65-9bff-bab5f3674072">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_b03420fb-b1e6-4049-9680-a8d0875fabe3">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_51069c32-14a3-4586-a315-a11eefeb1c90">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_b8934439-1605-4def-b7bb-676f766f03ad">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_706e677e-ca9c-43b8-b838-0f2e96245c67"
      id="F_85043f0b-96a2-4b10-a240-96fded2593e4">&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;4,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_706e677e-ca9c-43b8-b838-0f2e96245c67"
      decimals="-6"
      id="F_7d1e2b82-94f8-4e27-b3d4-713c0c9cf37b"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
