<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_fac876cf-7c6d-47c8-9c57-aca419e467f0">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_f1fc64ca-6756-48b5-82ef-f956125ef560">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_3560f35f-c825-4929-8abb-a4877e3a3a56">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_ae6e6cd1-763a-4af1-9e14-213398d46713">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_51898755-ab88-415c-9363-f21114e38f35">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_a5604f95-bf0c-4e6e-a9fd-11739113baef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_b6d8714c-0959-4a8f-9859-1407a934f8f7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_daf7d987-01f9-4b51-a113-3bef1623ef9c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_9cb04aab-fc67-4cdf-93d8-de36ff879788">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      id="F_36724bcf-2da4-4616-b9a3-f0ca12883fd0">&lt;p style="font-size:10pt;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;4,450,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_91723603-5f7c-44c8-9aca-5ffbeb15e3d7"
      decimals="0"
      id="F_52e6ae95-f5e8-4538-8f27-8c55b3d36684"
      unitRef="U_USD">4450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
