<?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_464f7d69-c044-4875-b33b-8442d9601c44">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_e1fc1bd0-8f3f-4e63-ac6c-4e5dd8d6724e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_13692cac-a59c-4cac-911c-369db0685b86">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_9af4292e-accd-486b-9d36-9e25f7a2724b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_fc0c90be-fd8e-4659-a00e-efad92be3df4">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_5015e294-3083-4096-a270-e8b6d870d6a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_aa401c8a-fad3-43ef-b288-664c7cfd9bf0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_e7233407-eb72-44ce-9421-35a8f1e5b90f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_703436a5-c8fb-48e5-b575-a8e3d7aca7ef">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_73edb94b-1f0b-4279-a7ad-e8a33aacedad">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_464f7d69-c044-4875-b33b-8442d9601c44"
      id="F_a5f55e93-8fe6-4a4a-9b28-c012daca4140">&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;3,931,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_464f7d69-c044-4875-b33b-8442d9601c44"
      decimals="-3"
      id="F_282c00e5-ad13-4aad-bbb6-ded2e9d388c5"
      unitRef="U_USD">3931000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
