<?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_b441f298-3ade-4911-8094-d6100a84c26d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_211f8b81-358d-436c-8e71-bd57a2e8976e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_82e63aa1-312d-42a5-a520-447221a967aa">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_5e33d287-4bb8-45ed-a973-eb87048c2517">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_e150fe88-8253-4f5c-967f-c79d17755ad1">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_0201c84d-ea1b-48a8-bcb5-d6a3662f7ec5">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_8a1b0524-7202-4d12-a8d1-6647f0aa4c5f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_4e87887b-1b27-41e5-99b3-32ac72eb060c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_296730ad-aa13-4128-b0d2-f815aaf19002">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_007e855c-fcfb-4e5f-821f-ccb211460302">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b441f298-3ade-4911-8094-d6100a84c26d"
      id="F_443112c9-6c5a-48e9-9b5e-25cf280747b1">&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;1,227,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_b441f298-3ade-4911-8094-d6100a84c26d"
      decimals="-3"
      id="F_f54988dd-40cb-46c9-92a1-131ea2469d70"
      unitRef="U_USD">1227000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
