<?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_f5d14dfe-068d-4634-bd2e-3cc4c992960b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_903f85ab-cc39-46f0-b1a9-8c9b8c46c625">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_ff546a60-3ca2-4752-b3d2-379d7e6ad702">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_99dd1d5a-b866-4514-b2d4-1d74874391fe">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_6164cc78-cc74-4906-819b-b76693b33303">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_a2b4b842-60b6-41d2-a5a0-4ab4c2670ead">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_e9bcdcc7-8105-408b-9854-71d6b4457534">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_fcc7d908-0f06-4a03-9943-f81be93caf63">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_6cb89f1c-d84d-46cd-aea0-b1c75a130d30">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_b786850c-a8dc-4b45-8d58-dfbb501116a0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      id="F_d5978451-c447-43c3-8e66-e4e148f8c0d0">&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 $&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,045,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_f5d14dfe-068d-4634-bd2e-3cc4c992960b"
      decimals="-3"
      id="F_083e56fa-6b3f-4254-8231-d9bca82365a0"
      unitRef="U_USD">11045000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
