<?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_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_b3031cb2-e1b8-4e7a-966f-f2a34068a41a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_484d90cc-c57d-4c3d-b7e1-6aa8bf0ccc6f">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_aa5f19ab-0a2b-4d8b-9023-47c7940e830e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_c5c31f43-4be4-498e-923f-0e657772d919">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_97727c04-8dc7-4194-b398-a40e6f8547fb">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_b67e81ae-46eb-489d-9adc-d5515a92e17a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_b96b6298-8576-4fed-9064-4ecbe51323d1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_732319f9-5b34-4bc8-b66f-78e052b55010">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_dbfb14fc-ae64-41e1-89f3-b45004e846b7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      id="F_16326fd3-5e5f-4f30-b255-f41479a05ca3">&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;7,225,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_cf74d805-1bdd-4b30-8aed-f83fa93bc7e5"
      decimals="-3"
      id="F_f5e02984-911a-42a1-941d-334161dfc3e2"
      unitRef="U_USD">7225000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
