<?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_b929bc8c-d347-4f87-87eb-d61808bbd26b">
        <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_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_d9f7e730-42c5-4957-84f5-ab70c3f3a884">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_c65efa78-3c23-4a75-b25f-4d85b654eb7e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_96564322-ec2d-4772-98fc-0cb076db885a">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_7f5907e5-9fef-42e0-b074-31da30908143">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_27cf959e-688e-4285-959e-90922a3bcaa2">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_20af5b2a-7b8e-4494-ba55-ae42fecfbbbb">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_49d2c0a2-fbef-4111-8f34-1b38565419c1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_de14ea13-0804-4110-8d05-6fbb40948cd7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_a7f3c045-4b65-420d-8eb5-a3f8db8e2466">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      id="F_f137379c-e875-40d0-bd8e-94afea025a80">&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;733,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_b929bc8c-d347-4f87-87eb-d61808bbd26b"
      decimals="0"
      id="F_9a0293f2-8712-4b94-ae7b-7dd15ca34223"
      unitRef="U_USD">733000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
