<?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_982a9d26-a8b2-4c70-9131-1c465dfb9b89">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-03</startDate>
            <endDate>2026-08-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_53d32c1e-621f-4159-b112-ac42d098a1dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_3a1285e5-00b8-41e1-b897-640c545d4282">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_36cc78f6-4c7b-4a30-90a4-d645506cf2fd">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_b054b9e1-87d3-492d-8579-bf57ace0e9e4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_2a1c82e3-4750-46f9-b757-e526b17e8a2b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_bc46168c-df77-47d6-abfa-0743ed8f0963">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_57cbd7aa-46ce-41b5-9770-b69ef4c98a13">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_668d8212-9bff-467d-aa1e-a1ed57842022">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_5a274c74-6ab9-4015-8e8a-e37bdfb3c71e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      id="F_571f8c54-4d49-456e-b363-05fc9569f243">&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;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;746,000&lt;/span&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_982a9d26-a8b2-4c70-9131-1c465dfb9b89"
      decimals="-3"
      id="F_3484c06d-07c9-40a3-9552-fa3bfc904962"
      unitRef="U_USD">746000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
