<?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_621bafd8-f807-4669-a180-460c275ac2de">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-01</startDate>
            <endDate>2026-09-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_c58b6993-b4a3-4ffc-b891-af0c82ec138d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_0ebd57c9-0793-482c-822c-6f37cc03e120">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_6742e0fa-c0c1-4084-9588-1298f6275b23">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_140fcac5-4df2-413d-9e07-99781ccda165">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_520e7ddc-723d-4794-b2ef-e016a9e48ffd">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_64d5bfed-7921-49e0-91fb-17960c7c6252">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_d8e9a45d-30a6-4e48-9867-6327c13bdc25">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_5466d9e6-2339-4585-8980-a531ca2f9764">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_1a09b403-05a9-4751-8ad3-a69bdbda1abe">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_621bafd8-f807-4669-a180-460c275ac2de"
      id="F_ff7341c4-f001-4664-a2a1-a968a7c0d148">&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;368,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_621bafd8-f807-4669-a180-460c275ac2de"
      decimals="-3"
      id="F_b832c829-45ab-44a6-9a13-d33d2d87c23c"
      unitRef="U_USD">368000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
