<?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_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_fb032d85-436d-46a4-ae14-9cafba6606cc">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_61e73014-c43b-4890-a4cd-8cf6d654954c">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_67e0ceca-8e22-4152-97f6-8877e587c363">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_b64a2137-b4d3-4518-9afe-d112ddd8f0a2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_2b1225bf-7013-42bd-9010-9dee2ff82de4">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_c52d4d6d-73c4-4c24-befa-912c3286b0fa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_6815804c-2407-4669-852a-0a41a9ca7606">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_558c3d84-f133-4e2d-a9d1-69879d32c82a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_4de4785b-3baa-4334-8cf7-c91b9eec3f5e">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      id="F_4544b601-1739-40c8-afa4-4d577c27b1eb">&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,308,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_7e1b6f60-ff1e-4bfa-9f45-eb13ee6ba559"
      decimals="-3"
      id="F_15c38cac-57c1-4612-bf5b-459e1dba1a02"
      unitRef="U_USD">4308000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
