/* ─── Design Tokens ─────────────────────────────────────── */

html,
html[data-theme='dark'] {
  --bg: #0a1020;
  --paper: #0f1626;
  --paper2: #19223a;
  --ink: #dbe2f1;
  --mut: #7e8aa8;
  --line: #2a3556;
  --fill: #222c46;
  --up: #2ec78c;
  --down: #ff6f5e;
  --hi: #5b8cff;
  --hi-tx: #0a1020;
  --gold: #e0b552;
  --frame: #1c2742;
  --chrome: #0c1322;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

html[data-theme='light'] {
  --bg: #e3e8f2;
  --paper: #f5f7fb;
  --paper2: #eaeef6;
  --ink: #16203a;
  --mut: #6a7691;
  --line: #d3dae8;
  --fill: #dde4f0;
  --up: #1f9d6b;
  --down: #d4503e;
  --hi: #2563eb;
  --hi-tx: #ffffff;
  --gold: #b8860b;
  --frame: #c4cde0;
  --chrome: #eaeef6;
  --shadow: 0 14px 40px rgba(22, 32, 58, 0.14);
}

/* ─── Base Reset ────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui, 'IBM Plex Sans', sans-serif);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;   /* no horizontal scroll at narrow widths (keeps sticky working) */
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--hi);
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

input,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Layout ────────────────────────────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Typography Utilities ──────────────────────────────── */

.num {
  font-family: var(--font-num, 'IBM Plex Mono', monospace);
  font-variant-numeric: tabular-nums;
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.hi {
  color: var(--hi);
}

.mut {
  color: var(--mut);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mut);
}

/* ─── Arrow Indicators ──────────────────────────────────── */

.arr-up::before {
  content: '▲';
  font-size: 0.62em;
  margin-right: 2px;
}

.arr-dn::before {
  content: '▼';
  font-size: 0.62em;
  margin-right: 2px;
}

/* ─── Card ──────────────────────────────────────────────── */

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper2);
}

/* ─── Buttons ───────────────────────────────────────────── */

.btn-primary {
  background: var(--hi);
  color: var(--hi-tx);
  border-radius: 9px;
  padding: 8px 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-ghost {
  background: transparent;
  color: var(--hi);
  border: 1px solid var(--hi);
  border-radius: 9px;
  padding: 7px 15px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s;
}

.btn-ghost:hover {
  background: var(--fill);
}

/* ─── Pills ─────────────────────────────────────────────── */

.pill {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 10px;
  font-size: 12.5px;
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.pill:hover,
.pill.active {
  border-color: var(--hi);
  color: var(--hi);
}

/* ─── Table ─────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--fill);
}

/* ─── Rate Tick Animations ──────────────────────────────── */

/* Text-color flash (font changes color, scales briefly) */
@keyframes tick-up-text {
  0%   { color: var(--up);   transform: scale(1.05); }
  35%  { color: var(--up);   transform: scale(1); }
  100% { color: inherit;     transform: none; }
}
@keyframes tick-down-text {
  0%   { color: var(--down); transform: scale(0.96); }
  35%  { color: var(--down); transform: scale(1); }
  100% { color: inherit;     transform: none; }
}

/* Background flash (highlight behind the value, text stays put).
   box-shadow gives a padded glow without affecting layout. */
@keyframes tick-up-bg {
  0%   { background-color: color-mix(in srgb, var(--up) 38%, transparent);
         box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 38%, transparent); }
  100% { background-color: transparent; box-shadow: 0 0 0 3px transparent; }
}
@keyframes tick-down-bg {
  0%   { background-color: color-mix(in srgb, var(--down) 38%, transparent);
         box-shadow: 0 0 0 3px color-mix(in srgb, var(--down) 38%, transparent); }
  100% { background-color: transparent; box-shadow: 0 0 0 3px transparent; }
}

/* Duration is driven by the runtime-tweakable --flash-duration variable. */
.tick-up, .tick-down {
  display: inline-block;
  border-radius: 3px;
  animation-duration: var(--flash-duration, 650ms);
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* Default + 'both' mode: text colour AND background flash together */
.tick-up   { animation-name: tick-up-text, tick-up-bg; }
.tick-down { animation-name: tick-down-text, tick-down-bg; }

/* 'text' mode: only the font colour flashes */
html[data-flash-mode='text'] .tick-up   { animation-name: tick-up-text; }
html[data-flash-mode='text'] .tick-down { animation-name: tick-down-text; }

/* 'bg' mode: only the background flashes, text colour stays constant */
html[data-flash-mode='bg'] .tick-up   { animation-name: tick-up-bg; }
html[data-flash-mode='bg'] .tick-down { animation-name: tick-down-bg; }

/* Pulsing "live" dot (stats "Updated → Live") */
@keyframes lx-live-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); opacity: 1; }
  70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--up) 0%, transparent); opacity: .75; }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 0%, transparent); opacity: 1; }
}
.lx-live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--up); margin-right: 7px; flex-shrink: 0;
  animation: lx-live-pulse 1.3s ease-out infinite;
}

