<?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_6f1461d2-2a85-4945-a9e3-16a0fb192ae7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_679c0116-bd8c-4c22-8063-0ffac9779ffd">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_3fc5691b-1f73-4254-ab19-d8ad2ab940c8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_a7ac02d0-e1c4-4210-b012-bc66e6e6ead1">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_5085bd5a-e4d8-42b1-890c-881d46f64d81">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_cf5f950b-560e-4a57-a536-078decaa2183">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_a946aafa-76c4-4fe8-b822-dc00b0f41034">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_6b3ff23a-21c9-4f6b-b973-61d13106a50b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_90c03d23-1e0c-4386-b620-6c46458c43dc">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_c41fbbb1-7896-4697-9d25-464afac08109">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      id="F_6235e3eb-e469-4540-bf10-0010420097d0">&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;10,529,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_6f1461d2-2a85-4945-a9e3-16a0fb192ae7"
      decimals="-3"
      id="F_7c89bbe6-d2e3-43fc-99ad-7ded5e323c7e"
      unitRef="U_USD">10529000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
