/* The header is the logo and one round menu button, as in the design proposal of
 * November 2026. The button opens the whole navigation as a full-window panel at
 * every width. Without JavaScript the button is a link to the panel's fragment and
 * :target opens it, so the navigation is never out of reach. */
:root {
  /* The panel's two surfaces. The box is the brand ice blue and the pane inside
   * it one step darker, so the chosen section reads as a layer. */
  --nav-box: #EDF1F9;
  --nav-pane: #DCE4F3;
  --nav-card: #EDF1F9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nav-box: hsl(227 28% 15%);
    --nav-pane: hsl(227 26% 20%);
    --nav-card: hsl(227 28% 15%);
  }
}
:root[data-theme="dark"] {
  --nav-box: hsl(227 28% 15%);
  --nav-pane: hsl(227 26% 20%);
  --nav-card: hsl(227 28% 15%);
}

.nav-skip {
  position: absolute;
  z-index: 100;
  left: 1rem;
  top: .5rem;
  padding: .65rem 1rem;
  min-height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}
.nav-skip:focus { transform: none; }

/* The header scrolls away with the page; the menu button stays in the top right
 * corner of the window, so the navigation is one press away at any depth. */
header.site.nav-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 40;
  max-width: none;
  min-height: 5.5rem;
  padding: 1.5rem max(var(--gutter), calc((100% - var(--content)) / 2)) .75rem;
  background: transparent;
}
/* On the home page the header lies over the navy hero. */
header.site.nav-header.nav-over-hero { position: absolute; top: 0; left: 0; right: 0; }
html { scroll-padding-top: 2rem; }
header.site.nav-header [hidden] { display: none !important; }
.nav-brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 104px; margin-right: auto; }
/* Drawn over the open panel, so the logo heads the menu and a keyboard reader who
 * tabs back to it can see where focus is. */
.nav-brand { position: relative; z-index: 55; }
.nav-brand img { display: block; width: 104px; height: 36px; object-fit: contain; }
.nav-brand .nav-logo-light { display: none; }
/* The wordmark is the brand dark blue, which does not read on navy: over the hero,
 * and on the dark theme, the light version is drawn instead. An open panel is
 * light again, so the dark version returns. */
.nav-over-hero:not([data-open="true"]) .nav-brand:has(.nav-logo-light) .nav-logo { display: none; }
.nav-over-hero:not([data-open="true"]) .nav-brand .nav-logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-brand:has(.nav-logo-light) .nav-logo { display: none; }
  :root:not([data-theme="light"]) .nav-brand .nav-logo-light { display: block; }
}
:root[data-theme="dark"] .nav-brand:has(.nav-logo-light) .nav-logo { display: none; }
:root[data-theme="dark"] .nav-brand .nav-logo-light { display: block; }

/* The round button. Its colours are fixed, not themed: it is a light disc with navy
 * lines over the navy hero, over the light page and over the open panel alike. */
.nav-menu-toggle, .nav-menu-link {
  position: fixed;
  z-index: 60;
  top: 1.65rem;
  right: max(var(--gutter), calc((100% - var(--content)) / 2));
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  /* #DCE4F3 at the edge keeps the disc visible on the light page as well as on navy. */
  background: linear-gradient(160deg, rgb(237 241 249 / .95), rgb(220 228 243 / .9));
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 2px 10px rgb(24 29 47 / .12);
  color: #181D2F;
  cursor: pointer;
  text-decoration: none;
}
.nav-menu-toggle:hover, .nav-menu-link:hover { background: #fff; text-decoration: none; }
.nav-menu-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.nav-burger, .nav-burger::before, .nav-burger::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #181D2F;
  position: relative;
}
.nav-burger::before, .nav-burger::after { content: ""; position: absolute; left: 0; }
.nav-burger::before { top: -6px; }
.nav-burger::after { top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-burger, .nav-burger::before, .nav-burger::after { transition: transform .3s, background-color .3s; }
}
/* Open: the three lines become a cross. */
.nav-menu-toggle[aria-expanded="true"] .nav-burger { background: transparent; }
.nav-menu-toggle[aria-expanded="true"] .nav-burger::before { transform: translateY(6px) rotate(45deg); }
.nav-menu-toggle[aria-expanded="true"] .nav-burger::after { transform: translateY(-6px) rotate(-45deg); }
/* The link stands in for the button until the script has run, and for good if it
 * never does. Once the button works, the link stands down. */
