<?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_2a4be85d-376b-40a2-9e16-bd3007c1446b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_342cd8b3-2310-4e52-a546-1a640929a239">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_a0754fc7-8401-46bf-8977-17f2b2d26568">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_a497c370-f3f8-4659-be57-cd7f1b9ca34f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_448bcd64-e809-4d04-a9e9-5aadb31f5683">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_60a01081-dc84-445f-af05-3310964bbf16">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_8ed4eae4-0473-4c25-8dbc-96f8e7c29f4b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_36c4c089-567f-4e0a-b217-1bfe76858f06">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_9dc366bb-f52c-4441-932e-52d1f3049de1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_d4dcfa63-a86c-4a3c-9083-a1a232f8b8ba">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      id="F_dbff2576-aa07-4624-8ea5-d6550886571a">&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,909,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_2a4be85d-376b-40a2-9e16-bd3007c1446b"
      decimals="-3"
      id="F_62ee83c8-7754-4bdf-b6ef-4b6b7f974776"
      unitRef="U_USD">1909000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
