<?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_02fecac2-1f77-4852-a7fe-a3ae023d729b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_84baa7d4-110b-4303-bec9-3a25eb508615">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_d4d04c95-f75d-4be9-ae17-12081c25fa15">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_30b52b4a-80d0-4730-b92c-f48de8261c4f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_42f2a25e-3da6-46ac-ae4f-3c6192c6b048">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_fd7041ef-a940-46cb-adad-088c95fe8f70">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_ba1c8e23-0323-4325-b171-93e5c9abe6be">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_8210132e-76b2-417d-baf9-6d37a7e810b7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_3f7e3c5a-ed6d-43ca-a893-30a0aa2e6b4c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_44bbf1cb-152a-4104-a234-a4c9ebfc72e5">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      id="F_e2d44456-7218-4942-ac66-297a7cb54835">&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;40,469,870&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_02fecac2-1f77-4852-a7fe-a3ae023d729b"
      decimals="0"
      id="F_3d0c1b0f-8f1b-4cb0-8855-5390996ed774"
      unitRef="U_USD">40469870</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
