<?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_ff9570c0-0e94-4b4c-98a0-32a77848e661">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_f1a010dd-933a-4880-bf37-7fae32eeec37">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_86c18188-3c76-416a-babe-2b751e725ac7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_fc0ac642-4313-4d53-84ac-c22a37c39766">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_8e161a0b-3e83-4727-9cde-d11664fdea20">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_8c396bc7-bf35-4c62-9b79-c383577fd47a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_4ea5b440-df4b-4531-a03b-c37fa81b043c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_da787598-7998-4874-9b86-c65b9bc5ead1">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_37f0be0a-ab2d-4a32-8824-790d779c3fd9">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_71bed308-b381-4095-902b-868a90df50e7">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      id="F_23ba6763-23a4-42c8-a182-22d0dbe2e638">&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;2,786,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_ff9570c0-0e94-4b4c-98a0-32a77848e661"
      decimals="-3"
      id="F_b673cc52-cd39-45be-b8eb-ef5e6879dbbb"
      unitRef="U_USD">2786000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
