<?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_5d121323-8f69-4941-b147-45c745cff116">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_78885c51-5cd0-4efc-ba03-1d1b64f07e57">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_f74a02c1-85e9-4ccb-8a07-5cb6bbc0a6ab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_8682f00f-c4ba-4efa-8278-4207b9bebe00">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_acda5148-5a7a-41a6-865d-9ae75d741c3b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_9b8bd9fc-9c1e-496a-9775-ccb5191c96df">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_8c417559-4881-4449-979a-b6c0c1232e06">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_e3ab1da7-a004-4282-a62d-a93c50578e95">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_edcd8f88-b5f5-4436-bc67-51e7e8ca5c92">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_3a2b345e-3020-4adc-adfb-31a13bdcf4eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_5d121323-8f69-4941-b147-45c745cff116"
      id="F_ffb0bff1-1cac-48bf-8722-b85c681a9554">&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;450,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_5d121323-8f69-4941-b147-45c745cff116"
      decimals="-3"
      id="F_b75ef76a-3dca-4736-a55d-b4f0448097ef"
      unitRef="U_USD">450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
