<?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_efacebab-e96c-4767-89a8-91bb4d66f113">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_c6d63e1e-ac9f-4ce2-b22c-8ae2682c6f20">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_73cf3de6-7aea-4cfe-acd6-fde29fc881e2">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_f61431c8-0ad1-46a0-8764-579c5112aad3">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_7b58d679-fac3-4ffc-bfc3-29eaa2c642b9">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_36bdf806-2bbe-460d-b694-e1fc03c72354">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_a052a384-10f5-440c-8f58-5fc6591f1a9d">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_78711f67-f8d8-4788-95c9-b0e6264599ef">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_a3db3ebd-a5b0-4c30-9dbf-6689cad52280">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_f1eb7c84-8e41-41c5-95b6-04a52457911b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_efacebab-e96c-4767-89a8-91bb4d66f113"
      id="F_d454fb89-d26b-4f63-871b-18cb5fb134aa">&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,000,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_efacebab-e96c-4767-89a8-91bb4d66f113"
      decimals="-6"
      id="F_599eb607-d789-4ec5-93ee-5ebc674c44f1"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
