<?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_e961751c-37f3-40e1-a252-06429e1be3ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_d102f0e0-52e1-4f2c-a757-abe04ab08257">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_ef429b75-af09-44c4-8564-f06d3a00f487">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_b0486bc0-1bfe-4a15-9905-06014fded928">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_1b988a49-3872-4ac8-8d03-74c55a64a0c0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_fb6aea14-6986-4cf2-ac09-c6e7e5b5739f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_90d8babc-08f2-49dc-8005-cae0e60ab236">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_71cb2b15-fdec-477d-8a6b-1d626bcf32b2">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_d138a3de-4f95-4c4f-be6b-bae84924b8b9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_f231e333-0789-4fda-a28b-fd24d9f46244">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e961751c-37f3-40e1-a252-06429e1be3ad"
      id="F_5fafe0c6-a75b-4bbc-a59c-10f95a9eb82d">&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;900,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_e961751c-37f3-40e1-a252-06429e1be3ad"
      decimals="-3"
      id="F_01538887-68eb-4b4e-8b06-92218f7d0157"
      unitRef="U_USD">900000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
