/* ==========================================================================
   FUNDER — Header
   --------------------------------------------------------------------------
   Requires fn/01-tokens.css.
   Everything is scoped under `.fn-ui` on <body>, which does two jobs:
     1. it raises specificity just enough to beat template.css without
        reaching for !important, and
     2. it is a single kill-switch — remove the class and the whole header
        falls back to the old styling.

   This file SUPERSEDES assets/css-custom/header-search.css for Site1.Master
   and Seo.Master. That <link> is removed from both; the behaviour it carried
   (the mobile search toggle's visibility rules, which common.js depends on)
   is reimplemented in §7 below. Seo2.Master still loads the old file and is
   unaffected — it serves 0 pages.

   Structure, top to bottom:
     §1  header shell
     §2  brand bar   — logo + ad slot
     §3  tools bar   — search + the five fund filters
     §4  nav band    — primary navigation + social
     §5  quick rail  — the 15 secondary links
     §6  mobile      — < 768px
     §7  mobile search panel
     §8  focus, motion, print
   ========================================================================== */


/* ============================================================== §1  SHELL */

.fn-ui .header {
  /* Surface, tint and separation ALL come from tokens (fn/01-tokens.css §2.1).
     There used to be a brand-green bloom declared here and restated at higher
     specificity in the dark rule below, which is how the light theme ended up
     with a green header that no theme switch could reach. Now a theme decides
     what colour its furniture is in one place, and all three bands plus the
     compact scrolled bar read the same answer.

     In Light --fn-header-wash is `none` on purpose: green is this brand's
     accent — the hairline under the header, an active chip, a focus ring —
     not the colour of the chrome. Dark keeps a trace of it so the band reads
     as lit rather than switched off.

     z-index keeps fund-filter panels above page content (ticker / sparklines);
     isolation alone would trap their z-index inside this stacking context. */
  background-color: var(--fn-header-bg);
  background-image: var(--fn-header-wash);
  border-bottom: 0;
  box-shadow: var(--fn-header-shadow);
  padding: 0;
  position: relative;
  z-index: var(--fn-z-header);
  isolation: isolate;
}

.fn-ui .header > #acc_box {
  position: relative;
  z-index: 3;
}

/* Toolsbar (filters + search) must stack above nav/rail so fn-dd panels
   are not painted under those bands. Hairline stays under the tools stack. */
.fn-ui .header > .container {
  position: relative;
  z-index: 5;
}

.fn-ui .header > .fn-navband,
.fn-ui .header > .fn-railband {
  position: relative;
  z-index: 1;
}

/* Brand hairline — "פס דק ירוק ויבינו שזה פאנדר".
   This is the ONE deliberate green in the header chrome. It used to be a
   2px bar under a green-washed band, which made the green read as the
   header's colour; at 1px under a white band it reads as a signature.
   Both the gradient and its weight are tokens, so a theme tunes the brand
   mark without a second rule at a higher specificity. */
.fn-ui .header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fn-header-rule-h, 1px);
  background: var(--fn-header-rule);
  opacity: var(--fn-header-rule-opacity, 1);
  pointer-events: none;
  z-index: 2;
}
/* Kills `.row{padding:5px 0}` from template.css, but must not touch the two
   bands below — they own their own spacing, and at (0,3,0) this rule used to
   outrank them. */
.fn-ui .header .row:not(.fn-brandbar):not(.fn-toolsbar) {
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.fn-ui .header .row.fn-brandbar,
.fn-ui .header .row.fn-toolsbar {
  margin-left: 0;
  margin-right: 0;
}

/* Bootstrap's clearfix pseudos become flex items and steal the two edges,
   which insets the banner, the logo and the search by one gap. */
.fn-ui .fn-brandbar::before,
.fn-ui .fn-brandbar::after,
.fn-ui .fn-toolsbar::before,
.fn-ui .fn-toolsbar::after {
  content: none;
  display: none;
}

/* The accessibility launcher is position:absolute inside #acc_box.
   Keep its containing block intact and make sure nothing clips it. */
.fn-ui .header #acc_box {
  position: relative;
  z-index: 3;
}


/* ========================================================== §2  BRAND BAR */

/* Order in the markup is ad slot, then logo — so in RTL the ad sits at the
   start (right) and the wordmark at the end (left).
   The gap and the bottom padding are deliberately generous: the ad is third
   party content, and letting it touch the search row read as if it were part
   of the site's own chrome. */
.fn-ui .fn-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--fn-space-8);
  /* The row's height is set by the 90px ad, not by the padding, so trimming
     the padding is the only lever here — and enlarging the wordmark costs
     nothing as long as it stays under 90px. */
  padding: var(--fn-space-2) 0 var(--fn-space-3);
  min-height: 0;
}

/* Neutralise the Bootstrap float/width grid on the two children so flex can
   own the layout. The children keep their visible / hidden helper classes,
   which still control whether they participate at all. */
.fn-ui .fn-brandbar > div[class*="col-"] {
  float: none;
  width: auto;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

/* The wordmark is now the end (left) item. Markets shortcuts sit to its
   physical right (DOM-first in RTL flex), as a pair of quiet graph entries. */
.fn-ui .fn-brandbar > .logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.fn-ui .fn-brand-markets {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

/* Stocks/indices chips next to the desktop wordmark stay off the computer
   header — that pair lives in the compact phone bar only. */
@media (min-width: 768px) {
  .fn-ui .fn-brandbar .fn-brand-markets {
    display: none;
  }
}

.fn-ui .fn-brand-markets__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  padding: 8px 8px 6px;
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-md);
  background: var(--fn-bg-surface);
  color: var(--fn-text-2);
  text-decoration: none;
  box-shadow: none;
}

.fn-ui .fn-brand-markets__link:hover,
.fn-ui .fn-brand-markets__link:focus {
  color: var(--fn-text-1);
  border-color: var(--fn-brand);
  background: var(--fn-bg-surface);
  text-decoration: none;
  outline: none;
  box-shadow: 0 0 0 3px rgba(103, 203, 53, 0.16);
}

.fn-ui .fn-brand-markets__link:focus-visible {
  outline: var(--fn-focus-width, 2px) solid var(--fn-focus);
  outline-offset: 2px;
}

.fn-ui .fn-brand-markets__ico {
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.fn-ui .fn-brand-markets__ico--stocks {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 3h2v4h3v9H7v5H5v-5H2V7h3V3zm12 2h2V3h2v2h3v8h-3v8h-2v-8h-3V5h3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 3h2v4h3v9H7v5H5v-5H2V7h3V3zm12 2h2V3h2v2h3v8h-3v8h-2v-8h-3V5h3z'/%3E%3C/svg%3E");
}

.fn-ui .fn-brand-markets__ico--indices {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 20h18v2H3v-2zM4 14.5l5.2-5.2 3.6 3.6L21 4.7 19.6 3.3l-6.8 6.8-3.6-3.6L2.6 13.1 4 14.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 20h18v2H3v-2zM4 14.5l5.2-5.2 3.6 3.6L21 4.7 19.6 3.3l-6.8 6.8-3.6-3.6L2.6 13.1 4 14.5z'/%3E%3C/svg%3E");
}

.fn-ui .fn-brand-markets__txt {
  font-family: var(--fn-font-ui);
  font-size: 11px;
  font-weight: var(--fn-fw-semibold);
  line-height: 1;
  letter-spacing: 0.02em;
}

:root[data-fn-theme="dark"] .fn-ui .fn-brand-markets__link {
  background: var(--fn-bg-raised);
  border-color: var(--fn-border);
  color: var(--fn-text-2);
}

/* NOTE: no `display` here. The .fn-logo--* rules below own it, and a
   `display:block` at this specificity (0,3,1) would beat them (0,2,0) and
   paint both wordmarks at once. */
/* Both wordmarks are now true 250×90 lockups, so height alone sizes them and
   the ratio does the rest. The object-fit:cover footprint that used to live
   here existed only to rescue a light asset shipped on a 1448×1086 canvas. */
.fn-ui .fn-brandbar > .logo img {
  float: none;
  width: auto;
  height: 90px;
  max-width: 100%;
}

/* Theme-aware wordmark. Both <img> are in the markup; the tokens decide which
   one paints — black lockup on the white sheet, white lockup on the dark one. */
.fn-ui .fn-logo--light { display: var(--fn-logo-light-display); }
.fn-ui .fn-logo--dark  { display: var(--fn-logo-dark-display); }

/* Ad slot. Reserve the height so the banner arriving late does not shove the
   search field down the page (CLS). 728x90 is the served size.
   Targeted by .fn-adslot rather than .mrg-hdr2, because the logo column
   carries .mrg-hdr2 too. */
.fn-ui .fn-brandbar > .fn-adslot {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-start;   /* RTL: hugs the right edge */
  align-items: center;
  min-height: 90px;
}

.fn-ui .fn-brandbar > .fn-adslot img,
.fn-ui .fn-brandbar > .fn-adslot iframe {
  max-width: 100%;
}

/* Date, Israel clock and one headline, in the gap between the wordmark and
   the 728x90. Below 1440 that gap is the banner's own shrink room, so the
   pulse stays out and the banner, logo and tools keep their current fit.
   The row height stays the 90px ad; the pulse never grows past it. */
.fn-ui .fn-brand-pulse {
  display: none;
}

@media (min-width: 1440px) {
  .fn-ui .fn-brandbar > .fn-adslot:has(.fn-brand-pulse.is-on) {
    justify-content: flex-start;
    gap: var(--fn-space-3);
  }

  .fn-ui .fn-brandbar > .fn-adslot:has(.fn-brand-pulse.is-on) iframe {
    flex: 0 0 auto;
    width: 728px;
    max-width: 728px;
    height: 90px;
  }

  .fn-ui .fn-brand-pulse.is-on {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 0;
    height: 90px;
    max-height: 90px;
    margin: 0;
    padding: 6px 12px;
    overflow: hidden;
    border: 1px solid var(--fn-bubble-border);
    border-radius: var(--fn-bubble-radius);
    background: var(--fn-bubble-bg);
    box-shadow: var(--fn-bubble-shadow);
    font-family: var(--fn-font-ui);
    color: var(--fn-text-1);
    text-align: center;
  }
}

.fn-ui .fn-brand-pulse__when {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fn-space-2);
  min-width: 0;
  height: 20px;
}

.fn-ui .fn-brand-pulse__clock {
  flex: 0 0 auto;
  font-size: var(--fn-fs-xl);
  font-weight: var(--fn-fw-semibold);
  line-height: 20px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fn-text-1);
}

