<?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_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-04</startDate>
            <endDate>2026-11-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_5408c450-59a8-4122-902a-411f7da0fdae">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_1798d87c-8688-4559-8e00-42c1c9cd0b0c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_ed4852c0-75a6-4a5b-8bc3-048cdd9aae90">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_8f031d44-7976-4dac-bf06-fdb6e932a60f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_1b308e9d-2cc0-4d33-838d-dfb4afe8cfd1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_5e689873-74c9-45eb-94c9-07ac37702c95">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_2e990ee7-c751-4840-9a0b-ef8c5de46d85">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_25b1a615-5bb4-4167-a798-d6bd4cc0572f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_239d64b7-2138-487f-88ce-9fbc6e7e3afb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      id="F_fd98b242-5fac-4aa6-9244-d8e995be1f07">&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,000,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_404c5db3-9b5a-4b50-90e3-04d7aa8bf94e"
      decimals="-6"
      id="F_652281d2-bcee-4358-83d7-0717a2604e9a"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
