<?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_fde85ad3-d320-4c4d-8ee6-9d317449de53">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_f377b53a-d766-4e4c-a511-2242cdfa6b07">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_ff3d3d5b-4b0e-4b52-90b9-e45846a99e38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_995e6ba2-8b54-47dc-92fb-284b6924cf0f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_042a1fc2-4511-4ddf-9150-d41304ced35b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_52bf14ef-a403-4bbb-914e-937e930c5584">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_03100921-6c80-4ccf-b09f-1e31d7da326a">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_4ccfbd75-1c80-48e0-83ce-bd3a404e1054">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_e9925dfe-4875-4937-a0aa-a9963e831133">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_5e8d2cc0-183d-42aa-90bb-b8361d350a8f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      id="F_ab175898-0344-44cb-8f74-ec9ac5ae6273">&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;3,805,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_fde85ad3-d320-4c4d-8ee6-9d317449de53"
      decimals="-3"
      id="F_b88a3317-7fe5-423c-8d9f-72f991a0293a"
      unitRef="U_USD">3805000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