.fn-ui .fn-brand-pulse__sep {
  flex: 0 0 auto;
  width: 1px;
  height: 12px;
  background: var(--fn-border-strong);
}

.fn-ui .fn-brand-pulse__date {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fn-fs-base);
  font-weight: var(--fn-fw-emphasis);
  line-height: 20px;
  color: var(--fn-text-2);
}

.fn-ui .fn-brand-pulse__flash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: 52px;
  overflow: hidden;
  font-size: var(--fn-fs-md);
  font-weight: var(--fn-fw-emphasis);
  line-height: 17px;
  color: var(--fn-text-1);
  text-align: center;
  text-decoration: none;
  animation: fn-pulse-in 240ms var(--fn-ease);
}

.fn-ui .fn-brand-pulse__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--fn-fs-sm);
  font-weight: var(--fn-fw-semibold);
  line-height: 16px;
  color: var(--fn-interactive-ink);
  white-space: nowrap;
}

.fn-ui .fn-brand-pulse__title {
  width: 100%;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 34px;
  line-height: 17px;
  text-align: center;
}

.fn-ui .fn-brand-pulse__published {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fn-ui .fn-brand-pulse__kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.fn-ui .fn-brand-pulse__flash[hidden] {
  display: none;
}

.fn-ui .fn-brand-pulse__flash:hover,
.fn-ui .fn-brand-pulse__flash:focus {
  text-decoration: none;
}

.fn-ui .fn-brand-pulse__flash:hover .fn-brand-pulse__title,
.fn-ui .fn-brand-pulse__flash:focus .fn-brand-pulse__title {
  color: var(--fn-interactive-ink);
}

.fn-ui .fn-brand-pulse__flash:focus-visible {
  outline: var(--fn-focus-width) solid var(--fn-focus);
  outline-offset: var(--fn-focus-offset);
}

@keyframes fn-pulse-in {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fn-ui .fn-brand-pulse__flash {
    animation: none;
  }
}


/* Both children are hidden below 768, but the row itself is not — and an
   empty .fn-brandbar still contributes its min-height. */
@media (max-width: 767px) {
  .fn-ui .fn-brandbar { display: none; }
}


/* ========================================================== §3  DISCOVERY BAR
   Search as a soft field + fund filters as independent chips (not a form grid).
   Native <select>s remain the data source (fn-fund-filters.js / common.js). */

.fn-ui .fn-toolsbar {
  display: flex;
  align-items: center;
  gap: var(--fn-space-3);
  padding: var(--fn-space-2) 0 var(--fn-space-3);
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  overflow: visible;
}

:root[data-fn-theme="dark"] .fn-ui .fn-toolsbar {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fn-ui .fn-toolsbar > div[class*="col-"],
.fn-ui .fn-toolsbar > .search-header-col {
  float: none;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}

.fn-ui .fn-toolsbar > .search-header-col {
  flex: 0 1 300px;
  width: auto;
  min-width: 220px;
  max-width: 340px;
  border-inline-end: 0;
}

.fn-ui .fn-toolsbar > .header-fund-filters-col {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.fn-ui .searchBoxHeader {
  background: none;
  min-height: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  width: 100%;
  height: auto;
  position: relative;
  overflow: visible;
}

.fn-ui .desktop-search-toolbar {
  display: block;
  width: 100%;
  height: auto;
}

/* Soft search pill — own object, separate from the chips. */
.fn-ui .desktop-header-search-group,
.fn-ui .tablet-header-search-group,
.fn-ui .mobile-header-search-group {
  display: flex;
  align-items: center;
  direction: rtl;
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding-inline-start: var(--fn-space-4);
  padding-inline-end: var(--fn-space-1);
  background: var(--fn-bg-sunken);
  border: 1px solid transparent;
  border-radius: var(--fn-radius-field);
  box-shadow: none;
  transition: background-color 180ms var(--fn-ease),
              border-color 180ms var(--fn-ease),
              box-shadow 180ms var(--fn-ease);
}

:root[data-fn-theme="dark"] .fn-ui .desktop-header-search-group,
:root[data-fn-theme="dark"] .fn-ui .tablet-header-search-group {
  background: var(--fn-bg-raised);
  border-color: var(--fn-border);
  box-shadow: none;
}

.fn-ui .desktop-header-search-group:hover,
.fn-ui .tablet-header-search-group:hover {
  background: var(--fn-bg-hover);
}

.fn-ui .desktop-header-search-group:focus-within,
.fn-ui .tablet-header-search-group:focus-within,
.fn-ui .mobile-header-search-group:focus-within {
  background: var(--fn-bg-surface);
  border-color: var(--fn-accent);
  box-shadow: 0 0 0 3px rgba(103, 203, 53, 0.22);
}

.fn-ui .desktop-header-search-group::before,
.fn-ui .tablet-header-search-group::before {
  content: none;
  display: none;
}

.fn-ui {
  --fn-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6559' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20.5 20.5l-4.2-4.2'/%3E%3C/svg%3E");
}

.fn-ui .desktop-header-search-group .form-control,
.fn-ui .tablet-header-search-group .form-control,
.fn-ui .mobile-header-search-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  font-size: var(--fn-fs-base);
  font-weight: var(--fn-fw-medium);
  line-height: var(--fn-leading-base);
}

.fn-ui .desktop-header-search-group .form-control:focus,
.fn-ui .tablet-header-search-group .form-control:focus,
.fn-ui .mobile-header-search-group .form-control:focus {
  border: 0;
  outline: none;
  box-shadow: none;
}

.fn-ui .desktop-header-search-group .form-control::placeholder,
.fn-ui .tablet-header-search-group .form-control::placeholder,
.fn-ui .mobile-header-search-group .form-control::placeholder {
  color: var(--fn-text-3);
  opacity: 1;
  font-size: var(--fn-fs-sm);
  font-weight: var(--fn-fw-regular);
}

.fn-ui .desktop-header-search-actions,
.fn-ui .mobile-search-inline-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  width: auto;
  padding: 0;
  white-space: nowrap;
  font-size: 0;
}

.fn-ui .header-search-submit,
.fn-ui .desktop-header-search-actions .header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  background-image: none;
  color: var(--fn-text-3);
  text-shadow: none;
  box-shadow: none;
  font-size: 0;
  line-height: 1;
  transition: color 180ms var(--fn-ease);
}

.fn-ui .header-search-submit:hover,
.fn-ui .header-search-submit:focus,
.fn-ui .desktop-header-search-actions .header-search-submit:hover,
.fn-ui .desktop-header-search-actions .header-search-submit:focus {
  background: transparent;
  background-image: none;
  border: 0;
  color: var(--fn-brand);
  outline: none;
}

.fn-ui .desktop-header-search-group:focus-within .header-search-submit,
.fn-ui .tablet-header-search-group:focus-within .header-search-submit {
  color: var(--fn-brand);
}

.fn-ui .header-search-submit .glyphicon {
  position: static;
  float: none;
  top: auto;
  left: auto;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  color: inherit;
}

/* Advanced search — sits beside the loupe so homepage users don't need
   to land on results first. */
.fn-ui .header-search-advanced {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 34px;
  min-height: 34px;
  padding: 0 10px 0 8px;
  margin-inline-start: 2px;
  border: 0;
  border-radius: var(--fn-radius-field);
  background: transparent;
  color: var(--fn-text-3);
  text-decoration: none;
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: var(--fn-fw-semibold);
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms var(--fn-ease), background-color 180ms var(--fn-ease);
}

.fn-ui .header-search-advanced:hover,
.fn-ui .header-search-advanced:focus {
  color: var(--fn-brand);
  background: rgba(103, 203, 53, 0.1);
  text-decoration: none;
  outline: none;
}

.fn-ui .header-search-advanced .glyphicon {
  font-size: 13px;
  line-height: 1;
  top: 0;
}

.fn-ui .header-search-advanced__label {
  letter-spacing: 0.01em;
}

.fn-ui .desktop-header-search-group:focus-within .header-search-advanced,
.fn-ui .tablet-header-search-group:focus-within .header-search-advanced {
  color: var(--fn-text-2);
}

.fn-ui .mobile-search-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.fn-ui .mobile-search-toolbar .mobile-header-search-group {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

/* Advanced CTA lives inside the search pill — same height, one composition. */
.fn-ui .mobile-search-advanced {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
  align-self: center;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  margin: 0;
  margin-inline-start: 2px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--fn-radius-pill);
  background: var(--fn-brand-soft);
  color: var(--fn-brand);
  text-decoration: none;
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: var(--fn-fw-semibold);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 180ms var(--fn-ease), color 180ms var(--fn-ease),
              transform 160ms var(--fn-ease);
}

.fn-ui .mobile-search-advanced:hover,
.fn-ui .mobile-search-advanced:focus {
  color: var(--fn-on-accent);
  background: var(--fn-accent);
  text-decoration: none;
  outline: none;
}

.fn-ui .mobile-search-advanced:active {
  transform: scale(0.97);
}

.fn-ui .mobile-search-advanced .glyphicon {
  position: static;
  top: 0;
  font-size: 12px;
  line-height: 1;
}

.fn-ui .mobile-search-advanced__label {
  line-height: 1;
}

:root[data-fn-theme="dark"] .fn-ui .mobile-search-advanced {
  background: rgba(103, 203, 53, 0.18);
  border: 0;
  color: var(--fn-brand);
}

:root[data-fn-theme="dark"] .fn-ui .mobile-search-advanced:hover,
:root[data-fn-theme="dark"] .fn-ui .mobile-search-advanced:focus {
  background: var(--fn-accent);
  color: var(--fn-on-accent);
}

