<?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_a8142580-6a21-4541-959c-8e99eddfaf4d">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_fc8f735b-9a07-45ff-ad89-8275416f454e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_6f12656c-13a0-42f2-a317-ca2cfafeb7f7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_e06020ab-0e71-49af-bc77-e7dc87d7a28a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_0949e778-866a-487e-b87e-26156410cafd">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_cb2b3ed0-97e6-42c2-ad99-c20992509a81">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_ad101277-1b3e-434a-87cb-ed8194c4a0f4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_f631d43b-0f3b-48a2-a58c-6d95497bd163">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_c4e34224-015f-4006-b1ec-197ed91fc728">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_51b4bdb0-5907-4695-975e-e7f1b15a4792">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a8142580-6a21-4541-959c-8e99eddfaf4d"
      id="F_c13f8969-9466-45cc-98c9-aca9eb68e4c6">&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,337,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_a8142580-6a21-4541-959c-8e99eddfaf4d"
      decimals="-3"
      id="F_ad1aa2a8-ae46-48dc-a659-158ddb553896"
      unitRef="U_USD">8337000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
