<?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_73f134fb-7986-42ce-9184-cb4a08aa78c7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_2734e607-72fa-4da8-8bd8-f2e03fc2edf4">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_8d332a1c-9ab9-48a4-afda-8671850fb523">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_e02b2320-2fdc-4a1d-a540-393ad1cca227">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_702341db-e043-49f8-afaa-b90c728b7fec">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_d77946f8-9def-43c0-9fd3-215a68b24dd8">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_e9c42b3b-1fc0-4201-b437-26984e96378e">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_c1b65370-df32-4f4f-814d-8298dab82aad">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_7dcd0663-819c-4be6-bb79-300ee0f342f5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_3ede1433-52c6-42d6-88af-4601974a1d80">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      id="F_0756e6b1-fd22-4f9a-8821-fd2b359d4401">&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;5,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_73f134fb-7986-42ce-9184-cb4a08aa78c7"
      decimals="0"
      id="F_424d5a50-5553-4800-a4c2-9adc281d97d5"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