/* Chart hover readout: desktop inline (price · O/H/L · date); mobile wraps so
   price + date sit on line 1 and O/H/L drop to line 2 (no sideways overflow). */
@media (max-width: 600px) {
  .lx-chart-readout .lx-ro-date { order: 2; }
  .lx-chart-readout .lx-ro-ohlc { order: 3; flex-basis: 100%; margin-top: 1px; }
}

/* ─── Live Indicator ────────────────────────────────────── */

@keyframes live-ping {
  0%   { transform: scale(1);   opacity: 0.9; }
  70%  { transform: scale(2.4); opacity: 0;   }
  100% { transform: scale(2.4); opacity: 0;   }
}

.live-ping {
  animation: live-ping 0.55s ease-out forwards;
}

/* ─── Ticker Animation ──────────────────────────────────── */

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ─── Scrollbar ─────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mut);
}

/* ─── Pinned rates grid ─────────────────────────────────── */

.pinned-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

/* ─── Footer ────────────────────────────────────────────── */
.foot-link:hover { color: var(--ink); }

/* ─── Mobile ────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 20px !important;
  }
  .foot-cols > div:first-child {
    grid-column: 1 / -1;
  }

  .show-mobile {
    display: flex !important;
  }

  .grid-2col {
    grid-template-columns: 1fr !important;
  }

  /* Pinned: 2 across, no horizontal swipe */
  .pinned-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}

/* ── Blog content ─────────────────────────────────────────────────────────── */
.blog-content h1,.blog-content h2,.blog-content h3 { font-weight: 700; line-height: 1.3; margin: 1.8em 0 0.6em; color: var(--ink); }
.blog-content h1 { font-size: 1.6em; }
.blog-content h2 { font-size: 1.3em; }
.blog-content h3 { font-size: 1.1em; }
.blog-content p  { margin: 0 0 1.2em; }
.blog-content a  { color: var(--hi); text-decoration: underline; }
.blog-content strong { font-weight: 700; }
.blog-content em { font-style: italic; }
.blog-content blockquote { border-left: 3px solid var(--line); padding-left: 16px; color: var(--mut); margin: 1.2em 0; }
.blog-content code { font-family: var(--font-num); background: var(--fill); padding: 2px 5px; border-radius: 4px; font-size: 0.88em; }
.blog-content pre  { background: var(--fill); border-radius: 8px; padding: 16px; overflow-x: auto; margin: 1.2em 0; }
.blog-content pre code { background: none; padding: 0; }
.blog-content ul,.blog-content ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.blog-content li { margin-bottom: 0.4em; }
.blog-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.blog-card { transition: border-color 0.15s, transform 0.15s; }
.blog-card-link:hover .blog-card { border-color: var(--hi) !important; transform: translateY(-1px); }

/* ─── Gold landing (/gold-price) — our tones dominant, gold as a light accent ── */
.gold-inner { max-width: 880px; margin: 0 auto; padding: 8px 0 4px; }
.gold-hero { text-align: center; padding: 10px 0 4px; }

/* Highlight cards — admin-defined formulas. Mobile: 2 cols; desktop: auto-fit. */
.gold-pins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .gold-pins { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.gold-pin { background: var(--paper2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px; }
.gold-pin-label { font-size: 12px; color: var(--mut); font-weight: 600; letter-spacing: .03em; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gold-pin-val { font-family: var(--font-num); font-weight: 600; font-size: 20px; color: var(--ink); line-height: 1.2; margin-bottom: 4px; word-break: break-all; }
.gold-pin-val .gold-card-v { color: var(--ink); }
.gold-pin-chg { font-size: 12.5px; font-weight: 500; display: flex; align-items: baseline; gap: 5px; }
.gold-pin-amt { color: var(--mut); font-weight: 400; }
.gold-eyebrow { display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); margin-bottom: 10px; }
.gold-h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); }
.gold-bignum { display: flex; align-items: baseline; justify-content: center; gap: 5px; flex-wrap: wrap;
  font-family: var(--font-num); font-weight: 700; }
