<?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_d2b088d5-8fba-4948-a075-3dcbb532e047">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_2f43c98a-dac8-4922-a839-5bab58cd70c0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_946130e5-4bd6-4562-8a92-740faa99d8a6">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_5ad53f27-24cd-4fa4-bd6c-9b04fc3f2408">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_3c41c8ca-ce48-491c-83fc-00d9a001a30e">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_77c33309-b870-4b5b-8db0-f5f017ca1bab">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_aec623e7-2b94-44c6-a7d5-ce09a0e98fe2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_ed118399-83fa-48d9-b836-a5a41d4c96c4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_c9f8ffff-9a34-44b2-8f1b-9839edc78271">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_6887b004-b0c2-4086-b006-e1b05815265b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d2b088d5-8fba-4948-a075-3dcbb532e047"
      id="F_84fba5fb-791c-43e4-bc15-68a6a1e5b750">&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;19,036,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_d2b088d5-8fba-4948-a075-3dcbb532e047"
      decimals="-3"
      id="F_3e5b7d8d-5e75-4bcf-a6d9-4a157fd220c8"
      unitRef="U_USD">19036000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
