<?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_6713d35b-6b9c-4a13-bbfb-5a34fb36434c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-24</startDate>
            <endDate>2026-09-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_d2f4a896-15b9-4124-8a05-cc19a24bf87e">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_6c7da625-5c73-4ef9-a8dc-c9044135eb91">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_b7579c8e-6fe0-4c8d-8516-12a866afe3e1">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_014f5c5c-345f-4349-9a1a-ffb87756515b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_2fd927fc-4c26-407b-826c-ab57f92254ad">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_bc89feac-f45b-444c-88fd-e571fce86a36">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_38b9b4ea-eeed-493d-bcaf-a60668eccebf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_b2388657-5d85-41b4-bfc5-1385d9f6927a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_01bd95de-fa17-4d5d-8d76-48fe5cf4178b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      id="F_2c289d9b-335d-405d-9c13-1f01b625674b">&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;1,450,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_6713d35b-6b9c-4a13-bbfb-5a34fb36434c"
      decimals="-3"
      id="F_32746c60-6080-4de2-bc4a-7ce1fab446fa"
      unitRef="U_USD">1450000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
