<?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_9fd0c63a-ff61-40f3-96cf-a169eb8ab605">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-12</startDate>
            <endDate>2026-10-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_877f79b1-08ee-4237-ba60-2afbe6355f4d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_7548f8d0-9d28-4ecd-a4b1-274d5ec6ff6b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_48f60817-edc3-4f37-a156-35ff1f2eb22b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_975a4a6e-f57b-4264-988d-6b9227a10cb4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_83ef0628-a80f-4a27-94db-42b91fd12096">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_a5d2c7e4-d594-4898-be30-dd0efbab7c2b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_eb15b682-4db6-4c42-bb84-d8112c36be0b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_8c98b345-ad7f-4dd5-9e1c-2ce0c59a6ed5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_78ce2422-eb4c-44e8-b3a8-0477acb26f47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      id="F_daf6b246-83e9-4cd0-adb7-4d6b6a915166">&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;8,548,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_9fd0c63a-ff61-40f3-96cf-a169eb8ab605"
      decimals="-3"
      id="F_7ad6a9a0-d013-460a-8c33-24d1a187cb63"
      unitRef="U_USD">8548000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
