<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_38f17160-14d0-4459-8214-b1459bb77a4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_ec7c6923-926b-46d7-8bac-8cf229b0a00d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_1dfd7059-8b63-452d-bcc2-da309d921b47">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_363818db-01c5-4b5b-95bc-4c6f6ce771e0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_603f42ed-ec02-4878-95d2-27084f3446a3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_af13caef-7ee1-45a0-895c-16684e726b71">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_d977342d-7c46-4b33-a486-e0892a49a5b7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_b3088271-9cb3-4b7e-bf30-2ede4c547f0b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_2f2281b7-2be5-49cb-98ea-161999210e65">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_3d7def88-e24b-4564-b638-9af994ae1083">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_38f17160-14d0-4459-8214-b1459bb77a4f"
      id="F_496b0783-09cc-40c0-8db1-36ef146ee6b4">&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;3,645,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_38f17160-14d0-4459-8214-b1459bb77a4f"
      decimals="-3"
      id="F_0afb3b3c-0c01-470c-b92d-e1f04376b464"
      unitRef="U_USD">3645000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
