<?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_f4c51625-48c5-442b-9aad-5ba453ffd378">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-16</startDate>
            <endDate>2026-10-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_39a5f44a-b2d0-49fe-abf5-3ead592385e1">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_107cb001-07a1-4185-a70a-101ad09c74f1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_0d641ca0-0c4d-4d48-a2a8-0d7554241cb8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_11f26fad-3a8b-4585-8565-390f3c9928c4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_acf99fb4-e1d4-4edf-b998-fa2e6f67319d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_3bbd4f48-196b-4b79-acab-ac2f56a412b1">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_731a22ef-a250-44a0-a5a8-d92fdddf5899">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_2b3e54c1-a3e7-4179-af8f-5f22e3c2952c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_17d50c78-c86b-4f0f-8a68-3fa234370bcd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f4c51625-48c5-442b-9aad-5ba453ffd378"
      id="F_8f7c6691-077a-4f78-b687-cf6df7a68732">&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;9,513,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_f4c51625-48c5-442b-9aad-5ba453ffd378"
      decimals="-3"
      id="F_28e7edc4-cfee-46ad-a908-a24ce386317e"
      unitRef="U_USD">9513000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
