<?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_0fe05006-4ed9-49a2-97fb-089d94d9d8d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-18</startDate>
            <endDate>2026-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_5d2af59d-fe7f-4451-9ed1-45de633b8c2d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_f72edea7-148b-4020-bc39-2550a8d277e1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_c2f33b47-9b71-49f3-a65a-4c0d35f85d80">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_9683d0ac-bb57-4968-9527-a4c57826b54c">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_12445d5b-f390-4ade-8f29-dac596f4a5c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_e9d5aa58-ed40-47b0-bb54-783142252001">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_9409fcaa-8953-4b19-89d4-116ddad553ee">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_bdf08b77-08db-4a6b-8ab0-426e3e32ece4">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_f5728277-c093-40fb-8d1e-952fd83898fa">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      id="F_318813b5-e663-4cd2-99a4-aeb3090b7ad4">&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;4,691,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_0fe05006-4ed9-49a2-97fb-089d94d9d8d8"
      decimals="-3"
      id="F_5c8caec2-9b10-46d8-a589-9bc7cd0e9b3e"
      unitRef="U_USD">4691000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
