<?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_98ac8349-3588-46d9-9ce5-496536c1faea">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-21</startDate>
            <endDate>2026-09-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_dff3d236-0680-4fb4-85ba-1b60255ccc6c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_405fa87a-baea-449d-89a6-929aa0e49ed6">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_af681c25-b947-4e8e-9e8d-0b373ca5b343">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_f97772aa-7eda-4d29-83d9-c73f1ab60fc6">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_87103b9c-7e1d-45bf-b035-0103d99dc2c1">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_4f824caf-0512-46a3-b53c-9a0f6101f435">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_715b800b-c101-45dc-a5cf-a937bd586bac">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_e40df995-258a-49ea-98be-a475690a8bfc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_8e88159d-5a45-449d-947b-43e3ed969204">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_98ac8349-3588-46d9-9ce5-496536c1faea"
      id="F_dbdbd064-c6e1-4dc7-90c7-fac23bf933cf">&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,428,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_98ac8349-3588-46d9-9ce5-496536c1faea"
      decimals="-3"
      id="F_0195690d-18d9-4a7d-bdcd-c01b9386e2c6"
      unitRef="U_USD">1428000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
