<?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_adcba987-1c33-4297-967a-6879a4d20b7d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_1386663f-daf4-48f4-be2b-3a4dfb502b42">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_5d624524-6458-4e5f-a353-3f15fcd20206">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_d5c40f26-c44e-4a70-bb85-fbc5d206ce89">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_37ffa857-4456-48e3-894e-730a572d062e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_203c0e3c-7256-4863-a0c5-33743e7dcfce">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_77e55488-6128-49fc-93dc-04a0cdcb1965">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_ebc7a518-22b7-4a51-ab82-5bdab4513a74">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_02503207-76e6-435b-8b4c-de66474735b5">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_acc68bf0-9e45-44bf-a9c3-d2956aeb13a5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_adcba987-1c33-4297-967a-6879a4d20b7d"
      id="F_de041326-260a-403a-b1ed-25bb236d45b8">&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;1,174,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_adcba987-1c33-4297-967a-6879a4d20b7d"
      decimals="-3"
      id="F_4a9562e0-3d79-433d-8f2c-99eccef435dd"
      unitRef="U_USD">1174000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
