<?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_9e9aa619-362b-4f04-b545-44b10ef69113">
        <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:FormTp
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_43b45765-4891-479c-8753-ac41927695c1">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_feb894a5-05c0-4a5d-a2ef-cb488ea8fcd8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_71c63df0-eb7f-4b67-a5ad-2e4182f27902">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_5d9f4ed0-7b3e-403c-9798-6a0edfcee0b3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_f475e744-4ea9-43dd-9db4-d79bf63cc5ef">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_73a76374-f511-46c2-8129-d9e39f3874b4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_53d6800d-d888-4d9c-92cf-f920e40ad2ef">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_3b4fd147-2482-4b8f-867a-76d8487001bc">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_f9540d3f-3645-4c85-be72-d54c3a2348bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9e9aa619-362b-4f04-b545-44b10ef69113"
      id="F_45c59815-00b1-46ba-9470-83738dd4cd34">&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;5,502,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_9e9aa619-362b-4f04-b545-44b10ef69113"
      decimals="-3"
      id="F_324c4ef2-f9e3-4439-8a04-fc5de113e240"
      unitRef="U_USD">5502000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
