:root {
  --navy: #002d5d;
  --navy-700: #013a76;
  --navy-050: #eef3f9;
  --orange: #f98e2b;
  --orange-050: #fff3e6;

  --ink: #1c2530;
  --muted: #5b6472;
  --faint: #8a93a1;
  --line: #e3e7ee;
  --line-soft: #eef1f6;
  --bg: #ffffff;
  --bg-warm: #f7f8fa;
  --bg-panel: #fbfcfd;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16, 30, 54, 0.06), 0 6px 24px rgba(16, 30, 54, 0.06);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sci { font-family: var(--serif); font-style: italic; }

/* ---------- Top bar (institutional white, co-branded, sticky + shrink-on-scroll) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 1px 3px rgba(16, 30, 54, 0.05);
  transition: box-shadow .2s ease;
}
.topbar.scrolled { box-shadow: 0 4px 16px rgba(16, 30, 54, 0.1); }
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  transition: padding .22s ease;
}
.topbar.scrolled .topbar__inner { padding: 10px 24px; }

/* Tool identity (left) — AAPFCO Tools lockup: emblem + AAPFCO/TOOLS anchor · divider · tool name */
.topbar__brand {
  --seal-gold: #c0892c;
  --reg-ink: #17263f;
  --lock-divider: #c9c1ae;
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0; text-decoration: none;
}
.topbar__brand:hover { text-decoration: none; }

/* Platform anchor: emblem + AAPFCO wordmark */
.topbar__emblem {
  height: 46px; width: auto; display: block; flex-shrink: 0;
  transition: height .22s ease;
}
.topbar.scrolled .topbar__emblem { height: 30px; }
.topbar__anchor-name {
  font-family: "Archivo", var(--sans);
  font-weight: 800; font-size: 20px; line-height: 1;
  letter-spacing: 0.005em; color: #000;
  transition: font-size .22s ease;
}
.topbar.scrolled .topbar__anchor-name { font-size: 15px; }

/* Divider */
.topbar__lockdiv {
  width: 1.5px; height: 40px; background: var(--lock-divider); flex-shrink: 0;
  transition: height .22s ease;
}
.topbar.scrolled .topbar__lockdiv { height: 28px; }

/* Swappable tool name */
.topbar__toolname {
  font-family: "Archivo", var(--sans);
  font-weight: 700; font-size: 20px; line-height: 1.05;
  letter-spacing: -0.01em; color: var(--reg-ink);
  max-width: 15ch;
  transition: font-size .22s ease;
}
.topbar.scrolled .topbar__toolname { font-size: 16px; }

/* Partnership lockup (right) */
.topbar__partner {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;      /* Brand Maven logo centers in line with the left lockup */
  flex-shrink: 0;
}
.topbar__partner-label {
  position: absolute;        /* floated above the logo, out of the flow */
  bottom: calc(100% + 3px);
  right: 0;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}
.topbar.scrolled .topbar__partner-label { display: none; }
.topbar__partner-logos {
  display: flex; align-items: center; gap: 22px;
}

/* Brand Maven */
.topbar__bm { display: flex; align-items: center; }
.topbar__partner-logo {
  height: 46px; width: auto; display: block;
  transition: height .22s ease;
}
.topbar.scrolled .topbar__partner-logo { height: 30px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 320px at 50% -80px, var(--navy-050), transparent),
    var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 24px 96px;
  text-align: center;
}
.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy-700);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 16px;
}
.hero__lede {
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Search (predictive) ---------- */
.search {
  position: relative;
  margin: 0;
  flex: 1; min-width: 0;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute; left: 16px; color: var(--faint);
  display: flex; pointer-events: none;
}
.search input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16.5px;
  padding: 15px 46px 15px 48px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.search input::placeholder { color: var(--faint); }
.search input:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px var(--orange-050), 0 1px 2px rgba(0, 0, 0, 0.18);
}
.search__clear {
  position: absolute; right: 12px;
  width: 28px; height: 28px; border: none; background: var(--bg-warm);
  border-radius: 50%; cursor: pointer; color: var(--muted);
  font-size: 18px; line-height: 1;
}
.search__clear:hover { background: var(--line); }

