<?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_a19189f1-8c76-4b13-80f3-0b665df22466">
        <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>
    <ffd:RegnFileNb
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_2916d3c0-84aa-4a43-9e81-532fa86178b2">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_9f30a57e-b2df-4fdf-908f-5ff7fd46154c">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_e67dcb45-cac9-4dfb-a610-127bdb49e649">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_a137867d-fb04-48ac-bfc6-6be1308112b1">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_fa4ec7dd-3997-4b44-a658-ab48913035ab">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_d0225370-a44d-4354-97c6-dc57581e230b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_40edaeb8-d6f2-4f1d-98c5-e943bb8323f2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_f9ba6c38-061d-4806-a49c-dd51140f62bd">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_68e1e377-6c98-441e-91d8-ffb6738420b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a19189f1-8c76-4b13-80f3-0b665df22466"
      id="F_cd73416a-2f48-416d-b7a0-286e6bc5db47">&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;500,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_a19189f1-8c76-4b13-80f3-0b665df22466"
      decimals="-3"
      id="F_20de54b8-0d2c-490d-92a0-31e0fb6b1491"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
