<?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_9240aa70-a52d-4d77-ac03-6b14e0acfcdb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-10</startDate>
            <endDate>2026-08-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_ba52afba-388b-4416-bac1-24da4970fdfd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_94178366-db93-48b2-8050-b3f64f4b4488">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_521d59e0-75a3-4292-a0b8-554421737f65">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_b8aa423a-f7db-4b0d-a7be-19b1502d342c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_aab33a50-fc00-4491-8c22-65544624a28f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_28dd1d29-8a23-4a86-919a-a24f90237234">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_0931620d-0081-4002-9069-c8765cbb05a4">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_982f8983-46ec-4b20-bab8-40054e1fe95d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_50743bff-80e5-4d7f-a185-c44f48203f81">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      id="F_f663d677-ab89-4d00-b629-ed08688b2dec">&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;2,650,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_9240aa70-a52d-4d77-ac03-6b14e0acfcdb"
      decimals="-3"
      id="F_583569f8-5d16-48ed-b0dd-905e84cb0214"
      unitRef="U_USD">2650000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
