<?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_de696bf3-9cb8-4dec-a6f9-a8632397d0ce">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_1d45c761-eede-4d4c-b7ed-b196dd29b699">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_f9676314-d395-494d-bcc3-564e020e614c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_93392928-91d1-4345-98c9-22e0ea90706a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_c3bd84a5-1aff-4ca8-9d7b-5ab572c97bf6">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_6a4bef2d-d92e-4871-af9e-3e5c5794c2aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_e388b753-7af4-454f-afb6-4b0acd85ee8e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_261555ae-1329-4f44-b045-0d537a3e59c9">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_0ba10e4d-d154-4967-9f8b-661af89eea8c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_e4fcc32b-ffb4-4a1e-8237-e7528b58749c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      id="F_98b3e718-8945-4d7c-ab74-a60879f9e5a2">&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,950,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_de696bf3-9cb8-4dec-a6f9-a8632397d0ce"
      decimals="-3"
      id="F_62e0a9f3-6085-4b16-9c01-5e16514e5e1f"
      unitRef="U_USD">3950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
