<?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_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_012ce62d-8c70-4de6-ba8a-f484fe4cabd7">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_c63f0c43-42af-421c-b618-8e57cc20b2f1">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_18bfb353-fe59-4a6f-ad6d-2be93d029842">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_094a395b-e4e3-4832-a2d5-60055b505b00">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_e79d50bc-f97e-44c1-bee8-fde30bbfe469">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_91a8a254-f798-47a6-a3e5-80f29162fa8a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_930f7bd4-1ae7-42e6-a2e4-7d0550cfd329">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_ef241509-d452-4312-b16f-70e26d6632ac">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_60219b70-f013-484e-baac-fa9e851cfd26">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      id="F_3bc14cf1-360b-4de1-886e-b3385742d7fa">&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,114,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_c3aac0a3-a9c1-43a7-af03-cf80396dd9b4"
      decimals="-3"
      id="F_c06570ed-ad6f-4cd0-a077-52eb4c28f07b"
      unitRef="U_USD">4114000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
