<?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_f25da1cd-caed-4a8f-b659-a9c559dbc558">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_b327eea0-99ce-457c-9abb-32b8d77b97c6">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_cf2cb90a-f546-48f7-8649-08f97528cd17">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_0e8c2d1e-687b-4e60-b518-e90adf00c423">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_6f01da09-327f-412b-8c96-01f8d90b38ba">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_591925e6-9380-4bbb-ab38-fb0a93613121">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_3e1c28e8-dd35-4f4d-adeb-3f311c1e797b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_2f17c7f7-a762-42e6-b326-78ab45d2b596">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_1c93bfd1-eb53-438d-8a9b-6165e0ddfb25">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_2ba62c59-97a1-4ced-afc9-4b201c389ea3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      id="F_8a91282a-16f2-4997-8041-d8e55d7744af">&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;8,850,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_f25da1cd-caed-4a8f-b659-a9c559dbc558"
      decimals="-3"
      id="F_5ccde843-9582-4634-a759-3d106318ce2b"
      unitRef="U_USD">8850000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
