<?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_0c03898c-93f5-44a8-b0a8-137b5d2ebb39">
        <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:RegnFileNb
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_3a198da7-7161-4a42-8c18-e4825b2ef3ed">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_b4e109c8-596f-4786-b19c-d9f240bf298f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_83281389-fb44-46be-ac72-4c31ae9f50e6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_ff778500-614f-4c09-bd72-1cb41e549823">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_5fd7092b-755f-46df-a9a3-7f4b8d9ccaa0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_0bf1afc7-f529-4e6f-89aa-4adb393d1e4c">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_3eb28c0a-f754-4821-bb41-ae4fdc87fe6a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_98920aaf-693b-405d-9398-aed460387d97">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_99912cd0-2bc8-49c2-874c-42f2d3a9bb22">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      id="F_b3776fbf-c17b-4d55-ab36-158af63021da">&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,350,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_0c03898c-93f5-44a8-b0a8-137b5d2ebb39"
      decimals="-3"
      id="F_8b8df524-e463-4e0b-ab6b-f859a6091735"
      unitRef="U_USD">1350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
