<?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_2e13cac4-8034-4dbe-b127-045d210c8503">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_22c14872-4e6a-45cf-99d3-291a15c28df1">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_80b03dbc-db3c-4e50-a915-33f8d17b81d2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_7ca1e8e2-17ec-4e9d-b4b4-bd3d7f30dc9a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_31b79967-7098-4e7f-88b2-586cb587b6b3">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_02cd9efe-5d96-469c-bfe6-3d92fa161031">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_2f3f9a51-d206-4383-81f5-774e44ab535d">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_0a100d92-67c0-4088-affa-f7c69a5ab285">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_5c5230fc-afbc-49e4-8d76-bd2f475a1ef2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_4a56941d-0c4b-4bcd-8182-ceb94d5ea9ae">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2e13cac4-8034-4dbe-b127-045d210c8503"
      id="F_3bf27635-8b03-45ef-8ec8-3f0942b8b0ff">&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;2,578,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_2e13cac4-8034-4dbe-b127-045d210c8503"
      decimals="-3"
      id="F_190cb393-be56-4438-ace5-66b1aa8493c5"
      unitRef="U_USD">2578000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
