<?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_b4edf150-8461-47cc-b860-7d0e39ab8dd8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_70a891d2-25d8-4e17-ad62-ed621da2d63c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_2f817737-68a3-4c6b-91e0-f4f7a6064033">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_542e7dd5-e032-4e36-9403-52c2fd1aa812">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_68363ed9-f7f6-4f2b-b3d7-fa9caedcc4fc">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_abdbb78c-43c7-4c74-84f5-b21858d82a6f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_a90d753a-1671-4a4e-bcaa-114f8c9e4f6f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_92126d0c-9df3-4618-b8d7-095b31468b87">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_1cd754c5-dd9a-40a2-9424-55d6e0f36887">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_d4bbd512-225e-4ae9-b30d-bfb86a1c74ea">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      id="F_72a69004-e282-4b49-824f-5835e3eded10">&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;232,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_b4edf150-8461-47cc-b860-7d0e39ab8dd8"
      decimals="-3"
      id="F_01b9bba0-5d0a-417b-8b8c-f23954989775"
      unitRef="U_USD">232000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
