<?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_2034a587-f3ff-42a1-a257-e585d8da20de">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_827bcfc4-f6fc-48a6-8034-134dc1dc0e43">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_fc6de768-0cca-43b1-a7eb-a0b520295c27">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_cd61b5d1-3be2-48cd-8d14-213ea016ec56">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_e8417606-09d8-49ac-aa3f-a5762440d0c3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_a3807ab7-0b51-4150-97ff-14238d9b4829">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_d6625691-dcc8-4b37-a140-6a156837ac7c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_41603e4f-8571-4e55-88a5-7cb9c853f6da">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_f8cc94fd-6d32-4aff-bcfb-32f2c7108ebf">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_887d7391-70c7-446b-8aab-4a066c1a9687">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_2034a587-f3ff-42a1-a257-e585d8da20de"
      id="F_18c7fac2-fe17-496a-9ad6-c5cfd09badb1">&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,200,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_2034a587-f3ff-42a1-a257-e585d8da20de"
      decimals="0"
      id="F_eaef19be-e358-42a3-a4ed-64dfcc44a5dd"
      unitRef="U_USD">1200000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
