/* Generated by scripts/build-case-study-legacy-css.mjs from /styles/site/sidebar.css — do not edit. */
/*
 * Sidebar, collapsible rail and mobile navigation — loaded after the original
 * style.min.css / responsive.min.css, which stay untouched.
 * Typography (Advent Pro, 14px, weights), logo artwork, labels and routes are
 * unchanged. The case-study pages use a guarded copy of this file: after editing,
 * run `npm run build:case-study-css`.
 */

/* ==== Shared: navigation rows ============================================ */
.leftContents .nav-link:where(:not(.web-case, .web-case *)) {
  position: relative;
  padding: 7px 18px 7px 0;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  transition: color 0.25s ease;
}

/* Full-bleed row tint + thin edge indicator, used by hover and the active item */
.leftContents .nav-link:where(:not(.web-case, .web-case *))::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -15px;
  right: -15px;
  z-index: -1;
  border-left: 2px solid transparent;
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.leftContents .nav-link:hover:where(:not(.web-case, .web-case *))::before {
  background: rgba(255, 255, 255, 0.05);
}

.leftContents .nav-link.active:where(:not(.web-case, .web-case *))::before,.leftContents .nav-link.ruckus-highlight:where(:not(.web-case, .web-case *))::before {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #ffeb3b;
}

/* Chevron: the original Font Awesome glyph, smaller, softer, centred on the row */
.leftContents .nav-link:where(:not(.web-case, .web-case *))::after {
  top: 50%;
  right: 2px;
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
  transition: color 0.25s ease, transform 0.25s ease;
}

.leftContents .nav-link:hover:where(:not(.web-case, .web-case *))::after {
  color: #ffeb3b;
  transform: translate(3px, -50%);
}

.leftContents .nav-link.active:where(:not(.web-case, .web-case *))::after,.leftContents .nav-link.ruckus-highlight:where(:not(.web-case, .web-case *))::after {
  color: #ffeb3b;
}

/* Keyboard focus (the original removed the outline entirely) */
.leftContents .nav-link:focus-visible:where(:not(.web-case, .web-case *)),.leftContents .socialLink a:focus-visible:where(:not(.web-case, .web-case *)) {
  outline: 2px solid rgba(255, 235, 59, 0.85);
  outline-offset: 2px;
}

.leftContents .navLogo a:focus-visible:where(:not(.web-case, .web-case *)) {
  outline: 2px solid #542785;
  outline-offset: 3px;
}

/* ==== Shared: social links ================================================ */
/*
 * One coherent icon family (Font Awesome brand glyphs + an inline X mark), muted
 * lavender on purple, yellow on hover/focus, in equal 32px cells.
 */
.leftContents .navFooter:where(:not(.web-case, .web-case *)) {
  right: 0;
}

