/*
 * UAE site frame: event strip, navbar, language link, card tiles.
 * Moved out of app/globals.css (2026-11-03) so ROW and EU pages never load it.
 * Linked only on UAE pages by RegionStylesheets (JURISDICTION_SETTINGS.ae.stylesheets).
 */

/*
 * UAE event strip (live /ae `.event-banner` → `.tvb-bar`, measured 2026-11-01):
 * fixed above the navbar on every UAE page; 57px at 1440, 53px on phones.
 * Rendered by RegionEventBar and offset like the DCX strip (data-dcx-banner).
 */
.raven-event-bar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  box-sizing: border-box;
  background: var(--color-slate-1200, #181c25);
  color: #fff;
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
}
.raven-event-bar__in {
  box-sizing: border-box;
  max-width: 1232px;
  min-height: 56px;
  margin: 0 auto;
  padding-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.raven-event-bar__txt {
  margin: 0;
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
}
.raven-event-bar__detail {
  color: rgba(255, 255, 255, 0.64);
}
.raven-event-bar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  text-decoration: none;
}
.raven-event-bar__link svg {
  width: 16px;
  height: 16px;
}
[dir="rtl"] .raven-event-bar__link svg {
  transform: scaleX(-1);
}
.raven-event-bar__x {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.raven-event-bar__x svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 767px) {
  .raven-event-bar__in {
    min-height: 52px;
    justify-content: flex-start;
    gap: 12px;
    padding-inline: 16px 44px;
  }
  .raven-event-bar__x {
    inset-inline-end: 6px;
  }
  .raven-event-bar__txt,
  .raven-event-bar__link {
    font-size: 13px;
    line-height: 18px;
  }
  .raven-event-bar__txt {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .raven-event-bar__detail {
    display: none;
  }
  .raven-event-bar__link svg {
    width: 14px;
    height: 14px;
  }
}

/* UAE pages whose live pill is light at the top (AE_LIGHT_NAV_PILL_FAMILIES). */
.raven-ae-navbar--light-pill .navbar__pill {
  background-color: rgba(255, 255, 255, 0.88);
}
.raven-ae-navbar--light-pill .navbar__pill .navbar__nav-item {
  color: #181c25;
}
@media (max-width: 991px) {
  /* Phones: live shows the solid white bar (the scrolled look) from the top. */
  .raven-ae-navbar--light-pill .navbar__bar {
    background-color: #fff;
  }
  .raven-ae-navbar--light-pill .navbar__mobile-trigger {
    color: var(--color-slate-1200);
  }
  .raven-ae-navbar--light-pill .navbar__mobile-actions .button.white_secondary {
    color: var(--color-slate-1200);
    border-color: var(--color-slate-1200);
  }
}

/*
 * Small desktop (live /ae header, measured 2026-11-03): live keeps "Log in"
 * next to "Open account" at every desktop width (the DS navbar hides it at
 * ≤1200px). At 992–1092px live shrinks the pill and the buttons to 90%
 * (`.navbar_main-wrapper` and `.auth_component` scale(0.9), buttons anchored
 * at their right edge in both languages).
 */
@media (min-width: 992px) and (max-width: 1200px) {
  .raven-ae-navbar .navbar__actions .navbar__actions-login {
    display: flex;
  }
}
@media (min-width: 992px) and (max-width: 1092px) {
  .raven-ae-navbar .navbar__pill {
    transform: scale(0.9);
  }
  .raven-ae-navbar .navbar__actions {
    transform-origin: right center;
  }
  .raven-ae-navbar .navbar:not(.navbar--scrolled) .navbar__actions {
    transform: scale(0.9);
  }
  .raven-ae-navbar .navbar.navbar--scrolled .navbar__actions {
    transform: translateY(-12px) scale(0.9);
  }
}

/* UAE language switch: a plain link (live /ae), drawn with the DS globe mark. */
.raven-ae-navbar .navbar__nav-group > a.navbar__nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* Live keeps the globe on the left of the label in Arabic too. */
[dir="rtl"] .raven-ae-navbar .navbar__nav-group > a.navbar__nav-item {
  flex-direction: row-reverse;
}
.raven-ae-navbar .navbar__nav-group > a.navbar__nav-item::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/*
 * Text smoothing as live (measured 2026-11-05): live UAE leaves
 * -webkit-font-smoothing at `auto` on the page; only the event strip is
 * antialiased (it keeps its own rule above). Raven's body sets antialiased,
 * which draws text thinner on macOS, most visibly white on red or dark cards.
 */
body:has(header.raven-ae-navbar) {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/*
 * Menus mark the current page as live does (coral link, desktop dropdown and
 * phone menu). SiteShellChrome sets aria-current="page" on UAE pages.
 */
/* A group without a heading (About, as live): no empty heading row. */
.raven-ae-navbar :is(.navbar__dropdown-col-title, .navbar__drawer-col-title):empty {
  display: none;
}
/* Phone menu, About: live's first link sits 8px lower than ours without the heading (390, 2026-11-07). */
.raven-ae-navbar .navbar__drawer-col-title:empty + .navbar__drawer-col-links {
  margin-top: 8px;
}

.raven-ae-navbar :is(.navbar__dropdown-link, .navbar__drawer-link)[aria-current="page"] {
  color: #ff444f;
}

@media (max-width: 991px) {
  /*
   * Phone menu icon (live `.navbar_burger-icon`, measured at 390): three bars
   * 21px long and 3px thick, 7.5px apart, with round ends. The DS bars are
   * 15px long and 1.75px thick. The close (X) icon keeps the DS drawing.
   */
  .raven-ae-navbar .navbar:not(.navbar--menu-open) .navbar__mobile-trigger > svg {
    display: none;
  }
  .raven-ae-navbar .navbar:not(.navbar--menu-open) .navbar__mobile-trigger::before {
    content: "";
    width: 21px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 18'%3E%3Crect width='21' height='3' rx='1.5'/%3E%3Crect y='7.5' width='21' height='3' rx='1.5'/%3E%3Crect y='15' width='21' height='3' rx='1.5'/%3E%3C/svg%3E") center / 21px 18px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 18'%3E%3Crect width='21' height='3' rx='1.5'/%3E%3Crect y='7.5' width='21' height='3' rx='1.5'/%3E%3Crect y='15' width='21' height='3' rx='1.5'/%3E%3C/svg%3E") center / 21px 18px no-repeat;
  }
  /* Group chevrons: live draws them 12x7 with a 2px line (DS 10x6, 1.5px). */
  .raven-ae-navbar .navbar__drawer-trigger__chevron {
    width: 16px;
    height: 16px;
  }
  .raven-ae-navbar .navbar__drawer-trigger__chevron path {
    stroke-width: 1.75;
  }
  /* The language link (the only single link in the UAE menu) has live's globe before it. */
  .raven-ae-navbar .navbar__drawer-single {
    gap: 6px;
  }
  .raven-ae-navbar .navbar__drawer-single::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* Live Arabic keeps the globe on the left of "English", the link still on the right. */
  [dir="rtl"] .raven-ae-navbar .navbar__drawer-single {
    flex-direction: row-reverse;
    justify-content: flex-end;
  }
  /* External links (TradersView, Careers) end with live's up-right arrow, as on desktop. */
  .raven-ae-navbar .navbar__drawer-link[target="_blank"] {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .raven-ae-navbar .navbar__drawer-link[target="_blank"]::after {
    content: "";
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 9L9 1M2.8 1H9V7.2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 9L9 1M2.8 1H9V7.2'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* Live Arabic mirrors the arrow (it points up-left, at the end of the label). */
  [dir="rtl"] .raven-ae-navbar .navbar__drawer-link[target="_blank"]::after {
    transform: scaleX(-1);
  }
  /*
   * Live pins "Log in" / "Open account" to the bottom of the open menu, 16px
   * above the screen edge, also while a group is expanded and the links scroll.
   */
  .raven-ae-navbar .navbar__drawer-footer {
    position: sticky;
    bottom: 0;
    padding-bottom: 16px;
    background-color: var(--color-slate-50);
  }
}



/*
 * Desktop dropdowns (live `.navbar_dropdown-block-local`, measured 2026-11-05
 * at 1440): links are 20px lines 16px apart inside a list padded 6px, so
 * rows are 36px (DS 32px); a 4-group column (`is-4items`) keeps its groups
 * 2px apart (DS 16px). The open trigger's wash is live's slate 8%.
 */
@media (min-width: 992px) {
  .raven-ae-navbar .navbar__dropdown-link {
    height: auto;
    padding-block: 8px;
    line-height: 20px;
  }
  .raven-ae-navbar .navbar__dropdown-col-title {
    margin-bottom: -2px;
  }
  .raven-ae-navbar .navbar__dropdown-col-list > .navbar__dropdown-link:last-child {
    margin-bottom: -2px;
  }
  .raven-ae-navbar .navbar__dropdown-col:has(> .navbar__dropdown-col-list:nth-child(3)) {
    gap: 2px;
  }
  /*
   * Live's panel starts 8px below the pill (y=92 at 1440). The pill itself was
   * 4px high (see the header rules at the end of this file); the transparent
   * strip keeps the menu open while the pointer crosses the 8px gap.
   */
  .raven-ae-navbar .navbar__dropdown::before {
    content: "";
    position: absolute;
    inset: -9px 0 auto;
    height: 9px;
  }
  /*
   * Live's Learn group puts each link in its own list padded 6px, so its rows
   * are 32px apart (every other group: 36px). It is the list that holds the
   * Academy link, in both languages.
   */
  .raven-ae-navbar .navbar__dropdown-col-list:has(> .navbar__dropdown-link[href$="/academy"]) > .navbar__dropdown-link {
    padding-block: 6px;
  }
  .raven-ae-navbar .navbar__dropdown-col-list:has(> .navbar__dropdown-link[href$="/academy"]) > .navbar__dropdown-col-title {
    margin-bottom: 0;
  }
  /* A group with no heading (About): live's list starts 6px above the first line (ours 8px). */
  .raven-ae-navbar .navbar__dropdown-col-title:empty + .navbar__dropdown-link {
    margin-top: -2px;
  }
  /* Live's panel is 432px tall for every group (the 414px picture card plus 8px around it). */
  .raven-ae-navbar .navbar__dropdown-inner {
    min-height: 430px;
  }
  /* Picture card copy: description 8px under the title; "Learn more" is a 24px line, text-wide. */
  .raven-ae-navbar .navbar__dropdown-feature-desc {
    margin-top: 8px;
  }
  .raven-ae-navbar .navbar__dropdown-feature-cta {
    width: fit-content;
    line-height: 24px;
  }
  .raven-ae-navbar .navbar__nav-item.navbar__nav-item--open {
    background-color: rgba(65, 70, 82, 0.08);
  }
}

/*
 * Phone menu (live `.navbar_menu-content`, measured 2026-11-05 at 390): 16px
 * side gutters; group rows 48px with 14px/20px labels (DS 56px, 16px); the
 * language link row is 40px. Open group: headings 14px/20px (36px rows), links
 * 20px lines 16px apart in a list padded 6px; columns 165px, 20px apart, 4px
 * in from the gutter; groups 16px apart (2px in a 4-group column).
 */
@media (max-width: 991px) {
  /* Live's menu rows start 4px lower (its bar is 68px tall, ours 64px). */
  .raven-ae-navbar .navbar__drawer-nav {
    padding-inline: 16px;
    padding-top: 4px;
  }
  .raven-ae-navbar .navbar__drawer-trigger {
    height: 48px;
    min-height: 48px;
    font-size: 14px;
    line-height: 20px;
  }
  .raven-ae-navbar .navbar__drawer-single {
    height: 40px;
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
  }
  .raven-ae-navbar .navbar__drawer-panel-inner {
    padding-top: 4px;
    padding-bottom: 0;
  }
  .raven-ae-navbar .navbar__drawer-panel-cols {
    column-gap: 20px;
    padding-inline: 4px;
  }
  .raven-ae-navbar .navbar__drawer-panel-col {
    gap: 16px;
  }
  .raven-ae-navbar .navbar__drawer-panel-col:has(> .navbar__drawer-col-section:nth-child(3)) {
    gap: 2px;
  }
  .raven-ae-navbar .navbar__drawer-col-title {
    line-height: 20px;
    margin-bottom: -2px;
  }
  .raven-ae-navbar .navbar__drawer-col-links {
    gap: 0;
  }
  .raven-ae-navbar .navbar__drawer-link {
    padding-block: 8px;
    line-height: 20px;
  }
  .raven-ae-navbar .navbar__drawer-col-links > .navbar__drawer-link:last-child {
    margin-bottom: -2px;
  }
  /*
   * Picture card (live `.navbar_image-block-local`): 350x260 in line with the
   * columns; title 20px/28px bold, description 16px/24px 8px below it,
   * "Learn more" a 24px line, text-wide.
   */
  .raven-ae-navbar .navbar__drawer-feature {
    margin-inline: 4px;
    min-height: 260px;
  }
  .raven-ae-navbar .navbar__drawer-feature-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
  }
  .raven-ae-navbar .navbar__drawer-feature-desc {
    margin-top: 8px;
    font-size: 16px;
    line-height: 24px;
  }
  .raven-ae-navbar .navbar__drawer-feature-cta {
    width: fit-content;
    line-height: 24px;
  }
}

/* Who-we-are "Our values": keep heads in frame on phones (mirrors the ROW rule in globals.css). */
@media (max-width: 767px) {
  [data-raven-path="/ae/who-we-are"] .fc-grid .card-primary .cp-image,
  [data-raven-path="/ae/who-we-are"] .fc-grid .card-primary .cp-overlayImg {
    object-position: top center;
  }
}

/* Arabic font as live: live UAE draws almost every glyph of an Arabic page
   (Arabic, Latin, digits, spaces) in Noto Sans Arabic. Exceptions set in
   "Inter, Arial" on live (so Arabic falls to Arial): FAQ questions and the
   MT5 QR caption, handled in markets.css / mt5.css; the site's RTL stack puts Inter
   first, which moved Arabic line breaks (measured 2026-11-05 with the
   browser's used-font report). UAE pages only; if the name is not available
   the stack falls back to the site's own (--font-rtl). Typography tokens
   re-resolve from --font-family-base on this element (app/globals.css). */
[dir="rtl"] {
  --font-family-base: "Noto Sans Arabic", var(--font-rtl), sans-serif;
  font-family: var(--font-family-base);
}

/*
 * UAE chat + WhatsApp buttons (live /ae `.messengers_component`, measured on
 * deriv.com/ae on 2026-11-06 at 1440/1024/800/768/390, EN and AR). Rendered by
 * RegionMessengers on UAE pages in place of the ROW site snippets.
 * Desktop: fixed 24px from the bottom right, 64px white circles 16px apart,
 * 28px icons. Under 768: 48px circles, 22px icons, 16px from the right, 18px
 * from the bottom, 8px apart (16px again under 480). Same place in Arabic.
 */
.raven-ae-messengers {
  position: fixed;
  top: auto;
  left: auto;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.raven-ae-messengers__button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border-radius: 96px;
  background-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.02) 0 8px 16px 2px, rgba(0, 0, 0, 0.04) 0 8px 16px 2px;
  will-change: transform;
  transition: transform 0.24s cubic-bezier(0.65, 0, 0.35, 1);
}
.raven-ae-messengers__button:hover {
  transform: scale(1.05);
}
.raven-ae-messengers__icon {
  display: block;
  width: 28px;
  height: 28px;
}
.raven-ae-messengers__cta-gap {
  display: none;
}
/* Home only (live page code): hidden for the first 3 s, then shown at every width. */
.raven-ae-messengers.raven-ae-messengers--held {
  opacity: 0;
}
.raven-ae-messengers.raven-ae-messengers--home-shown {
  opacity: 1;
}
/* Up to 991px: parked 150% below its place at the top of the page; slides in once scrolled. */
@media (max-width: 991px) {
  .raven-ae-messengers {
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .raven-ae-messengers--parked {
    transform: translateY(150%);
  }
}
/* Up to 800px: shown after the first scroll or 5 s; hidden while the footer is on screen. */
@media (max-width: 800px) {
  .raven-ae-messengers {
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.3s ease;
  }
  .raven-ae-messengers--shown {
    opacity: 1;
  }
  .raven-ae-messengers.raven-ae-messengers--over-footer {
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .raven-ae-messengers.raven-ae-messengers--over-footer:not(.raven-ae-messengers--home-shown) {
    opacity: 0;
  }
}
@media (max-width: 767px) {
  .raven-ae-messengers {
    right: 16px;
    bottom: 18px;
    gap: 8px;
  }
  .raven-ae-messengers__button {
    width: 48px;
    height: 48px;
  }
  .raven-ae-messengers__icon {
    width: 22px;
    height: 22px;
  }
}
/*
 * Under 480: live's spacer opens to 62px while the phone "Open account" bar
 * shows. With no bar WhatsApp sits 18px from the bottom, as at 480-767 (live
 * 2026-11-08, Who we are EN/AR): the spacer's -16px margin cancels the flex gap
 * before it, and its height carries that gap back (16 + 62) while it is open.
 */
@media (max-width: 479px) {
  .raven-ae-messengers {
    gap: 16px;
  }
  .raven-ae-messengers__cta-gap {
    display: block;
    height: 0;
    margin-top: -16px;
    transition: height 0.3s ease;
  }
  html[data-raven-sticky-oa] .raven-ae-messengers__cta-gap {
    height: 78px;
  }
  /* globals.css lifts ROW's #whatsapp-wrapper above the bar; the spacer does that here. */
  html[data-raven-sticky-oa] .raven-ae-messengers #whatsapp-wrapper {
    transform: none;
    transition: transform 0.24s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: auto;
  }
}
html[data-raven-webview] .raven-ae-messengers {
  display: none !important;
}

/*
 * Header and phone menu (S1 checker M4/M5, live 2026-11-07 at 390, 768, 1440).
 * - Arabic: live draws the menu's top-level items, group headings and picture
 *   card title in "Inter, Arial" (so the Arabic is Arial, smaller than Noto);
 *   links, descriptions and buttons stay Noto Sans Arabic. The card title is 700.
 * - Below 992px live's bar is 68px (ours 64): "Log in" sits 10px down, as live.
 *   Menu row text at y=80, as live (drawer top pad 2px).
 * - Light-pill pages: live's phone bar is solid white (ours was 96%, which read
 *   as pink over the page).
 * - While the phone menu is open live shows only the logo and the close button.
 */
[dir="rtl"] .raven-ae-navbar :is(.navbar__nav-item, .navbar__drawer-trigger, .navbar__dropdown-col-title, .navbar__drawer-col-title, .navbar__dropdown-feature-title, .navbar__drawer-feature-title) {
  --font-family-base: Inter, Arial, sans-serif;
  font-family: Inter, Arial, sans-serif;
}
[dir="rtl"] .raven-ae-navbar :is(.navbar__dropdown-feature-title, .navbar__drawer-feature-title) {
  font-weight: 700;
}
@media (max-width: 991px) {
  .raven-ae-navbar .navbar__bar {
    height: 68px;
  }
  .raven-ae-navbar .navbar__drawer-nav {
    padding-top: 2px;
  }
  .raven-ae-navbar--light-pill .navbar__bar {
    background-color: #fff;
  }
  .raven-ae-navbar .navbar--menu-open .navbar__mobile-actions > :not(.navbar__mobile-trigger) {
    visibility: hidden;
  }
}

/*
 * Desktop header (S1 checker M4; live 2026-11-07 at 1440): live's pill sits
 * 20px from the top (DS 16px), and its logo is centred at x=64, y=43 (ours
 * 60, 50 after the move); phones (≤991): live's logo centre is x=52, y=34
 * (ours 60, 34). The narrower buttons are live's +0.56px letter spacing,
 * which the owner declined (2026-11-05).
 */
@media (min-width: 992px) {
  .raven-ae-navbar .navbar {
    padding-top: 20px;
    padding-bottom: 12px;
  }
  .raven-ae-navbar .navbar__logo {
    position: relative;
    left: 4px;
    top: -7px;
  }
}
@media (max-width: 991px) {
  .raven-ae-navbar .navbar__logo {
    position: relative;
    left: -8px;
  }
  [dir="rtl"] .raven-ae-navbar .navbar__logo {
    left: 8px;
  }
}
/* Arabic: live mirrors the external-link arrow (↖) in the desktop menu and the footer (S1 checker M7). The phone menu's arrow is mirrored above. */
[dir="rtl"] .raven-ae-navbar .navbar__dropdown-link[target="_blank"] svg,
[dir="rtl"] body:has(header.raven-ae-navbar) .footer .footer__nav-link[target="_blank"] svg {
  transform: scaleX(-1);
}
/*
 * Desktop pill (S2 checker; live 2026-11-07): live's soft shadow and 88% white when scrolled (DS 96%).
 * Background blur: the pill itself has none on live, but its child layer `.navbar_blur-block`
 * (inset 0, 96px radius) carries `backdrop-filter: blur(16px)` on every /ae page, at the top
 * and scrolled (measured 2026-11-07, tmp/uae-batches/s6/measure/blur-block.txt). Without it,
 * content under the pill (the verification guide's sticky tabs) shows through (S6 checker N4).
 */
.raven-ae-navbar .navbar__pill,
.raven-ae-navbar .navbar--scrolled .navbar__pill {
  box-shadow: rgba(65, 70, 82, 0.08) 0 8px 16px 2px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.raven-ae-navbar .navbar--scrolled .navbar__pill {
  background-color: rgba(255, 255, 255, 0.88);
}

/*
 * Footer logo link (live /ae links the logo home). SiteShellChrome wraps the
 * DS footer's bare logo <img> in this <a> on UAE pages; it takes the img's box
 * and adds none of its own.
 */
.footer__logo-wrapper > .raven-ae-footer-logo-link {
  display: flex;
}

/*
 * Sticky navbar (frame item 7, T5 checker M5; live 2026-11-08 on Who we are,
 * CFDs and a market-news post, EN and AR, at 1440, 1024, 768 and 390).
 * Desktop pill, live: 96px radius (DS 80); the logo link is 94px (12px before
 * a 72px-wide logo, 10px after); the menu is padded 4px each side; the
 * language link carries a 16px left margin in both languages; the buttons sit
 * 8px apart with 8px before them on the left. Ours: logo 68px, 8px gaps
 * between logo, menu and buttons, and an empty button slot (8px) at the top.
 * Scrolled pill at 1440: EN 795 -> 837 (live 844; the 7px left is the
 * buttons' 0.56px letter spacing the owner declined on 2026-11-05), AR 717 ->
 * 759 (live 760). 992-1092px scales the pill to 90% as live, so 1024 follows.
 */
@media (min-width: 992px) {
  .raven-ae-navbar .navbar__pill {
    --navbar-pill-radius: 96px;
    border-radius: 96px;
  }
  .raven-ae-navbar .navbar__pill-logo img {
    height: 28px;
    padding: 0 10px 4px 12px;
  }
  .raven-ae-navbar .navbar__pill .navbar__nav-group {
    margin-inline-start: -4px;
  }
  .raven-ae-navbar .navbar__nav-group > a.navbar__nav-item {
    margin-left: 20px;
  }
  [dir="rtl"] .raven-ae-navbar .navbar__nav-group > a.navbar__nav-item {
    margin-left: 16px;
    margin-right: 4px;
  }
  .raven-ae-navbar .navbar:not(.navbar--scrolled) .navbar__pill-actions,
  [dir="rtl"] .raven-ae-navbar .navbar__pill-actions {
    margin-inline-start: -8px;
  }
  [dir="rtl"] .raven-ae-navbar .navbar.navbar--scrolled .navbar__pill-actions {
    margin-left: 8px;
  }
}
/*
 * Phones and tablets (≤991px), live: the bar turns solid white (#fff) once
 * scrolled, and is white from the top on light pages (`navbar--light`, the
 * market-news posts); a soft shadow layer (`.navbar_mobile-shadow`,
 * 0 8px 16px 2px at 8%) sits under it at all times. Ours: 96% white and a 1px
 * line once scrolled, transparent at the top.
 */
@media (max-width: 991px) {
  .raven-ae-navbar .navbar .navbar__bar {
    box-shadow: rgba(65, 70, 82, 0.08) 0 8px 16px 2px;
  }
  .raven-ae-navbar .navbar.navbar--scrolled .navbar__bar,
  .raven-ae-navbar .navbar.navbar--light .navbar__bar {
    background-color: #fff;
  }
}

/*
 * Careers navbar (S9, 2026-11-08): live /ae/derivlife only (`raven-ae-navbar--careers`,
 * AE_CAREERS_NAV_FAMILIES). Its menu is plain links, so only the last one (the language
 * link) keeps the globe; desktop shows "Join us" alone (no "Log in"), phones keep
 * "Log in" in the bar, as live (measured 1440, 1024, 768, 390, EN and AR).
 */
.raven-ae-navbar--careers .navbar__nav-group > a.navbar__nav-item:not(:last-child)::before {
  content: none;
}
@media (min-width: 992px) {
  .raven-ae-navbar--careers .navbar__actions .navbar__actions-login {
    display: none;
  }
}
@media (max-width: 991px) {
  .raven-ae-navbar--careers .navbar__drawer-single:not(:last-child)::before {
    content: none;
  }
}
/* Careers menu, Arabic: the external links' arrow is mirrored (↖) and sits after the
   label (on its left), as live; only the language link keeps the reversed order. */
[dir="rtl"] .raven-ae-navbar--careers .navbar__nav-group > a.navbar__nav-item[target="_blank"] {
  flex-direction: row;
}
[dir="rtl"] .raven-ae-navbar--careers .navbar__nav-group > a.navbar__nav-item[target="_blank"] svg {
  transform: scaleX(-1);
}
/* Careers lockup at live's size at every width (172×24; the phone bar otherwise shrinks it to 146px). */
.raven-ae-navbar--careers .navbar__logo img {
  width: 172px;
  max-width: none;
  height: 24px;
}
/* With the wider lockup, live's phone "Log in" may wrap (Arabic: two lines, 139×64 at 390). */
@media (max-width: 991px) {
  .raven-ae-navbar--careers .navbar__mobile-actions .button {
    min-width: 0;
    white-space: normal;
  }
}

/*
 * Careers phone menu (S9 checker N3/M2, live /ae/derivlife at 390, 2026-11-08): the
 * open menu shows the dark "deriv Careers" lockup (the white one vanished on the white
 * menu); rows are 48px from y=68 (the language row 40px); only "Join us" at the foot,
 * 16px from the sides (no "Log in"). Arabic: the external-link arrow comes after the
 * label (on its left) and is mirrored, as live.
 */
@media (max-width: 991px) {
  .raven-ae-navbar--careers .navbar--menu-open .navbar__logo img {
    content: var(--raven-careers-logo-dark);
  }
  .raven-ae-navbar--careers .navbar__drawer-nav {
    padding-top: 4px;
  }
  .raven-ae-navbar--careers .navbar__drawer-single {
    height: 48px;
    min-height: 48px;
  }
  .raven-ae-navbar--careers .navbar__drawer-single:last-child {
    height: 40px;
    min-height: 40px;
  }
  .raven-ae-navbar--careers .navbar__drawer-footer {
    padding-inline: 16px;
  }
  /* The design system writes display:block inline on these buttons. */
  .raven-ae-navbar--careers .navbar__drawer-footer .button.black_secondary {
    display: none !important;
  }
  [dir="rtl"] .raven-ae-navbar--careers .navbar__drawer-single:not(:last-child) {
    flex-direction: row;
    justify-content: flex-start;
  }
  [dir="rtl"] .raven-ae-navbar--careers .navbar__drawer-single[target="_blank"] svg {
    transform: scaleX(-1);
  }
}

/*
 * Arabic phone bar (S9 checker M1, live 2026-11-08 at 390 on market-news, help-centre
 * and derivlife): live's menu button is centred 22.5px from the left edge; ours was
 * 37–40px (the button also shrank to 26px when "تسجيل الدخول" wrapped).
 */
@media (max-width: 991px) {
  .raven-ae-navbar .navbar__mobile-trigger {
    flex-shrink: 0;
  }
  [dir="rtl"] .raven-ae-navbar .navbar__mobile-trigger {
    position: relative;
    left: -17px;
  }
}

/*
 * Font Awesome on UAE pages (S9 checker M4, 2026-11-08). Live /ae's icon glyphs (link
 * arrows, trail chevrons, "opens elsewhere" tags) use the "Font Awesome" family, which
 * app/globals.css declares from Webflow's CDN (cdn.prod.website-files.com) for a ROW
 * page. UAE pages must load no Webflow file, so the same file (byte-identical, 5.7 KB,
 * sha256 f26079f1…) is served from Raven and declared here, after globals.css: for the
 * same family and descriptors the last declaration wins, so the CDN copy is never
 * fetched. Only UAE pages link this file; ROW/EU are unchanged.
 */
@font-face {
  font-family: "Font Awesome";
  src: url("/region-looks/ae/fonts/fa-regular-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Careers menu (S9): every item is a plain link, but only the language link (the last)
   takes the language link's margin from the sticky-navbar rules above, as live. */
@media (min-width: 992px) {
  .raven-ae-navbar--careers .navbar__nav-group > a.navbar__nav-item:not(:last-child),
  [dir="rtl"] .raven-ae-navbar--careers .navbar__nav-group > a.navbar__nav-item:not(:last-child) {
    margin-left: 0;
    margin-right: 0;
  }
}
