/* InvestingSpark v3 — unified design system ("Terminal" theme).
   One stylesheet for every page: dark trading-platform system.
   Tokens -> base -> app shell (sidebar/topbar) -> components -> tools.
   Fonts self-hosted; no external requests. */

/* ---------- Self-hosted fonts (latin subsets, font-display: swap) ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/sora-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/sora-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/sora-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0e13;
  --bg-side: #0c1118;
  --surface: #11171f;
  --surface-2: #171f29;
  --surface-3: #1f2a38;
  --field: #0b0f16;
  --ink: #eaeef2;
  --ink-soft: #9fadc0;
  --ink-faint: #7d92a9;
  --line: #212c3a;
  --line-soft: #1a232f;
  --accent: #10b981;
  --accent-strong: #34d399;
  --accent-soft: rgba(16, 185, 129, .13);
  --up: #0ecb81;
  --up-soft: rgba(14, 203, 129, .13);
  --down: #f8556c;
  --down-soft: rgba(246, 70, 93, .13);
  --gold: #e8b33c;
  --gold-soft: rgba(232, 179, 60, .12);
  --red: #f8556c;
  --chart-growth: #0ecb81;
  --chart-contrib: #5b7a94;
  --chart-grid: #1c2634;
  --chart-axis: #7d92a9;
  --shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
  --radius: 12px;
  --sb-w: 256px;
  --sb-w-min: 76px;
  --tb-h: 56px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; margin: 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; }
button, select, input[type="number"], input[type="text"], input[type="date"], input[type="month"] { min-height: 44px; }
a { color: var(--accent-strong); }
img, svg { max-width: 100%; }
::selection { background: rgba(16, 185, 129, .35); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }
section[id], div[id] { scroll-margin-top: calc(var(--tb-h) + 14px); }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #04120c; padding: 10px 18px;
  border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #04120c; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ================= App shell: sidebar + topbar ================= */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
  width: var(--sb-w);
  background: var(--bg-side);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: width .18s ease, transform .22s ease;
}
.sb-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px 14px; text-decoration: none; color: var(--ink); flex: none;
}
.sb-brand .brand-mark { width: 34px; height: 34px; flex: none; }
.sb-brand .brand-name { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.16rem; letter-spacing: -0.01em; white-space: nowrap; }
.sb-brand .brand-name em { font-style: normal; color: var(--accent-strong); }
.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 12px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.sb-group { margin-top: 18px; }
.sb-group:first-child { margin-top: 2px; }
.sb-label {
  font-family: "IBM Plex Mono", monospace; font-size: .66rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint);
  padding: 0 10px; margin: 0 0 7px; white-space: nowrap;
}
.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; margin: 1px 0; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .93rem;
  white-space: nowrap; position: relative; min-height: 40px;
}
.sb-link svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sb-link:hover { background: var(--surface-2); color: var(--ink); }
.sb-link:hover svg { opacity: 1; }
.sb-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }
.sb-link[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.sb-foot { flex: none; padding: 12px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.badge-free {
  flex: none; font-family: "IBM Plex Mono", monospace; font-size: .7rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; text-align: center;
  color: var(--accent-strong); background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, .35); border-radius: 999px; padding: 6px 10px;
}
.sb-collapse {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  color: var(--ink-soft); font-weight: 600; font-size: .88rem; padding: 8px 10px; min-height: 40px;
}
.sb-collapse:hover { color: var(--ink); border-color: var(--ink-faint); }
.sb-collapse svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell > main { flex: 1; width: 100%; }
@media (min-width: 1025px) {
  .shell { margin-left: var(--sb-w); transition: margin-left .18s ease; }
  body.sb-collapsed .shell { margin-left: var(--sb-w-min); }
  body.sb-collapsed .sidebar { width: var(--sb-w-min); }
  body.sb-collapsed .sb-brand .brand-name,
  body.sb-collapsed .sb-link .sb-text,
  body.sb-collapsed .sb-label,
  body.sb-collapsed .sb-collapse .sb-text,
  body.sb-collapsed .sb-foot .badge-free { display: none; }
  body.sb-collapsed .sb-brand { justify-content: center; padding-left: 0; padding-right: 0; }
  body.sb-collapsed .sb-link { justify-content: center; padding-left: 0; padding-right: 0; }
  body.sb-collapsed .sb-group { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  body.sb-collapsed .sb-group:first-child { border-top: none; padding-top: 0; margin-top: 2px; }
  body.sb-collapsed .sb-collapse { justify-content: center; }
  body.sb-collapsed .sb-collapse svg { transform: rotate(180deg); }
}
.sb-overlay { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 80; height: var(--tb-h); flex: none;
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgba(10, 14, 19, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; min-height: 42px; border-radius: 9px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.tb-btn:hover { background: var(--surface-2); }
.tb-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.tb-brand { display: none; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem; }
.tb-brand .brand-mark { width: 28px; height: 28px; }
.tb-brand em { font-style: normal; color: var(--accent-strong); }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-live {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: .88rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 40px;
}
.tb-live:hover { border-color: var(--accent); color: var(--accent-strong); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); flex: none; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 203, 129, .45); } 55% { box-shadow: 0 0 0 6px rgba(14, 203, 129, 0); } }
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-105%); width: min(300px, 86vw); box-shadow: none; }
  body.sb-open .sidebar { transform: translateX(0); box-shadow: 24px 0 60px rgba(0, 0, 0, .5); }
  .sb-overlay {
    display: block; position: fixed; inset: 0; z-index: 85;
    background: rgba(3, 6, 9, .62); opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  body.sb-open .sb-overlay { opacity: 1; pointer-events: auto; }
  body.sb-open { overflow: hidden; }
  .sb-collapse { display: none; }
  .tb-brand { display: inline-flex; }
  #sb-collapse-btn { display: none; }
}
@media (min-width: 1025px) { #sb-menu-btn { display: none; } }

/* ================= Page heads & sections ================= */
.hero { padding: 42px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero p.lede, .lede { font-size: clamp(1rem, 1.8vw, 1.14rem); color: var(--ink-soft); max-width: 64ch; margin: 16px 0 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; }
.hero-stats .stat b { display: block; font-family: "Sora", sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.hero-stats .stat span { color: var(--ink-faint); font-size: .88rem; }

.page-hero { padding: 36px 0 6px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero h1 em { font-style: normal; color: var(--accent-strong); }
.page-hero .lede { color: var(--ink-soft); max-width: 66ch; margin: 14px 0 0; font-size: 1.04rem; }
.page-head { padding: 32px 0 6px; }
.page-head .num {
  font-family: "IBM Plex Mono", monospace; font-size: .72rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent-strong);
}
.page-title { font-size: clamp(1.7rem, 3.4vw, 2.35rem); letter-spacing: -0.015em; margin-top: 6px; font-weight: 800; }
.lede2 { color: var(--ink-soft); max-width: 68ch; margin: 10px 0 0; }

section.tool { padding: 46px 0 10px; }
section.tool-block, .tool-block { padding: 28px 0 6px; }
.tool-block h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -0.015em; }
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 11px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sec-head .num {
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: .85rem;
  color: var(--accent-strong); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}
.sec-head h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 800; letter-spacing: -0.015em; }
.sec-sub, .block-sub { color: var(--ink-soft); max-width: 68ch; margin: 4px 0 20px; }
.block-sub { margin-top: 6px; }

/* ================= Cards & tool layout ================= */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.card-padded { padding: 26px; }
.tool-grid { display: grid; grid-template-columns: 380px 1fr; gap: 0; overflow: hidden; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.inputs { padding: 26px; border-right: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 900px) { .inputs { border-right: none; border-bottom: 1px solid var(--line); } }
.results { padding: 26px; min-width: 0; }
@media (max-width: 560px) { .inputs, .results { padding: 20px 18px; } .card-pad, .card-padded { padding: 20px 18px; } }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .92rem; margin-bottom: 8px; gap: 10px; }
.field label .val { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--accent-strong); font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.field .hint { font-size: .8rem; color: var(--ink-faint); margin-top: 6px; }
.money { position: relative; }
.money span.sym { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-weight: 600; pointer-events: none; }
.money input { padding-left: 30px !important; }
input[type="number"], input[type="text"], input[type="date"], input[type="month"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--field); color: var(--ink); font-weight: 600;
}
input[type="number"]:focus, input[type="text"]:focus, input[type="date"]:focus, input[type="month"]:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; cursor: pointer; }
input[type="file"] { font: inherit; color: var(--ink-soft); }
.pair { display: grid; grid-template-columns: 1fr 92px; gap: 10px; align-items: center; }
.pair input[type="number"] { text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; align-items: end; }
.check-line { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; cursor: pointer; min-height: 44px; }
.check-line input[type="checkbox"] { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--accent); }
.check-field label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check-field input[type="checkbox"] { width: 1.5rem; height: 1.5rem; margin-top: 2px; flex: none; accent-color: var(--accent); }
.swap-row { display: flex; align-items: end; gap: 10px; }
.swap-row .field { flex: 1; }
.swap-btn {
  flex: none; width: 44px; height: 44px; margin-bottom: 2px;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
  background: var(--surface-2); color: var(--accent-strong);
  font-size: 1.05rem; font-weight: 700; line-height: 1;
}
.swap-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.mode-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.mode-row label { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; font-size: .94rem; cursor: pointer; }
.mode-row input[type="radio"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* ================= Buttons & chips ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #04120c; border: none; border-radius: 10px;
  padding: 12px 20px; font-weight: 700; cursor: pointer; min-height: 48px; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 18px; font-weight: 700; cursor: pointer; min-height: 48px; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); color: var(--red); }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  font-family: "IBM Plex Mono", monospace; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 13px; cursor: pointer; min-height: 36px;
}
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.form-msg { font-size: .9rem; margin-top: 12px; min-height: 1.2em; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--accent-strong); }