.leftContents .socialTitle:where(:not(.web-case, .web-case *)) {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.leftContents .socialLink:where(:not(.web-case, .web-case *)) {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  grid-auto-rows: 32px;
  gap: 6px 14px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leftContents .socialLink a:where(:not(.web-case, .web-case *)) {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 6px;
  color: #d9cdea;
  font-size: 15px;
  line-height: 1;
  opacity: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.leftContents .socialLink a:hover:where(:not(.web-case, .web-case *)),.leftContents .socialLink a:focus-visible:where(:not(.web-case, .web-case *)) {
  color: #ffeb3b;
  background: rgba(255, 255, 255, 0.08);
}

/* Fixed glyph box so the icon does not move when the icon font finishes loading */
.leftContents .socialLink a i:where(:not(.web-case, .web-case *)) {
  display: block;
  width: 1.25em;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.leftContents .socialLink .social-x:where(:not(.web-case, .web-case *)) {
  width: 14px;
  height: 14px;
}

/* Legacy /services/case/ sidebar still uses the original image icons */
.leftContents .socialLink a img:where(:not(.web-case, .web-case *)) {
  padding: 0;
  width: 22px;
}

/* ==== Shared: legal page links =========================================== */
.leftContents .navLegal ul:where(:not(.web-case, .web-case *)) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leftContents .legal-link:where(:not(.web-case, .web-case *)) {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.leftContents .legal-link:hover:where(:not(.web-case, .web-case *)),.leftContents .legal-link:focus-visible:where(:not(.web-case, .web-case *)),.leftContents .legal-link.active:where(:not(.web-case, .web-case *)) {
  color: #ffeb3b;
}

.leftContents .legal-link:focus-visible:where(:not(.web-case, .web-case *)) {
  outline: 2px solid rgba(255, 235, 59, 0.85);
  outline-offset: 2px;
}

/* Icons (collapsed rail) and the collapse toggle are desktop-only */
.leftContents .nav-icon:where(:not(.web-case, .web-case *)),.leftContents .sidebarToggle:where(:not(.web-case, .web-case *)) {
  display: none;
}

/* ==== Desktop (≥ 993px) ================================================== */
@media (min-width: 993px) {
  /*
   * Collapse toggle: a dedicated control row at the bottom of the sidebar,
   * separated by a hairline, below the social links (which move up to make room).
   */
  .sidebar-collapsible .leftContents:where(:not(.web-case, .web-case *))::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
  }

  .sidebar-collapsible .leftContents .navFooter:where(:not(.web-case, .web-case *)) {
    bottom: 76px;
  }

  /* Legal icons: a compact row above the social section, with a divider between them */
  .sidebar-collapsible .navLegal:where(:not(.web-case, .web-case *)) {
    position: absolute;
    bottom: 184px;
    left: 15px;
    right: 15px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sidebar-collapsible .navLegal ul:where(:not(.web-case, .web-case *)) {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .sidebar-collapsible .legal-link:where(:not(.web-case, .web-case *)) {
    display: grid;
    place-items: center;
    width: 32px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
  }

  .sidebar-collapsible .legal-link:hover:where(:not(.web-case, .web-case *)),.sidebar-collapsible .legal-link:focus-visible:where(:not(.web-case, .web-case *)) {
    background: rgba(255, 255, 255, 0.08);
  }

  /* Active legal page: yellow icon with a short yellow underline */
  .sidebar-collapsible .legal-link.active:where(:not(.web-case, .web-case *))::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 14px;
    height: 2px;
    margin-left: -7px;
    background: #ffeb3b;
  }

  /* Names appear as tooltips (they remain the links' accessible names) */
  .sidebar-collapsible .legal-label:where(:not(.web-case, .web-case *)) {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 3;
    padding: 5px 10px;
    border-radius: 4px;
    background: #1e2333;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(17, 7, 41, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .sidebar-collapsible .legal-label:where(:not(.web-case, .web-case *))::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-bottom: 0;
    border-top-color: #1e2333;
  }

  .sidebar-collapsible .legal-link:hover .legal-label:where(:not(.web-case, .web-case *)),.sidebar-collapsible .legal-link:focus-visible .legal-label:where(:not(.web-case, .web-case *)) {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  /*
   * The bottom section is taller now (legal links, social links, control row), so the
   * navigation is centred in the space between the logo panel and that section
   * instead of on the full height — same position in both states, no jump.
   */
  .sidebar-collapsible .leftContents .navigation:where(:not(.web-case, .web-case *)) {
    top: calc(50% - 70px);
  }

  .sidebar-collapsible .sidebarToggle:where(:not(.web-case, .web-case *)) {
    display: grid;
    place-items: center;
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .sidebar-collapsible .sidebarToggle:hover:where(:not(.web-case, .web-case *)) {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .sidebar-collapsible .sidebarToggle:active:where(:not(.web-case, .web-case *)) {
    background: rgba(255, 255, 255, 0.22);
  }

  .sidebar-collapsible .sidebarToggle:focus-visible:where(:not(.web-case, .web-case *)) {
    outline: 2px solid #ffeb3b;
    outline-offset: 2px;
  }

  .sidebar-collapsible .sidebarToggle i:where(:not(.web-case, .web-case *)) {
    transition: transform 0.3s ease;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .sidebarToggle i:where(:not(.web-case, .web-case *)) {
    transform: rotate(180deg);
  }

  /* ---- Collapsed rail (84px) ---- */
  html[data-sidebar="collapsed"] .sidebar-collapsible .leftContents:where(:not(.web-case, .web-case *)) {
    width: 84px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .leftContents:where(:not(.web-case, .web-case *))::after {
    left: 14px;
    right: 14px;
  }

  /*
   * No compact/icon-only Ruckus logo exists, so the original logo is kept, scaled
   * uniformly (≈100px wide). Its white tab overhangs the rail like the expanded
   * tab overhangs the sidebar.
   */
  html[data-sidebar="collapsed"] .sidebar-collapsible .navLogo a:where(:not(.web-case, .web-case *)) {
    width: 124px;
    padding: 10px 12px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .navigation:where(:not(.web-case, .web-case *)) {
    overflow: visible;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .navbar:where(:not(.web-case, .web-case *)) {
    padding: 0;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link:where(:not(.web-case, .web-case *)) {
    padding: 7px 0;
    text-align: center;
    border-bottom-color: transparent;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link:where(:not(.web-case, .web-case *))::before {
    left: 0;
    right: 0;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link:where(:not(.web-case, .web-case *))::after {
    display: none;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-icon:where(:not(.web-case, .web-case *)) {
    display: inline-block;
    width: 20px;
    font-size: 15px;
    line-height: 21px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s ease;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link:hover .nav-icon:where(:not(.web-case, .web-case *)),html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link.active .nav-icon:where(:not(.web-case, .web-case *)),html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link.ruckus-highlight .nav-icon:where(:not(.web-case, .web-case *)) {
    color: #ffeb3b;
  }

  /* The label stays in the link (its accessible name) and becomes a tooltip */
  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-label:where(:not(.web-case, .web-case *)) {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    z-index: 3;
    padding: 5px 10px;
    border-radius: 4px;
    background: #1e2333;
    color: #fff;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(17, 7, 41, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translate(-4px, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-label:where(:not(.web-case, .web-case *))::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -5px;
    margin-top: -5px;
    border: 5px solid transparent;
    border-left: 0;
    border-right-color: #1e2333;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link:hover .nav-label:where(:not(.web-case, .web-case *)),html[data-sidebar="collapsed"] .sidebar-collapsible .nav-link:focus-visible .nav-label:where(:not(.web-case, .web-case *)) {
    opacity: 1;
    transform: translate(0, -50%);
  }

  /* Social links: 2 columns in the rail, without the label */
  html[data-sidebar="collapsed"] .sidebar-collapsible .navFooter:where(:not(.web-case, .web-case *)) {
    padding: 0;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .socialTitle:where(:not(.web-case, .web-case *)) {
    display: none;
  }

  /* Legal icons: a tighter row that fits the rail; tooltips open to the right */
  html[data-sidebar="collapsed"] .sidebar-collapsible .navLegal:where(:not(.web-case, .web-case *)) {
    bottom: 196px;
    left: 4px;
    right: 4px;
    padding-bottom: 12px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .navLegal ul:where(:not(.web-case, .web-case *)) {
    gap: 2px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .legal-link:where(:not(.web-case, .web-case *)) {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .legal-link.active:where(:not(.web-case, .web-case *))::after {
    bottom: 1px;
    width: 12px;
    margin-left: -6px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .legal-label:where(:not(.web-case, .web-case *)) {
    top: 50%;
    bottom: auto;
    left: calc(100% + 10px);
    transform: translate(-4px, -50%);
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .legal-label:where(:not(.web-case, .web-case *))::before {
    top: 50%;
    left: -5px;
    margin: -5px 0 0;
    border: 5px solid transparent;
    border-left: 0;
    border-right-color: #1e2333;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .legal-link:hover .legal-label:where(:not(.web-case, .web-case *)),html[data-sidebar="collapsed"] .sidebar-collapsible .legal-link:focus-visible .legal-label:where(:not(.web-case, .web-case *)) {
    transform: translate(0, -50%);
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .socialLink:where(:not(.web-case, .web-case *)) {
    grid-template-columns: repeat(2, 32px);
    gap: 6px 6px;
  }

  /* ---- Content follows the rail width ---- */
  html[data-sidebar="collapsed"] .verticalScroll .sidebar-collapsible .rightContents:where(:not(.web-case, .web-case *)) {
    width: calc(100% - 84px);
    margin-left: 84px;
  }

  /* Homepage: horizontally laid-out sections are offset by the sidebar width */
  html[data-sidebar="collapsed"] .superScroll .sidebar-collapsible .rightContents:where(:not(.web-case, .web-case *)) {
    margin-left: 84px;
  }

  html[data-sidebar="collapsed"] .superScroll .sidebar-collapsible .rightContents .main section:where(:not(.web-case, .web-case *)) {
    padding-left: 84px;
    margin-left: -84px;
  }

  /* Homepage toggle: switch without animating the horizontal section offsets */
  html[data-sidebar-instant] .sidebar-collapsible .leftContents:where(:not(.web-case, .web-case *)),html[data-sidebar-instant] .sidebar-collapsible .rightContents:where(:not(.web-case, .web-case *)),html[data-sidebar-instant] .sidebar-collapsible .rightContents .main section:where(:not(.web-case, .web-case *)),html[data-sidebar-instant] .sidebar-collapsible .navLogo a:where(:not(.web-case, .web-case *)) {
    transition: none !important;
  }
}

/* ==== Mobile (≤ 992px): header + slide-out drawer ========================= */
@media (max-width: 992px) {
  /* Header stays above the drawer: logo visible, the menu button becomes the close button */
  .smHeader:where(:not(.web-case, .web-case *)) {
    z-index: 101;
    height: 60px;
  }

  /* Modern hamburger: three equal 2px lines in a 44 × 44 touch target */
  .smHeader .menuButton:where(:not(.web-case, .web-case *)) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    top: 8px;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
  }

  .smHeader .menuButton span:where(:not(.web-case, .web-case *)),.smHeader .menuButton:hover span:where(:not(.web-case, .web-case *)),.smHeader .menuButton.move span:where(:not(.web-case, .web-case *)),.smHeader .menuButton span:nth-child(2):where(:not(.web-case, .web-case *)),.smHeader .menuButton span:nth-child(3):where(:not(.web-case, .web-case *)) {
    width: 22px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background: #542785;
    transition: transform 0.3s ease, opacity 0.2s ease;
  }

  .smHeader .menuButton.move span:nth-child(1):where(:not(.web-case, .web-case *)) {
    transform: translateY(7px) rotate(45deg);
  }

  .smHeader .menuButton.move span:nth-child(2):where(:not(.web-case, .web-case *)) {
    opacity: 0;
    transform: scaleX(0.4);
  }

  .smHeader .menuButton.move span:nth-child(3):where(:not(.web-case, .web-case *)) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .smHeader .menuButton:focus-visible:where(:not(.web-case, .web-case *)) {
    outline: 2px solid #542785 !important;
    outline-offset: 0;
  }

  .smHeader .menuButton:active:where(:not(.web-case, .web-case *)) {
    background: rgba(84, 39, 133, 0.08);
  }

  /*
   * Drawer: slides in below the header, on the original solid purple.
   * While closed it is hidden so keyboard focus can't land in it.
   */
  body .leftContents:where(:not(.web-case, .web-case *)) {
    top: 60px;
    left: 0;
    width: min(300px, 84vw);
    height: calc(100% - 60px);
    transform: translateX(-100%);
    visibility: hidden;
    box-shadow: 0 0 0 100vmax rgba(17, 7, 41, 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, visibility 0s linear 0.35s;
  }

  body .leftContents.move:where(:not(.web-case, .web-case *)) {
    left: 0;
    transform: none;
    visibility: visible;
    box-shadow: 0 0 0 100vmax rgba(17, 7, 41, 0.4);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, visibility 0s linear 0s;
  }

  /*
   * The drawer is a scrollable column: navigation, then the legal links, then the
   * social links at the bottom — so nothing can overlap on short screens.
   */
  body .leftContents:where(:not(.web-case, .web-case *)) {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .leftContents .navigation:where(:not(.web-case, .web-case *)) {
    position: static;
    flex: 0 0 auto;
    padding-top: 16px;
    overflow: visible;
    transform: none;
  }

  .leftContents .navLegal:where(:not(.web-case, .web-case *)) {
    margin: 12px 24px 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .leftContents .legal-link:where(:not(.web-case, .web-case *)) {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 14px;
  }

  .leftContents .legal-link i:where(:not(.web-case, .web-case *)) {
    width: 16px;
    text-align: center;
  }

  .leftContents .legal-link.active .legal-label:where(:not(.web-case, .web-case *)) {
    text-decoration: underline;
    text-decoration-color: #ffeb3b;
    text-underline-offset: 4px;
  }

  .leftContents .navbar:where(:not(.web-case, .web-case *)) {
    padding: 0 24px;
  }

  .leftContents .nav-link:where(:not(.web-case, .web-case *)) {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .leftContents .nav-link:where(:not(.web-case, .web-case *))::before {
    left: -24px;
    right: -24px;
  }

  .leftContents .navFooter:where(:not(.web-case, .web-case *)) {
    position: static;
    margin-top: auto;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  /* No background scrolling while the drawer is open */
  html.nav-open:where(:not(.web-case, .web-case *)),html.nav-open body:where(:not(.web-case, .web-case *)) {
    overflow: hidden;
  }
}

/* ==== Language switcher (EN | العربية) =================================== */
/*
 * Under the logo on desktop (both sidebar states), in the header bar on mobile.
 * The current language is a filled yellow segment; the other is a link.
 */
.lang-switch ul:where(:not(.web-case, .web-case *)) {
  display: flex;
  margin: 0;
  padding: 2px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.lang-switch__item:where(:not(.web-case, .web-case *)) {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* Arabic label: an Arabic face on English pages too (system fallback, no extra download) */
.lang-switch__item[lang="ar"]:where(:not(.web-case, .web-case *)) {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", "Geeza Pro", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

a.lang-switch__item:hover:where(:not(.web-case, .web-case *)),a.lang-switch__item:focus-visible:where(:not(.web-case, .web-case *)) {
  color: #ffeb3b;
  background: rgba(255, 255, 255, 0.1);
}

a.lang-switch__item:focus-visible:where(:not(.web-case, .web-case *)) {
  outline: 2px solid #ffeb3b;
  outline-offset: 2px;
}

.lang-switch__item.is-current:where(:not(.web-case, .web-case *)) {
  background: #fac400;
  color: #1e2333;
  cursor: default;
}

/* Visually hidden, read by screen readers ("EN — English") */
.lang-sr:where(:not(.web-case, .web-case *)) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header bar (mobile) only */
.lang-switch--header:where(:not(.web-case, .web-case *)) {
  display: none;
}

@media (min-width: 993px) {
  .leftContents .lang-switch--sidebar:where(:not(.web-case, .web-case *)) {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
  }

  /* Rail (84px): the two languages stack */
  html[data-sidebar="collapsed"] .sidebar-collapsible .lang-switch--sidebar:where(:not(.web-case, .web-case *)) {
    top: 90px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .lang-switch--sidebar ul:where(:not(.web-case, .web-case *)) {
    flex-direction: column;
    gap: 2px;
    border-radius: 14px;
  }

  html[data-sidebar="collapsed"] .sidebar-collapsible .lang-switch__item:where(:not(.web-case, .web-case *)) {
    min-width: 58px;
    padding: 0 6px;
  }

  /* Short screens: keep the centred navigation clear of the switcher */
  @media (max-height: 700px) {
    .sidebar-collapsible .leftContents .navigation:where(:not(.web-case, .web-case *)) {
      top: calc(50% - 48px);
    }

    /* The rail's icon list is shorter, so it needs less of a shift (and must stay clear of the legal icons) */
    html[data-sidebar="collapsed"] .sidebar-collapsible .leftContents .navigation:where(:not(.web-case, .web-case *)) {
      top: calc(50% - 56px);
    }

    /* No room for the stacked pair in the rail: show only the link to the other language
       (the current one is already given by <html lang>) */
    html[data-sidebar="collapsed"] .sidebar-collapsible .lang-switch--sidebar li:has(>.is-current):where(:not(.web-case, .web-case *)) {
      display: none;
    }
  }
}

@media (max-width: 992px) {
  .leftContents .lang-switch--sidebar:where(:not(.web-case, .web-case *)) {
    display: none;
  }

  .smHeader .lang-switch--header:where(:not(.web-case, .web-case *)) {
    display: block;
    position: absolute;
    top: 12px;
    right: 62px;
  }

  .smHeader .lang-switch--header ul:where(:not(.web-case, .web-case *)) {
    align-items: center;
    gap: 2px;
    border-color: #ddd5ea;
    background: #fff;
  }

  .smHeader .lang-switch--header li:where(:not(.web-case, .web-case *)) {
    display: flex;
    margin: 0;
    padding: 0;
  }

  .smHeader .lang-switch__item:where(:not(.web-case, .web-case *)) {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 32px;
    box-sizing: border-box;
    color: #542785;
  }

  .smHeader a.lang-switch__item:hover:where(:not(.web-case, .web-case *)),.smHeader a.lang-switch__item:focus-visible:where(:not(.web-case, .web-case *)) {
    color: #542785;
    background: rgba(84, 39, 133, 0.08);
  }

  .smHeader a.lang-switch__item:focus-visible:where(:not(.web-case, .web-case *)) {
    outline-color: #542785;
  }
}

/* ==== Right-to-left (Arabic) ============================================= */
/*
 * The sidebar moves to the right edge and everything inside it mirrors: row indicator,
 * chevrons, tooltips, the collapse arrow and the content offset. Icons that carry meaning
 * (social marks, legal icons) are not mirrored.
 */
html[dir="rtl"] .leftContents .nav-link:where(:not(.web-case, .web-case *)) {
  padding: 7px 0 7px 18px;
}

html[dir="rtl"] .leftContents .nav-link:where(:not(.web-case, .web-case *))::before {
  border-left: 0;
  border-right: 2px solid transparent;
}

html[dir="rtl"] .leftContents .nav-link.active:where(:not(.web-case, .web-case *))::before,html[dir="rtl"] .leftContents .nav-link.ruckus-highlight:where(:not(.web-case, .web-case *))::before {
  border-right-color: #ffeb3b;
}

html[dir="rtl"] .leftContents .nav-link:where(:not(.web-case, .web-case *))::after {
  content: "\f104";
  right: auto;
  left: 2px;
}

html[dir="rtl"] .leftContents .nav-link:hover:where(:not(.web-case, .web-case *))::after {
  transform: translate(-3px, -50%);
}

@media (min-width: 993px) {
  html[dir="rtl"] .sidebar-collapsible .sidebarToggle i:where(:not(.web-case, .web-case *)) {
    transform: rotate(180deg);
  }

  html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .sidebarToggle i:where(:not(.web-case, .web-case *)) {
    transform: none;
  }

  /* Rail: icons centred, as in English (the expanded row padding above would push them over) */
  html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .nav-link:where(:not(.web-case, .web-case *)) {
    padding: 7px 0;
  }

  html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .nav-label:where(:not(.web-case, .web-case *)),html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .legal-label:where(:not(.web-case, .web-case *)) {
    left: auto;
    right: calc(100% + 12px);
    transform: translate(4px, -50%);
  }

  html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .nav-label:where(:not(.web-case, .web-case *))::before,html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .legal-label:where(:not(.web-case, .web-case *))::before {
    left: auto;
    right: -5px;
    border: 5px solid transparent;
    border-right: 0;
    border-left-color: #1e2333;
  }

  html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .nav-link:hover .nav-label:where(:not(.web-case, .web-case *)),html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .nav-link:focus-visible .nav-label:where(:not(.web-case, .web-case *)),html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .legal-link:hover .legal-label:where(:not(.web-case, .web-case *)),html[dir="rtl"][data-sidebar="collapsed"] .sidebar-collapsible .legal-link:focus-visible .legal-label:where(:not(.web-case, .web-case *)) {
    transform: translate(0, -50%);
  }

  html[dir="rtl"][data-sidebar="collapsed"] .verticalScroll .sidebar-collapsible .rightContents:where(:not(.web-case, .web-case *)) {
    margin-left: 0;
    margin-right: 84px;
  }

  html[dir="rtl"][data-sidebar="collapsed"] .superScroll .sidebar-collapsible .rightContents:where(:not(.web-case, .web-case *)) {
    margin-left: 0;
    margin-right: 84px;
  }

  html[dir="rtl"][data-sidebar="collapsed"] .superScroll .sidebar-collapsible .rightContents .main section:where(:not(.web-case, .web-case *)) {
    padding-left: 0;
    margin-left: 0;
    padding-right: 84px;
    margin-right: -84px;
  }
}

@media (max-width: 992px) {
  html[dir="rtl"] .smHeader .menuButton:where(:not(.web-case, .web-case *)) {
    right: auto;
    left: 10px;
  }

  html[dir="rtl"] .smHeader .lang-switch--header:where(:not(.web-case, .web-case *)) {
    right: auto;
    left: 62px;
  }

  html[dir="rtl"] body .leftContents:where(:not(.web-case, .web-case *)) {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }

  html[dir="rtl"] body .leftContents.move:where(:not(.web-case, .web-case *)) {
    left: auto;
    transform: none;
  }
}

/* ==== Reduced motion ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .leftContents:where(:not(.web-case, .web-case *)),body .leftContents:where(:not(.web-case, .web-case *)),body .leftContents.move:where(:not(.web-case, .web-case *)),.leftContents .nav-link:where(:not(.web-case, .web-case *)),.leftContents .nav-link:where(:not(.web-case, .web-case *))::before,.leftContents .nav-link:where(:not(.web-case, .web-case *))::after,.leftContents .socialLink a:where(:not(.web-case, .web-case *)),.leftContents .legal-link:where(:not(.web-case, .web-case *)),.leftContents .legal-label:where(:not(.web-case, .web-case *)),.leftContents .navLogo a:where(:not(.web-case, .web-case *)),.leftContents .nav-icon:where(:not(.web-case, .web-case *)),.leftContents .nav-label:where(:not(.web-case, .web-case *)),.leftContents .sidebarToggle:where(:not(.web-case, .web-case *)),.leftContents .sidebarToggle i:where(:not(.web-case, .web-case *)),.sidebar-collapsible .rightContents:where(:not(.web-case, .web-case *)),.sidebar-collapsible .rightContents .main section:where(:not(.web-case, .web-case *)),.menuButton:where(:not(.web-case, .web-case *)),.menuButton span:where(:not(.web-case, .web-case *)),.smHeader .menuButton span:where(:not(.web-case, .web-case *)) {
    transition: none !important;
  }

  .leftContents .nav-link:hover:where(:not(.web-case, .web-case *))::after,html[dir="rtl"] .leftContents .nav-link:hover:where(:not(.web-case, .web-case *))::after {
    transform: translateY(-50%);
  }

  .lang-switch__item:where(:not(.web-case, .web-case *)) {
    transition: none;
  }
}

