/* ==========================================================================
   VNRate247 — design system
   White canvas · blue chrome · gold accent.
   Colour tokens are overridden at runtime from src/config/theme.js, so this
   file holds structure and the default palette only.
   ========================================================================== */

:root {
  /* Brand — overridable from config/theme.js */
  --blue:        #1d4ed8;
  --blue-dark:   #172554;
  --blue-soft:   #eff6ff;
  --gold:        #c8890a;
  --gold-soft:   #fffbeb;
  --up:          #059669;
  --down:        #dc2626;

  /* Derived brand shades */
  --blue-hover:  #1e40af;
  --blue-line:   #bfdbfe;
  --gold-line:   #fcd34d;
  --up-soft:     #ecfdf5;
  --down-soft:   #fef2f2;

  /* Canvas */
  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --bg-tint:     #f1f5f9;
  --line:        #e2e8f0;
  --line-soft:   #f1f5f9;
  --line-strong: #cbd5e1;

  /* Ink */
  --ink:         #0f172a;
  --ink-soft:    #334155;
  --muted:       #64748b;
  --faint:       #94a3b8;

  --radius-sm:   9px;
  --radius:      13px;
  --radius-lg:   18px;
  --shadow-xs:   0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm:   0 1px 3px rgba(15, 23, 42, .07), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:      0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lg:   0 14px 40px rgba(23, 37, 84, .16);

  --header-h:    62px;
  --wrap:        1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-num: ui-monospace, "SF Mono", SFMono-Regular, "Roboto Mono", Menlo, monospace;
}

/* Optional dark mode — opt-in only. The default experience stays white. */
:root[data-theme="dark"] {
  --bg: #0f1620; --bg-soft: #161e2a; --bg-tint: #1c2533;
  --line: #26303f; --line-soft: #1c2533; --line-strong: #38445a;
  --ink: #e8eef7; --ink-soft: #c2ccdb; --muted: #94a3b8; --faint: #64748b;
  --blue-soft: #16233d; --blue-line: #23407a;
  --gold-soft: #2a2210; --gold-line: #6b5410;
  --up-soft: #0d2a1f; --down-soft: #2c1517;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5); --shadow: 0 4px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; }
svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; width: 100%; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ========================================================== HEADER (blue) */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(100deg, var(--blue-dark), var(--blue) 62%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.08), var(--shadow-sm);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800;
  font-size: 1.08rem; letter-spacing: -.03em; flex: none; }
