<?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_e1721a2d-7248-4b1a-a2d7-748aae686dca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-07</startDate>
            <endDate>2026-10-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_20aa9aa0-eee0-47de-b1c0-eff2943aa163">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_10daceb0-7cc4-4299-9b5c-54fd7649877a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_805882dc-323c-4694-8a8a-fe13c2b20b5a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_d5a1cf8b-360d-4cc0-a98d-f06ecddf4463">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_f28b629a-1611-48ed-997e-a80fa215b48b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_3e42243d-ac0f-4ddc-adaf-ce0e8a4f248b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_3d9911c3-acd5-4bca-8cb2-49cda20014ba">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_7b035373-bd36-4671-aedd-c0314a9148c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_47d312fa-614c-4cca-844f-189bbcc57396">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      id="F_4b4246e1-3d73-4350-829e-de5c88320825">&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;3,003,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_e1721a2d-7248-4b1a-a2d7-748aae686dca"
      decimals="-3"
      id="F_39f2c1b7-b1e2-4a36-915f-e15f5ab88913"
      unitRef="U_USD">3003000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
