<?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_1fb2c6be-f7f9-4a1b-b029-997afb763787">
        <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:CombinedProspectusTableNa
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_ae57de3e-7063-44bc-a95e-7e5b4dce97bd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_ac0721b1-498b-4c46-b3cc-8df37a693edd">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_20ccd58b-8253-45ef-a212-6d827c0ed6ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_b41c7592-6c89-4a06-9e0e-482e0f8424db">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_5c5e4507-75c8-4214-9728-fa96f33a8a9e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_2c7db615-5e6a-45b3-a5bd-b669126ea17c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_7e786f8c-0e3a-4208-95c3-907304e1f27b">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_fc6978bc-613b-47ea-ba63-377aa39a7913">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_ce069213-9d92-4a60-abd7-835325084076">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      id="F_fe46d33d-82e4-4f41-9d74-0ec5647f97b3">&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,223,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_1fb2c6be-f7f9-4a1b-b029-997afb763787"
      decimals="-3"
      id="F_55ae6db9-f0d1-48df-bf3c-ca4655e4464e"
      unitRef="U_USD">1223000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