.logo:hover { opacity: .93; }
.logo__mark {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.logo__mark svg { width: 19px; height: 19px; }
.logo__text { display: block; line-height: 1.1; }
.logo__text small { display: block; font-size: .64rem; font-weight: 500; opacity: .78;
  letter-spacing: .02em; margin-top: 1px; }
.logo__247 { color: #f5cd6b; }
.logo__mark { --logo-accent: #f5cd6b; }

.header__spacer { flex: 1; }
.header__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; flex: none;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; font-size: .95rem; padding: 0;
}
.icon-btn:hover { background: rgba(255,255,255,.2); }
.icon-btn svg { width: 17px; height: 17px; }

/* ============================================================== NAV strip */
.nav {
  background: var(--bg); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 40;
}
.nav::-webkit-scrollbar { display: none; }
.nav .wrap { display: flex; gap: 2px; white-space: nowrap; }
.nav a {
  padding: 11px 13px; font-size: .92rem; font-weight: 600; color: var(--muted);
  border-bottom: 2.5px solid transparent; display: flex; align-items: center; gap: 6px;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ============================================================ TICKER bar */
/* A live strip of headline numbers directly under the nav — the cheapest way to
   make a data site feel alive, and a second click surface into the pillars. */
.ticker { background: var(--bg-soft); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker .wrap { display: flex; gap: 0; white-space: nowrap; padding: 0 16px; }
.ticker__item { display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 14px 7px 0;
  font-size: .82rem; border-right: 1px solid var(--line); margin-right: 14px; }
.ticker__item:last-child { border-right: 0; }
.ticker__label { color: var(--muted); font-weight: 600; }
.ticker__value { font-weight: 700; color: var(--ink); }
.ticker__chg { font-weight: 650; font-size: .78rem; }

/* ================================================================ SEARCH */
.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 480px; }
.search__field {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 11px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
  border-radius: 11px; transition: background .14s, border-color .14s;
}
.search__field:focus-within { background: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.search__icon { flex: none; color: rgba(255,255,255,.75); display: grid; place-items: center; }
.search__icon svg { width: 17px; height: 17px; }
.search__field:focus-within .search__icon { color: var(--blue); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%;
  font-size: .95rem; font-family: inherit; color: #fff;
}
.search input::placeholder { color: rgba(255,255,255,.72); }
.search__field:focus-within input { color: var(--ink); }
.search__field:focus-within input::placeholder { color: var(--faint); }
.search__hint { flex: none; font-size: .66rem; font-weight: 600; color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.28); border-radius: 5px; padding: 1px 5px; }
.search__field:focus-within .search__hint { display: none; }

/* Hero search sits on white, so it inverts the chrome treatment. */
.search--hero .search__field {
  height: 52px; border-radius: 14px; padding: 0 15px;
  background: #fff; border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.search--hero .search__field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.search--hero .search__icon { color: var(--blue); }
.search--hero .search__icon svg { width: 20px; height: 20px; }
.search--hero input { color: var(--ink); font-size: 1.05rem; }
.search--hero input::placeholder { color: var(--faint); }
.search--hero .search__hint { color: var(--faint); border-color: var(--line-strong); }

.search__panel {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 70; display: none;
  max-height: min(70vh, 460px); overflow-y: auto;
}
.search__panel.is-open { display: block; }
.search__group-label {
  padding: 10px 14px 6px; font-size: .67rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.search__item {
  display: flex; align-items: center; gap: 11px; padding: 10px 14px; width: 100%;
  border: 0; background: none; text-align: left; cursor: pointer;
  color: var(--ink); font-size: .95rem; font-family: inherit; text-decoration: none;
}
.search__item:hover, .search__item.is-active { background: var(--blue-soft); }
.search__item.is-active { box-shadow: inset 3px 0 0 var(--blue); }
.search__item-icon { flex: none; width: 22px; text-align: center; font-size: 1.05rem; }
.search__item-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-weight: 550; }
.search__item-group { flex: none; font-size: .72rem; color: var(--faint); font-weight: 600; }
.search__empty { padding: 22px 14px; text-align: center; color: var(--muted); font-size: .92rem; }

@media (max-width: 767px) {
  .search--header { display: none; }        /* header keeps only the search button on phones */
  .search.is-open {
    position: fixed; inset: 0; z-index: 200; max-width: none; background: var(--bg);
    padding: 10px 12px; display: flex; flex-direction: column; gap: 12px;
  }
  .search.is-open .search__field { background: var(--bg-soft); border-color: var(--line-strong); height: 46px; }
  .search.is-open .search__field input { color: var(--ink); }
  .search.is-open .search__field input::placeholder { color: var(--faint); }
  .search.is-open .search__icon { color: var(--blue); }
  .search.is-open .search__panel {
    position: static; display: block; border: 0; box-shadow: none; max-height: none;
    flex: 1; overflow-y: auto;
  }
  .search.is-open .search__hint { display: none; }
}

/* ================================================================== HERO */
.hero {
  background:
    radial-gradient(760px 320px at 8% -20%, rgba(29, 78, 216, .10), transparent 62%),
    radial-gradient(600px 300px at 92% -10%, rgba(200, 137, 10, .10), transparent 60%),
    linear-gradient(180deg, var(--blue-soft), var(--bg) 76%);
  border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px) 0 clamp(16px, 2vw, 24px);
}
.hero__title { margin-bottom: 6px; }
.hero__sub { color: var(--ink-soft); font-size: clamp(.95rem, .9rem + .2vw, 1.02rem); margin-bottom: 14px; max-width: 68ch; }
.hero__search { max-width: 620px; margin-bottom: 14px; }
.hero__chips-label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 8px; }

/* ================================================================= CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: 999px; font-size: .89rem; font-weight: 620; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  transition: border-color .14s, color .14s, transform .1s, box-shadow .14s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1.5px); box-shadow: var(--shadow-sm); }
.chip__icon { font-size: 1rem; line-height: 1; }

/* ============================================================== SECTIONS */
.section { margin: clamp(24px, 3.4vw, 40px) 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__more { font-size: .88rem; font-weight: 650; color: var(--blue); flex: none; }
.section__more:hover { text-decoration: underline; }

/* ================================================================= CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card {
  display: block; position: relative; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px; box-shadow: var(--shadow-xs); min-height: 148px;
  transition: border-color .14s, box-shadow .14s, transform .1s;
}
.card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--accent-line, transparent); opacity: 0; transition: opacity .14s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card--gold   { --accent-line: var(--gold); }
.card--fx     { --accent-line: var(--blue); }
.card--crypto { --accent-line: #7c3aed; }
.card--rates  { --accent-line: var(--up); }
.card--stocks { --accent-line: #0891b2; }
.card--fuel   { --accent-line: #ea580c; }

.card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card__icon { font-size: 1.05rem; line-height: 1; flex: none; }
.card__name { font-size: .84rem; font-weight: 700; color: var(--muted); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* These are <span>s inside an <a>, so they need an explicit block display —
   without it the price and its sub-line render on the same line and margins
   are silently ignored. */
.card__value { display: block; font-size: 1.42rem; font-weight: 780; letter-spacing: -.035em;
  line-height: 1.15; margin-bottom: 3px; }
.card__sub { display: block; font-size: .79rem; color: var(--muted); margin-bottom: 10px;
  min-height: 1.2em; line-height: 1.35; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

.change { display: inline-flex; align-items: center; gap: 3px; font-size: .81rem; font-weight: 700;
  padding: 2.5px 8px; border-radius: 999px; white-space: nowrap; }
.change--up   { color: var(--up);   background: var(--up-soft); }
.change--down { color: var(--down); background: var(--down-soft); }
.change--flat { color: var(--muted); background: var(--bg-tint); }

.spark { flex: none; height: 32px; width: 100px; opacity: .95; }
.spark--up   { color: var(--up); }
.spark--down { color: var(--down); }

/* ================================================================= TABLE */
.table-wrap { overflow-x: auto; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.ptable { font-size: .93rem; min-width: 620px; }
.ptable thead th {
  background: var(--bg-soft); color: var(--muted); font-size: .73rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; text-align: right;
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ptable thead th:first-child { text-align: left; }
.ptable tbody td, .ptable tbody th { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.ptable tbody td:first-child { text-align: left; font-weight: 650; white-space: normal; }
/* The name column kept collapsing under the numeric ones, breaking "Vàng miếng SJC"
   across three lines while the badge floated in the gap. Give it a floor. */
.ptable th:first-child, .ptable td:first-child { min-width: 176px; }

/* Wide comparison tables scroll sideways; pinning the first column keeps the row
   label on screen, otherwise a reader scrolling to "12 tháng" loses track of which
   bank they are looking at. */
.ptable--pinned th:first-child, .ptable--pinned td:first-child {
  position: sticky; left: 0; z-index: 2;
  background: var(--bg);
  box-shadow: 1px 0 0 var(--line);
}
.ptable--pinned thead th:first-child { z-index: 3; background: var(--bg-soft); }
.ptable--pinned tbody tr:hover td:first-child,
.ptable--pinned tbody tr:hover th:first-child { background: var(--bg-soft); }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--bg-soft); }
.ptable .val { font-weight: 700; }
.ptable__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.35; }
.ptable__name a { flex: 0 1 auto; min-width: 0; }
/* Its own block, hard left, tight under the name — as an inline span after a flex
   container it dropped to a new line and read as an indented orphan. */
.ptable__unit { display: block; margin-top: 1px; font-size: .72rem; font-weight: 500;
  color: var(--faint); text-align: left; }
.ptable__badge { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .05em; padding: 1.5px 6px;
  border-radius: 5px; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }

/* =========================================================== UPDATED bar */
.updated { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px;
  font-size: .82rem; color: var(--muted); margin-top: 11px; }
.updated__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); flex: none;
  box-shadow: 0 0 0 3px var(--up-soft); }
.updated--stale .updated__dot { background: var(--down); box-shadow: 0 0 0 3px var(--down-soft); }
.badge-mock { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--down); background: var(--down-soft);
  border: 1px solid var(--down); border-radius: 5px; padding: 1.5px 7px; }

/* ================================================================= CHART */
.chart-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); padding: 16px; }
.chart-tabs { display: flex; gap: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.chart-tabs a { padding: 6px 14px; border-radius: 9px; font-size: .85rem; font-weight: 650;
  color: var(--muted); background: var(--bg-soft); border: 1px solid transparent; }
.chart-tabs a:hover { color: var(--ink); }
.chart-tabs a.is-active { color: #fff; background: var(--blue); border-color: var(--blue); }
.chart--up { color: var(--up); } .chart--down { color: var(--down); }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-ylabel, .chart-xlabel { fill: var(--faint); font-size: 10px; font-family: var(--font-num); }
.chart-empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ============================================================ CALCULATOR */
.calc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); padding: 16px; }
.calc__row { display: flex; flex-wrap: wrap; gap: 11px; align-items: flex-end; }
.calc__field { flex: 1 1 190px; min-width: 0; }
.calc__field label { display: block; font-size: .79rem; font-weight: 650; color: var(--muted); margin-bottom: 5px; }
.calc input, .calc select {
  width: 100%; height: 42px; padding: 0 12px; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); outline: 0;
}
.calc input:focus, .calc select:focus { border-color: var(--blue); background: var(--bg); box-shadow: 0 0 0 3px var(--blue-soft); }
/* <output> is display:inline by default, and so are its spans — without these the
   whole result collapses onto one line and the box refuses to fill its row. */
