<?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_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_dad8829a-cb4d-4c44-8d62-984bfc9ddac6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_0afc8979-a27f-40a0-ab0c-8a8b95025a46">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_89d3792b-15c8-435b-9a3a-2ee3299dd9f0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_aea3cd6e-6d0e-44fe-a8ef-e10f2c10fb12">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_6335500e-0cca-4d49-a51d-61c8d3738824">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_c9e8d99e-efcd-45a8-9def-48fd94bb5792">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_b85c4dc7-0d62-423b-9172-9d47548f102b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_dd0aa29d-d490-41fd-9db6-efb46ff72544">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_53de797c-58dc-4a83-bbe8-555e88dc0f1f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      id="F_fe4f495e-324e-4d4c-a852-ac08f1fcaf18">&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;4,500,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_5bc5d95a-f947-4a5f-bca3-8c7df2b9e0f3"
      decimals="-3"
      id="F_497deda7-b711-4b42-a9a9-4f89530cbb07"
      unitRef="U_USD">4500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