/* Chip row — natural width, breathing room, no equal-cell grid. */
.fn-ui .header-fund-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 0;
  float: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:root[data-fn-theme="dark"] .fn-ui .header-fund-filters {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.fn-ui .header-fund-filters > .header-fund-filter {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.fn-ui .header-fund-filters select.form-control {
  width: auto;
  min-width: 128px;
  height: 40px;
  min-height: 40px;
  padding: 0 var(--fn-space-4);
  border: 0;
  border-radius: var(--fn-radius-filter);
  background: var(--fn-bg-sunken);
  box-shadow: none;
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  font-size: var(--fn-fs-sm);
  font-weight: var(--fn-fw-medium);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.fn-ui .header-fund-filters select.form-control option {
  background: var(--fn-bg-surface);
  color: var(--fn-text-1);
}

@media (prefers-reduced-motion: reduce) {
  .fn-ui .desktop-header-search-group,
  .fn-ui .tablet-header-search-group,
  .fn-ui .mobile-header-search-group,
  .fn-ui .header-search-submit {
    transition: none;
  }
}


/* =========================================================== §4  NAV BAND */

/* The nav band carried a hard-coded translucent grey plus a backdrop blur, so
   it was neither the header's colour nor the theme's — and the blur sampled
   the green bloom above it, which is the other half of why Light looked
   green. Opaque, token-driven, no blur: the band is furniture, and furniture
   that tints itself from whatever happens to scroll under it is a liability
   on a page that now has a textured canvas. */
.fn-ui .fn-navband {
  background: var(--fn-nav-bg);
  border-top: 1px solid var(--fn-header-border);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.fn-ui .fn-navband > .container {
  position: relative;
}

.fn-ui .fn-navbar {
  min-height: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  float: none;
  padding: 0;
}

.fn-ui .fn-navbar .navbar-nav {
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
}

.fn-ui .fn-navbar .navbar-nav > li {
  float: none;
  border: 0;
}

.fn-ui .fn-navbar .nav > li > a,
.fn-ui .fn-navbar .navbar-nav > li > a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--fn-space-3);
  border-radius: 0;
  background: transparent;
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  font-size: var(--fn-fs-base);
  font-weight: var(--fn-fw-medium);
  line-height: 1;
  letter-spacing: var(--fn-track-tight);
  text-shadow: none;
  white-space: nowrap;
  position: relative;
  transition: color 180ms var(--fn-ease),
              background-color 180ms var(--fn-ease);
}

.fn-ui .fn-navbar .menuH1 {
  margin: 0;
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

/* Hover on a nav item. Light used to get a grey wash and Dark a green one —
   two languages for one gesture. Both now take the interaction wash and the
   interaction ink, which is the same green everywhere. */
.fn-ui .fn-navbar .nav > li > a:hover,
.fn-ui .fn-navbar .nav > li > a:focus,
.fn-ui .fn-navbar .navbar-nav > li > a:hover,
.fn-ui .fn-navbar .navbar-nav > li > a:focus {
  background: var(--fn-interactive-wash);
  color: var(--fn-interactive-ink);
  padding: 0 var(--fn-space-3);
}

/* Active: the green underline, and it stays put. Hover tints the label;
   only the live section carries the rule — that is the difference between
   "my pointer is here" and "this is where I am". */
.fn-ui .fn-navbar .navbar-nav > .active > a,
.fn-ui .fn-navbar .navbar-nav > .active > a:hover,
.fn-ui .fn-navbar .navbar-nav > .active > a:focus {
  background: transparent;
  background-image: none;
  box-shadow: inset 0 -2px 0 var(--fn-interactive);
  color: var(--fn-text-1);
  font-weight: var(--fn-fw-bold);
  padding: 0 var(--fn-space-3);
}

/* The first label (קרנות נאמנות, on the right) starts on the content edge.
   Later rules restore padding with the shorthand, so the override follows them. */
.fn-ui .fn-navbar .navbar-nav > li:first-child > a,
.fn-ui .fn-navbar .navbar-nav > li:first-child > a:hover,
.fn-ui .fn-navbar .navbar-nav > li:first-child > a:focus,
.fn-ui .fn-navbar .navbar-nav > li:first-child.active > a,
.fn-ui .fn-navbar .navbar-nav > li:first-child.active > a:hover,
.fn-ui .fn-navbar .navbar-nav > li:first-child.active > a:focus {
  padding-inline-start: 0;
}

/* template.css paints מניות (.bytab-w) black with !important and מדדים
   (.bytab) charcoal/gold. On the dark nav band that black label disappears.
   Same ink, surface and padding as the other items in this bar. */
.fn-ui .fn-navbar .nav > li > a.bytab,
.fn-ui .fn-navbar .nav > li > a.bytab-w,
.fn-ui .fn-navbar .navbar-nav > li > a.bytab,
.fn-ui .fn-navbar .navbar-nav > li > a.bytab-w {
  background: transparent !important;
  background-image: none !important;
  color: var(--fn-text-1) !important;
  text-shadow: none;
  padding: 0 var(--fn-space-3) !important;
  border-bottom: 0;
}

.fn-ui .fn-navbar .nav > li > a.bytab:hover,
.fn-ui .fn-navbar .nav > li > a.bytab:focus,
.fn-ui .fn-navbar .nav > li > a.bytab-w:hover,
.fn-ui .fn-navbar .nav > li > a.bytab-w:focus,
.fn-ui .fn-navbar .navbar-nav > li > a.bytab:hover,
.fn-ui .fn-navbar .navbar-nav > li > a.bytab:focus,
.fn-ui .fn-navbar .navbar-nav > li > a.bytab-w:hover,
.fn-ui .fn-navbar .navbar-nav > li > a.bytab-w:focus {
  background: var(--fn-interactive-wash) !important;
  color: var(--fn-interactive-ink) !important;
  padding: 0 var(--fn-space-3) !important;
}

/* Social block, which sits at the end of the nav band on >= sm. */
.fn-ui .fn-navbar .plNone {
  float: none;
  width: auto;
  padding: 0;
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: var(--fn-space-2);
}

.fn-ui .fn-navbar .plNone > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  opacity: 1;
  transition: opacity var(--fn-dur-fast) var(--fn-ease);
}

.fn-ui .fn-navbar .plNone > a:hover,
.fn-ui .fn-navbar .plNone > a:focus {
  opacity: 0.85;
  background: transparent;
}

:root[data-fn-theme="dark"] .fn-ui .fn-navbar .plNone > a:hover,
:root[data-fn-theme="dark"] .fn-ui .fn-navbar .plNone > a:focus {
  background: transparent;
}

.fn-ui .fn-navbar .plNone .fb-logo,
.fn-ui .fn-navbar .plNone .tw-logo {
  float: none;
  width: 26px;
  height: 26px;
  margin: 0;
  position: static;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

/* The X badge is a black tile. On a dark band it needs a hairline so the
   tile still reads as a mark. */
:root[data-fn-theme="dark"] .fn-ui .fn-navbar .plNone .tw-logo {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* The desktop nav band lays out as a single flex row so the social block can
   be pushed to the far end without a float. */
@media (min-width: 768px) {
  .fn-ui .fn-navbar > #navbar.fn-drawer {
    display: flex;
    align-items: center;
    width: 100%;
    float: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    position: static;
    transform: none;
    visibility: visible;
    background: none;
  }

  /* Drawer chrome is mobile-only. !important is deliberate:
     Bootstrap 3 and legacy template rules use !important on display helpers,
     and an author `display:none` without it loses that fight. */
  .fn-ui .fn-drawer__head,
  .fn-ui .fn-drawer__close,
  .fn-ui .fn-drawer__logo,
  .fn-ui .fn-drawer__home,
  .fn-ui .fn-drawer__foot,
  .fn-ui .fn-drawer-scrim,
  .fn-ui .fn-navbar .webViewBox {
    display: none !important;
  }

  /* `hidden` is how the controller parks the panel on mobile; on desktop the
     nav must render regardless of that attribute. */
  .fn-ui .fn-navbar > #navbar.fn-drawer[hidden] { display: flex; }
}


/* ------------------------------------------------- §4.1  theme toggle ----
   One button cycles auto → light → white → dark → soft → classic
   (fn-display.js). Icon shows the CURRENT theme: sun = light, hollow circle =
   white, moon = dark, rainbow = soft, swatch = classic.
   Automatic mode uses the clock, so a resolved dark theme is not mistaken
   for a locked dark choice. */

.fn-ui {
  --fn-icon-moon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M21 14.2A9 9 0 0 1 9.8 3 9 9 0 1 0 21 14.2z'/%3E%3C/svg%3E");
  --fn-icon-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  --fn-icon-rainbow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 18a10 10 0 0 1 20 0M6 18a6 6 0 0 1 12 0M10 18a2 2 0 0 1 4 0'/%3E%3C/svg%3E");
  --fn-icon-classic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='4' fill='%23000'/%3E%3C/svg%3E");
  --fn-icon-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
  --fn-icon-auto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
  --fn-icon-theme: var(--fn-icon-sun);
  --fn-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E");
  /* Shared chevron for FN masks / select affordances (e.g. 09-data fallbacks). */
  --fn-icon-caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

:root[data-fn-theme="white"] .fn-ui { --fn-icon-theme: var(--fn-icon-white); }
:root[data-fn-theme="dark"] .fn-ui { --fn-icon-theme: var(--fn-icon-moon); }
:root[data-fn-theme="soft"] .fn-ui { --fn-icon-theme: var(--fn-icon-rainbow); }
:root[data-fn-theme="classic"] .fn-ui { --fn-icon-theme: var(--fn-icon-classic); }
:root[data-fn-theme-mode="auto"] .fn-ui { --fn-icon-theme: var(--fn-icon-auto); }

.fn-ui .fn-theme-toggle:focus-visible {
  outline: var(--fn-focus-width) solid var(--fn-focus);
  outline-offset: var(--fn-focus-offset);
}

.fn-ui .fn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--fn-radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--fn-dur-fast) var(--fn-ease);
}

.fn-ui .fn-theme-toggle__icon {
  width: 17px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask-image: var(--fn-icon-theme);
  mask-image: var(--fn-icon-theme);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* in the green nav band */
.fn-ui .fn-navbar .plNone .fn-theme-toggle {
  color: var(--fn-on-brand-surface);
  opacity: 0.85;
}

.fn-ui .fn-navbar .plNone .fn-theme-toggle:hover,
.fn-ui .fn-navbar .plNone .fn-theme-toggle:focus {
  opacity: 1;
  background: rgba(14, 20, 16, 0.10);
}

:root[data-fn-theme="dark"] .fn-ui .fn-navbar .plNone .fn-theme-toggle:hover,
:root[data-fn-theme="dark"] .fn-ui .fn-navbar .plNone .fn-theme-toggle:focus {
  background: rgba(103, 203, 53, 0.22);
}

/* Mobile-only side columns (hamburger / utility cluster). Hidden on desktop. */
.fn-ui .fn-bar-start,
.fn-ui .fn-bar-end { display: none; }

.fn-ui .fn-theme-toggle--bar,
.fn-ui .fn-theme-toggle--drawer,
.fn-ui .fn-theme-toggle--search {
  display: none;
  width: 36px;
  height: 36px;
  margin-inline: 0;
  color: var(--fn-on-brand-muted);
}

.fn-ui .fn-theme-toggle--bar .fn-theme-toggle__icon,
.fn-ui .fn-theme-toggle--drawer .fn-theme-toggle__icon,
.fn-ui .fn-theme-toggle--search .fn-theme-toggle__icon {
  width: 18px;
  height: 18px;
}

.fn-ui .fn-theme-toggle--bar:hover,
.fn-ui .fn-theme-toggle--bar:focus {
  background: rgba(14, 20, 16, 0.10);
  color: var(--fn-on-brand-surface);
}

:root[data-fn-theme="dark"] .fn-ui .fn-theme-toggle--bar {
  color: var(--fn-text-2);
}

:root[data-fn-theme="dark"] .fn-ui .fn-theme-toggle--bar:hover,
:root[data-fn-theme="dark"] .fn-ui .fn-theme-toggle--bar:focus {
  background: var(--fn-bg-hover);
  color: var(--fn-text-1);
}

@media (max-width: 767px) {
  .fn-ui .fn-theme-toggle--nav { display: none; }
  .fn-ui .fn-theme-toggle--bar { display: inline-flex; }
}


/* ========================================================== §5  QUICK RAIL */

/* The rail band lives INSIDE .header. It used to sit in the page's own
   .container, which carries 15px of horizontal padding at xs — that is what
   left strips of the old cream canvas down both sides of the chips row while
   the bands above it were already full width. Being a child of .header makes
   it full-bleed by construction; the inner .container supplies the padding,
   and .header's own border closes the unit. */
/* The quick-links rail is the one band allowed to step away from the header's
   surface, by a hair, so the chip row reads as a shelf rather than as more
   header. --fn-bg-sunken was too green a step to do that job in Light. */
.fn-ui .fn-railband {
  background: var(--fn-rail-bg);
  border-top: 1px solid var(--fn-header-border);
  box-shadow: none;
  padding-block: 8px;
  width: 100%;
}

.fn-ui .fn-rail {
  background: transparent;
  height: auto;
  line-height: normal;
  float: none;
  width: 100%;
  padding: var(--fn-space-1) 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--fn-rail-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.fn-ui .fn-rail::-webkit-scrollbar { height: 0; display: none; }

.fn-ui .fn-rail > a,
.fn-ui .fn-rail.nav_submenu > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 var(--fn-rail-pad);
  border: 1px solid var(--fn-control-border);
  border-radius: var(--fn-radius-nav);
  background: var(--fn-control-bg);
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  /* Bold + full ink per Udi — the pale look came from the grey ink, not
     the weight (800 was tried and read as too heavy).
     13px, not the 12px token, per Yoav: at 12px bold on a 1x Windows
     screen the top bar of the Hebrew letters (ה ת ק כ) lands between two
     pixel rows and renders as a grey smear. At 13px it lands on one row.
     The extra width is paid for by a smaller minimum gap at ≥1440 in
     01-tokens.css, so the 16 chips still fit on one row there. */
  font-size: 13px;
  font-weight: var(--fn-fw-bold);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: none;
}

/* Hover, press and the current page: the same filled chip as the login
   "כניסה" button — #67cb35 with dark ink. A wash/outline was too quiet;
   the fill is the signal Udi asked for. */
.fn-ui .fn-rail > a:hover,
.fn-ui .fn-rail > a:focus,
.fn-ui .fn-rail.nav_submenu > a:hover,
.fn-ui .fn-rail-mob .item > a:hover,
.fn-ui .fn-rail-mob .item > a:focus,
.fn-ui .fn-rail > a:active,
.fn-ui .fn-rail.nav_submenu > a:active,
.fn-ui .fn-rail-mob .item > a:active,
.fn-ui .fn-rail > a.is-active,
.fn-ui .fn-rail-mob .item > a.is-active {
  background: var(--fn-accent);
  border-color: var(--fn-accent);
  color: var(--fn-on-accent);
  text-decoration: none;
  padding: 0 var(--fn-rail-pad);
  box-shadow: none;
}

.fn-ui .fn-rail > a.is-active,
.fn-ui .fn-rail-mob .item > a.is-active {
  font-family: var(--fn-font-ui);
  font-weight: var(--fn-fw-bold);
  font-synthesis: none;
}

.fn-ui .fn-rail > a.is-active:hover,
.fn-ui .fn-rail > a.is-active:focus,
.fn-ui .fn-rail-mob .item > a.is-active:hover,
.fn-ui .fn-rail-mob .item > a.is-active:focus {
  background: var(--fn-accent);
  border-color: var(--fn-accent);
  color: var(--fn-on-accent);
}

/* Desktop: one row, never two. Each chip is as wide as its label.
   The gap token is the minimum. Leftover space in the content box is
   shared equally, so the first and last chips sit on the content edges.
   Where the labels are wider than the box, the row scrolls; it does not
   wrap, shrink the type, or clip a label.
   The phone rail is a different element and is not in this query. */
@media (min-width: 992px) {
  .fn-ui .fn-rail {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--fn-rail-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .fn-ui .fn-rail::-webkit-scrollbar {
    height: 6px;
    display: block;
  }

  .fn-ui .fn-rail > a,
  .fn-ui .fn-rail.nav_submenu > a {
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    justify-content: center;
  }
}

/* The update dot is appended inside the anchor by common.js. */
.fn-ui .fn-rail > a .portfolio-update-dot,
.fn-ui .fn-rail-mob .item > a .portfolio-update-dot {
  flex: 0 0 auto;
  margin: 0 0 0 var(--fn-space-1);
  box-shadow: 0 0 0 1px var(--fn-accent);
}

/* Mobile rail — the owl carousel carries the same 15 links. */
/* common.js initialises owl with `items: 3`, so each slot is a third of the
   width whatever the label. Letting the chip fill its slot makes that read as
   a deliberate 3-up row with even gutters; a natural-width chip floating in a
   third looked like random spacing. Changing the owl options would mean
   editing common.js, which serves 111 pages. */
/* The phone rail is now the same kind of object as the desktop one: a finite
   flex scroller carrying chips, not an Owl stage carrying three slots. The
   .item wrappers stay (they are in a shared Master and other pages' CSS may
   lean on them) but they no longer size the chip — the chip is its own
   natural width, like every other chip row in the product. */
.fn-ui .fn-rail-mob {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: var(--fn-space-1) 0;
  overflow-x: auto;
  overflow-y: hidden;
  /* The two halves of "bounded": a hard stop at each end, and a scroll that
     does not escape into the page behind it. */
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fn-ui .fn-rail-mob::-webkit-scrollbar { height: 0; display: none; }

.fn-ui .fn-rail-mob .item {
  flex: 0 0 auto;
  padding: 0;
  scroll-snap-align: start;
}

.fn-ui .fn-rail-mob .item > a {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--fn-control-border);
  border-radius: var(--fn-radius-nav);
  background: var(--fn-control-bg);
  color: var(--fn-text-2);
  font-size: var(--fn-fs-xs);
  font-weight: var(--fn-fw-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  box-shadow: none;
  transition: none;
}



/* ============================================================== §6  MOBILE */

@media (max-width: 767px) {

  /* The phone bar used to be transparent so the header's green gradient
     showed through it. With the gradient gone in Light and the surfaces
     tokenised, it takes the same colour as every other band — which is also
     what makes the scrolled compact bar look like the bar it replaced. */
  .fn-ui .fn-navband {
    background: var(--fn-nav-bg);
    border-top: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .fn-ui .fn-railband {
    border-top: 1px solid var(--fn-header-border);
  }

  /* Every band's inner container uses the same inline padding, so the
     hamburger, the search pill and the first chip all share one left/right
     rhythm instead of three different ones. */
  .fn-ui .fn-navband > .container,
  .fn-ui .fn-railband > .container {
    padding-left: var(--fn-space-3);
    padding-right: var(--fn-space-3);
  }

  /* template.css: .owl-carousel.owl-rtl { padding: 10px 16px 0 !important }
     — the rail no longer carries the owl classes, so that rule can no longer
     reach it. The reset stays because .nav_sub/.nav_submenu in template.css
     still pad this band on some pages. */
  /* template.css pads this row. The start/end padding lives on the
     scroller itself so the first chip is fully on screen and the next one
     is clipped by the viewport edge — a peek, not a fade through the label. */
  .fn-ui .fn-rail-mob {
    padding-block: 0 !important;
    padding-inline-start: var(--fn-space-3) !important;
    padding-inline-end: var(--fn-space-3) !important;
    margin: 0;
    scroll-padding-inline-start: var(--fn-space-3);
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* The chip row sits on the wallpaper. An opaque shelf behind the whole
     rail hid the canvas between bubbles; the chips themselves stay solid. */
  .fn-ui .fn-railband {
    padding-block: 4px;
    display: flex;
    align-items: center;
    background: transparent;
    border-top: 0;
  }

  .fn-ui .fn-railband > .container {
    padding: 0;
    width: 100%;
  }

  .fn-ui .header {
    border-bottom: 0;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
  }

  :root[data-fn-theme="dark"] .fn-ui .header {
    border-bottom: 0;
  }

  .fn-ui .fn-rail-mob {
    gap: 5px;
  }

  .fn-ui .fn-rail-mob .item > a {
    height: 28px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--fn-radius-nav);
    background: var(--fn-control-bg);
    border: 1px solid var(--fn-control-border);
    color: var(--fn-text-1);
    box-shadow: none;
    overflow: visible;
    text-overflow: clip;
  }

  /* RTL flex: first child is on the right. Markup is label then funnel
     so the words sit on the right and the icon on the left. */
  .fn-ui .fn-rail-mob .fn-rail-search {
    gap: 5px;
    flex-direction: row;
  }

  .fn-ui .fn-rail-mob .fn-rail-search .glyphicon {
    position: static;
    top: auto;
    font-size: 12px;
    line-height: 1;
  }

  .fn-ui .fn-rail-mob .item > a.is-active {
    background: var(--fn-accent);
    border-color: var(--fn-accent);
    color: var(--fn-on-accent);
    font-weight: 700;
    box-shadow: none;
  }

  /* The dark surface used to be restated here; --fn-rail-bg is a theme token
     and already carries it. Only the border, which the phone layout drops,
     is still a decision this block has to make. */
  :root[data-fn-theme="dark"] .fn-ui .fn-railband {
    box-shadow: none;
    border-top: 0;
  }

  /* Dark chips need no rule of their own: the --fn-control-* tokens carry
     the dark fill, and the press and current-page state above stay in
     charge in every theme. */

  /* No edge fade: it was cutting through the label of whichever chip
     sat at the screen edge. The peek is the chip itself, clipped by the
     scroller, and it disappears on its own once the row is scrolled to
     the end (the end padding brings the last chip fully inside). */

  /* Accessibility launcher is a fixed FAB — it must NOT reserve a header
     strip (the old min-height:27px "took a row"). */
  .fn-ui .header #acc_box {
    min-height: 0;
  }

  /* One compact horizontal top row. Logo stays absolutely centred on the
     viewport; side columns hold hamburger (start) and a horizontal tool
     cluster (end). Height follows the logo lockup — not a vertical icon stack. */
  .fn-ui .fn-navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    /* Logo is absolute (out of flow); reserve its height so the bar doesn't
       collapse to the tool row. Trimmed from 67px: the lockup never needed
       that much and five pixels of chrome at the top of every phone screen
       is five pixels of article. */
    min-height: 62px;
    column-gap: var(--fn-space-2);
    padding: 5px 0;
  }

  .fn-ui .fn-navbar .navbar-toggle {
    /* placement owned by .fn-bar-start */
    justify-self: start;
  }

  /* Absolutely centred, not a grid cell. `1fr auto 1fr` only centres the middle
     column while both side columns are equal — but a grid column cannot shrink
     below its content, so on inner pages (where the search icon joins the theme
     toggle) column 3 grew wider than column 1 and dragged the wordmark 7px off
     centre. Taking it out of flow pins it to the middle of the bar whatever sits
     on either side. The max-width keeps it clear of the icons. */
  /* NO grid-column/grid-row here. An absolutely positioned child of a grid
     container takes its GRID AREA as containing block when it has a definite
     grid position — column 2 resolved to 179px, so `left:50%` meant 50% of the
     cell and the wordmark landed 89px off centre. Without a placement the
     containing block is the bar's padding box, which is what centring needs. */
  .fn-ui .fn-navbar .navbar-header {
    position: absolute;
    left: 50%;
    /* Pin to the top tool row so an expanded search (second grid row)
       does not reflow/overlap the wordmark. Must track .fn-navbar's
       min-height above — these two numbers are one number. */
    top: 0;
    height: 62px;
    width: auto;
    /* Toward the tool cluster (physical left) by half the difference between
       the two side clusters, so both gutters stay equal once the icons grow.
       Retune with the cluster widths in the wordmark rule below. */
    transform: translateX(calc(-50% - 11px));
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fn-ui .fn-navbar .navbar-header > a { pointer-events: auto; }

  .fn-ui .fn-navbar {
    position: relative;
  }

  /* Start: hamburger (RTL right). End: horizontal utility cluster (RTL left). */
  .fn-ui .fn-navbar .fn-bar-start {
    display: flex;
    align-items: center;
    gap: 4px;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    position: relative;
    z-index: 2;
  }

  /* Same stocks + indices shortcuts, compacted so they sit between the
     hamburger and the centred wordmark without kissing it. */
  .fn-ui .fn-navbar .fn-brand-markets--bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-inline-start: 2px;
    margin-inline-end: 6px;
  }

  .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__link {
    min-width: 32px;
    height: 40px;
    padding: 0 2px;
    gap: 1px;
    border: 0;
    border-radius: var(--fn-radius-sm);
    background: transparent;
    box-shadow: none;
  }

  .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__link:hover,
  .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__link:focus {
    background: rgba(14, 20, 16, 0.08);
    border-color: transparent;
    box-shadow: none;
  }

  .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__ico {
    width: 19px;
    height: 19px;
  }

  .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__txt {
    font-size: 10px;
  }

  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__link {
    background: transparent;
  }

  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__link:hover,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-brand-markets--bar .fn-brand-markets__link:focus {
    background: rgba(255, 255, 255, 0.08);
  }

  .fn-ui .fn-navbar .fn-bar-end {
    display: flex;
    flex-direction: row;
    /* LTR tool order so the cluster always reads: search · theme · filter */
    direction: ltr;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding-inline-end: 0;
    /* Keep tools above the absolute logo if widths collide on narrow phones. */
    position: relative;
    z-index: 2;
  }

  .fn-ui .fn-navbar .fn-bar-end {
    overflow: visible;
  }

  .fn-ui .fn-navbar .fn-bar-end .fn-fund-filter-open,
  .fn-ui .fn-navbar .fn-bar-end .fn-theme-toggle--bar,
  .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Wide enough for a 19px glyph. Height stays 40px, above the 24px tap floor.
       The wordmark takes the width this cluster gives back. */
    width: 30px;
    height: 40px;
    min-width: 30px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--fn-radius-sm);
    background: transparent;
    box-shadow: none;
    float: none;
  }

  .fn-ui .fn-navbar .fn-bar-end .fn-fund-filter-open__icon,
  .fn-ui .fn-navbar .fn-bar-end .fn-theme-toggle__icon {
    width: 19px;
    height: 19px;
  }

  .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle {
    font-size: 18px;
  }

  .fn-ui .fn-navbar .fn-bar-end .fn-fund-filter-open:hover,
  .fn-ui .fn-navbar .fn-bar-end .fn-fund-filter-open:focus,
  .fn-ui .fn-navbar .fn-bar-end .fn-theme-toggle--bar:hover,
  .fn-ui .fn-navbar .fn-bar-end .fn-theme-toggle--bar:focus,
  .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle:hover,
  .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle:focus,
  .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle.is-open {
    background: rgba(14, 20, 16, 0.08);
  }

  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-bar-end .fn-fund-filter-open:hover,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-bar-end .fn-fund-filter-open:focus,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-bar-end .fn-theme-toggle--bar:hover,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-bar-end .fn-theme-toggle--bar:focus,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle:hover,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle:focus,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .fn-bar-end .mobile-search-toggle.is-open {
    background: var(--fn-bg-hover);
  }

  .fn-ui .fn-navbar > .mobile-search-row {
    grid-column: 1 / -1;
  }

  .fn-ui .fn-navbar .navbar-toggle,
  .fn-ui .fn-navbar .navbar-header,
  .fn-ui .fn-navbar .search_btn.mobile-search-toggle {
    min-height: 40px;
  }

  /* order: hamburger at the start (right in RTL), wordmark centred,
     secondary controls at the end — logo is the visual anchor. */
  .fn-ui .fn-navbar .navbar-toggle {
    float: none;
    margin: 0;
    /* 36 wide / 40 tall. Bars are 20px — a step up from 18, not the 22 that
       crowded the wordmark. */
    padding: var(--fn-space-2) 8px;
    width: 36px;
    height: 40px;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: var(--fn-radius-sm);
    background: transparent !important;
    box-shadow: none;
    color: var(--fn-on-brand-surface);
  }

  .fn-ui .fn-navbar .navbar-toggle:hover,
  .fn-ui .fn-navbar .navbar-toggle:focus,
  .fn-ui .fn-navbar .navbar-toggle:active {
    border: 0 !important;
    border-color: transparent !important;
    background: rgba(14, 20, 16, 0.10) !important;
    box-shadow: none;
    outline: none;
  }

  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .navbar-toggle:hover,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .navbar-toggle:focus,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .navbar-toggle:active {
    background: var(--fn-bg-hover) !important;
  }

  .fn-ui .fn-navbar .navbar-header {
    min-width: 0;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  /* NOTE: no `display` here on purpose. §7 owns whether this button is shown,
     and a `display:none` at this specificity (0,4,0) would outrank it. */
  /* Same box as its two neighbours in .fn-bar-end — it was 28 here and 26
     there, which is a two-pixel step nobody chose. */
  .fn-ui .fn-navbar .search_btn.mobile-search-toggle {
    float: none;
    margin: 0;
    padding: 0;
    width: 30px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--fn-radius-sm);
    background: transparent;
    color: var(--fn-on-brand-muted);
    font-size: 18px;
    text-align: center;
  }

  .fn-ui .fn-navbar .navbar-toggle .icon-bar {
    width: 20px;
    height: 2.5px;
    border-radius: 2px;
    background-color: var(--fn-on-brand-surface);
    transition: background-color var(--fn-dur-fast) var(--fn-ease);
  }

  .fn-ui .fn-navbar .navbar-toggle .icon-bar + .icon-bar {
    margin-top: 5px;
  }

  .fn-ui .fn-navbar .navbar-toggle:hover,
  .fn-ui .fn-navbar .navbar-toggle:focus,
  .fn-ui .fn-navbar .search_btn.mobile-search-toggle:hover,
  .fn-ui .fn-navbar .search_btn.mobile-search-toggle:focus {
    background: rgba(14, 20, 16, 0.10);
    color: var(--fn-on-brand-surface);
  }

  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .search_btn.mobile-search-toggle {
    color: var(--fn-text-2);
  }

  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .navbar-toggle:hover,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .navbar-toggle:focus,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .search_btn.mobile-search-toggle:hover,
  :root[data-fn-theme="dark"] .fn-ui .fn-navbar .search_btn.mobile-search-toggle:focus {
    background: var(--fn-bg-hover);
    color: var(--fn-text-1);
  }

  .fn-ui .fn-navbar .navbar-brand {
    float: none;
    height: auto;
    padding: 0;
    margin: 0;
    display: block;
    line-height: 0;
    /* The lockup file is LTR artwork. The page is RTL, which right-aligns an
       overflowing image and would clip the mark instead of the transparent pad. */
    direction: ltr;
    /* The lockup file is 244×55 with ~23px of transparent pad on each side,
       so a width cap was sizing the canvas and the artwork stayed ~25px tall
       inside a 62px bar. This width is the artwork itself (197px of the file).
       Cap 179px → 50px tall, which fills the bar without growing it.
       100vw - 242px is the gap between the clusters on ≥375px:
       pads 24 + hamburger/markets 112 + tools 90 + 8px gutter each side. */
    width: min(179px, calc(100vw - 242px));
    overflow: hidden;
  }

  .fn-ui .fn-navbar .navbar-brand img {
    float: none;
    height: auto;
    width: auto;
    max-height: none;
    max-width: none;
    margin: 0;
  }

  /* Slide the file's transparent side pads outside the clip, so the mark
     and the wordmark ("FUNDER" / של ישראל) paint at the brand's width. */
  .fn-ui .fn-navbar .navbar-brand img.fn-logo--light,
  .fn-ui .fn-navbar .navbar-brand img.fn-logo--dark {
    width: calc(100% * 244 / 197);
    height: auto;
    max-height: none;
    max-width: none;
    margin: 0 0 0 calc(100% * -23 / 197);
  }

  /* ≤359 handled in §6.1 (theme hide + roomier logo). */

  /* --- the drawer ------------------------------------------------------
     While open, JS portals #navbar.fn-drawer + .fn-drawer-scrim to <body>
     so they are true viewport overlays (above .header). Selectors must not
     require .fn-navbar ancestry. Anchored to inline-start (RTL = right). */

  .fn-ui #navbar.fn-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(88vw, 320px);
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-inline-end: 1px solid var(--fn-border);
    box-shadow: var(--fn-shadow-pop);
    background: var(--fn-bg-surface);
    /* translateX is physical: positive X pushes a right-anchored panel off the
       right edge, which is the correct "away" direction in RTL. */
    transform: translateX(100%);
    transition: transform var(--fn-dur-base) var(--fn-ease);
    z-index: calc(var(--fn-z-overlay) + 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .fn-ui.fn-nav-in #navbar.fn-drawer {
    transform: translateX(0);
  }

  .fn-ui .fn-drawer-scrim {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 12, 0.48);
    opacity: 0;
    transition: opacity var(--fn-dur-base) var(--fn-ease);
    z-index: var(--fn-z-overlay);
    border: 0;
  }

  .fn-ui.fn-nav-in .fn-drawer-scrim { opacity: 1; }

  /* --- drawer head -----------------------------------------------------
     Close sits on the inline-start (RTL right) — same corner as the hamburger
     that opened the panel. The wordmark is a home link, centred in the row. */

  .fn-ui .fn-drawer__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: var(--fn-space-2);
    flex: 0 0 auto;
    min-height: 56px;
    padding: var(--fn-space-3) var(--fn-space-4);
    border-bottom: 1px solid var(--fn-border);
    background: var(--fn-bg-surface);
  }

  .fn-ui .fn-drawer__close {
    grid-column: 1;
    grid-row: 1;
  }

  .fn-ui .fn-drawer__home {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    text-decoration: none;
    color: inherit;
  }

  .fn-ui .fn-drawer__logo {
    height: 40px;
    width: auto;
    max-width: min(200px, 100%);
    margin: 0;
  }

  .fn-ui .fn-drawer__logo.fn-logo--light,
  .fn-ui .fn-drawer__logo.fn-logo--dark {
    width: auto;
    height: 40px;
    max-width: min(200px, 100%);
  }

  .fn-ui .fn-drawer__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--fn-radius-sm);
    background: var(--fn-bg-sunken);
    color: var(--fn-text-2);
    cursor: pointer;
    transition: background-color var(--fn-dur-fast) var(--fn-ease),
                color var(--fn-dur-fast) var(--fn-ease);
  }

  .fn-ui .fn-drawer__close:hover,
  .fn-ui .fn-drawer__close:focus {
    background: var(--fn-bg-hover);
    color: var(--fn-text-1);
  }

  .fn-ui .fn-drawer__close:active {
    background: var(--fn-bg-active);
  }

  .fn-ui .fn-drawer__close-icon {
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask-image: var(--fn-icon-close);
    mask-image: var(--fn-icon-close);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  /* --- primary items ---------------------------------------------------- */

  .fn-ui #navbar.fn-drawer .navbar-nav {
    display: block;
    margin: 0;
    padding: var(--fn-space-3) 0 var(--fn-space-2);
    flex: 1 1 auto;
  }

  .fn-ui #navbar.fn-drawer .nav > li > a,
  .fn-ui #navbar.fn-drawer .navbar-nav > li > a {
    height: auto;
    min-height: 48px;
    padding: var(--fn-space-3) var(--fn-space-5);
    background: transparent;
    background-image: none;
    color: var(--fn-text-1);
    font-size: var(--fn-fs-md);
    font-weight: var(--fn-fw-medium);
    letter-spacing: var(--fn-track-tight);
    text-shadow: none;
    border-bottom: 1px solid var(--fn-border);
  }

  /* template.css paints מדדים (.bytab) charcoal/gold and מניות (.bytab-w)
     white-on-black for the desktop strip. Kill both inside the drawer so
     every row is the same list surface. Padding uses !important to beat
     .bytab-w's 14px !important. */
  .fn-ui #navbar.fn-drawer .nav > li > a.bytab,
  .fn-ui #navbar.fn-drawer .nav > li > a.bytab-w,
  .fn-ui #navbar.fn-drawer .navbar-nav > li > a.bytab,
  .fn-ui #navbar.fn-drawer .navbar-nav > li > a.bytab-w {
    background: transparent !important;
    background-image: none !important;
    color: var(--fn-text-1) !important;
    text-shadow: none;
    padding: var(--fn-space-3) var(--fn-space-5) !important;
    border-bottom: 1px solid var(--fn-border);
  }

  .fn-ui #navbar.fn-drawer .navbar-nav > li:last-child > a {
    border-bottom: 0;
  }

  .fn-ui #navbar.fn-drawer .navbar-nav > li:not(.fn-drawer-account):has(> a[style*="display:none"]) {
    display: none;
  }

  .fn-ui #navbar.fn-drawer .nav > li > a:hover,
  .fn-ui #navbar.fn-drawer .nav > li > a:focus,
  .fn-ui #navbar.fn-drawer .nav > li > a.bytab:hover,
  .fn-ui #navbar.fn-drawer .nav > li > a.bytab:focus,
  .fn-ui #navbar.fn-drawer .nav > li > a.bytab-w:hover,
  .fn-ui #navbar.fn-drawer .nav > li > a.bytab-w:focus {
    background: var(--fn-bg-hover) !important;
    color: var(--fn-text-1) !important;
    padding: var(--fn-space-3) var(--fn-space-5) !important;
  }

  .fn-ui #navbar.fn-drawer .nav > li > a:active {
    background: var(--fn-bg-active) !important;
  }

  .fn-ui #navbar.fn-drawer .navbar-nav > .active > a,
  .fn-ui #navbar.fn-drawer .navbar-nav > .active > a:hover,
  .fn-ui #navbar.fn-drawer .navbar-nav > .active > a:focus {
    background: var(--fn-brand-soft) !important;
    color: var(--fn-text-1) !important;
    border-inline-start: 3px solid var(--fn-accent);
    padding: var(--fn-space-3) var(--fn-space-5) !important;
    padding-inline-start: calc(var(--fn-space-5) - 3px) !important;
  }

  /* Desktop social strip stays in .plNone; hide it inside the drawer. */
  .fn-ui #navbar.fn-drawer .plNone {
    display: none;
  }

  /* --- drawer footer (social + apps) ------------------------------------ */

  .fn-ui .fn-drawer__foot,
  .fn-ui #navbar.fn-drawer .webViewBox {
    flex: 0 0 auto;
    float: none;
    width: 100%;
    margin: auto 0 0 0;
    padding: var(--fn-space-4) var(--fn-space-4) calc(var(--fn-space-4) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--fn-border);
    background: var(--fn-bg-sunken);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: var(--fn-space-3);
  }

  .fn-ui .fn-drawer__stores,
  .fn-ui .fn-drawer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--fn-space-3);
    width: 100%;
  }

  .fn-ui #navbar.fn-drawer .webViewBox a {
    float: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity var(--fn-dur-fast) var(--fn-ease);
  }

  .fn-ui #navbar.fn-drawer .webViewBox a:hover,
  .fn-ui #navbar.fn-drawer .webViewBox a:focus {
    opacity: 1;
  }

  .fn-ui #navbar.fn-drawer .webViewBox .fn-drawer__social a {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
    opacity: 1;
  }

  .fn-ui #navbar.fn-drawer .webViewBox .fn-drawer__social a:hover,
  .fn-ui #navbar.fn-drawer .webViewBox .fn-drawer__social a:focus {
    opacity: 0.85;
  }

  .fn-ui #navbar.fn-drawer .webViewBox .fb-logo,
  .fn-ui #navbar.fn-drawer .webViewBox .tw-logo {
    float: none;
    position: static;
    right: auto;
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    filter: none;
  }

  :root[data-fn-theme="dark"] .fn-ui #navbar.fn-drawer .webViewBox .tw-logo {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  }

  .fn-ui #navbar.fn-drawer .webViewBox .apps-logo {
    float: none;
    width: auto;
    height: 32px;
    margin: 0;
    opacity: 1;
  }

  /* The brand bar and tools bar are display:none below 768 via .hidden-xs,
     so nothing else needs to be neutralised here. */
}


