<?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_d942b8bc-fb00-4a70-aa2d-89d260b307cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-18</startDate>
            <endDate>2026-05-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_dc26a4ce-981d-448f-b1a5-5308d67490a1">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_6f9bfaff-0005-471c-9eb2-18da1eeefd79">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_0b1e12b1-1018-4a4f-aa56-3256c6238856">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_a3bfb5ff-7a4d-45fe-a211-9b7976f4d4ae">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_bf9d9a37-b8d0-4409-8325-34d66b0c8165">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_0fa5de35-445b-4572-bfbe-a00520bad6aa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_79e46fdf-cb8b-4777-bc37-c9a01b4d6175">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_a192886a-544a-4fb8-a7fb-652041824c66">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_e08f9d4b-08f5-47c2-96ff-bb481446db3a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      id="F_0dde7cd0-65c9-4591-b9fc-a275da680531">&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;1,872,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_d942b8bc-fb00-4a70-aa2d-89d260b307cc"
      decimals="0"
      id="F_1c4af2c1-eb32-477e-acea-de33ad3da5d3"
      unitRef="U_USD">1872000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