.nav-enhanced .nav-menu-link, .nav-enhanced .nav-close-link { display: none; }

/* ---------------------------------------------------------------- the panel */

header.site.nav-header > .nav-primary {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  padding: 5.5rem max(1rem, calc((100% - 77.5rem) / 2)) 2rem;
}
/* Closed until asked for: by the script through [hidden], or without it through
 * the fragment the menu link points at. */
.nav-header:not(.nav-enhanced) > .nav-primary:not(:target) { display: none; }
html.nav-open { overflow: hidden; }

.nav-box {
  position: relative;
  background: var(--nav-box);
  border-radius: 40px;
  padding: 2.5rem;
}
.nav-list, .nav-sublist, .nav-subsublist { list-style: none; margin: 0; padding: 0; }
.nav-section { display: flex; align-items: center; }
.nav-link, .nav-sublink {
  color: var(--ink);
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.nav-link {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1.2;
  padding: .7rem 1rem;
}
.nav-link:hover, .nav-sublink:hover { color: var(--link); text-decoration: none; }
.nav-link[aria-current="page"], .nav-sublink[aria-current="page"],
.nav-subsublist a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-disclosure {
  appearance: none;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  padding: .5rem;
}
.nav-disclosure:hover { background: var(--nav-pane); }
.nav-disclosure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-disclosure[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-panel { padding: .25rem 0 1rem; }
.nav-sublink { font-size: 1.05rem; line-height: 1.35; padding: .4rem 0; }
/* A family and the suites under it: the family is the heading of its group and the
 * suites are listed under it, set back and in the secondary colour. */
.nav-subgroup > .nav-sublink { font-family: var(--font-head); font-size: 1.2rem; }
.nav-subsublist { padding: 0 0 .5rem 1.25rem; }
.nav-subsublist a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: .2rem 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.3;
}
.nav-subsublist a:hover { color: var(--link); }

.nav-feature { margin-top: 1rem; display: grid; gap: 1rem; }
.nav-feature-card {
  display: grid;
  gap: .5rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--hero-ink, #181D2F);
  color: var(--on-dark);
}
.nav-feature-card:hover { text-decoration: none; }
.nav-feature-card:hover .nav-feature-title { text-decoration: underline; text-underline-offset: 4px; }
.nav-feature-card img { width: 100%; height: 8rem; object-fit: cover; border-radius: 10px; }
.nav-feature-title { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.35; color: var(--on-dark); }
.nav-feature-more { color: var(--on-dark); font-family: var(--font-head); font-size: .9rem; }

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
}
.nav-search {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: 0 1rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.1rem;
}
.nav-search:hover { color: var(--link); text-decoration: none; }
.nav-search svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.nav-cta { font-size: .9rem; padding: .6rem 1.35rem; white-space: nowrap; }
.nav-close-link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem;
  font-family: var(--font-head); color: var(--link);
}

.nav-header a:focus-visible, .nav-header button:focus-visible, .nav-skip:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- wide: rail and pane
 *
 * The sections are a rail on the left. The chosen section's links fill a pane to
 * its right. Before a section is chosen, the first one is shown, as the proposal
 * opens on Products. */