.gold-bignum .num { font-size: clamp(32px, 8vw, 50px); color: var(--hi); letter-spacing: -.02em; }
.gold-sym { font-size: clamp(18px, 3.5vw, 26px); color: var(--hi); font-weight: 700; }
.gold-per { font-size: 13px; color: var(--mut); font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.gold-subnum { margin-top: 8px; font-size: 14px; color: var(--mut); }
.gold-subnum .num { color: var(--ink); font-weight: 600; }
.gold-sym3 { color: var(--mut); font-weight: 600; margin-right: 1px; }
.gold-intro { max-width: 660px; margin: 16px auto 0; color: var(--mut); font-size: 15px; line-height: 1.6; }

.gold-section { margin-top: 30px; }
.gold-h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* Chart card + toolbar (unit toggle left, timeframe right) */
.gold-chart-card { padding: 14px; }
.gold-chart-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gold-chart-units, .gold-chart-tfs { display: flex; gap: 4px; }
.gold-chart-card .pill { font-size: 12px; }
.gold-chart-units .chart-unit.active { border-color: var(--hi); color: var(--hi); }

.gold-table-wrap { overflow-x: auto; }
.gold-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gold-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--mut); font-weight: 600; padding: 0 10px 8px; }
.gold-table th.r, .gold-table td.r { text-align: right; }
.gold-table td { padding: 11px 10px; border-top: 1px solid var(--line); color: var(--ink); }
.gold-table .num { font-family: var(--font-num); font-weight: 600; color: var(--ink); }
.gold-dim { color: var(--mut); font-weight: 400; font-size: 13px; }
.gold-dim .num { color: var(--mut); font-weight: 500; }

.gold-karat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 600px) { .gold-karat-grid { grid-template-columns: repeat(2, 1fr); } }
.gold-karat { background: var(--paper2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 10px; text-align: center; }
.gold-karat.is-pure { border-color: var(--hi); }
.gold-karat-k { font-size: 14px; font-weight: 700; color: var(--ink); }
.gold-karat-v { margin: 8px 0 4px; font-family: var(--font-num); font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; align-items: baseline; justify-content: center; gap: 1px; word-break: break-all; }
.gold-sym2 { font-size: 12px; color: var(--hi); }
.gold-karat-p { font-size: 12px; color: var(--mut); }

.gold-calc { background: var(--paper2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.gold-calc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gold-calc-conv { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
@media (max-width: 480px) { .gold-calc-conv { grid-template-columns: 1fr; } }
.gold-calc-eq { font-size: 19px; color: var(--hi); padding-bottom: 9px; text-align: center; }
@media (max-width: 480px) { .gold-calc-eq { transform: rotate(90deg); padding: 2px 0; } }
.gold-calc label, .gold-calc-field { display: flex; flex-direction: column; gap: 6px; }
.gold-calc-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); font-weight: 600; }
.gold-calc input, .gold-calc select { width: 100%; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; color: var(--ink); font-family: var(--font-num); font-size: 16px; }
.gold-calc input:focus, .gold-calc select:focus { outline: none; border-color: var(--hi); }
.gold-calc select:disabled { opacity: .6; cursor: default; }

.gold-faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px; margin-bottom: 10px; background: var(--paper2); }
.gold-faq-item summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); list-style: none; }
.gold-faq-item summary::-webkit-details-marker { display: none; }
.gold-faq-item summary::after { content: '+'; float: right; color: var(--mut); font-weight: 400; }
.gold-faq-item[open] summary::after { content: '−'; }
.gold-faq-item p { margin: 0 0 14px; color: var(--mut); line-height: 1.6; font-size: 14px; }
.gold-note { margin-top: 12px; font-size: 13px; color: var(--mut); }
html[dir='rtl'] .gold-table th, html[dir='rtl'] .gold-table td { text-align: right; }
html[dir='rtl'] .gold-faq-item summary::after { float: left; }

