<?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_6a78b5a0-8510-4a55-b7c2-adb49f243747">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_bd690c88-2c3f-4c75-9b73-5d3fedeb976e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_0bde5b2c-b643-4991-9b1f-797110806656">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_5371fc74-09e8-47bd-96ae-ef06a3eed407">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_a07353cf-0d97-4e42-a571-5bd966636844">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_3f3f5fda-1348-4914-8f8c-0f09a48b661f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_4237c754-cb6f-4033-9fc1-23cbb361c27b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_a4ba4691-1192-4a63-a632-762e1bf1f882">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_7b56b53e-a895-41b1-8144-2452fbfaf285">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_83ff0e8a-9ddb-4360-bf62-fcb42c68e37b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      id="F_70b7e193-b2a9-4e5f-84ac-cf7151653c6b">&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;1,700,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_6a78b5a0-8510-4a55-b7c2-adb49f243747"
      decimals="-3"
      id="F_90f5540d-b8dc-4aca-8294-d7cd1b6da258"
      unitRef="U_USD">1700000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
