<?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_6cc90b34-7bce-4078-8be8-5e985bd0ed79">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_a2ac55ed-84a8-4932-8079-2dfe67bf6705">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_4bd3b120-dfb4-418a-aa3a-21876c688001">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_8ed2b6d9-2610-4655-82dd-fc3c0a8068cc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_801e5b16-a5d2-4766-b761-ec9c3b7e9044">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_acd4a19d-c023-4cb8-a2b8-c36ef444ae6d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_1028b175-1148-49a7-92d8-11d0a5721661">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_d9b4ba81-d512-4eb4-b52b-eeafcd86c020">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_bf9c60ab-e031-4cd0-877c-cbc6829ecadf">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_a1fe1b2f-590d-4d76-acef-17c41a90c57d">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      id="F_cfcd3441-e661-4128-96ed-aa052f900fb0">&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;281,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_6cc90b34-7bce-4078-8be8-5e985bd0ed79"
      decimals="-3"
      id="F_155a9cbb-1fb3-468d-93c5-2fd5d9fa4456"
      unitRef="U_USD">281000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
