<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_c4e50fd3-c629-4380-a199-50ea740645ac">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_0bff50db-fdab-4b4d-942c-079b828d8e24">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_9d47a522-e424-4f7b-830c-ebc9f28be2d3">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_12f03282-befa-485e-92b3-2c32f4410e97">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_ae982b75-eb65-490b-b7eb-533f01908d30">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_640e6f0e-f1b7-49ad-89d5-7f01228f4d2f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_0efcec59-2325-41b8-be52-f11dbfb10adb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_8f56f783-65d1-4b12-88ef-8165f1367d86">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_deb25520-51fa-4e9b-9dfe-d6478997bcb8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      id="F_d8cb6cd4-7039-45ec-9621-fefd17d8aacf">&lt;p style="font-size:10pt;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;3,704,930&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_c5224198-4ed5-40cf-9b32-2893b5a3a43c"
      decimals="0"
      id="F_7cfae267-6c4d-4d67-bf17-792034bf1549"
      unitRef="U_USD">3704930</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