/* Predictive suggestions dropdown */
.search__suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: 340px; overflow-y: auto;
}
.search__suggest[hidden] { display: none; }
.suggest__item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.suggest__item.active,
.suggest__item:hover { background: var(--navy-050); }
.suggest__name {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--navy); font-weight: 500;
}
.suggest__name mark {
  background: var(--orange-050); color: inherit;
  border-radius: 3px; padding: 0 1px;
}
.suggest__meta {
  margin-left: auto; flex-shrink: 0;
  font-size: 11.5px; color: var(--faint);
  font-style: normal;
}
.suggest__empty { padding: 12px; color: var(--muted); font-size: 14px; }

.hero__stats {
  display: flex; justify-content: center; gap: 40px;
  margin: 30px 0 0;
}
.hero__stats div { text-align: center; }
.hero__stats dt {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--faint); margin-bottom: 2px;
}
.hero__stats dd {
  margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* ---------- Scope ---------- */
.scope {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  margin: 24px 0 4px;
  overflow: hidden;
  text-align: left;
}
.scope > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.scope > summary::-webkit-details-marker { display: none; }
.scope__label { font-weight: 600; font-size: 14.5px; color: var(--navy); }
.scope__label::before {
  content: "§"; color: var(--orange); font-weight: 700; margin-right: 8px;
}
.scope__hint {
  font-size: 12.5px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px;
}
.scope[open] .scope__hint::after { content: none; }
.scope[open] .scope__hint { display: none; }
.scope__body {
  padding: 4px 18px 18px;
  border-top: 1px solid var(--line-soft);
}
.scope__body p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.scope__body strong { color: var(--ink); }

/* ---------- Filters ---------- */
/* ---------- Explorer: one connected surface (search · filters · status · table) ---------- */
.explorer {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  overflow: hidden;
  margin-bottom: 28px;
}
.explorer > * + * { border-top: 1px solid var(--line-soft); }

/* Search band */
.explorer__search {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
}

/* Filter band */
.explorer__filters {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 16px;
}
.fn-row { display: flex; align-items: flex-start; gap: 12px; }
.alpha-row { display: flex; align-items: center; gap: 12px; }
.fn-row__label, .alpha-row__label {
  flex-shrink: 0; width: 58px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--faint);
}
.fn-row__label { padding-top: 7px; }

.chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips.collapsed { max-height: 34px; overflow: hidden; }
.chips-toggle {
  flex-shrink: 0; margin-top: 3px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer;
  color: var(--navy-700); font-family: var(--sans);
  font-size: 12.5px; font-weight: 600; padding: 5px 11px;
}
.chips-toggle[hidden] { display: none; }
.chips-toggle:hover { border-color: var(--navy); }
.chips-toggle__chev { transition: transform .18s ease; }
.chips-toggle[aria-expanded="true"] .chips-toggle__chev { transform: rotate(180deg); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.chip:hover { border-color: var(--navy); }
.chip__count {
  font-size: 11.5px; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.active .chip__count { color: #b9cbe0; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Slim, low-key A–Z strip: letters stretch to fill the row evenly */
.alpha { flex: 1; display: flex; gap: 3px; }
.alpha-btn {
  flex: 1 1 0; min-width: 0;
  height: 26px; border-radius: 5px;
  border: 1px solid transparent; background: transparent;
  font-size: 12px; font-weight: 500; color: var(--muted);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.alpha-btn:hover:not(:disabled) { background: var(--navy-050); color: var(--navy); }
.alpha-btn.active { background: var(--orange); border-color: var(--orange); color: #3a2100; font-weight: 700; }
.alpha-btn:disabled { color: var(--line); cursor: default; background: transparent; }

/* ---------- Command header (navy, reversed): search + filters read as one bold header ---------- */
.explorer__header { background: var(--navy); }
.explorer__header .explorer__search { padding: 16px; }
.explorer__header .explorer__filters { border-top: 1px solid rgba(255, 255, 255, 0.10); }
.explorer__header .fn-row__label,
.explorer__header .alpha-row__label { color: #a9bcd6; }

/* Function chips on navy */
.explorer__header .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #eaf1f8;
}
.explorer__header .chip:hover { border-color: rgba(255, 255, 255, 0.60); }
.explorer__header .chip__count { color: #a9bcd6; }
.explorer__header .chip__dot { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.explorer__header .chip.active {
  background: var(--orange); border-color: var(--orange); color: #3a2100;
}
.explorer__header .chip.active .chip__count { color: #6b3d00; }

/* "+N more" toggle on navy */
.explorer__header .chips-toggle {
  background: transparent; border-color: rgba(255, 255, 255, 0.30); color: #eaf1f8;
}
.explorer__header .chips-toggle:hover { border-color: rgba(255, 255, 255, 0.70); }

/* Slim A–Z on navy (active stays orange with dark text) */
.explorer__header .alpha-btn { color: #a9bcd6; }
.explorer__header .alpha-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.10); color: #fff; }
.explorer__header .alpha-btn.active { color: #3a2100; }
.explorer__header .alpha-btn:disabled { color: rgba(255, 255, 255, 0.22); background: transparent; }

/* ---------- Status band: live count + active filters ---------- */
.explorer__status {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 16px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--bg-panel);
}
.explorer__status-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.explorer__count { margin: 0; font-size: 13.5px; color: var(--muted); }
.explorer__count strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.explorer__status-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Status key — inline legend folded into the toolbar (left group). A leading
 * divider separates it from the result count. */
.status-key {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: 12px; color: var(--muted);
  padding-left: 14px; border-left: 1px solid var(--line);
}
.status-key__item { display: inline-flex; align-items: center; gap: 5px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; cursor: pointer; font-family: var(--sans);
  background: var(--navy); color: #fff;
  border-radius: 999px; padding: 4px 7px 4px 11px;
  font-size: 12px; font-weight: 500;
}
.active-filter:hover { background: var(--navy-700); }
.active-filter__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.active-filter__x { font-size: 15px; line-height: 1; opacity: .85; }
.btn-reset {
  border: none; background: none; color: var(--navy-700);
  font-size: 13px; cursor: pointer; font-weight: 600; padding: 4px 2px;
}
.btn-reset[hidden] { display: none; }
.btn-reset:hover { text-decoration: underline; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.sort select {
  font-family: var(--sans); font-size: 13px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); cursor: pointer;
}

/* ---------- Table (attached inside the explorer panel) ---------- */
.table-wrap { overflow-x: auto; }
.db-table { width: 100%; border-collapse: collapse; }
.db-table thead th {
  background: var(--navy-050);
  color: var(--navy);
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.col-go { width: 44px; }
.col-fn { width: 34%; }
.db-table tbody tr {
  border-top: 1px solid var(--line-soft);
  cursor: pointer;
}
.db-table tbody tr:first-child { border-top: none; }
/* Row tint flags non-official records at a glance. Placed before :hover so
 * the hover state (and the explicit :hover overrides below) still win. */
.db-table tbody tr.row--tentative { background: #fff3e6; }
.db-table tbody tr.row--review { background: #f3f5f8; }
.db-table tbody tr:hover { background: var(--navy-050); }
.db-table tbody tr.row--tentative:hover,
.db-table tbody tr.row--review:hover { background: var(--navy-050); }
.db-table tbody tr:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.db-table td { padding: 14px 18px; vertical-align: top; }

/* Status icon — now inline, immediately left of the name */
.status-ico { display: inline-flex; align-items: center; justify-content: center; }
.status-ico svg { display: block; }

.cell-name__head { display: flex; align-items: center; gap: 8px; }
.cell-name__head .status-ico { flex-shrink: 0; }
.cell-name__title { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--navy); font-weight: 500; }
.cell-aka { margin-top: 5px; margin-left: 24px; font-size: 12.5px; line-height: 1.55; }
.cell-aka__label {
  text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 10px; font-weight: 600; color: var(--faint);
  margin-right: 3px;
}
.aka-link {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--navy-700); cursor: pointer;
}
.aka-link:hover { text-decoration: underline; color: var(--navy); }
.aka-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
.aka-sep { color: var(--muted); }

.fn-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 3px 9px; border-radius: 6px;
  background: var(--bg-warm); color: var(--ink);
  border: 1px solid var(--line);
}
.tag__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.cell-go { text-align: right; color: var(--faint); }
.cell-go svg { display: inline-block; vertical-align: middle; }
.db-table tbody tr:hover .cell-go { color: var(--navy); }

.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; margin: 0; }

/* ---------- Status badge (modal) ---------- */
.modal__status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 2px; }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  background: var(--bg-warm); border: 1px solid var(--line);
}
.status-badge svg { display: block; }
.modal__status-note { font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ---------- Pager ---------- */
.pager {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; align-items: center;
  padding: 14px 16px;
}
.pager__btn {
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.pager__btn:hover:not(:disabled):not(.current) { border-color: var(--navy); background: var(--navy-050); }
.pager__btn.current { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.pager__btn:disabled { color: var(--line); cursor: default; }
.pager__ellipsis {
  min-width: 24px; height: 38px; border: none; background: none;
  color: var(--faint); cursor: default;
}

/* ---------- Methodology ---------- */
.methodology {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.methodology > h2 {
  font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--navy);
  margin: 0 0 18px;
}
.methodology__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.methodology__grid--two { grid-template-columns: repeat(2, 1fr); }
.methodology__grid--two p { font-size: 14px; }
.methodology__grid--two strong { color: var(--ink); }
.methodology__grid h3 {
  font-size: 14px; margin: 0 0 6px; color: var(--ink);
}
.methodology__grid p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 18, 38, 0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; overflow-y: auto; z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 620px; width: 100%;
  padding: 34px 36px 30px;
  position: relative;
  box-shadow: 0 24px 64px rgba(6, 18, 38, 0.34);
  border-top: 4px solid var(--orange);
}
.modal__close {
  position: absolute; top: 16px; right: 18px;
  width: 34px; height: 34px; border: none; background: none;
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--faint);
  border-radius: 8px;
}
.modal__close:hover { background: var(--bg-warm); color: var(--ink); }
.modal__eyebrow {
  margin: 0 0 6px; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--orange);
}
.modal h2 { margin: 0 0 6px; font-size: 27px; color: var(--navy); font-weight: 500; line-height: 1.15; }
.modal__aka { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.modal__aka .label { font-weight: 600; color: var(--ink); font-family: var(--sans); font-style: normal; }
.modal__aka .syn { font-family: var(--serif); font-style: italic; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }

.modal__section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--bg-panel);
}
.modal__section h3 {
  margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--navy);
}
.modal__claim p { margin: 0 0 7px; font-size: 15px; color: var(--ink); line-height: 1.55; }
.modal__claim p:last-child { margin-bottom: 0; }
.modal__notes { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.modal__notes-title { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.modal__notes ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.modal__notes li { margin-bottom: 4px; }
.modal__foot { margin: 16px 0 0; font-size: 12.5px; color: var(--faint); }

/* ---------- Footer (co-branded partnership) ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg-warm); }

.partnership {
  display: flex; align-items: center; justify-content: center; gap: 30px;
  padding: 38px 24px 6px;
}
.partnership__logo img { display: block; width: auto; }
.partnership__logo:first-child img { height: 82px; }
.partnership__logo--bm img { height: 40px; }
.partnership__x { font-size: 26px; color: var(--faint); font-weight: 300; }
.partnership__caption {
  text-align: center; margin: 0 0 8px; color: var(--muted);
  font-family: var(--serif); font-style: italic; font-size: 15px;
}

.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px;
  display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 34px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.footer-col h3 { margin: 0 0 8px; font-size: 14px; color: var(--navy); }
.footer-col p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.footer-link { font-size: 13px; font-weight: 600; color: var(--navy-700); }

.footer-suggest {
  display: inline-block; margin-bottom: 16px;
  font-size: 13px; font-weight: 600; color: var(--navy-700);
}
.subscribe label { display: block; font-size: 12.5px; color: var(--ink); font-weight: 500; margin-bottom: 6px; }
.subscribe__row { display: flex; gap: 8px; }
.subscribe__row input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 13px;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
.subscribe__row input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-050); }
.subscribe__row button {
  flex-shrink: 0; border: none; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 7px; cursor: pointer;
}
.subscribe__row button:hover { background: var(--navy-700); }
.subscribe__note { margin: 8px 0 0; font-size: 12.5px; color: var(--navy-700); }

.footer-legal {
  background: var(--navy); color: #b9cbe0;
}
.footer-legal__roles, .footer-legal__copy {
  max-width: var(--maxw); margin: 0 auto; padding: 4px 24px;
  font-size: 12.5px; line-height: 1.6;
}
.footer-legal__roles { padding-top: 20px; }
.footer-legal__roles strong { color: #fff; }
.footer-legal__copy { padding-bottom: 22px; color: #8ea6c2; }
.footer-legal a { color: #f2c79a; }

/* ---------- Update-notification card ---------- */
.notify-card {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 60;                      /* above topbar (50), below modal (100) */
  width: 344px; max-width: calc(100vw - 32px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(16, 30, 54, 0.18), 0 2px 8px rgba(16, 30, 54, 0.08);
  padding: 20px 20px 18px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none;
}
.notify-card[hidden] { display: none; }
.notify-card.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.notify-card__close {
  position: absolute; top: 8px; right: 10px;
  border: none; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--faint); padding: 4px;
}
.notify-card__close:hover { color: var(--ink); }

.notify-card__eyebrow {
  margin: 0 0 5px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--orange);
}
.notify-card__title {
  margin: 0 0 6px; font-family: "Archivo", var(--sans);
  font-size: 19px; font-weight: 700; color: var(--navy);
}
.notify-card__text { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.notify-card__row { display: flex; gap: 8px; }
.notify-card__row input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 13px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
.notify-card__row input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-050); }
.notify-card__row button {
  flex-shrink: 0; border: none; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 7px; cursor: pointer;
}
.notify-card__row button:hover { background: var(--navy-700); }
.notify-card__note { margin: 9px 0 0; font-size: 12.5px; color: var(--navy-700); }

@media (max-width: 520px) {
  .notify-card { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .notify-card { transition: opacity .2s ease; transform: none; }
  .notify-card.is-visible { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .methodology__grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 820px) {
  .topbar__emblem { height: 42px; }
  .topbar__anchor-name, .topbar__toolname { font-size: 18px; }
  .topbar__lockdiv { height: 36px; }
}
@media (max-width: 680px) {
  .explorer__search { flex-wrap: wrap; }
  .sort { margin-left: auto; }
  .fn-row, .alpha-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .fn-row__label, .alpha-row__label { width: auto; padding-top: 0; }
  .chips-toggle { align-self: flex-start; margin-top: 0; }
  .alpha { flex-wrap: wrap; }
  .alpha-btn { flex: 0 0 auto; width: 30px; }
  .col-fn { width: auto; }
  .hero__stats { gap: 22px; }
  .hero__inner { padding: 44px 24px 64px; }
  .explorer { margin-top: -40px; }
  .topbar__inner { flex-wrap: wrap; gap: 12px 16px; }
  .topbar__brand { gap: 12px; }
  .topbar__emblem { height: 36px; }
  .topbar__anchor-name, .topbar__toolname { font-size: 16px; }
  .topbar__toolname { max-width: 11ch; }
  .topbar__lockdiv { height: 30px; }
  .topbar__partner { margin-left: auto; align-items: flex-end; }
  .topbar__partner-label { display: none; }
  .topbar__partner-logos { gap: 16px; }
  .topbar__partner-logo { height: 38px; }
  .partnership { flex-direction: column; gap: 18px; }
  .partnership__logo:first-child img { height: 70px; }
}
