<?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_b3449b55-9e60-469d-8be2-9d44f13f49ff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_20a4ddfa-8d2a-4bb3-9596-60e8ddb34b56">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_3a79707d-4307-40a5-9781-c3e6e63c6d9b">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_589a4507-c4ba-4f3d-bef6-0d0f37aac02a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_60daa40d-bcc9-4ae5-803d-29e1cd5b4a35">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_79842761-52c8-45e9-b772-d64c696f8ded">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_da32a191-9854-45ee-81ce-4082cc26b3c1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_3d1138c3-ec1f-4bd6-b704-f2f35a220111">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_63590ce4-ef46-4f5c-bfc7-dfbf22d53ea2">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_ef25bf5c-a654-4c62-a73f-cbd7514b23c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      id="F_abe4f7f3-ae90-452e-9371-27dbe0f36bfd">&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;3,594,000&lt;/span&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_b3449b55-9e60-469d-8be2-9d44f13f49ff"
      decimals="-3"
      id="F_ff038170-dc37-45ff-a75a-25a5433c54ea"
      unitRef="U_USD">3594000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
