<?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_550e7eac-53ea-4451-b32b-3bbd5d76c380">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_7bfc6708-57f7-419f-b373-0d28e9fbcfdb">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_50bdb914-99a7-4cce-8c76-235626be5988">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_0ca61cc5-d0ee-4610-8f16-a7612fff9c48">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_1f5d061f-f7d6-4b43-8c58-a18a27fd51fe">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_9a337328-dd67-4095-9461-46a37af374e9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_c0fd5f52-106a-41c5-95ab-9f8d139cc7f0">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_3230354d-28d3-4756-807b-eb307ace6e73">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_8bf14f8f-1780-4b75-9913-edc5ae9a0b6e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_b88f587d-57ed-45f3-8109-54bec92655ce">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      id="F_151a8ed0-5b57-42e0-8d50-fab4813a24f4">&lt;p style="font-size:10pt;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;6,530,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_550e7eac-53ea-4451-b32b-3bbd5d76c380"
      decimals="-3"
      id="F_70e83372-c070-406b-8d9b-80f59fcf4320"
      unitRef="U_USD">6530000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
