<?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_69e89a88-4bae-48f1-9b2a-f0ea03801431">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_b553b579-5dab-42f2-bfc3-c3b1a47484a8">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_1ef3e226-19e6-4c16-8e83-5c4384035dc1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_29caac6a-41bc-41a3-a33a-dea02c0059d8">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_68c45e85-bf91-4170-9344-25802fb0def6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_263d4a7d-fe16-4656-a991-ac33e6aad995">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_a9723d39-a138-4e37-8b45-7ae88a44a0e5">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_38ea77f1-3cfc-4f3e-8425-1c2aadafc5bb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_bed7954f-db9d-407e-bd63-9f87b3491734">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_d371417e-ae57-43f9-ad0c-2062ba057581">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      id="F_2671b575-360e-4a6e-9095-d085fbb085e9">&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;1,711,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_69e89a88-4bae-48f1-9b2a-f0ea03801431"
      decimals="-3"
      id="F_5eaeb1a2-d7d8-45b4-aaf3-f9ff85b8a792"
      unitRef="U_USD">1711000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