/* ========================================== §7  MOBILE SEARCH PANEL */
/* Reimplements assets/css-custom/header-search.css §mobile.
   common.js owns open/closed state via .mobile-search-row--collapsed.
   Homepage uses the same icon-toggle pattern as inner pages. */

.fn-ui .mobile-search-row { display: none; }
.fn-ui .mobile-search-toggle { display: none; }
.fn-ui .mobile-fund-filter-btn { display: none; }

/* Bounded at 767, not 991: between 768 and 991 the tablet field in the tools
   bar is already visible, and showing the mobile panel as well painted the
   same search box twice. common.js reads `.search_text--tablet:visible` before
   `--mobile`, so exactly one field is live at every width. */
@media (max-width: 767px) {

  .fn-ui .mobile-search-toggle {
    display: flex;
  }

  .fn-ui .mobile-search-row:not(.mobile-search-row--collapsed) {
    display: block;
    animation: fn-search-reveal 220ms var(--fn-ease);
  }

  .fn-ui .mobile-search-row.mobile-search-row--collapsed {
    display: none !important;
  }

  @keyframes fn-search-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .fn-ui .mobile-search-row:not(.mobile-search-row--collapsed) {
      animation: none;
    }
  }

  /* Expanded search: temporary second row under the compact top bar. */
  .fn-ui .mobile-search-row {
    clear: both;
    width: 100%;
    float: none;
    padding: 6px 0 10px;
    background: transparent;
    border-bottom: 1px solid rgba(14, 20, 16, 0.12);
    position: relative;
    z-index: var(--fn-z-overlay);
    box-sizing: border-box;
  }

  :root[data-fn-theme="dark"] .fn-ui .mobile-search-row {
    border-bottom-color: rgba(255, 255, 255, 0.10);
  }

  .fn-ui .searchBoxHeader--mobile.searchBoxHeader--compact {
    background: none;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    position: relative;
    overflow: visible;
  }

  .fn-ui .mobile-header-search-group {
    height: 44px;
    min-height: 44px;
    padding-inline-start: var(--fn-space-4);
    padding-inline-end: var(--fn-space-1);
    background: var(--fn-bg-surface);
    border: 1px solid var(--fn-border);
    border-radius: var(--fn-radius-pill);
    box-shadow: none;
  }

  .fn-ui .mobile-header-search-group:hover {
    background: var(--fn-bg-surface);
  }

  .fn-ui .mobile-header-search-group:focus-within {
    background: var(--fn-bg-surface);
    box-shadow: 0 0 0 2px rgba(103, 203, 53, 0.28);
    border-color: var(--fn-accent);
  }

  /* Reference: white search pill on dark chrome. */
  :root[data-fn-theme="dark"] .fn-ui .mobile-header-search-group {
    background: #FFFFFF;
    border-color: transparent;
  }

  :root[data-fn-theme="dark"] .fn-ui .mobile-header-search-group .form-control {
    color: #111827;
  }

  /* #9CA3AF is ~2.5:1 on the white pill. #4B5563 stays muted and clears 4.5:1. */
  :root[data-fn-theme="dark"] .fn-ui .mobile-header-search-group .form-control::placeholder {
    color: #4B5563;
  }

  /* 16px prevents iOS Safari from zooming the viewport on focus. */
  .fn-ui .mobile-header-search-group .form-control.search_text--mobile {
    font-size: 16px;
  }

  /* Loupe lives on the submit control (end side) — no second decorative icon. */
  .fn-ui .mobile-header-search-group::before {
    display: none;
  }

  .fn-ui .mobile-header-search-group {
    padding-inline-start: var(--fn-space-4);
  }

  /* Ghost magnifier — no green circle (reference). */
  .fn-ui .header-search-submit-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: var(--fn-radius-sm);
    background: transparent;
    background-image: none;
    color: var(--fn-text-2);
    text-shadow: none;
    box-shadow: none;
    line-height: 1;
    transition: color var(--fn-dur-fast) var(--fn-ease);
  }

  .fn-ui .header-search-submit-mobile .glyphicon {
    position: static;
    float: none;
    top: auto;
    left: auto;
    margin: 0;
    font-size: 16px;
    line-height: 1;
  }

  .fn-ui .header-search-submit-mobile:hover,
  .fn-ui .header-search-submit-mobile:focus {
    background: transparent;
    color: var(--fn-text-1);
    outline: none;
  }

  .fn-ui .header-search-submit-mobile:active {
    background: transparent;
    color: var(--fn-text-1);
  }

  :root[data-fn-theme="dark"] .fn-ui .header-search-submit-mobile {
    color: #4B5563;
  }

  :root[data-fn-theme="dark"] .fn-ui .header-search-submit-mobile:hover,
  :root[data-fn-theme="dark"] .fn-ui .header-search-submit-mobile:focus {
    color: #111827;
  }

  /* Advanced sits inside the 44px search pill — matched height, soft CTA. */
  .fn-ui .mobile-search-inline-actions {
    gap: 2px;
    padding-inline-end: 4px;
  }

  .fn-ui .mobile-search-advanced {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .fn-ui .mobile-search-advanced .glyphicon {
    font-size: 11px;
  }

  .fn-ui .mobile-search-toggle.is-open {
    background: var(--fn-bg-active);
    color: var(--fn-brand);
  }

  .fn-ui .mobile-fund-filter-btn { display: none !important; }
}


