<?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_990907d5-d851-4cee-8531-51a7198fda70">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_23a3bb93-d5f3-4618-8db8-91be7a455b2a">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_60991b56-dd09-42e1-8941-eda80b23412d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_3ffb142d-5e1a-4471-b5c8-8d64c94d7ed6">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_67bd6e47-3e5b-45cf-a822-570a2a768d22">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_fcfcf233-24a2-46d9-9165-d719adbb898b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_d266203b-6c51-4ac9-ba49-3afac6958242">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_5ecfcc49-70b8-42da-bbeb-3db0b45f7327">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_5c4ff8d3-b24b-474f-b4fd-db5f0d9c3ee0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_261ba773-1374-4d26-9cbb-fb1b30d7ce0a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_990907d5-d851-4cee-8531-51a7198fda70"
      id="F_2d76dfcb-8ff1-4cfb-b5a4-ed1c0861b08d">&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;1,583,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_990907d5-d851-4cee-8531-51a7198fda70"
      decimals="-3"
      id="F_9e8b97b6-2a0e-4fec-9741-80ffcba2eef4"
      unitRef="U_USD">1583000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
