<?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_261194b2-8e86-479c-a610-8890e7ecc805">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_f27ae64f-eb66-49dc-87e6-e513d373d9f0">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_2981f860-3a0f-4964-bbe9-f5f3906d96c3">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_42bfb8c3-bb82-488e-9f1e-cd5956629006">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_7ce2137e-03ba-4e66-8408-7f34b180c553">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_bcad1c0d-63eb-493d-b1c0-b57a9fb412dd">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_f9ba531c-abe5-43e8-a0a3-5c348f86e5d6">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_bc988854-9cf5-4271-b482-50cf22c827f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_775615c3-8b48-4318-9643-8b3bf51e1fe4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_aa5a1975-04fc-4b51-9111-a367c2d36696">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_261194b2-8e86-479c-a610-8890e7ecc805"
      id="F_09073fed-8d8d-46c5-8577-0a842a593ab3">&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;1,418,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_261194b2-8e86-479c-a610-8890e7ecc805"
      decimals="-3"
      id="F_2ecdf58a-f620-461f-8570-afd3d35345ac"
      unitRef="U_USD">1418000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