/* --------------------------------------------------- §7.1  tablet 768-991 */
/* The desktop search column is hidden here and the tablet one takes over.
   common.js reads `.search_text--desktop:visible` first and falls through, so
   exactly one of the three fields must be visible at any width. */

@media (min-width: 768px) and (max-width: 991px) {
  .fn-ui .fn-toolsbar {
    flex-wrap: wrap;
    gap: var(--fn-space-2);
  }

  /* The tablet field takes its own full-width line. At 38% it sat marooned in
     the middle of the row with the filters wrapped underneath anyway. */
  .fn-ui .fn-toolsbar > div[class*="col-sm-5"] {
    flex: 1 1 100%;
    width: 100%;
  }

  .fn-ui .fn-toolsbar > .header-fund-filters-col {
    flex: 1 1 100%;
    width: 100%;
    border-inline-start: 0;
  }

  .fn-ui .fn-toolsbar > .search-header-col,
  .fn-ui .fn-toolsbar > div[class*="col-sm-5"] {
    border-inline-end: 0;
    border-bottom: 1px solid var(--fn-border);
    max-width: none;
    flex: 1 1 100%;
  }

  .fn-ui .fn-dd__label {
    font-size: 9px;
  }

  .fn-ui .fn-dd__value {
    font-size: var(--fn-fs-xs);
  }

  .fn-ui .fn-brandbar > .logo img {
    height: 78px;
  }

  .fn-ui .fn-brandbar > .logo img.fn-logo--light,
  .fn-ui .fn-brandbar > .logo img.fn-logo--dark {
    width: auto;
    height: 78px;
  }

  /* Seven items do not fit on one line at this width. Scrolling keeps the band
     one row high; wrapping doubled its height and pushed the page down. */
  .fn-ui .fn-navbar .navbar-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fn-ui .fn-navbar .navbar-nav::-webkit-scrollbar { height: 0; }

  .fn-ui .fn-navbar .nav > li > a,
  .fn-ui .fn-navbar .navbar-nav > li > a {
    padding: 0 var(--fn-space-2);
    font-size: var(--fn-fs-sm);
  }

  .fn-ui .fn-navbar .nav > li > a:hover,
  .fn-ui .fn-navbar .navbar-nav > li > a:hover,
  .fn-ui .fn-navbar .navbar-nav > .active > a {
    padding: 0 var(--fn-space-2);
  }
}


