<?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_ecd2ca24-6c51-4650-b099-d176b3ae2b79">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_9caa08c8-8165-4587-a820-7f05d4c174ad">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_8c32e4e2-7616-4d18-908a-602915e89a1f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_d4673030-3186-4097-8981-4ccfea34343e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_b0ed283a-f29c-4e14-a7c2-8a02c3402e2b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_bb5d0807-1a66-48a4-9e2d-31a711ed518d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_7459bd9f-90c4-417b-9840-7014ebaa67c7">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_6b46a605-7741-4037-840d-0a252821e4ac">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_5c6e2f8f-8310-4902-a5e7-488daa4a9577">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_8544ebba-0b95-4fe0-8a79-648512f3cd9d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      id="F_e0b14816-e3fe-481e-8fe3-244bdf6dd99a">&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,193,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_ecd2ca24-6c51-4650-b099-d176b3ae2b79"
      decimals="-3"
      id="F_7de7f5a0-3d3c-44ab-9b51-483c32a9d028"
      unitRef="U_USD">2193000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
