<?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_f55f6db8-7fd6-44a9-9507-e934f4edf8fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_72f58f6e-799d-45ba-951b-ecf6b51a0231">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_1c6e4e93-9192-45d1-9b64-2fe0c9d90511">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_c99eea56-a046-48c0-94cf-a8d76648f2ff">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_8dcc846e-d47c-4d4c-b3ec-be611e9a3493">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_643831ed-23dc-42f3-b9ad-d8800b1d4fb9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_3d7186cf-d962-4a1c-a5a8-5f0f94ffbff6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_d6618dde-340e-491c-b82b-0716650ab846">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_0558e85d-46fd-45e5-9f40-1567bba8d96e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_b200964d-4680-4ea9-baa3-9a865be71807">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      id="F_02e85025-309b-46fb-8cf5-a9035c46797c">&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;11,366,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_f55f6db8-7fd6-44a9-9507-e934f4edf8fa"
      decimals="-3"
      id="F_372b8532-7263-4e5e-8db3-2fa92e5b0de0"
      unitRef="U_USD">11366000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