/* ================================================ §8  FOCUS, MOTION, PRINT */

/* A visible focus ring is required on the green band as well as on white, so
   the colour flips with the surface rather than being fixed. */
.fn-ui .header a:focus-visible,
.fn-ui .header button:focus-visible,
.fn-ui .header select:focus-visible,
.fn-ui .header input:focus-visible,
.fn-ui .fn-rail a:focus-visible,
.fn-ui .mobile-search-row a:focus-visible,
.fn-ui .mobile-search-row button:focus-visible {
  outline: var(--fn-focus-width) solid var(--fn-focus);
  outline-offset: var(--fn-focus-offset);
  border-radius: var(--fn-radius-sm);
}

/* Only above 768 is the nav band green; below that it is a plain surface and
   the default (dark) ring is the readable one. */
@media (min-width: 768px) {
  .fn-ui .fn-navband a:focus-visible,
  .fn-ui .fn-navband button:focus-visible {
    outline-color: var(--fn-focus-invert);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fn-ui .header *,
  .fn-ui .fn-rail *,
  .fn-ui .mobile-search-row * {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* ========================================================== §7  A11Y MENU
   Modern floating launcher + panel. Overrides the black niqqud strip from
   template.css and stops #acc_box from eating a header row. */

.fn-ui #accessbility_hdm {
  display: none !important;
}

.fn-ui .header #acc_box {
  position: fixed;
  left: 12px;
  bottom: 16px;
  top: auto;
  right: auto;
  z-index: var(--fn-z-overlay);
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.fn-ui .header #acc_box > * {
  pointer-events: auto;
}

.fn-ui .fn-a11y-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.fn-ui .fn-a11y-hide {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fn-control-border);
  border-radius: 50%;
  background: var(--fn-control-bg);
  box-shadow: 0 1px 4px rgba(14, 20, 16, 0.16);
  color: var(--fn-text-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fn-ui .fn-a11y-hide:hover,
.fn-ui .fn-a11y-hide:focus {
  outline: none;
  color: var(--fn-text-1);
  border-color: var(--fn-text-2);
}

.fn-ui .fn-a11y-hide:focus-visible {
  outline: var(--fn-focus-width, 2px) solid var(--fn-focus);
  outline-offset: 2px;
}

.fn-ui .fn-a11y-hide__icon {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
}

.fn-ui .fn-a11y-hide__icon::before,
.fn-ui .fn-a11y-hide__icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: currentColor;
}

.fn-ui .fn-a11y-hide__icon::before { transform: rotate(45deg); }
.fn-ui .fn-a11y-hide__icon::after { transform: rotate(-45deg); }

.fn-ui .fn-a11y-launch,
.fn-ui #accessbility_hd.fn-a11y-launch {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--fn-control-border);
  border-radius: var(--fn-radius-pill);
  background: var(--fn-control-bg);
  box-shadow: var(--fn-fab-shadow);
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  font-size: 13px;
  font-weight: var(--fn-fw-semibold);
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms var(--fn-ease), box-shadow 180ms var(--fn-ease),
              border-color 180ms var(--fn-ease), background-color 180ms var(--fn-ease);
}

