<?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_3349fb5a-e5dc-4d52-9fac-2900435355cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_2a27150c-10eb-470f-a1ca-8459d41a0a58">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_dfc01ca2-52f8-42bf-b39b-d8faee356813">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_3e346f4d-91af-4e9e-a543-025857b8264e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_5341a292-0a0f-475f-b48f-2a4f154ef4f3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_13c86741-0a86-4bf0-a6ae-752e4206b4c0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_ab2316b9-07e0-4736-9124-71997408fe9f">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_8b906a0b-7023-44ce-a5f8-f251ba270a61">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_bbfeeff1-285b-43fa-97d6-68f37bc2a1c4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_c4689dc8-12ad-4ed9-8b64-8e233d6bde0e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      id="F_114e2387-ad46-483c-a085-3ff11fdc1e83">&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;23,160,750&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_3349fb5a-e5dc-4d52-9fac-2900435355cc"
      decimals="0"
      id="F_302f2190-5dc9-4770-8392-e29fafdef16e"
      unitRef="U_USD">23160750</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