@media (min-width: 901px) {
  .nav-enhanced .nav-box {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    min-height: min(36rem, calc(100dvh - 8rem));
    padding: 2.5rem 2.5rem 2.5rem 1.5rem;
  }
  .nav-enhanced .nav-list { grid-column: 1; display: flex; flex-direction: column; gap: .25rem; }
  .nav-enhanced .nav-actions { grid-column: 1; flex-direction: column; align-items: flex-start; margin-top: 1rem; }
  .nav-enhanced .nav-section > .nav-link { flex: 1; }
  .nav-enhanced .nav-item > .nav-link, .nav-enhanced .nav-section {
    border-radius: 999px 0 0 999px;
    margin-right: -2.5rem;
    padding-right: 2.5rem;
  }
  .nav-enhanced .nav-item > .nav-link { padding-left: 1rem; }
  /* The chosen section joins the pane: same colour, rounded on the rail side. */
  .nav-enhanced .nav-has-children:has(> .nav-section > .nav-disclosure[aria-expanded="true"]) > .nav-section,
  .nav-enhanced .nav-list:not(:has(.nav-disclosure[aria-expanded="true"])) > .nav-has-children:first-child > .nav-section {
    background: var(--nav-pane);
  }
  .nav-enhanced .nav-panel {
    position: absolute;
    top: 2.5rem;
    bottom: 2.5rem;
    left: 16.5rem;
    right: 2.5rem;
    overflow-y: auto;
    background: var(--nav-pane);
    border-radius: 32px;
    padding: 1.5rem;
  }
  header.site.nav-header.nav-enhanced .nav-list:not(:has(.nav-disclosure[aria-expanded="true"])) > .nav-has-children:first-child > .nav-panel[hidden] {
    display: block !important;
  }
  /* Inside a pane, a section's links sit on cards: a card per family where a
   * section has families, one card of links where it has none. */
  .nav-enhanced .nav-sublist {
    background: var(--nav-card);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    columns: 2 14rem;
    column-gap: 2rem;
  }
  .nav-enhanced .nav-sublist > li { break-inside: avoid; }
  .nav-enhanced .nav-sublist.nav-sublist-groups {
    background: transparent;
    padding: 0;
    columns: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.25rem;
  }
  .nav-enhanced .nav-sublist-groups > li {
    background: var(--nav-card);
    border-radius: 20px;
    padding: 1.25rem 1.5rem 1rem;
  }
  .nav-enhanced .nav-sublist-groups > .nav-subgroup > .nav-sublink { font-size: 1.35rem; padding-top: 0; }
  .nav-enhanced .nav-panel:has(.nav-feature) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .nav-enhanced .nav-panel:has(.nav-feature)[hidden] { display: none; }
  .nav-enhanced .nav-panel:has(.nav-feature) .nav-sublist { columns: auto; }
  .nav-enhanced .nav-feature { margin: 0; }
  /* Resources: the themes card on the left, Broadcasts, Papers and Research
   * stacked beside it, so all four fit without scrolling the pane. */
  .nav-enhanced .nav-panel:has(.nav-feature) .nav-sublist-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .nav-enhanced .nav-panel:has(.nav-feature) .nav-sublist-groups > li:first-child { grid-row: span 3; }
  .nav-enhanced .nav-panel:has(.nav-feature) .nav-sublist-groups > li:not(:first-child) { padding: .9rem 1.25rem; }
  .nav-enhanced .nav-feature-card { min-height: 12rem; align-content: space-between; }
  /* A second card under the first takes the height of its own text. */
  .nav-enhanced .nav-feature-card + .nav-feature-card { min-height: 0; }
}

/* ---------------------------------------------------------------- narrow: one list */
@media (max-width: 900px) {
  header.site.nav-header { min-height: 4.75rem; padding-top: 1.1rem; }
  .nav-menu-toggle, .nav-menu-link { top: max(1rem, env(safe-area-inset-top, 0px)); right: 1rem; }
  header.site.nav-header > .nav-primary { padding: 4.75rem 0 0; }
  .nav-box { border-radius: 28px 28px 0 0; padding: 1.25rem 1.25rem 2rem; min-height: 100%; }
  .nav-item { border-bottom: 1px solid var(--nav-pane); }
  .nav-section > .nav-link { flex: 1; }
  .nav-link { min-height: 52px; padding: .75rem .25rem; font-size: 1.3rem; }
  .nav-panel { padding: 0 0 1rem .25rem; }
  .nav-sublist-groups > li { background: var(--nav-pane); border-radius: 18px; padding: 1rem 1.1rem .5rem; margin-bottom: .6rem; }
  .nav-feature { max-width: 28rem; }
  .nav-feature-card { grid-template-columns: 5rem 1fr; column-gap: .75rem; }
  .nav-feature-card img { grid-row: 1 / 3; height: 5rem; }
  .nav-feature-more { grid-column: 2; }
}

/* Without the script the panel, once opened, shows every section at once: columns
 * where there is room, one list where there is not. */
@media (min-width: 901px) {
  .nav-header:not(.nav-enhanced) .nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem 2rem;
  }
}

/* The page's first frame, before navigation.js has run. The inline script in the
 * head marks <html class="js"> before anything is drawn, so a browser that will run
 * the script draws the panel closed and the button in place. A browser with no
 * script never gets the class and keeps the link. */