.calc__out {
  display: block; margin-top: 14px; padding: 14px 15px; border-radius: var(--radius-sm);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.calc__out-label { display: block; font-size: .79rem; color: var(--muted); margin-bottom: 2px; font-weight: 600; }
.calc__out-value { display: block; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 780;
  letter-spacing: -.035em; color: var(--gold); line-height: 1.2; }
.calc__out-note { display: block; font-size: .8rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }

/* =================================================================== FAQ */
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden; }
.faq details[open] { border-color: var(--blue-line); }
.faq summary { padding: 13px 15px; cursor: pointer; font-weight: 650; font-size: .97rem;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font-weight: 400; font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: '−'; color: var(--blue); }
.faq details > div { padding: 0 15px 14px; color: var(--ink-soft); font-size: .95rem; }

/* ================================================================= PROSE */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.3em; font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1rem; }
.prose li { margin-bottom: .45em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ================================================================== FEED */
.feed { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); overflow: hidden; }
.feed a { display: flex; align-items: center; gap: 11px; padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft); font-size: .93rem; color: var(--ink); }
.feed a:last-child { border-bottom: 0; }
.feed a:hover { background: var(--blue-soft); }
.feed__icon { flex: none; }
.feed__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__val { flex: none; font-weight: 700; font-size: .88rem; }
.feed__time { flex: none; font-size: .78rem; color: var(--faint); width: 82px; text-align: right; }
@media (max-width: 520px) { .feed__val { display: none; } }

