<?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_0972e34b-b12e-4ebd-9f76-8011fef8897f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_c8b1ed65-9acb-4673-ac2c-1ecfcd689230">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_c7320531-3f44-4aaf-995c-1f49fd875088">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_0b721c26-38b8-4561-8147-3f088136394a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_97db3059-9ff6-4dbc-af98-be063103177b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_7554ea67-0ee0-4885-accc-35009fc08d60">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_93b1037f-334b-462c-8793-41df69fb46de">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_12b28d53-b094-4a98-89f8-f26ac46f5100">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_b6e18939-c87c-4278-acb7-4b1b9dc1f469">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_4ece2673-558f-4d2c-ae8e-287e4ef1c4b2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      id="F_9146db48-ce67-456d-b5f7-951d9160d70f">&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;2,775,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_0972e34b-b12e-4ebd-9f76-8011fef8897f"
      decimals="0"
      id="F_c99d00ee-d2d8-49cc-a541-d7a0cd9304ac"
      unitRef="U_USD">2775000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