.js .nav-header:not(.nav-enhanced) .nav-panel { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .nav-enhanced > .nav-primary:not([hidden]) { animation: nav-in .25s ease; }
}
@keyframes nav-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- section bar
 *
 * Inner pages carry a bar under the header: the pages of the section the reader is
 * in, and under them the suites of the current family. A sibling page or the next
 * level down is one click away without the full-window menu. Each row scrolls
 * sideways on a narrow screen; the page itself does not. */
.section-nav {
  padding: 0 max(var(--gutter), calc((100% - var(--content)) / 2));
  margin: 0 0 .5rem;
  font-family: var(--font-head);
  font-size: .95rem;
}
.section-nav-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.section-nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.section-nav li { margin: 0; }
.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.section-nav a:hover { color: var(--ink); text-decoration: none; }
.section-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.section-nav-home {
  font-weight: 600;
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
}
.section-nav .section-nav-home { color: var(--ink); }
.section-nav-sub { font-size: .88rem; gap: 1rem; }
.section-nav-sub ul { gap: .35rem; }
.section-nav-sub a { min-height: 40px; padding: 0 .8rem; border-radius: var(--radius-pill); border-bottom: 0; margin: .25rem 0; }
.section-nav-sub a:hover { background: var(--light-accent); }
.section-nav-sub a[aria-current] { background: var(--light-accent); }
.section-nav-row:last-child { border-bottom: 0; }
.section-nav-row:not(:last-child) + .section-nav-row, .section-nav-row:first-child:last-child { border-bottom: 1px solid var(--line); }
/* Where the bar is drawn, the visible breadcrumb repeats it, so it is left out.
 * The breadcrumb stays in the page's structured data for search engines. */
.section-nav ~ main .crumbs { display: none; }
@media (max-width: 900px) {
  .section-nav { font-size: .9rem; }
  .section-nav ul { gap: 1.1rem; }
  .section-nav-row { gap: 1rem; }
  .section-nav-home { padding-right: 1rem; }
}

/* ---------------------------------------------------------------- top bar
 *
 * Saiesha's design review, 23 November 2026. On every page but the home page, the
 * product family and module pages and the sector pages, a wide screen shows the
 * menu across a white header: the sections, a red Contact pill and a round search
 * button. A section's menu drops down under the header while the pointer is over
 * it. The section bar under the header pins to the top of the window. A phone
 * keeps the round menu button and the full-window menu. */
