<?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_175f1c75-9b70-467f-95d3-6548401e84d7">
        <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_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_336cb3cc-2142-4f0f-be88-ccf0431a2182">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_253ec5de-6349-4254-9fa3-8b5482e52c5a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_231ed2fc-f5a4-4639-ae22-43bc9b8e2d75">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_3c51f99d-8882-4fa2-8dc9-0398a49f6392">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_e65a2818-16e2-46c0-8063-cd219319727d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_5dd11e20-782f-4294-9f97-4e6a055ebf6a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_c26aae98-aed7-4ad9-bf0c-e9761b6e8b0d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_6628d816-056a-436c-ae84-0140c3072852">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_97200d8c-d40a-45d5-96be-eae7897b1230">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_175f1c75-9b70-467f-95d3-6548401e84d7"
      id="F_20c4b059-ef04-4446-b1a2-e1629aa50782">&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;5,758,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_175f1c75-9b70-467f-95d3-6548401e84d7"
      decimals="-3"
      id="F_dd74e76c-152a-4ffc-aac1-62142904e98f"
      unitRef="U_USD">5758000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
