<?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_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_d88972f6-4ba1-4753-acdd-9e1374a08593">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_cd343edf-e6e1-439e-97b7-df6fcfd5d2c2">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_275b7cbd-548b-413f-aa08-6f0432c74839">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_39db7c8b-9a19-460a-8458-55a1f1eef4bb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_9d792754-4f83-4bcb-b9bb-6ac0185dc3c0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_95baff43-60bd-4c28-999b-8f2ad30e0d20">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_9c0cdd16-b407-4755-b684-88f6274ae80b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_c8a09a65-82a1-48e3-809c-6fc5271138b5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_fb4f7cf2-7f10-49f4-8490-3ae92409bd9c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      id="F_c8ec20ad-2b97-4798-8c91-76c723b9ddc2">&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;13,014,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_5e39853f-1d4b-4d8d-b09f-a009f1a0dfd6"
      decimals="-3"
      id="F_5a6b3005-bc93-4597-9400-7728a2a4ed7f"
      unitRef="U_USD">13014000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