@media (min-width: 901px) {
  header.site.nav-header.nav-topbar {
    min-height: 0;
    padding-top: 1.75rem; padding-bottom: 1.25rem;
    background: var(--white);
  }
  .nav-topbar .nav-menu-toggle, .nav-topbar .nav-menu-link, .nav-topbar .nav-close-link { display: none !important; }
  header.site.nav-header.nav-topbar > .nav-primary,
  header.site.nav-header.nav-topbar > .nav-primary[hidden] {
    display: block !important; position: static; inset: auto; padding: 0; overflow: visible;
    background: none; z-index: auto;
  }
  .nav-topbar .nav-box,
  .nav-topbar.nav-enhanced .nav-box {
    display: flex; align-items: center; gap: 2rem; min-height: 0;
    padding: 0; background: none; border-radius: 0;
  }
  .nav-topbar .nav-list,
  .nav-topbar.nav-enhanced .nav-list,
  /* The first frame, before navigation.js has run, is the same row. The rule for
     a browser without the script (a grid of every section) stacked the menu
     items, so the header drew 272px tall and the page jumped up when the script
     ran: on every click from page to page (Saiesha, 27 November 2026). */
  .js .nav-topbar:not(.nav-enhanced) .nav-list { display: flex; flex-direction: row; align-items: center; gap: .25rem; }
  .nav-topbar .nav-item { border: 0; position: static; }
  .nav-topbar .nav-item:last-child:not(.nav-has-children) { display: none; } /* Contact: the pill says it */
  .nav-topbar .nav-section,
  .nav-topbar.nav-enhanced .nav-section,
  .nav-topbar.nav-enhanced .nav-item > .nav-link {
    margin: 0; padding: 0; border-radius: 0; background: none !important;
  }
  .nav-topbar .nav-link,
  .nav-topbar.nav-enhanced .nav-item > .nav-link {
    font-size: 1.0625rem; min-height: 44px; padding: .5rem .85rem; color: var(--ink-soft);
  }
  .nav-topbar .nav-link:hover, .nav-topbar .nav-item:hover .nav-link { color: var(--ink); }
  .nav-topbar .nav-link.nav-current { color: var(--ink); }
  .nav-topbar .nav-link[aria-current="page"] { text-decoration: none; }
  /* The open-and-close buttons stay for the keyboard, out of sight until focused. */
  .nav-topbar .nav-disclosure {
    position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; padding: 0;
    overflow: hidden; clip-path: inset(50%);
  }
  .nav-topbar .nav-disclosure:focus-visible {
    position: static; width: 28px; height: 28px; min-width: 28px; min-height: 28px; clip-path: none; overflow: visible;
  }
  /* The section's menu, dropped down under the header across the page width. */
  .nav-topbar .nav-panel,
  .nav-topbar.nav-enhanced .nav-panel {
    position: absolute; top: calc(100% - .5rem); bottom: auto;
    left: max(var(--gutter), calc((100% - var(--content)) / 2));
    right: max(var(--gutter), calc((100% - var(--content)) / 2));
    padding: 1.75rem; border-radius: 28px;
    background: var(--nav-box); box-shadow: 0 24px 48px -24px rgb(24 29 47 / .35);
    z-index: 70; overflow: visible;
  }
  /* A strip above the menu joins it to the header, so the pointer can travel
   * down to it without leaving the section. */
  .nav-topbar .nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -1.5rem; height: 1.5rem; }
  .nav-topbar .nav-actions,
  .nav-topbar.nav-enhanced .nav-actions { flex-direction: row; align-items: center; margin: 0; gap: .75rem; }
  .nav-topbar .nav-cta { font-size: 1rem; padding: .6rem 2.25rem; }
  .nav-topbar .nav-search {
    width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%;
    background: #DCE4F3; color: #181D2F;
  }
  .nav-topbar .nav-search:hover { background: #CCD7ED; color: #181D2F; }
  .nav-topbar .nav-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* The section bar pins to the top of the window as the page scrolls. Its
 * background runs the width of the window, so nothing shows above or behind it.
 * The section's own name leads it; the page you are on is underlined in red. */
header.nav-topbar ~ .section-nav {
  position: sticky; top: 0; z-index: 45;
  background: var(--white);
  margin: 0 0 .5rem;
  font-size: 1.0625rem;
}
header.nav-topbar ~ .section-nav .section-nav-row { border-bottom: 1px solid var(--line); }
header.nav-topbar ~ .section-nav .section-nav-home { font-weight: 400; color: var(--ink-soft); }
header.nav-topbar ~ .section-nav a { color: #748392; }
header.nav-topbar ~ .section-nav a:hover { color: var(--ink); }
header.nav-topbar ~ .section-nav a[aria-current] { color: var(--ink); border-bottom-color: #ED4021; }
header.nav-topbar ~ .section-nav .section-nav-home[aria-current] { border-bottom-color: transparent; }
@media (max-width: 900px) {
  /* Clear of the round menu button in the corner. */
  header.nav-topbar ~ .section-nav { padding-right: 5rem; }
}
@media (min-width: 901px) {
  /* The menu drops down across the header, not across the list of sections. */
  .nav-topbar .nav-box { position: static; }
  /* Closed until the pointer is over its section: the full-window menu opens
   * on its first section, the top bar does not. */
  html header.site.nav-header.nav-enhanced.nav-topbar .nav-list > .nav-item.nav-has-children > .nav-panel.nav-panel[hidden][id] { display: none !important; }
}
/* The header, and the menu that drops from it, sit over the pinned section bar. */
header.site.nav-header.nav-topbar { z-index: 50; }
/* The section bar's text about 15% smaller than the main menu's, so it reads as
 * the second level (design review, 23 November 2026). */
header.nav-topbar ~ .section-nav { font-size: .9rem; }

/* The top bar stays at the top of the window on a wide screen, a little slimmer
 * once the page has scrolled, with the section bar pinned under it, so the menu
 * is always there (design review, 23 November 2026). */
@media (min-width: 901px) {
  header.site.nav-header.nav-topbar { position: sticky; top: 0; transition: padding .25s ease; }
  header.site.nav-header.nav-topbar.is-scrolled { padding-top: .75rem; padding-bottom: .6rem; }
  header.nav-topbar ~ .section-nav { top: var(--topbar-h, 0px); }
}

/* An icon beside each item of a dropdown, as on fna.fi (design review,
   23 November 2026). Items without one keep the space, so names line up. */
.nav-sublink { display: inline-flex; align-items: center; gap: .75rem; }
.nav-sublink::before {
  content: ""; flex: 0 0 40px; width: 40px; height: 40px;
  background: var(--nav-icon, none) center / contain no-repeat;
}
.nav-subgroup > .nav-subsublist { padding-left: calc(40px + .75rem); }
/* The icons, from fna.fi's own menus, trimmed so every drawing fills the same
   square (design review, 23 November 2026). National security takes the Counter
   Threat Finance icon, as fna.fi does; Sustainability takes the environment icon
   from its own page. Research and Media have none yet. */
.nav-sublink[href="/products/financial-crime/"] { --nav-icon: url("/assets/generated/financial-crime.c8985db7629c-160w.webp"); }
.nav-sublink[href="/products/liquidity/"] { --nav-icon: url("/assets/generated/liquidity.4701ca00aef3-160w.webp"); }
.nav-sublink[href="/products/suptech/"] { --nav-icon: url("/assets/generated/suptech.7c5b6835604a-160w.webp"); }
.nav-sublink[href="/products/agentic-payments/"] { --nav-icon: url("/assets/generated/agentic-payments.b91fe163b45e-512w.webp"); }
.nav-sublink[href="/research/"] { --nav-icon: url("/assets/generated/research.60514baa6389-512w.webp"); }
.nav-sublink[href="/sectors/central-banks/"] { --nav-icon: url("/assets/generated/central-banks.2b3373b2bad7-160w.webp"); }
.nav-sublink[href="/sectors/commercial-banks/"] { --nav-icon: url("/assets/generated/commercial-banks.326ea228f6d3-160w.webp"); }
.nav-sublink[href="/sectors/payment-systems/"] { --nav-icon: url("/assets/generated/payment-systems.5a42566ecbdb-160w.webp"); }
.nav-sublink[href="/sectors/national-security/"] { --nav-icon: url("/assets/generated/national-security.2ab490188a4a-160w.webp"); }
.nav-sublink[href="/sectors/national-anti-scam-utilities/"] { --nav-icon: url("/assets/generated/anti-scam-utilities.95efa57e5cb7-160w.webp"); }
.nav-sublink[href="/insights/"] { --nav-icon: url("/assets/generated/news.279a949e1ac2-160w.webp"); }
.nav-sublink[href="/all-fna-broadcasts/"] { --nav-icon: url("/assets/generated/broadcasts.664722472027-160w.webp"); }
.nav-sublink[href="/fna-papers/"] { --nav-icon: url("/assets/generated/papers.499fbabab9cc-160w.webp"); }
.nav-sublink[href="/about-fna/"] { --nav-icon: url("/assets/generated/about.d9646be89f0e-160w.webp"); }
.nav-sublink[href="/careers/"] { --nav-icon: url("/assets/generated/careers.f79c55ab49bb-160w.webp"); }
.nav-sublink[href="/sustainability/"] { --nav-icon: url("/assets/generated/sustainability.bc40c2a074cf-160w.webp"); }
.nav-sublink[href="/media/"] { --nav-icon: url("/assets/generated/media.0f87191cbe7b-160w.webp"); }

/* Every heading in a dropdown the same size and face, with or without links
   under it; the links under a heading a step smaller (design review,
   23 November 2026). */
header.site.nav-header.nav-topbar .nav-panel .nav-sublink {
  font-family: var(--font-head); font-size: .9375rem; line-height: 1.35; font-weight: 400; color: var(--ink);
}
header.site.nav-header.nav-topbar .nav-panel .nav-subsublink { font-size: .875rem; }

/* The same sizes in the full-window menu (sector and product pages, and narrow
   screens): every heading Exo at 15px, the links under one 14px, the section
   names a step larger (design review, 23 November 2026). */
header.site.nav-header .nav-panel .nav-sublink,
header.site.nav-header.nav-enhanced .nav-sublist-groups > .nav-subgroup > .nav-sublink {
  font-family: var(--font-head); font-size: .9375rem; line-height: 1.35; font-weight: 400; color: var(--ink);
}
header.site.nav-header .nav-panel .nav-subsublink { font-size: .875rem; }
header.site.nav-header:not(.nav-topbar) .nav-item > .nav-link,
header.site.nav-header:not(.nav-topbar) .nav-section > .nav-link { font-size: 1.125rem; }

/* The menu's featured cards (design review, 24 November 2026): a card with no
   picture is one column, its title above Read more, never side by side; the
   cards run the panel's width like the boxes above them, on a #32475F to
   #181D2F gradient. */
.nav-feature { max-width: none !important; }
.nav-feature-card {
  display: flex !important; flex-direction: column; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; border-radius: 20px;
  background: linear-gradient(135deg, #32475F 0%, #181D2F 100%) !important;
}
.nav-feature-card:has(img) { display: grid !important; }
.nav-feature-card .nav-feature-title { overflow-wrap: anywhere; }
.nav-feature-card .nav-feature-more { grid-column: auto; }

/* The full-window menu on a narrower screen (design review, 24 November 2026):
   the featured cards go under the section's boxes rather than beside them, so
   no box is squeezed, and a heading wraps inside its box rather than past it. */
.nav-sublink { max-width: 100%; min-width: 0; }
@media (min-width: 901px) and (max-width: 1439px) {
  .nav-enhanced .nav-panel:has(.nav-feature) { grid-template-columns: minmax(0, 1fr); }
  .nav-enhanced .nav-panel:has(.nav-feature) .nav-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
  .nav-enhanced .nav-panel:has(.nav-feature) .nav-feature-card { min-height: 0; }
}

/* The full-window menu on a wide screen with its sections across the top
   (Saiesha, 25 November 2026): Products, Sectors, Resources, Company and Contact
   in one row, search and Get in touch at its right end, and the chosen section's
   pane under the row, the full width of the menu. Pages with the top bar are
   not affected: their sections are already across the top. */
@media (min-width: 901px) {
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-box {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-content: start;
    column-gap: 1.5rem;
    padding: 1.75rem 2.5rem 2.5rem;
    /* Tall enough for the tallest pane (Resources), no taller. */
    min-height: min(32.5rem, calc(100dvh - 8rem));
  }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-list {
    grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .25rem;
  }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-actions {
    grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; margin: 0; gap: .75rem;
  }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-item > .nav-link,
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-section {
    border-radius: 999px; margin-right: 0; padding-right: .5rem;
  }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-item > .nav-link { padding-right: 1rem; }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-section > .nav-link { flex: none; }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-panel {
    top: 5.75rem; left: 2.5rem; right: 2.5rem; bottom: 2.5rem;
  }
}
@media (min-width: 901px) {
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-list { flex-wrap: nowrap; }
}
/* On a narrower wide screen the row stays one line: smaller words, tighter
   pills, and the search button shows its icon only. */
@media (min-width: 901px) and (max-width: 1199px) {
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-box { padding-left: 1.75rem; padding-right: 1.75rem; column-gap: 1rem; }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-list { gap: 0; }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-link { font-size: 1.0625rem; }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-item > .nav-link { padding-left: .75rem; padding-right: .75rem; }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-section > .nav-link { padding-left: .75rem; }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-panel { left: 1.75rem; right: 1.75rem; }
}
@media (min-width: 901px) and (max-width: 1439px) {
  /* The featured cards stack under the links here, so the pane needs more height. */
  header.site.nav-header.nav-enhanced:not(.nav-topbar) .nav-box { min-height: min(38.5rem, calc(100dvh - 8rem)); }
}

/* The two cards in a menu are the same height (Saiesha, 26 November 2026). */
@media (min-width: 901px) {
  .nav-enhanced .nav-panel:has(.nav-feature) .nav-feature { grid-auto-rows: 1fr; align-self: start; }
  .nav-enhanced .nav-feature-card, .nav-enhanced .nav-feature-card + .nav-feature-card { min-height: 0; align-content: space-between; }
  /* Thinner cards (Saiesha, 26 November 2026): less padding and space inside;
     both stay the height of the taller one. */
  .nav-enhanced .nav-feature-card { padding: .9rem 1.25rem; gap: .6rem; }
}

/* The menu's dropdown panels stay hidden until the menu script has taken over.
 * The top bar's own panel rules are stronger than the general one above, so
 * the four panels showed for an instant on every page load before the script
 * hid them (Saiesha, 27 November 2026). */
html.js header.site.nav-header:not(.nav-enhanced) .nav-panel { display: none !important; }
