<?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_cea235f2-7886-4123-a4bf-447ee050529c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-27</startDate>
            <endDate>2026-11-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_92a6660f-0a35-41c8-abc1-d95bb63fd03f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_54727926-aec6-458d-b837-005fb981e264">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_c15c453c-4499-4794-a84d-b2226e642acb">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_bfb1dccc-3d56-468f-ad61-d36deb9fe2fd">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_34d6d451-da3d-44e7-a3cc-a1e9b30a2a08">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_b67e3ba9-1e56-4864-8719-4dd7d78852ce">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_81302895-4814-42ad-a11a-28e831d8d019">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_a24ae7d3-299c-4277-ac66-8dab8b17e000">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_81c9371d-b432-42b0-b23c-cae951a0e814">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_cea235f2-7886-4123-a4bf-447ee050529c"
      id="F_69c0124d-0310-4667-b5d8-b7c43eba8a3b">&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,000,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_cea235f2-7886-4123-a4bf-447ee050529c"
      decimals="-6"
      id="F_4bb7f0e9-e3d7-4ad5-9025-93c808c9030c"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