.fn-ui .fn-a11y-launch:hover,
.fn-ui .fn-a11y-launch:focus,
.fn-ui #accessbility_hd.fn-a11y-launch:hover,
.fn-ui #accessbility_hd.fn-a11y-launch:focus {
  outline: none;
  border-color: var(--fn-brand);
  background: var(--fn-control-bg);
  color: var(--fn-text-1);
  box-shadow: var(--fn-fab-shadow), 0 0 0 3px rgba(103, 203, 53, 0.2);
  transform: translateY(-1px);
}

.fn-ui .fn-a11y-launch[aria-expanded="true"] {
  border-color: var(--fn-brand);
  box-shadow: 0 0 0 3px rgba(103, 203, 53, 0.22);
}

.fn-ui .fn-a11y-launch__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a2.2 2.2 0 1 1 0 4.4A2.2 2.2 0 0 1 12 2zm-5.8 6.2h11.6c.7 0 1.2.6 1.1 1.3l-1.2 9.4a1.6 1.6 0 0 1-1.6 1.4H9.9a1.6 1.6 0 0 1-1.6-1.4L7.1 9.5c-.1-.7.4-1.3 1.1-1.3zM4.8 11.4h14.4a1 1 0 1 1 0 2H4.8a1 1 0 1 1 0-2z'/%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'%3E%3Cpath fill='%23000' d='M12 2a2.2 2.2 0 1 1 0 4.4A2.2 2.2 0 0 1 12 2zm-5.8 6.2h11.6c.7 0 1.2.6 1.1 1.3l-1.2 9.4a1.6 1.6 0 0 1-1.6 1.4H9.9a1.6 1.6 0 0 1-1.6-1.4L7.1 9.5c-.1-.7.4-1.3 1.1-1.3zM4.8 11.4h14.4a1 1 0 1 1 0 2H4.8a1 1 0 1 1 0-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fn-ui .fn-a11y-launch__label {
  letter-spacing: 0.01em;
}