/* ================= Results & figures ================= */
.headline-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.headline-label { color: var(--ink-faint); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 6px; }
@media (max-width: 560px) { .breakdown { grid-template-columns: 1fr; gap: 8px; } }
.breakdown .b { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; }
.breakdown .b b { display: block; font-size: 1.12rem; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown .b span { font-size: .82rem; color: var(--ink-soft); }
.splitbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: 14px 0 6px; background: var(--surface-3); }
.splitbar .seg-contrib { background: var(--chart-contrib); }
.splitbar .seg-growth { background: var(--chart-growth); }
.splitbar .seg-gap { background: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.legend i.sw-contrib { background: var(--chart-contrib); }
.legend i.sw-growth { background: var(--chart-growth); }
.legend i.sw-gold { background: var(--gold); }
canvas.chart { width: 100%; height: auto; aspect-ratio: 648 / 260; display: block; margin-top: 14px; }
canvas.chart-lg { width: 100%; height: auto; aspect-ratio: 648 / 300; display: block; margin-top: 14px; }
.chart-note { font-size: .8rem; color: var(--ink-faint); margin-top: 6px; }
.verdict { border-radius: 10px; padding: 14px 16px; font-size: .95rem; margin-top: 18px; border: 1px solid var(--line); }
.verdict.ok { background: var(--accent-soft); border-color: rgba(16, 185, 129, .35); }
.verdict.short { background: var(--gold-soft); border-color: rgba(232, 179, 60, .35); }
.verdict b { font-family: "Sora", sans-serif; }
.rate-line { font-size: 1.02rem; margin-top: 4px; }
.rate-line b { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.rate-sub { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.rate-sub b { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }

/* Year tables */
details.years { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.years summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 8px 0; min-height: 40px; }
table.yr { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 6px; min-height: 210px; }
table.yr th, table.yr td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
table.yr th:first-child, table.yr td:first-child { text-align: left; }
table.yr th { color: var(--ink-faint); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
table.yr td { font-family: "IBM Plex Mono", monospace; font-size: .86rem; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

/* ================= Data tables ================= */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > .dtable { min-width: 32rem; }
.pub-line { color: var(--ink-faint); font-size: .85rem; margin: 6px 0 14px; }
html, body { overflow-x: clip; }
.dtable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dtable th {
  font-family: "IBM Plex Mono", monospace; font-size: .7rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint);
  text-align: right; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dtable th:first-child { text-align: left; }
.dtable td { padding: 10px; border-bottom: 1px solid var(--line-soft); text-align: right; font-variant-numeric: tabular-nums; }
.dtable td:first-child { text-align: left; }
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable tbody tr { transition: background .12s ease; }
.dtable tbody tr:hover { background: var(--surface-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.src-note { font-size: .8rem; color: var(--ink-faint); margin-top: 10px; }
.src-note .dot { color: var(--up); }
.badge-live, .badge-stale {
  display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: .68rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px;
  border: 1px solid var(--line); vertical-align: middle;
}
.badge-live { color: var(--accent-strong); background: var(--accent-soft); }
.badge-stale { color: var(--gold); background: var(--gold-soft); }
.data-unavailable {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px;
  color: var(--ink-soft); background: var(--surface-2); font-size: .95rem;
}
.empty-note { color: var(--ink-faint); font-size: .95rem; padding: 18px 4px; }
.manual-tag {
  font-family: "IBM Plex Mono", monospace; font-size: .68rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: middle;
}

/* Stat grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-cell .k { font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.stat-cell .v { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.45rem; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat-cell .s { font-size: .85rem; color: var(--ink-soft); margin-top: 3px; }

/* Allocation visuals */
.alloc-wrap { margin-top: 18px; }
.alloc-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.alloc-seg { height: 100%; }
.alloc-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.alloc-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.mixbar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin: 16px 0 10px; }
.mixbar div { display: flex; align-items: center; justify-content: center; color: #04120c; font-size: .78rem; font-weight: 700; min-width: 0; overflow: hidden; white-space: nowrap; }
.mix-stocks { background: #0ecb81; }
.mix-bonds { background: #4d9ec4; }
.mix-cash { background: #8496a9; }
.mix-alt { background: #e8b33c; }
.mix-label { margin-top: 20px; }

/* ================= Quiz ================= */
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.quiz-progress .track { flex: 1; height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.quiz-progress .fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .35s ease; }
.quiz-progress .fill.w-init { width: 20%; }
.quiz-progress .step { font-size: .85rem; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }
.quiz-q { font-family: "Sora", sans-serif; font-size: 1.25rem; font-weight: 700; margin: 0 0 16px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button {
  text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 500; min-height: 52px;
  display: flex; align-items: center; gap: 12px; width: 100%;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.quiz-opts button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.quiz-opts button .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-faint); flex: none; }
.quiz-opts button:hover .dot { border-color: var(--accent); }
.quiz-back { margin-top: 14px; background: none; border: none; color: var(--ink-faint); font-weight: 600; cursor: pointer; padding: 10px 4px; min-height: 40px; }
.quiz-back:hover { color: var(--ink); }
.quiz-back[hidden] { display: none; }
.qz-name { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.qz-desc { color: var(--ink-soft); max-width: 62ch; margin: 12px 0 4px; }
.retake-btn { margin-top: 14px; }
#rt-verdict { min-height: 104px; }
#quiz-live { min-height: 372px; }
#quiz-result { min-height: 372px; }

/* ================= Notes ================= */
.edu-note { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 10px; padding: 12px 16px; font-size: .92rem; color: var(--ink-soft); margin: 22px 0 0; }
.edu-note b { color: var(--ink); }
.note-edu { margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font-size: .9rem; max-width: 68ch; }
.privacy-note { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; font-size: .95rem; color: var(--ink-soft); margin: 16px 0 0; }
.privacy-note b { color: var(--ink); }
.note { background: var(--accent-soft); border: 1px solid rgba(16, 185, 129, .3); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.note p { margin: 0; font-size: .95rem; }
.example { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 20px 10px; margin: 18px 0; }
.disclaimer { margin: 48px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-soft); font-size: .9rem; }
.disclaimer h3 { font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.disclaimer p { margin: 0 0 8px; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ================= Learn & index cards ================= */
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }
.learn-card { padding: 22px; transition: transform .15s ease, border-color .15s ease; }
.learn-card:hover { transform: translateY(-3px); border-color: var(--ink-faint); }
.learn-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.learn-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.learn-card .fig { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--accent-strong); font-size: 1.5rem; display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.live-tool-card .card-link { margin: 14px 0 0; font-size: .85rem; }
.live-tool-card .card-link a { text-decoration: none; }
.live-tool-card .card-link a:hover { text-decoration: underline; }
.tools-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.tool-index-card {
  display: block; padding: 12px 14px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .12s ease, background .12s ease;
}
.tool-index-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.tic-num { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: .72rem; color: var(--accent-strong); letter-spacing: .05em; margin-bottom: 4px; }
.tic-name { display: block; font-weight: 600; font-size: .93rem; line-height: 1.3; }
.tic-tag {
  display: inline-block; margin-top: 7px; font-family: "IBM Plex Mono", monospace; font-size: .66rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px;
}

/* Markets teaser (compat — superseded by the board, kept for safety) */
.markets-teaser { padding: 30px 0 6px; }
.markets-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.markets-head .num { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: .85rem; color: var(--accent-strong); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.markets-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 800; letter-spacing: -0.015em; }
.markets-more { margin-left: auto; font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.markets-more:hover { text-decoration: underline; }
.markets-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.markets-loading { grid-column: 1 / -1; margin: 0; padding: 16px 18px; color: var(--ink-soft); font-size: .94rem; }
.market-item { padding: 14px 16px; border-right: 1px solid var(--line-soft); min-width: 0; }
.market-item:last-child { border-right: none; }
.market-item .m-name { display: block; font-family: "IBM Plex Mono", monospace; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.market-item .m-value { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.market-item .m-change { display: block; font-family: "IBM Plex Mono", monospace; font-size: .82rem; margin-top: 3px; font-variant-numeric: tabular-nums; }
.market-item .m-change.up { color: var(--up); }
.market-item .m-change.down { color: var(--down); }

/* Ticker (compat) */
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.ticker-in { display: flex; gap: 28px; padding-top: 7px; padding-bottom: 7px; overflow-x: auto; scrollbar-width: none; font-family: "IBM Plex Mono", monospace; font-size: .82rem; white-space: nowrap; }
.ticker-in::-webkit-scrollbar { display: none; }
.tick { display: inline-flex; gap: 7px; align-items: baseline; color: var(--ink-soft); }
.tick b { color: var(--ink); font-weight: 600; }

/* Refresh row (markets/portfolio pages) */
.refresh-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.refresh-note { font-size: .85rem; color: var(--ink-faint); }
section.mkt-block { padding: 30px 0 4px; }
.mkt-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mkt-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -0.015em; }
.mkt-head .badge-live, .mkt-head .badge-stale { margin-left: auto; }
.fx-sub { display: block; font-size: .78rem; color: var(--ink-faint); font-weight: 400; }

/* ================= Footers ================= */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-side); margin-top: 64px; }
.site-footer .wrap { padding-top: 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 8px; }
.foot-grid h3 { font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.foot-grid nav a { display: block; color: var(--ink-soft); text-decoration: none; padding: 3px 0; font-size: .93rem; }
.foot-grid nav a:hover { color: var(--accent-strong); }
.foot-brand { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.1rem; margin: 0 0 8px; color: var(--ink); }
.foot-grid p { color: var(--ink-soft); font-size: .93rem; margin: 0 0 8px; }
.foot-base { border-top: 1px solid var(--line-soft); margin-top: 20px; padding-top: 14px; padding-bottom: 22px; }
.foot-base p { color: var(--ink-faint); font-size: .8rem; margin: 0; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer { color: var(--ink-faint); font-size: .88rem; }

/* ================= Prose pages (legal / guides) ================= */
.page-prose .wrap { max-width: 880px; }
.page-prose main .wrap { padding-top: 34px; padding-bottom: 40px; }
.page-prose .card { padding: 36px 38px; }
@media (max-width: 560px) { .page-prose .card { padding: 24px 20px; } }
.page-prose h1 { font-size: clamp(1.7rem, 4vw, 2rem); line-height: 1.2; margin: 0 0 10px; }
.page-prose h2 { font-size: 1.28rem; margin: 30px 0 8px; }
.page-prose h3 { font-size: 1.06rem; margin: 22px 0 6px; }
.page-prose p, .page-prose li { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.page-prose p strong, .page-prose li strong { color: var(--ink); }
.page-prose ul, .page-prose ol { margin: 8px 0 14px; padding-left: 24px; }
.page-prose li { margin: 5px 0; }
.page-prose .updated { color: var(--ink-faint); font-size: .88rem; margin-top: 0; }
.page-prose footer { border-top: 1px solid var(--line); margin-top: 8px; }
.page-prose footer .wrap { padding-top: 20px; padding-bottom: 30px; }
.page-prose footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.page-prose footer a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; }
.page-prose footer a:hover { color: var(--accent-strong); text-decoration: underline; }
.page-prose table.tbl { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-variant-numeric: tabular-nums; }
.page-prose table.tbl th, .page-prose table.tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); font-size: .95rem; color: var(--ink-soft); }
.page-prose table.tbl th { color: var(--ink); font-family: "Sora", sans-serif; font-size: .9rem; }
.page-prose table.tbl td.num, .page-prose table.tbl th.num { text-align: right; }
.related { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 6px; }
.guide-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 16px 0; background: var(--surface-2); }
.guide-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover { color: var(--accent-strong); text-decoration: underline; }
.guide-card p { margin: 0 0 8px; }
.guide-card .read { font-size: .95rem; font-weight: 600; }

/* ================= Embed ================= */
.embed-frame { width: 100%; max-width: 760px; height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.snippet { width: 100%; min-height: 92px; resize: vertical; font-family: "IBM Plex Mono", monospace; font-size: .85rem; font-weight: 500; }
.copy-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.copy-status { font-size: .88rem; color: var(--accent-strong); font-weight: 600; }
.embed-body { background: var(--bg); }
.embed-wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px 10px; }
.embed-title { font-size: 1.25rem; margin-bottom: 4px; }
.embed-sub { color: var(--ink-soft); font-size: .92rem; margin: 0 0 16px; }
.embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .embed-grid { grid-template-columns: 1fr; } }
.inputs-embed { }
.embed-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-faint); text-align: center; }
.embed-foot a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.embed-foot a:hover { text-decoration: underline; }

/* Consent bar (consent.js is a documented no-op; classes kept for safety) */
.consent-bar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 120; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); padding: 14px 16px; display: flex; gap: 14px; align-items: center; max-width: 760px; margin: 0 auto; }
.consent-bar p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.consent-bar a { color: var(--accent-strong); }
.consent-btn { flex: none; background: var(--accent); color: #04120c; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; cursor: pointer; min-height: 2.4rem; }
@media (max-width: 560px) { .consent-bar { flex-direction: column; align-items: stretch; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quiz-progress .fill, .sb-link, .sidebar, .shell, .sb-overlay { transition: none; }
  .live-dot { animation: none; }
  .btn:hover, .learn-card:hover, .quiz-opts button:hover { transform: none; }
}

/* ================= RTL (Arabic tree, /ar/) =================
   Physical-property mirrors for dir="rtl". Charts canvas stays LTR by
   design (dir="ltr" on #lw-chart); numbers use tabular mono as in EN. */
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .sidebar { left: auto; right: 0; border-right: none; border-left: 1px solid var(--line); }
[dir="rtl"] .sb-link[aria-current="page"]::before { left: auto; right: -12px; border-radius: 3px 0 0 3px; }
@media (min-width: 1025px) {
  [dir="rtl"] .shell { margin-left: 0; margin-right: 248px; }
  body.sb-collapsed[dir="rtl"] .shell, [dir="rtl"] body.sb-collapsed .shell { margin-right: 76px; }
}
[dir="rtl"] .tb-right { margin-left: 0; margin-right: auto; }
@media (max-width: 1024px) {
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  [dir="rtl"] body.sb-open .sidebar, body.sb-open [dir="rtl"] .sidebar { box-shadow: -24px 0 60px rgba(0, 0, 0, .45); }
}
[dir="rtl"] .inputs { border-right: none; border-left: 1px solid var(--line); }
@media (max-width: 900px) { [dir="rtl"] .inputs { border-left: none; } }
[dir="rtl"] .money span.sym { left: auto; right: 12px; }
[dir="rtl"] .money input { padding-left: 12px !important; padding-right: 30px !important; }
[dir="rtl"] .legend i { margin-right: 0; margin-left: 7px; }
[dir="rtl"] .edu-note, [dir="rtl"] .privacy-note, [dir="rtl"] .note { border-left: 1px solid var(--line); border-right: 4px solid var(--gold); }
[dir="rtl"] .privacy-note, [dir="rtl"] .note { border-right-color: var(--accent); }
[dir="rtl"] .note { border-right-color: var(--accent); }
[dir="rtl"] .note-edu { border-left: 1px solid var(--line); border-right: 3px solid var(--gold); }
[dir="rtl"] .markets-more { margin-left: 0; margin-right: auto; }
[dir="rtl"] .market-item { border-right: none; border-left: 1px solid var(--line-soft); }
[dir="rtl"] .market-item:last-child { border-left: none; }
[dir="rtl"] .mkt-head .badge-live, [dir="rtl"] .mkt-head .badge-stale { margin-left: 0; margin-right: auto; }
[dir="rtl"] .page-prose ul, [dir="rtl"] .page-prose ol { padding-left: 0; padding-right: 24px; }
/* Board (board.css mirrors, kept here so board.css stays untouched) */
[dir="rtl"] .board-refresh { margin-left: 0; margin-right: auto; }
[dir="rtl"] .board-search { margin-left: 0; margin-right: auto; }
[dir="rtl"] .board-search svg { left: auto; right: 11px; }
[dir="rtl"] .chart-type { margin-left: 0; margin-right: auto; }
[dir="rtl"] .b-spark canvas { margin-left: 0; margin-right: auto; }

/* Upgrade 2026-12-06: consent actions + tap targets + polish */
.consent-actions{display:flex;gap:10px;flex:none;flex-wrap:wrap}
.consent-btn-secondary{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
footer a,.site-footer a,.legal-nav a{display:inline-flex;align-items:center;min-height:24px;padding:3px 4px}
p a,li a{min-height:24px}
.tool-card a,.card a{display:inline-flex;align-items:center;min-height:24px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Polish 2026-12-06: last sub-24px tap targets (section "browse all" links + consent-bar link) */
.sec-sub a{display:inline-flex;align-items:center;min-height:24px;padding:0 2px}
.consent-bar p a{display:inline-flex;align-items:center;min-height:24px;padding:0 2px}
