<?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_42563b92-2700-4e1e-9a20-1265de587d1d">
        <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:CombinedProspectusTableNa
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_a952e626-736a-4bbf-98dc-484ceaf6b726">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_9f0a6bce-5ffd-4d1c-b4c6-ebaa31c7a796">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_bcc36333-0b63-4e66-a6f5-3c9bff833d8f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_eadd8c4e-12f1-4160-b215-6df4bc241721">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_346de4df-6946-4b5d-82e1-d86e018d248b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_66ae81bd-0936-4b54-aeab-11653790c076">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_93cf8500-22e0-40a2-a612-dc88c2616fc4">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_d883b401-e13b-403b-be87-1f157983ae87">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_4afda2f2-5221-4bbd-849e-889c0d272fad">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_42563b92-2700-4e1e-9a20-1265de587d1d"
      id="F_272191f8-0ef4-4a24-939a-18597096786b">&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;484,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_42563b92-2700-4e1e-9a20-1265de587d1d"
      decimals="0"
      id="F_1344790e-8b61-4aac-a2bf-20d5b19b1233"
      unitRef="U_USD">484000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