/* Docked = peeks from the left edge. Israeli accessibility rules require the
   control to stay reachable, so X never deletes it — it tucks to a tab. */
html[data-fn-a11y-dock="1"] .fn-ui .header #acc_box,
.fn-ui .header #acc_box.is-docked {
  left: 0;
}

html[data-fn-a11y-dock="1"] .fn-ui .fn-a11y-hide,
.fn-ui .header #acc_box.is-docked .fn-a11y-hide {
  display: none;
}

html[data-fn-a11y-dock="1"] .fn-ui .fn-a11y-launch,
html[data-fn-a11y-dock="1"] .fn-ui #accessbility_hd.fn-a11y-launch,
.fn-ui .header #acc_box.is-docked .fn-a11y-launch {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-left: 0;
  border-radius: 0 22px 22px 0;
  transform: none;
  box-shadow: 0 6px 18px -10px rgba(14, 20, 16, 0.4);
}

html[data-fn-a11y-dock="1"] .fn-ui .fn-a11y-launch:hover,
html[data-fn-a11y-dock="1"] .fn-ui .fn-a11y-launch:focus,
html[data-fn-a11y-dock="1"] .fn-ui #accessbility_hd.fn-a11y-launch:hover,
html[data-fn-a11y-dock="1"] .fn-ui #accessbility_hd.fn-a11y-launch:focus,
.fn-ui .header #acc_box.is-docked .fn-a11y-launch:hover,
.fn-ui .header #acc_box.is-docked .fn-a11y-launch:focus {
  transform: none;
}

html[data-fn-a11y-dock="1"] .fn-ui .fn-a11y-launch__label,
.fn-ui .header #acc_box.is-docked .fn-a11y-launch__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* The launcher's dark look (raised fill, deeper shadow) comes from the
   --fn-control-bg and --fn-fab-shadow tokens. A dark-theme rule here used to
   outweigh :hover, so in Dark the button did not react to the mouse. */

.fn-ui #accessbility.fn-a11y-panel,
.fn-ui .fn-a11y-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  top: auto;
  width: min(292px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--fn-border);
  border-radius: var(--fn-radius-lg);
  background: var(--fn-bg-surface);
  box-shadow: 0 18px 40px -18px rgba(14, 20, 16, 0.55),
              0 1px 0 rgba(14, 20, 16, 0.06);
  color: var(--fn-text-1);
  font-family: var(--fn-font-ui);
  font-size: 13px;
  font-weight: var(--fn-fw-regular);
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}

:root[data-fn-theme="dark"] .fn-ui #accessbility.fn-a11y-panel {
  background: var(--fn-bg-raised);
  border-color: var(--fn-border);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.75);
}

.fn-ui .fn-a11y-panel .acc_text_hd,
.fn-ui .fn-a11y-panel__title {
  margin: 0 0 10px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--fn-border);
  color: var(--fn-text-1);
  font-size: 15px;
  font-weight: var(--fn-fw-semibold);
  letter-spacing: 0.01em;
}

.fn-ui .fn-a11y-panel .acc_text_box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 8px;
  border-radius: var(--fn-radius-md);
  background: var(--fn-bg-sunken);
  border: 0;
}

:root[data-fn-theme="dark"] .fn-ui .fn-a11y-panel .acc_text_box {
  background: rgba(255, 255, 255, 0.04);
}

.fn-ui .fn-a11y-panel .acc_text_box h4 {
  flex: 1 0 100%;
  margin: 0 0 2px;
  padding: 0;
  color: var(--fn-text-3);
  font-size: 11px;
  font-weight: var(--fn-fw-semibold);
  letter-spacing: 0.04em;
  text-transform: none;
}

.fn-ui .fn-a11y-panel .acc_text_box > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--fn-radius-pill);
  border: 1px solid var(--fn-border);
  background: var(--fn-bg-surface);
  color: var(--fn-text-2) !important;
  font-size: 12px;
  font-weight: var(--fn-fw-medium);
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 160ms var(--fn-ease), color 160ms var(--fn-ease),
              background-color 160ms var(--fn-ease);
}

.fn-ui .fn-a11y-panel .acc_text_box > a:hover,
.fn-ui .fn-a11y-panel .acc_text_box > a:focus {
  border-color: var(--fn-brand);
  color: var(--fn-brand) !important;
  background: rgba(103, 203, 53, 0.1);
  outline: none;
}

.fn-ui .fn-a11y-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  background: transparent !important;
  padding-inline: 2px !important;
}

.fn-ui .fn-a11y-panel__actions .repAcc {
  color: var(--fn-text-3) !important;
  font-size: 12px;
  text-decoration: underline;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.fn-ui .fn-a11y-panel .cancel_btn,
.fn-ui .fn-a11y-panel #button-cancelAll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--fn-radius-pill);
  background: var(--fn-text-1);
  color: var(--fn-bg-surface);
  font-family: var(--fn-font-ui);
  font-size: 12px;
  font-weight: var(--fn-fw-semibold);
  cursor: pointer;
}

.fn-ui .fn-a11y-panel .cancel_btn:hover,
.fn-ui .fn-a11y-panel .cancel_btn:focus {
  opacity: 0.9;
  outline: none;
}

.fn-ui .fn-a11y-panel__footer,
.fn-ui .fn-a11y-panel .acc_link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 0;
  padding: 8px 2px 0;
  border-top: 1px solid var(--fn-border);
  float: none;
}

.fn-ui .fn-a11y-panel__footer a,
.fn-ui .fn-a11y-panel .acc_link a {
  float: none !important;
  color: var(--fn-text-3) !important;
  font-size: 12px;
  text-decoration: none;
}

.fn-ui .fn-a11y-panel__footer a:hover,
.fn-ui .fn-a11y-panel .acc_link a:hover {
  color: var(--fn-brand) !important;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .fn-ui .header #acc_box {
    left: 10px;
    bottom: 12px;
  }

  html[data-fn-a11y-dock="1"] .fn-ui .header #acc_box,
  .fn-ui .header #acc_box.is-docked {
    left: 0;
  }

  .fn-ui .fn-a11y-launch__label {
    /* Keep a short label — icon-only was too easy to miss. */
    display: inline;
  }
}

@media print {
  .fn-ui .fn-toolsbar,
  .fn-ui .fn-navband,
  .fn-ui .fn-rail,
  .fn-ui .mobile-search-row,
  .fn-ui .header #acc_box {
    display: none !important;
  }
  .fn-ui .header {
    border-bottom: 1px solid #000;
    background: #fff !important;
  }
  .fn-ui .header::after {
    display: none;
  }
}

/* --------------------------------------------------- §6.1  narrow phones ---
   The wordmark is sized to the gap between hamburger+markets and the tools,
   then shifted toward the narrower tool side so both gutters stay equal.

   This used to give up at 374px and drop the theme toggle into the drawer,
   which meant a 360px phone — the floor of what people actually carry — lost
   a top-level control. Trimming the controls (36 / 26 / 26 / 26 instead of
   40 / 28 / 28 / 28) bought back the 10px that needed, so all three tools now
   survive down to 360px and only the genuinely tiny 320–359 band falls back
   to two. The body comment further up always said ≤359; the query had
   drifted to 374. They agree again. */

@media (max-width: 359px) {
  .fn-ui .fn-navbar .fn-bar-end .fn-theme-toggle--bar {
    display: none !important;
  }

  /* Theme toggle is gone, so the tool cluster is one 30px button narrower.
     Shift matches (start 112 − end 60) / 2. */
  .fn-ui .fn-navbar .navbar-header {
    transform: translateX(calc(-50% - 26px));
  }

  .fn-ui .fn-navbar .navbar-brand {
    width: min(179px, calc(100vw - 204px));
  }
}

@media (min-width: 360px) and (max-width: 374px) {
  /* 8px container pad instead of 12. Clusters unchanged, so the 11px shift stays. */
  .fn-ui .fn-navbar .navbar-brand {
    width: min(179px, calc(100vw - 234px));
  }
}

@media (max-width: 374px) {
  .fn-ui .fn-navband > .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .fn-ui .fn-railband > .container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Keep the search field usable — icon-only advanced on the tightest phones. */
  .fn-ui .mobile-search-advanced {
    width: 34px;
    padding: 0;
    gap: 0;
  }

  .fn-ui .mobile-search-advanced__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}/* ------------------------------------------------- §6.2  drawer plumbing --
   Kept out of the main mobile block: `hidden` must win over author display:flex,
   and a few asset/a11y fixes that are easy to lose in the larger sheet. */

@media (max-width: 767px) {
  .fn-ui #navbar.fn-drawer[hidden],
  .fn-ui .fn-drawer-scrim[hidden] {
    display: none;
  }

  /* the dialog receives focus on open; it should not paint a ring for it */
  .fn-ui .fn-drawer:focus { outline: none; }

  /* the desktop-only social block never belongs in the drawer */
  .fn-ui #navbar.fn-drawer .plNone { display: none !important; }

  /* 320px: slightly tighter horizontal padding so the panel does not dominate */
  @media (max-width: 360px) {
    .fn-ui #navbar.fn-drawer {
      width: min(92vw, 300px);
    }

    .fn-ui .fn-drawer__head,
    .fn-ui #navbar.fn-drawer .nav > li > a,
    .fn-ui #navbar.fn-drawer .navbar-nav > li > a,
    .fn-ui .fn-drawer__foot,
    .fn-ui #navbar.fn-drawer .webViewBox {
      padding-left: var(--fn-space-3);
      padding-right: var(--fn-space-3);
    }
  }
}

/* Scroll lock. Fixing <body> (rather than overflow:hidden) is what holds the
   scroll position on iOS Safari; the controller stores and restores the offset.
   `.fn-ui` and `.fn-nav-open` are both on <body>. */
.fn-ui.fn-nav-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .fn-ui #navbar.fn-drawer,
  .fn-ui .fn-drawer-scrim {
    transition: none;
  }
}

/* §8 sticky compact rules live in 13-header-sticky.css and are loaded via
   ResolveUrl (same host as the page). Do not re-add them here under
   editableFileUrl/CDN — a missing CDN copy made the sticky feature a no-op
   on real iPhones while the rest of the header (already on CDN) still worked. */
