<?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_de654bf7-655e-4ea3-a32c-fbf550712da8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_22e00de4-9676-4cf2-9fd3-a9726f0bd50d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_850412ae-63d7-4d75-821d-15d3dae80895">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_4f6b7c88-41e4-4da2-a89a-e631b2f54c8d">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_da9b193f-ef03-4914-ad0c-d07ae74232b3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_9219e0e5-586b-423a-a67e-0f09be2232e8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_f0283c29-4cf6-449e-945f-d69e2c0d37df">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_fefb24b4-ce8d-4b48-ae8c-b8ba74ae6a20">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_68c1b520-6ff9-4c50-a471-8cc399cf25ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_d145ea3f-46bd-4ffe-86b8-5c2ddc306965">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_de654bf7-655e-4ea3-a32c-fbf550712da8"
      id="F_f1713d16-67d3-477f-af17-5b673a8cd45f">&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,575,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_de654bf7-655e-4ea3-a32c-fbf550712da8"
      decimals="-3"
      id="F_88560474-d31e-4d44-8e66-a280695f5a99"
      unitRef="U_USD">1575000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
