<?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_6389a398-e714-487c-b324-3caa96460a39">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_5afc125c-4c01-4174-ac2a-eb213466bdbe">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_591b2c06-2275-45e1-bfb7-0b8852ae1e25">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_37dfe733-8aea-42cb-bb76-3f6b9c7e426c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_22e790b0-c276-4609-bb19-5d9220250e32">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_f46dd853-a585-4ee2-945a-7920acd8dbfd">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_34514556-644b-445d-a21f-8f992994404a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_62ae2fa6-6836-49d2-9b44-c81f987d1395">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_762f4cfe-2b78-4ed1-906e-fc63ba6aeda8">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_4d58503c-e061-4ff7-9414-664ffac7b5d2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6389a398-e714-487c-b324-3caa96460a39"
      id="F_1dff032a-81a4-4ca7-9e65-bdcf0d4d3b6f">&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;5,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_6389a398-e714-487c-b324-3caa96460a39"
      decimals="-6"
      id="F_f45489fb-e905-499e-b189-031af3322f57"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
