<?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_781a1818-5120-45ae-b7bd-b5b42ca37cd1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-20</startDate>
            <endDate>2026-08-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_d474fb2e-9eff-4717-bd8e-4871828bcdb9">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_5b76a184-f205-48fe-87d2-b4f122919d10">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_33284715-755e-4e80-b139-50a519f5de7d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_7f52c63d-e4d8-44b1-8194-35279f384a6e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_e671b2bf-7a35-4cc4-a7f6-f0026bd3db01">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_68aa3894-6e68-4f4a-aa33-95dc23a21584">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_915f0af4-b355-4251-a346-c7fd7b5c87ed">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_5f02b41a-480a-49e7-aaea-5133c8f89ce6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_9cdd5b42-5162-4cb9-8327-164d15d38755">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      id="F_eb946080-d9f6-44e7-9e08-1ca58fcc1d34">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;14,485,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_781a1818-5120-45ae-b7bd-b5b42ca37cd1"
      decimals="-3"
      id="F_c4c6c625-f502-48a9-a4b3-b554a18483df"
      unitRef="U_USD">14485000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
