<?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_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_1278dc8c-205e-46ac-8faf-3dab4c6bc4ba">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_5a21b0d6-6f75-4782-b7f9-23da661766db">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_ba7997f7-0342-44e0-956a-9f69f5668980">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_4dae1a53-bca7-4d50-8c3a-382efa40068b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_ccd7a365-86e3-4821-b526-b5b7f7e92050">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_e6b34639-bd79-4d6b-8f97-dec5844ed156">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_c12ea5e8-1f52-4b56-85e3-5128585d47e4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_67917e15-96bf-4da4-9f8e-5de9f96c7047">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_8ea87bf3-60df-4e99-bced-fd40425809e5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      id="F_d3186b10-7a41-4794-9fa6-7d2fd234359d">&lt;p style="tab-size:26.66px;font-size:12pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:right;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-weight:bold;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;EX-FILING FEES&lt;/span&gt;&lt;/p&gt;&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;8,497,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_0b3e34a4-3ef6-4ab9-a6ad-595a83f134c8"
      decimals="-3"
      id="F_34a65828-5043-43ed-849c-82e2224e0f4e"
      unitRef="U_USD">8497000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
