<?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_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_a55d8ca1-2a57-485a-8d43-2feccbf398bf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_6ac8407f-66fe-475b-8464-9bcca3fba023">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_bf4a7c8d-3fe9-4769-8716-eea34d71430b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_84bb6a47-ab86-492a-8baa-f5ceaabe7015">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_1457c0c8-2414-406f-bb12-f3f2c7e17390">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_1c70f813-e9d8-4c90-973a-f27786d94c95">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_afa8b5e5-e656-482c-84fa-5a2f0af34ff2">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_50f5c079-8a82-4337-b3cb-d67760aaa59a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_379e8b9e-f3a8-48af-97c0-3c4e54c2e5c5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      id="F_0b482589-c112-4651-8aa8-17fc94533763">&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,000,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_6dd89ff3-6c60-4f4f-b129-d6cf8b22732d"
      decimals="-6"
      id="F_3bcb2828-c223-4415-ac20-7c16a2aed080"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