/* Metal page breadcrumb (Markets › Gold › Country) */
.gold-crumb { font-size: 12.5px; color: var(--mut); margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gold-crumb a { color: var(--hi); text-decoration: none; font-weight: 500; }
.gold-crumb a:hover { text-decoration: underline; }
.gold-crumb-sep { opacity: .55; }
.gold-crumb-cur { color: var(--ink); font-weight: 500; }

/* Gold price by country — grid; cities nest under their country */
.gold-country-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .gold-country-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); } }
.gold-country-cell { background: var(--paper2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; align-self: start; }
.gold-country-name { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.gold-country-name:hover { color: var(--hi); }
.gold-city-list { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 3px 12px; }
.gold-city-list a { font-size: 12px; color: var(--mut); text-decoration: none; }
.gold-city-list a::before { content: '↳'; opacity: .45; margin-right: 3px; }
.gold-city-list a:hover { color: var(--hi); }

/* Central-bank next-decision countdown */
.cb-countdown { font-size: 12.5px; color: var(--up); font-weight: 600; margin-top: 3px; }

/* Share — compact WhatsApp icon + native share (inline with hero actions; all viewports) */
.lx-share { display: inline-flex; gap: 6px; align-items: center; }
.lx-share-ico { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 9px; cursor: pointer; flex-shrink: 0; }
.lx-share-wa { background: #25d366; border-color: #25d366; color: #fff; }
.lx-share-native { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper2); color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
.lx-share-copied::after { content: ' ✓'; }

/* Chart "Live" tab — green accent when active */
.chart-live.active { border-color: var(--up) !important; color: var(--up) !important; }

/* Prose (methodology / static content) */
.lx-prose p { color: var(--mut); line-height: 1.7; font-size: 15px; margin: 0 0 10px; }
.lx-prose b { color: var(--ink); font-weight: 600; }
.lx-prose .num { color: var(--ink); }

/* Cross-link banner from a metal pair page → its gold/silver landing */
.metal-cta { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 11px 16px;
  background: color-mix(in srgb, var(--hi) 10%, var(--paper)); border: 1px solid color-mix(in srgb, var(--hi) 40%, var(--line));
  border-radius: 11px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.metal-cta:hover { border-color: var(--hi); }
.metal-cta-ico { font-size: 18px; flex-shrink: 0; }
.metal-cta-txt { font-size: 13.5px; color: var(--mut); }
.metal-cta-txt b { color: var(--ink); font-weight: 600; }
.metal-cta-arrow { margin-left: auto; color: var(--hi); font-weight: 700; flex-shrink: 0; }

/* ─── World Cup mini converter ───────────────────────────── */
.wc-input-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wc-input-row #wc-amt { flex: 1; min-width: 140px; font-size: 22px; font-weight: 600; color: var(--ink);
  background: var(--fill); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; }
.wc-input-row #wc-amt:focus { border-color: var(--hi); }
.wc-pills { display: flex; gap: 6px; }
.wc-pill { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px; background: transparent;
  color: var(--mut); font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s; }
.wc-pill:hover { border-color: var(--hi); }
.wc-pill.active { background: color-mix(in srgb, var(--hi) 14%, var(--paper)); border-color: var(--hi); color: var(--ink); }
.wc-out { margin-top: 18px; display: flex; flex-direction: column; gap: 1px; }
.wc-out-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 2px; border-top: 1px solid var(--line); }
.wc-out-cur { font-weight: 700; color: var(--ink); font-size: 14px; }
.wc-out-sym { color: var(--mut); }
.wc-out-name { color: var(--mut); font-weight: 500; font-size: 12.5px; margin-left: 4px; }
.wc-out-val { font-size: 21px; font-weight: 700; color: var(--ink); }
.wc-rate-note { color: var(--mut); }
.wc-live { color: var(--up); font-weight: 600; margin-left: 4px; }
.wc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-links a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
  color: var(--ink); font-size: 13px; font-weight: 600; transition: border-color .15s; }
.wc-links a:hover { border-color: var(--hi); color: var(--hi); }

/* ─── Tweaks panel: left section nav + content ───────────── */
.tw-layout { display: grid; grid-template-columns: 208px 1fr; gap: 26px; align-items: start; }
@media (max-width: 760px) { .tw-layout { grid-template-columns: 1fr; } }
.tw-nav { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 96px); overflow-y: auto; }
@media (max-width: 760px) { .tw-nav { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; margin-bottom: 18px; } }
.tw-nav-item { text-align: left; background: none; border: 1px solid transparent; border-radius: 8px;
  padding: 9px 12px; font-size: 13px; font-weight: 500; color: var(--mut); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tw-nav-item:hover { background: var(--paper2); color: var(--ink); }
.tw-nav-item.active { background: var(--hi); color: var(--hi-tx); border-color: var(--hi); font-weight: 600; }
.tw-hidden { display: none !important; }
