<?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_c846a7dd-b635-4070-8e62-abaee1f1fe26">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_8071878f-7dd5-45fe-bdf7-7de06a086c22">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_75ff970a-a1ae-45bb-9671-515ad458f393">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_15970a48-3ebf-438d-93ad-2de910614ff6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_de53e7bc-9fd7-4a89-ac73-06b709eaa5da">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_c8b5bcdb-70c2-42bf-9999-083f3d22d234">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_0a076609-94fa-47a5-aaf9-3d11b7db2372">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_3fb4dacf-abd4-4fa2-b008-ce66c4416b1f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_076e1db6-6b48-404d-a11d-c1f19aa18217">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_fd503efa-c33e-4328-b438-0d6fa72a13ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      id="F_5dcd74fb-5452-4d60-9739-d68e3abd3e07">&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;542,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_c846a7dd-b635-4070-8e62-abaee1f1fe26"
      decimals="-3"
      id="F_84d8527b-7df9-4a36-a84d-00c01ba723e1"
      unitRef="U_USD">542000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
