<?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_1cb191fc-c32c-498b-9158-7260c44892ab">
        <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:SubmissnTp
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_6525851a-2fea-4fa0-a03e-29648579d68f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_a533ff9f-9d7f-40e5-8699-ffb177327a4f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_be7453cb-cf7f-4f75-bc08-18c5cbccd414">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_579b280f-14be-4739-8f3c-df27458e4684">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_85a7c60c-2014-486f-8782-3623ae06f847">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_bf029650-fd85-48a2-b7d7-81d657f5fea9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_5b9ff433-111b-4fe4-8f67-9c5844680840">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_20503644-b5b2-4cb7-b15d-d83f8c069a0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_5ab71925-04e1-4130-8f96-81db4a79bd58">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_1cb191fc-c32c-498b-9158-7260c44892ab"
      id="F_bd43c9ad-92e3-4470-ad02-cae54b982c58">&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;1,719,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_1cb191fc-c32c-498b-9158-7260c44892ab"
      decimals="-3"
      id="F_f83694e0-f712-4c12-b8f3-b0bf216ef483"
      unitRef="U_USD">1719000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
