<?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_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_31648cd9-6754-4ab8-8c5c-27c555b369c8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_57908b87-012c-4e83-9919-b22f3d11236c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_e604fa73-3c7f-4dbc-8b23-d8bea21e384d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_3e125c67-2874-41d8-9cdf-5fabc50fd58b">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_cefdae31-f889-4f50-a73c-00e4e3f0c049">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_ba6faf18-ee94-4964-aa99-06ef539e8e64">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_4053f7f0-7e46-4856-8961-8dc109561fa1">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_5c4e85a2-a461-4e7b-921b-9ef542d681a6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_8ee90ad6-fd6f-4bd4-9184-ea35c66b7941">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      id="F_cd128f12-6e5a-4052-8ee4-8e99b7ee5bc9">&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;3,500,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_a1ae59cb-83a5-44fe-9be9-c942edcb8aa8"
      decimals="-3"
      id="F_931e6d66-5e57-4daf-9e47-b184720c4da1"
      unitRef="U_USD">3500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