/* =================================================================== ADS */
/* Fixed heights reserved up front — an ad must never shift layout (CLS). */
.ad { display: flex; align-items: center; justify-content: center; background: var(--bg-soft);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--faint);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0; overflow: hidden; }
.ad--header-banner  { height: 90px; }
.ad--in-content-1, .ad--in-content-2 { height: 250px; }
.ad--footer-banner  { height: 90px; }
.ad--sidebar-sticky { height: 600px; position: sticky; top: calc(var(--header-h) + 16px); margin: 0; }
@media (max-width: 940px) { .ad--sidebar-sticky { display: none; } }

/* ================================================================ LAYOUT */
.page { padding-bottom: 36px; }
.page-grid { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 941px) { .page-grid--sidebar { grid-template-columns: minmax(0, 1fr) 300px; } }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar__box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-xs); }
.sidebar__box h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); margin-bottom: 10px; font-weight: 800; }

/* ================================================================ LEDE */
.lede { font-size: 1.02rem; line-height: 1.7; color: var(--ink);
  background: linear-gradient(180deg, var(--gold-soft), var(--bg));
  border: 1px solid var(--gold-line); border-left-width: 3px;
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
.lede strong { font-weight: 750; }

.disclaimer { font-size: .82rem; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 22px 0; }

/* ================================================================ FOOTER */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 36px; padding: 30px 0 34px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 22px; margin-bottom: 22px; }
.footer h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint);
  margin-bottom: 9px; font-weight: 800; }
.footer ul { padding: 0; margin: 0; }
.footer li { list-style: none; margin-bottom: 6px; }
.footer a { font-size: .89rem; color: var(--muted); }
.footer a:hover { color: var(--blue); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 16px; font-size: .82rem; color: var(--faint); }

.crumbs { font-size: .82rem; color: var(--faint); padding: 13px 0 5px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

/* =========================================================== EMPTY STATE */
/* Shown when a pillar has no verified data yet. Deliberately looks unfinished
   rather than fabricating a placeholder number. */
.empty-state {
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 26px 22px; color: var(--muted);
}
.empty-state__title { font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.empty-state p { margin: 0 0 6px; font-size: .93rem; }
