<?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_87822469-8dc0-4a5c-9efd-9d90023161fd">
        <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:SubmissnTp
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_28c5aaf0-955a-4c22-8dd4-a785b6d6a925">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_da403a8c-f15a-4a34-868e-f24f898ecae8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_8bf5bf56-0d0f-4be9-aacd-58bd937b9543">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_25342532-bc08-491f-8f12-bbb4d22f1081">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_e8accab1-f52e-4388-9a60-c1813a4a4cc8">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_bc180c86-852e-4a79-ae22-4165a2ce0dd5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_fe1dc57d-430b-4a6f-a062-9660483e542a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_b9645990-c952-4649-98a2-f78620ecdba3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_28bb7d75-3b9c-4894-94d5-38ff21f75228">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_87822469-8dc0-4a5c-9efd-9d90023161fd"
      id="F_51b65a17-b1cb-4e68-ac79-2de55a4c73bc">&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;510,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_87822469-8dc0-4a5c-9efd-9d90023161fd"
      decimals="-3"
      id="F_7835a0e9-3b06-466b-bef0-98cabda2f080"
      unitRef="U_USD">510000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
