<?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_d054402d-1336-4b64-b347-2a531ed7ebf4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_61e83b93-730a-4b4d-806b-d48b1a55cfc7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_d9b52ce7-7714-419b-b2f9-126aa5e20dbd">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_f2392957-81bd-489f-a940-729bb28657ae">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_daa60cb2-6ed2-4554-9644-916615f9f69b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_309ab702-ec07-4828-9e21-75878861b8b7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_5231da99-277e-44af-ac69-4234c113540d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_28e044ca-b8f5-4d19-9d5f-56eb97e5677e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_9450febf-fe3d-4aff-9163-f8ee6fae237e">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_dc7b3dec-b23d-4e09-bfa2-03a0cc12de4f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d054402d-1336-4b64-b347-2a531ed7ebf4"
      id="F_09357dfd-0baa-42cd-b6e3-50f5b0911913">&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,080,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_d054402d-1336-4b64-b347-2a531ed7ebf4"
      decimals="-3"
      id="F_6a37dc2b-60a7-457a-9477-3ba101a77947"
      unitRef="U_USD">1080000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
