<?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_21e17029-cf31-4230-ad9a-57760059d7f8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_ec1dde95-b72c-47fc-87ba-125ab076ec9b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_5a96ba09-d4c1-4a84-9ba2-0f338a4d21c5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_5183c442-9393-4693-9c1b-4a7f24585a53">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_d85d55ed-bbf9-4db2-b49a-38c20125b358">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_c1b5520a-7368-419b-b09d-98185b6009cc">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_fe3483aa-7f3e-4728-9005-207d7a6b9b10">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_f1f08bec-53a6-457e-ac39-bb9fe7748baa">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_240728c5-70d2-415b-bfa0-d7ec6e2fb16a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_9f369c0e-aa1a-4d07-be83-0ef8a8ade459">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_21e17029-cf31-4230-ad9a-57760059d7f8"
      id="F_1fd29dc2-45b7-44af-b597-bbe98ff62bd8">&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;991,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_21e17029-cf31-4230-ad9a-57760059d7f8"
      decimals="-3"
      id="F_19dcd4e0-26b3-483d-bc06-ffb98bcac654"
      unitRef="U_USD">991000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
