<?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_30c62af5-7112-4eaa-9fdb-2cc5975c1c79">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_705b6274-72c9-4b0f-a19f-e274b10ab9fb">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_20f424fe-2cbc-4fb0-a22e-6bdbc9f99603">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_7a271d5e-8828-4619-8433-db561fedebfa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_290bfa0c-2042-40ed-a3a8-7cd7c001a3a8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_1ba95735-b161-4c25-9fb2-990496700dd4">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_95a8da23-65e1-451d-a42e-39011b901d0b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_e8741fa0-415e-4d90-af9c-e0143bddd78c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_7a3e0fa2-5840-4355-a12c-f39530f851c0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_0c91dbfc-64f1-4493-80f4-edbd3cbf31e7">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      id="F_aef2fbcb-a486-4ecc-889a-43dc5cca0578">&lt;p style="font-size:10pt;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,855,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_30c62af5-7112-4eaa-9fdb-2cc5975c1c79"
      decimals="-3"
      id="F_876b46c0-c1ae-45ce-9922-d60dbf159764"
      unitRef="U_USD">5855000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
