<?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_fe8efc04-365a-40c1-be03-598b99272a87">
        <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:RegnFileNb
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_aafea84d-899c-434d-8214-5dbd7a4b8402">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_ee4d01e7-a217-4a36-92b5-f176f50aecc9">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_1280f218-0302-410b-915e-2ffdc32171c6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_ba5ed344-4d82-4d23-96c0-36ad0a46817d">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_2098696a-f0f3-4e50-bf04-e263b370b926">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_39082e0c-69fa-4347-8833-7cef2ebccc82">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_5e6a6924-6360-4630-8127-b240d5600240">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_dbc0ad6e-f126-4ecf-b0f2-30987c8c050b">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_8de2fd0f-a836-4829-9d4d-6911aabe865b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_fe8efc04-365a-40c1-be03-598b99272a87"
      id="F_c2902766-976c-438a-87ec-06e99fca3427">&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;9,508,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_fe8efc04-365a-40c1-be03-598b99272a87"
      decimals="0"
      id="F_39739470-9f18-4289-99f6-113eeebc9415"
      unitRef="U_USD">9508000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
