<?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_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_b30dd07e-7b5c-42ab-a1a5-e20ecb14e411">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_6202e72e-09bd-4a80-bd88-ad82200c0145">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_a4081d20-eaf8-4507-bc76-dfe984e0c404">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_6220ef9d-97e8-48af-a582-201dd56142b0">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_766833d1-9ad0-40f3-ad8d-c9cb3165be8f">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_254d21f3-7df5-4359-87a1-b281efe2045f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_dd85641a-08fb-4982-9ef4-30e0e62a8f3d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_22e3fc6d-1655-4995-abb8-2c77706734f8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_05e933e8-4f61-473e-bdc7-eb9eb81ae6be">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      id="F_41cbf17a-35a1-4b7e-ae17-636bb33cea38">&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;976,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_11b36368-6a6c-4930-b5fd-7ab52a5f0ab1"
      decimals="-3"
      id="F_a4e398d4-996c-45be-8dd6-c4f73b447fdd"
      unitRef="U_USD">976000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
