/* ═══════════════════════════════════════════════════════════════════════════
   AfriRank — Design System
   Light mode default · Blue accent · Dark mode via [data-theme="dark"]
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Form-element reset — without this, buttons/inputs don't inherit the page
   font by default and can render in the OS system font instead of Inter. */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ── LIGHT MODE (default) ─────────────────────────────────────────────────── */
:root {
  --bg:           #F8FAFF;
  --bg-card:      #FFFFFF;
  --bg-hover:     #F0F4FF;
  --bg-nav:       rgba(248,250,255,0.95);

  --accent:       #1D4ED8;
  --accent-2:     #2563EB;
  --accent-dim:   rgba(29,78,216,0.08);
  --accent-border:rgba(29,78,216,0.18);

  --text-1:       #0F172A;
  --text-2:       #334155;
  --text-3:       #94A3B8;

  --border:       rgba(0,0,0,0.07);
  --border-s:     rgba(0,0,0,0.13);
  --shadow-card:  0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 2px 8px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.07);

  --green:        #16A34A;
  --green-dim:    rgba(22,163,74,0.09);
  --green-border: rgba(22,163,74,0.22);
  --red:          #DC2626;
  --red-dim:      rgba(220,38,38,0.09);
  --amber:        #D97706;
  --amber-dim:    rgba(217,119,6,0.09);
  --amber-border: rgba(217,119,6,0.22);

  --rank-1:       #B45309;
  --rank-2:       #475569;
  --rank-3:       #7C3AED;
}

/* ── DARK MODE ────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #080B14;
  --bg-card:      #0E1220;
  --bg-hover:     #111726;
  --bg-nav:       rgba(8,11,20,0.96);

  --accent:       #3B82F6;
  --accent-2:     #60A5FA;
  --accent-dim:   rgba(59,130,246,0.12);
  --accent-border:rgba(59,130,246,0.30);

  --text-1:       #F0EDE8;
  --text-2:       #9BA0B4;
  --text-3:       #545968;

  --border:       rgba(255,255,255,0.07);
  --border-s:     rgba(255,255,255,0.13);
  --shadow-card:  none;
  --shadow-hover: none;

  --green:        #22C55E;
  --green-dim:    rgba(34,197,94,0.10);
  --green-border: rgba(34,197,94,0.25);
  --red:          #EF4444;
  --red-dim:      rgba(239,68,68,0.10);
  --amber:        #F59E0B;
  --amber-dim:    rgba(245,158,11,0.10);
  --amber-border: rgba(245,158,11,0.28);

  --rank-1:       #FFD700;
  --rank-2:       #A8B0C0;
  --rank-3:       #A0714A;
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.25s, color 0.25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── LAYOUT ───────────────────────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.75rem; }
.wrap-wide { max-width: 1280px; margin: 0 auto; padding: 0 1.75rem; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.site-nav {
  height: 62px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  z-index: 200;
}
.site-nav-inner {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-1);
  flex-shrink: 0;
}
.logo em { font-style: normal; color: var(--accent); }
.brand-wordmark { display: block; width: 180px; height: auto; flex-shrink: 0; }
.brand-wordmark-dark { display: none; }
[data-theme="dark"] .brand-wordmark-light { display: none; }
[data-theme="dark"] .brand-wordmark-dark { display: block; }
.footer-logo .brand-wordmark { width: 156px; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }

.nav-center {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  flex: 1;
  justify-content: center;
  /* Two guards, because this bar is the one piece of chrome whose content
     is editable from the dashboard — a category renamed to something long
     can widen it at any time, and nobody would think to re-test the nav
     after renaming a category.

     min-width:0 — a flex item defaults to min-width:auto and refuses to
     shrink below its content. With nowrap links inside, that made this
     <ul> push the nav, and therefore the document, wider than the
     viewport: every page scrolled sideways between 640px and 900px.

     overflow:hidden — the backstop. The media query below swaps in the
     hamburger at 900px, which is comfortably above the ~800px the five
     default categories need. If a rename ever pushes the requirement past
     that, the nav clips instead of the page scrolling. A clipped nav item
     is a cosmetic problem on one element; a horizontally scrolling
     document is a broken-feeling site on every page. */
  min-width: 0;
  overflow: hidden;
}
.nav-center a {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-center a:hover { color: var(--text-1); background: var(--accent-dim); }
.nav-center a.active { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-s);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.theme-toggle:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-dim); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── MOBILE NAV ───────────────────────────────────────────────────────────── */
/* Mobile-first: button shows by default, hidden explicitly above 640px. */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-s);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hamburger-line { width: 16px; height: 2px; background: var(--text-2); margin: 0 auto; transition: transform 0.2s, opacity 0.2s; }
.mobile-menu-toggle.open .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* The hamburger carries the nav up to 900px. Below that the five
   category links do not fit beside the wordmark and the theme
   toggle, and the mobile menu lists every category rather than the
   five the bar has room for — so it is the better nav at that width,
   not a degraded one. */
@media (min-width: 1001px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu { display: none; border-bottom: 1px solid var(--border); background: var(--bg-card); padding: 0.5rem 1rem 1rem; }
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu-list { list-style: none; display: flex; flex-direction: column; }
.mobile-menu-list a { display: block; padding: 0.65rem 0.5rem; font-size: 0.88rem; color: var(--text-2); border-bottom: 1px solid var(--border); }
.mobile-menu-list a:hover { color: var(--accent); }

/* Primary navigation and site-wide search. */
.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-search { display:flex; align-items:center; width:168px; border:1px solid var(--border-s); border-radius:8px; background:var(--bg-card); }
.header-search input { width:100%; min-width:0; border:0; background:transparent; padding:.5rem .6rem; color:var(--text-1); font:inherit; font-size:.78rem; }
.header-search button,.header-search-link { width:34px; height:34px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--text-2); background:transparent; border:0; cursor:pointer; }
.header-search svg,.header-search-link svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
.header-search-link { display:none; border:1px solid var(--border-s); border-radius:8px; }
.search-page { padding-top:2.5rem; padding-bottom:3rem; max-width:1000px; }
.search-page-form { display:flex; gap:.6rem; margin:1.5rem 0; }
.search-page-form input { flex:1; min-width:0; padding:.8rem; border:1px solid var(--border-s); border-radius:8px; color:var(--text-1); background:var(--bg-card); font:inherit; }
.search-section { margin-top:2rem; }
.search-results { display:grid; gap:.5rem; margin-top:.8rem; }
.search-results>a { display:grid; gap:.3rem; padding:1rem; border:1px solid var(--border); border-radius:10px; background:var(--bg-card); }
.search-results>a>span { color:var(--text-2); font-size:.9rem; }
@media(min-width:1001px) { .nav-center a { padding:.35rem .45rem; } }
@media(max-width:1239px) { .header-search { display:none; } .header-search-link { display:flex; } }
@media(max-width:1000px) { .nav-center { display:none; } .mobile-menu-toggle { display:flex; } }
@media(min-width:1181px) { .mobile-menu-toggle { display:none; } }

/* ── MESSAGES ─────────────────────────────────────────────────────────────── */
.messages-bar {
  position: sticky;
  top: 62px;
  z-index: 190;
  padding: 0.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.message {
  padding: 0.65rem 1.125rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.message.success { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); }
.message.warning { background: var(--amber-dim); border: 1px solid var(--amber-border); color: var(--amber); }
.message.info    { background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); }

/* ── BREADCRUMB ───────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 0.875rem 0;
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.35; }
.breadcrumb .current { color: var(--text-2); }

/* ── TAGS / BADGES ────────────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag {
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.5;
}
.tag-accent { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.tag-geo    { background: var(--bg-hover); color: var(--text-2); border: 1px solid var(--border); }
.tag-green  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.tag-amber  { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber-border); }

.badge-pub { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 20px; }
.badge-pub.live  { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.badge-pub.draft { background: var(--bg-hover); color: var(--text-3); border: 1px solid var(--border); }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-s);
  color: var(--text-2);
  padding: 0.5rem 1.125rem;
}
.btn-outline:hover { border-color: var(--accent-border); color: var(--accent); background: var(--accent-dim); }
.btn-sm { padding: 0.35rem 0.875rem; font-size: 0.78rem; }
.btn-ghost { background: transparent; border: none; color: var(--text-3); padding: 0.35rem 0.625rem; font-size: 0.78rem; }
.btn-ghost:hover { color: var(--accent); }
.btn-danger { background: var(--red-dim); border: 1px solid rgba(220,38,38,0.25); color: var(--red); }
.btn-danger:hover { background: rgba(220,38,38,0.16); }

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */
.section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.section-link { font-size: 0.8rem; color: var(--text-3); }
.section-link:hover { color: var(--accent); }
.eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 700px; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-1);
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.025rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* Hero stat strip */
.hero-stats {
  display: flex;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  gap: 0;
  max-width: 440px;
}
.hero-stat {
  flex: 1;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hs-n {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hs-lbl {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
}

/* ── LIVE TICKER ──────────────────────────────────────────────────────────── */
.ticker {
  height: 36px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-card);
}
.ticker-track { overflow: hidden; flex: 1; height: 100%; display: flex; align-items: center; }
.ticker-inner { display: flex; align-items: center; animation: ticker-scroll 50s linear infinite; width: max-content; }
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0 1.75rem;
  font-size: 0.76rem;
  color: var(--text-3);
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.ticker-item strong { color: var(--text-2); font-weight: 500; }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── CARDS — List Cards ───────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.125rem; }

.list-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.list-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.lc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.35;
  flex: 1;
}

.lc-preview { display: flex; flex-direction: column; gap: 0.5rem; }
.lcp-entry { display: flex; align-items: center; gap: 0.625rem; }
.lcp-rank {
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  font-weight: 700;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.lcp-rank.r1 { color: var(--rank-1); }
.lcp-rank.r2 { color: var(--rank-2); }
.lcp-rank.r3 { color: var(--rank-3); }
.lcp-name { font-size: 0.78rem; color: var(--text-2); font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcp-bar { width: 60px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.lcp-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.lc-r1 .lcp-bar-fill { background: var(--rank-1); }

.lc-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  margin-top: auto;
}
.lc-votes { font-size: 0.76rem; color: var(--text-3); }
.lc-votes strong { color: var(--text-2); font-weight: 600; }
.lc-cta {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

/* ── CATEGORY CARDS ───────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.875rem; }
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.cat-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-border); transform: translateY(-1px); }
.cat-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.cat-icon-wrap {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.cat-card-name { font-size: 0.9375rem; font-weight: 600; color: var(--text-1); }
.cat-card-meta { font-size: 0.73rem; color: var(--text-3); }
.cat-card-votes { font-size: 0.73rem; color: var(--accent); font-weight: 500; }
.cat-arrow { color: var(--text-3); font-size: 1.1rem; transition: color 0.15s; }
.cat-card:hover .cat-arrow { color: var(--accent); }

/* ── PERSON CARDS (horizontal scroll row) ─────────────────────────────────── */
.people-scroll { display: flex; gap: 0.875rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
.people-scroll::-webkit-scrollbar { display: none; }

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 148px;
  flex-shrink: 0;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-card);
  position: relative;
  cursor: pointer;
}
.person-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-border); }

.person-rank-badge {
  position: absolute;
  top: 0.625rem; right: 0.625rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
}

.person-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-dim), var(--bg-hover));
  border: 2px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card-name { font-size: 0.82rem; font-weight: 600; color: var(--text-1); text-align: center; line-height: 1.3; }
.person-card-country { font-size: 0.7rem; color: var(--text-3); }
.person-card-votes {
  font-size: 0.7rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.15rem 0.55rem;
  color: var(--text-3);
  margin-top: 0.1rem;
}
.person-card-votes strong { color: var(--text-2); font-weight: 500; }

/* ── REGION CARDS ─────────────────────────────────────────────────────────── */
.regions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.875rem; }
.region-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.125rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.region-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-border); }
.region-name { font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.region-count { font-size: 0.73rem; color: var(--text-3); }
.region-count strong { color: var(--accent); font-weight: 600; }
.region-countries { font-size: 0.68rem; color: var(--text-3); line-height: 1.5; }
.region-arrow { font-size: 0.73rem; color: var(--text-3); margin-top: 0.25rem; }
.region-card:hover .region-arrow { color: var(--accent); }

/* ── CTA BANNER ───────────────────────────────────────────────────────────── */
.cta-banner { padding: 3rem 0; }
.cta-inner {
  background: var(--accent);
  border-radius: 16px;
  padding: 2.5rem 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .cta-inner { background: var(--bg-card); border: 1px solid var(--accent-border); }
.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
[data-theme="dark"] .cta-title { color: var(--text-1); }
.cta-desc { font-size: 0.9rem; color: rgba(255,255,255,0.8); max-width: 400px; line-height: 1.65; }
[data-theme="dark"] .cta-desc { color: var(--text-2); }
.cta-btns { display: flex; gap: 0.75rem; flex-shrink: 0; position: relative; flex-wrap: wrap; }
.btn-cta-white {
  padding: 0.625rem 1.375rem;
  background: #fff;
  border: none;
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-cta-white:hover { opacity: 0.92; }
.btn-cta-outline-white {
  padding: 0.625rem 1.375rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.btn-cta-outline-white:hover { border-color: #fff; }
[data-theme="dark"] .btn-cta-white { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-cta-outline-white { border-color: var(--accent-border); color: var(--accent); }

/* ── RANKING ROW (list detail) ────────────────────────────────────────────── */
.ranking-list { padding: 0.5rem 0 1rem; }
.entry-row {
  display: grid;
  grid-template-columns: 60px 52px 1fr auto;
  gap: 0 1rem;
  align-items: center;
  padding: 0.875rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s;
}
.entry-row:hover { background: var(--bg-hover); }
.entry-row + .entry-row { border-top: 1px solid var(--border); }
.entry-row:hover + .entry-row { border-color: transparent; }

.rank-col { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.rank-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}
.r1 { color: var(--rank-1); }
.r2 { color: var(--rank-2); }
.r3 { color: var(--rank-3); }
.rlo { color: var(--text-3); }

.movement { font-size: 0.6rem; font-weight: 600; }
.mv-up   { color: var(--green); }
.mv-down { color: var(--red); }
.mv-same { color: var(--text-3); }
.mv-new  { color: var(--accent); }

.entry-photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-dim), var(--bg-hover));
  border: 2px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.entry-photo img { width: 100%; height: 100%; object-fit: cover; }
/* A country entry has a flag where a person has a face. Sized to
   fill the same 52px slot so a mixed list does not jump. */
.entry-flag { font-size: 1.75rem; line-height: 1; }
.entry-initials {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.entry-info { min-width: 0; }
.entry-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
  display: block;
  margin-bottom: 0.15rem;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-name:hover { color: var(--accent); }
.entry-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.73rem; color: var(--text-3);
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}
.entry-meta .sep { opacity: 0.4; }
.controversial-badge {
  color: var(--amber); background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  padding: 0.05rem 0.45rem; border-radius: 20px;
  font-size: 0.62rem; font-weight: 600;
}
.vote-bar-wrap { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; max-width: 300px; }
.vote-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.4s; }
.r1-bar .vote-bar-fill { background: var(--rank-1); }

/* ── VOTE WIDGET ──────────────────────────────────────────────────────────── */
.vote-widget {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--border-s);
  border-radius: 8px;
  overflow: hidden;
  height: 40px;
  box-shadow: var(--shadow-card);
}
.vote-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-3);
  transition: background 0.15s, color 0.15s;
}
.vote-btn.up:hover, .vote-btn.up.active { background: var(--green-dim); color: var(--green); }
.vote-btn.down:hover, .vote-btn.down.active { background: var(--red-dim); color: var(--red); }
.vote-score {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 64px;
  padding: 0 0.375rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  gap: 0.05rem;
}
.score-num { font-size: 0.85rem; font-weight: 700; color: var(--text-1); line-height: 1; }
.vote-score.voted-up   .score-num { color: var(--green); }
.vote-score.voted-down .score-num { color: var(--red); }
.score-lbl { font-size: 0.53rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }

/* ── LIST HEADER ──────────────────────────────────────────────────────────── */
.list-hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.list-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 0.75rem;
  max-width: 700px;
}
.list-desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.75; max-width: 620px; margin-bottom: 1.25rem; }
.list-stats-bar {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text-3);
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0; }
.list-stats-bar strong { color: var(--text-2); font-weight: 500; }
.list-stats-bar .dot { opacity: 0.35; }

/* Cover / banner variant — list, category, article hero all support this */
.list-hero.has-cover { padding: 4rem 0 3rem; }
.list-hero.has-cover .list-title,
.list-hero.has-cover .list-desc,
.list-hero.has-cover .list-stats-bar,
.list-hero.has-cover .list-stats-bar strong { color: #fff; }
.list-hero.has-cover .tag-geo { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }

/* Governance box */
.governance-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex; flex-direction: column; gap: 0.875rem;
  box-shadow: var(--shadow-card);
}
.gov-item label { display: block; font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); font-weight: 700; margin-bottom: 0.2rem; }
.gov-item p { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; }

/* Filter pills */
.filter-bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 0.625rem; }
.filter-pills { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.pill {
  padding: 0.3rem 0.875rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-card);
}
.pill:hover { border-color: var(--accent-border); color: var(--accent); }
.pill.active { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); font-weight: 600; }

/* Suggest CTA (bottom of list) */
.suggest-cta {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-s);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.suggest-cta h3 { font-size: 0.9375rem; font-weight: 600; color: var(--text-1); margin-bottom: 0.15rem; }
.suggest-cta p { font-size: 0.8rem; color: var(--text-3); }

/* Related lists */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.125rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.related-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-border); }
.related-cat { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }
.related-title { font-size: 0.875rem; font-weight: 500; color: var(--text-1); line-height: 1.4; flex: 1; }
.related-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 0.625rem; margin-top: auto; }
.related-votes { font-size: 0.73rem; color: var(--text-3); }
.related-votes strong { color: var(--text-2); font-weight: 500; }
.related-arrow { font-size: 0.73rem; color: var(--text-3); }
.related-card:hover .related-arrow { color: var(--accent); }

/* ── PERSON PAGE ──────────────────────────────────────────────────────────── */
.person-hero { padding: 2.75rem 0 2.25rem; border-bottom: 1px solid var(--border); }
.person-hero-inner { display: grid; grid-template-columns: 136px 1fr; gap: 2.25rem; align-items: start; }

/* The person page's own photo, and the one image on the site that is
   worth full weight — it is the subject of the page. Everything else
   (ranking rows, grids, the homepage strip) renders Person.image_thumb
   at 52-58px instead. At 136px this page's photo was the same size as a
   thumbnail in a list, so the page about somebody looked like a row
   about them. */
.person-photo-wrap { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.person-photo-ring { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid var(--accent); opacity: 0.4; }
.person-photo-inner {
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-dim), var(--bg-hover));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.person-photo-initials { font-family: 'Playfair Display', serif; font-size: 3.4rem; font-weight: 900; color: var(--accent); opacity: 0.8; }
.person-photo-inner img { width: 100%; height: 100%; object-fit: cover; }

.person-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 0.25rem;
}
.person-aka { font-family: 'Playfair Display', serif; font-style: italic; font-size: 0.9rem; color: var(--text-3); margin-bottom: 1rem; }
.verified-badge { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.65rem; font-weight: 700; color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: 20px; padding: 0.1rem 0.5rem; margin-left: 0.4rem; vertical-align: middle; }

.facts-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.375rem; }
.fact { display: flex; flex-direction: column; gap: 0.15rem; }
.fact-label { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); font-weight: 600; }
.fact-value { font-size: 0.875rem; color: var(--text-2); font-weight: 500; }

.stats-bar {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.stat-item {
  flex: 1;
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-n { font-size: 1.625rem; font-weight: 700; color: var(--accent); letter-spacing: -0.025em; line-height: 1; }
.stat-lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; }

.appearances-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.appear-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.125rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  position: relative; overflow: hidden;
}
.appear-card:hover { box-shadow: var(--shadow-hover); border-color: var(--accent-border); }

.ghost-rank {
  position: absolute; bottom: -12px; right: 4px;
  font-family: 'Playfair Display', serif;
  font-size: 6rem; font-weight: 900;
  color: var(--accent); opacity: 0.04;
  pointer-events: none; user-select: none; line-height: 1;
  transition: opacity 0.2s;
}
.appear-card:hover .ghost-rank { opacity: 0.09; }

.appear-rank-row { display: flex; align-items: center; justify-content: space-between; }
.appear-rank { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; }
.appear-scope { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); background: var(--bg-hover); border: 1px solid var(--border); padding: 0.12rem 0.5rem; border-radius: 4px; }
.appear-title { font-size: 0.875rem; font-weight: 500; color: var(--text-1); line-height: 1.4; flex: 1; }
.appear-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 0.625rem; margin-top: auto; font-size: 0.73rem; }
.appear-votes { color: var(--text-3); }
.appear-votes strong { color: var(--text-2); font-weight: 500; }
.appear-link { color: var(--text-3); }
.appear-card:hover .appear-link { color: var(--accent); }

/* ── CATEGORY PAGE ────────────────────────────────────────────────────────── */
.cat-hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.cat-hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%); pointer-events: none; }
.cat-hero-inner { display: flex; align-items: flex-start; gap: 1.75rem; position: relative; }
.cat-icon-large {
  width: 68px; height: 68px;
  border-radius: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.cat-hero-name { font-family: 'Playfair Display', serif; font-size: 2.75rem; font-weight: 900; letter-spacing: -0.03em; color: var(--text-1); margin-bottom: 0.5rem; }
.cat-hero-desc { font-size: 0.9rem; color: var(--text-2); max-width: 520px; line-height: 1.65; margin-bottom: 1.375rem; }
.cat-stats-row { display: flex; gap: 0; }
.cat-stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 0 1.25rem; border-right: 1px solid var(--border); }
.cat-stat:first-child { padding-left: 0; }
.cat-stat:last-child { border-right: none; }
.cat-stat-n { font-size: 1.4rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.cat-stat-lbl { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 600; }

/* Cover / banner variant for category hero */
.cat-hero.has-cover { padding: 4.5rem 0 3.5rem; }
.cat-hero.has-cover .cat-hero-name,
.cat-hero.has-cover .cat-hero-desc,
.cat-hero.has-cover .cat-stat-n,
.cat-hero.has-cover .cat-stat-lbl,
.cat-hero.has-cover .eyebrow { color: #fff; }
.cat-hero.has-cover .eyebrow-dot { background: #fff; }
.cat-hero.has-cover .cat-icon-large { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }

/* Subcat tab bar */
.subcat-bar { border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; scrollbar-width: none; }
.subcat-bar::-webkit-scrollbar { display: none; }
.subcat-btn {
  padding: 0.875rem 1.1rem;
  border: none; border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--text-3);
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  display: flex; align-items: center; gap: 0.35rem;
}
.subcat-btn:hover { color: var(--text-2); }
.subcat-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.subcat-count {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--bg-hover);
  color: var(--text-3);
  font-size: 0.62rem;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.subcat-btn.active .subcat-count { background: var(--accent-dim); color: var(--accent); }

/* Stacked avatars inside list card */
.avatars { display: flex; align-items: center; }
.avatar-chip {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: -7px;
  flex-shrink: 0;
}
.avatar-chip:first-child { margin-left: 0; }
.avatar-chip.more { background: var(--bg-hover); color: var(--text-3); font-family: 'Inter', sans-serif; }
.avatars-label { font-size: 0.7rem; color: var(--text-3); margin-left: 0.5rem; }

/* ── PAGINATION ───────────────────────────────────────────────────────────── */
.pagination-row { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.pagination-row .page-info { font-size: 0.8rem; color: var(--text-3); }

/* ── DASHBOARD ────────────────────────────────────────────────────────────── */
.dash-wrap { max-width: 1280px; margin: 0 auto; padding: 1.75rem 1.75rem 3rem; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }
.dash-header-left h1 { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.02em; margin-bottom: 0.2rem; }
.dash-header-left p { font-size: 0.78rem; color: var(--text-3); }
.dash-header-actions { display: flex; gap: 0.625rem; align-items: center; flex-wrap: wrap; }

.btn-dash { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.875rem; border-radius: 6px; font-size: 0.78rem; font-weight: 500; text-decoration: none; cursor: pointer; border: 1px solid var(--border-s); background: transparent; color: var(--text-2); transition: border-color 0.15s, color 0.15s; }
.btn-dash:hover { border-color: var(--accent-border); color: var(--accent); }
.btn-dash.green { border-color: var(--green-border); color: var(--green); background: var(--green-dim); }
.btn-dash.green:hover { background: rgba(22,163,74,0.14); }
.btn-dash.amber { border-color: var(--amber-border); color: var(--amber); background: var(--amber-dim); }
.btn-dash.red { border-color: rgba(220,38,38,0.25); color: var(--red); background: var(--red-dim); }

/* Dashboard sub-nav — persistent across every dashboard page */
.dash-subnav {
  display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap;
  padding: 0.625rem 1.75rem; border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky; top: 62px; z-index: 150;
}
.dash-subnav a, .dash-subnav-dropdown-btn {
  padding: 0.4rem 0.75rem; border-radius: 6px; font-size: 0.78rem; font-weight: 500;
  color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.dash-subnav a:hover, .dash-subnav-dropdown-btn:hover { background: var(--accent-dim); color: var(--accent); }
.dash-subnav a.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
.dash-subnav-admin { margin-left: auto; color: var(--text-3) !important; }
.subnav-badge { background: var(--amber); color: #000; border-radius: 10px; padding: 0.02rem 0.4rem; font-size: 0.65rem; font-weight: 700; margin-left: 0.15rem; }

.dash-subnav-dropdown { position: relative; }
.dash-subnav-dropdown-panel {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--border-s); border-radius: 9px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14); z-index: 250; padding: 0.5rem 0;
}
.dash-subnav-dropdown-panel a { display: block; padding: 0.45rem 1rem; font-size: 0.8rem; color: var(--text-2); border-radius: 0; }
.dash-subnav-dropdown-panel a:hover { background: var(--bg-hover); color: var(--accent); }
.dash-subnav-group-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; padding: 0.5rem 1rem 0.25rem; }

.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 1.125rem 1.25rem; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.metric-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0.6; }
.metric-card.green::before { background: var(--green); }
.metric-card.amber::before { background: var(--amber); }
.metric-label { font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); font-weight: 600; margin-bottom: 0.5rem; }
.metric-value { font-size: 1.9rem; font-weight: 700; color: var(--text-1); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.25rem; }
.metric-sub { font-size: 0.68rem; color: var(--text-3); }
.metric-sub .good { color: var(--green); font-weight: 500; }
.metric-sub .warn { color: var(--amber); font-weight: 500; }

.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1rem; box-shadow: var(--shadow-card); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--border); }
.panel-title { font-size: 0.8rem; font-weight: 600; color: var(--text-1); }
.panel-sub { font-size: 0.7rem; color: var(--text-3); }
.panel-action { font-size: 0.72rem; color: var(--text-3); text-decoration: none; }
.panel-action:hover { color: var(--accent); }
.panel-empty { padding: 1.5rem 1.25rem; font-size: 0.8rem; color: var(--text-3); text-align: center; }

.chart-inner { padding: 1.25rem; }
.chart-bars { display: flex; align-items: flex-end; gap: 0.625rem; height: 120px; margin-bottom: 0.5rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; height: 100%; justify-content: flex-end; }
.bar-count { font-size: 0.6rem; color: var(--text-3); line-height: 1; }
.bar { width: 100%; border-radius: 4px 4px 0 0; background: var(--accent-dim); border: 1px solid var(--accent-border); border-bottom: none; min-height: 4px; }
.bar.today { background: var(--accent); border-color: var(--accent); }
.bar-day { font-size: 0.62rem; color: var(--text-3); font-weight: 500; }
.bar-day.today { color: var(--accent); font-weight: 600; }
.chart-baseline { height: 1px; background: var(--border-s); margin: 0 1.25rem; }
.chart-footer { display: flex; justify-content: space-between; padding: 0.625rem 1.25rem; font-size: 0.72rem; color: var(--text-3); border-top: 1px solid var(--border); }
.chart-footer strong { color: var(--text-2); }

.lists-table { width: 100%; border-collapse: collapse; }
.lists-table th { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; padding: 0.55rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); background: var(--bg-hover); }
.lists-table th.right { text-align: right; }
.lists-table td { padding: 0.65rem 1.25rem; font-size: 0.78rem; color: var(--text-2); border-bottom: 1px solid var(--border); vertical-align: middle; }
.lists-table tr:last-child td { border-bottom: none; }
.lists-table tr:hover td { background: var(--bg-hover); }
.list-link { color: var(--text-1); text-decoration: none; font-weight: 500; font-size: 0.8rem; display: block; }
.list-link:hover { color: var(--accent); }
.list-meta-small { font-size: 0.68rem; color: var(--text-3); }
.td-right { text-align: right; }
.week-votes { color: var(--green); font-weight: 600; font-size: 0.78rem; }
.heat { display: flex; gap: 2px; justify-content: flex-end; }
.heat-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--border-s); }
.heat-dot.on { background: var(--accent); }

.rising-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1.25rem; border-bottom: 1px solid var(--border); }
.rising-item:last-child { border-bottom: none; }
.rising-item:hover { background: var(--bg-hover); }
.delta-badge { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.delta-up   { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.delta-down { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(220,38,38,0.25); }
.rising-photo { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-dim); border: 1.5px solid var(--accent-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Playfair Display', serif; font-size: 0.58rem; font-weight: 700; color: var(--accent); }
.rising-info { flex: 1; min-width: 0; }
.rising-name { font-size: 0.78rem; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; display: block; }
.rising-name:hover { color: var(--accent); }
.rising-list-name { font-size: 0.67rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rising-pos { font-size: 0.7rem; color: var(--text-3); flex-shrink: 0; white-space: nowrap; }
.rising-pos strong { color: var(--text-2); font-weight: 500; }

.activity-scroll { max-height: 300px; overflow-y: auto; }
.activity-scroll::-webkit-scrollbar { width: 3px; }
.activity-scroll::-webkit-scrollbar-thumb { background: var(--border-s); border-radius: 2px; }
.activity-row { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.575rem 1.25rem; border-bottom: 1px solid var(--border); }
.activity-row:last-child { border-bottom: none; }
.activity-flag { font-size: 0.9rem; flex-shrink: 0; line-height: 1.5; }
.activity-body { flex: 1; min-width: 0; }
.activity-type { display: inline-block; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.08rem 0.35rem; border-radius: 3px; margin-bottom: 0.15rem; }
.type-up   { background: var(--green-dim); color: var(--green); }
.type-down { background: var(--red-dim);   color: var(--red); }
.activity-text { font-size: 0.74rem; color: var(--text-3); line-height: 1.4; }
.activity-text strong { color: var(--text-2); font-weight: 500; }
.activity-time { font-size: 0.63rem; color: var(--text-3); flex-shrink: 0; padding-top: 0.2rem; white-space: nowrap; }

.pending-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--amber-dim); }
.pending-item:last-child { border-bottom: none; }
.pending-info { flex: 1; min-width: 0; }
.pending-name { font-size: 0.8rem; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-list-name { font-size: 0.68rem; color: var(--text-3); }
.pending-actions { display: flex; gap: 0.375rem; flex-shrink: 0; }
.btn-approve { padding: 0.25rem 0.6rem; background: var(--green-dim); border: 1px solid var(--green-border); border-radius: 4px; color: var(--green); font-size: 0.68rem; font-weight: 600; cursor: pointer; }
.btn-approve:hover { background: rgba(22,163,74,0.16); }
.btn-reject  { padding: 0.25rem 0.6rem; background: var(--red-dim); border: 1px solid rgba(220,38,38,0.25); border-radius: 4px; color: var(--red); font-size: 0.68rem; font-weight: 600; cursor: pointer; }
.cat-row { padding: 0.625rem 1.25rem; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: none; }
.cat-row-top { display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.cat-row-name { font-size: 0.78rem; font-weight: 500; color: var(--text-2); }
.cat-row-stats { font-size: 0.7rem; color: var(--text-3); }
.cat-bar-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.cat-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; align-items: start; }

/* ── DASHBOARD FORMS ──────────────────────────────────────────────────────── */
.form-wrap { max-width: 760px; }
.form-section { margin-bottom: 2rem; }
.form-section-title { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; padding-bottom: 0.625rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.field { margin-bottom: 1.125rem; }
.field > label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; margin-bottom: 0.45rem; }
.field input[type=text], .field input[type=url], .field input[type=number], .field input[type=email], .field input[type=date], .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border-s); border-radius: 7px;
  color: var(--text-1); padding: 0.625rem 0.875rem; font-size: 0.875rem;
  font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-border); background: var(--bg-card); }
.field select option { background: var(--bg-card); color: var(--text-1); }
.field textarea { resize: vertical; min-height: 80px; }
.field input[type=file] {
  width: 100%; background: var(--bg); border: 1.5px dashed var(--border-s); border-radius: 7px;
  color: var(--text-2); padding: 0.625rem 0.875rem; font-size: 0.82rem; font-family: 'Inter', sans-serif; cursor: pointer;
}
.field .helptext { font-size: 0.7rem; color: var(--text-3); margin-top: 0.35rem; line-height: 1.5; }
.field-error { font-size: 0.72rem; color: var(--red); margin-top: 0.3rem; }
.field-check { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.75rem; }
.field-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.field-check label { font-size: 0.85rem; color: var(--text-2); font-weight: 400; cursor: pointer; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; padding-top: 1.25rem; border-top: 1px solid var(--border); margin-top: 1.5rem; flex-wrap: wrap; }
.danger-zone { margin-top: 2rem; padding: 1.25rem; border: 1.5px dashed rgba(220,38,38,0.3); border-radius: 10px; }
.danger-zone p { font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.75rem; }

/* ── CHIP SELECTOR ────────────────────────────────────────────────────────── */
.csel { position: relative; }
.csel-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-height: 42px; padding: 0.4rem 0.625rem; background: var(--bg); border: 1.5px solid var(--border-s); border-radius: 7px; cursor: pointer; transition: border-color 0.15s; }
.csel-chips-row:hover { border-color: var(--accent-border); }
.csel-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.3rem 0.22rem 0.65rem; background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: 20px; font-size: 0.78rem; font-weight: 500; color: var(--accent); white-space: nowrap; }
.csel-chip-x { background: none; border: none; cursor: pointer; color: var(--accent); font-size: 1rem; line-height: 1; padding: 0 0.2rem; opacity: 0.55; transition: opacity 0.1s; }
.csel-chip-x:hover { opacity: 1; }
.csel-add-btn { background: none; border: 1.5px dashed var(--border-s); border-radius: 20px; color: var(--text-3); font-size: 0.75rem; padding: 0.22rem 0.75rem; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.csel-add-btn:hover { border-color: var(--accent-border); color: var(--accent); }
.csel-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg-card); border: 1.5px solid var(--border-s); border-radius: 9px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 200; overflow: hidden; }
.csel-search-wrap { padding: 0.5rem 0.625rem; border-bottom: 1px solid var(--border); }
.csel-search { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text-1); padding: 0.4rem 0.75rem; font-size: 0.82rem; font-family: 'Inter', sans-serif; outline: none; }
.csel-search:focus { border-color: var(--accent-border); }
.csel-list { max-height: 240px; overflow-y: auto; padding: 0.3rem 0; }
.csel-list::-webkit-scrollbar { width: 4px; }
.csel-list::-webkit-scrollbar-thumb { background: var(--border-s); border-radius: 2px; }
.csel-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; cursor: pointer; transition: background 0.1s; font-size: 0.82rem; color: var(--text-2); }
.csel-option:hover { background: var(--bg-hover); }
.csel-option.csel-selected { color: var(--text-1); }
.csel-option.csel-selected:hover { background: var(--accent-dim); }
.csel-sub { padding-left: 1.875rem; color: var(--text-3); font-size: 0.78rem; }
.csel-sub:hover { color: var(--text-2); }
.csel-sub.csel-selected { color: var(--text-2); }
.csel-opt-icon { font-size: 0.9rem; flex-shrink: 0; min-width: 18px; }
.csel-opt-name { flex: 1; }
.csel-opt-check { color: var(--accent); font-size: 0.78rem; font-weight: 600; flex-shrink: 0; width: 14px; text-align: right; }
.csel-empty { padding: 0.875rem 1rem; font-size: 0.78rem; color: var(--text-3); text-align: center; }

/* ── PEOPLE/LISTS TABLES (dashboard browse) ───────────────────────────────── */
.people-table, .entries-table, .generic-table, .audit-table { width: 100%; border-collapse: collapse; }
.people-table th, .entries-table th, .generic-table th, .audit-table th { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); padding: 0.6rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-weight: 600; background: var(--bg-hover); }
.people-table td, .entries-table td, .generic-table td, .audit-table td { padding: 0.7rem 1rem; font-size: 0.82rem; color: var(--text-2); border-bottom: 1px solid var(--border); vertical-align: middle; }
.people-table tr:last-child td, .entries-table tr:last-child td, .generic-table tr:last-child td, .audit-table tr:last-child td { border-bottom: none; }
.people-table tr:hover td, .entries-table tr:hover td, .generic-table tr:hover td, .audit-table tr:hover td { background: var(--bg-hover); }
.person-link { color: var(--text-1); text-decoration: none; font-weight: 500; }
.person-link:hover { color: var(--accent); }
.search-bar-simple { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.search-bar-simple input { flex: 1; background: var(--bg-card); border: 1.5px solid var(--border-s); border-radius: 7px; color: var(--text-1); padding: 0.5rem 0.875rem; font-size: 0.875rem; font-family: 'Inter', sans-serif; outline: none; }
.search-bar-simple input:focus { border-color: var(--accent-border); }
.search-bar-simple button { padding: 0.5rem 1rem; background: var(--accent-dim); border: 1.5px solid var(--accent-border); border-radius: 7px; color: var(--accent); font-size: 0.82rem; cursor: pointer; font-weight: 500; }

/* Dashboard tables — horizontal scroll on narrow screens instead of breaking layout */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Public browse-people grid */
.people-grid { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ── GENERIC CRUD (Region/Country/Category/Tag manager) ──────────────────── */
.generic-header-note { font-size: 0.8rem; color: var(--text-3); margin-bottom: 1.25rem; line-height: 1.6; }

/* ── ARTICLE ITEM FORMSET EDITOR ──────────────────────────────────────────── */
.formset-row { border: 1px solid var(--border); border-radius: 9px; padding: 1rem; margin-bottom: 0.875rem; position: relative; background: var(--bg); }
.formset-row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.formset-row-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 700; }
.formset-delete-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--red); }
.formset-fields-row { display: grid; grid-template-columns: 70px 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.formset-add-btn { width: 100%; padding: 0.75rem; border: 1.5px dashed var(--border-s); border-radius: 9px; color: var(--text-3); font-size: 0.82rem; font-weight: 500; text-align: center; cursor: pointer; background: transparent; }
.formset-add-btn:hover { border-color: var(--accent-border); color: var(--accent); }

/* ── VOTE FRAUD AUDIT ─────────────────────────────────────────────────────── */
.audit-intro { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.25rem; max-width: 700px; }
.audit-threshold-form { display: flex; align-items: flex-end; gap: 0.75rem; margin-bottom: 1.25rem; }
.audit-threshold-form .field { margin-bottom: 0; }
.audit-threshold-form input { width: 100px; }
.audit-count-badge { font-size: 0.72rem; color: var(--red); background: var(--red-dim); border: 1px solid rgba(220,38,38,0.25); border-radius: 20px; padding: 0.15rem 0.6rem; font-weight: 600; }
.audit-ip { font-family: monospace; font-size: 0.78rem; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-3); }
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.78rem; color: var(--text-3); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.72rem; color: var(--text-3); }
.footer-link-btn { background: none; border: none; cursor: pointer; font: inherit; font-size: 0.78rem; color: var(--text-3); padding: 0; }
.footer-link-btn:hover { color: var(--accent); }

/* ── MODALS (suggestion + share) ──────────────────────────────────────────── */
/* Base rule holds NO display value — only :not([hidden]) sets display:flex,
   so the [hidden] attribute always wins when present. */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; padding: 1rem; }
.modal-overlay:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.modal-box { background: var(--bg-card); border-radius: 14px; padding: 1.75rem; max-width: 420px; width: 100%; position: relative; box-shadow: var(--shadow-hover); }
.modal-close { position: absolute; top: 0.75rem; right: 0.9rem; background: none; border: none; font-size: 1.4rem; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal-box h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 0.4rem; }
.modal-sub { font-size: 0.8rem; color: var(--text-3); margin-bottom: 1.25rem; line-height: 1.5; }

.share-box { max-width: 380px; }
.share-link-row { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.share-link-row input { flex: 1; background: var(--bg); border: 1.5px solid var(--border-s); border-radius: 7px; padding: 0.55rem 0.75rem; font-size: 0.8rem; color: var(--text-2); font-family: 'Inter', sans-serif; }
.share-social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.share-social-btn { display: flex; align-items: center; justify-content: center; padding: 0.6rem; border-radius: 8px; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: opacity 0.15s; }
.share-social-btn:hover { opacity: 0.85; }
.share-x  { background: #000; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }
.share-wa { background: #25D366; color: #fff; }
.share-em { background: var(--bg-hover); color: var(--text-2); border: 1px solid var(--border); }

/* ── EMPTY STATE ──────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--text-3); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-2); margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.84rem; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Paired with the 901px rule above: exactly one of the inline nav
     and the hamburger is visible at every width. */
  .nav-center { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .fields-row { grid-template-columns: 1fr; }
  .regions-grid { grid-template-columns: repeat(2, 1fr); }
  .appearances-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-title { font-size: 2.75rem; }
  .person-hero-inner { grid-template-columns: 1fr; }
  .person-photo-wrap { width: 132px; height: 132px; }
  .person-photo-initials { font-size: 2.5rem; }
  .person-name { font-size: 2rem; }
  .site-nav-inner { padding: 0 1rem; }
  .wrap, .wrap-wide { padding: 0 1rem; }
  .dash-wrap { padding: 1rem 1rem 2rem; }
  .dash-subnav { padding: 0.5rem 1rem; top: 0; }
  .cat-hero-inner { flex-direction: column; }
  .regions-grid { grid-template-columns: 1fr; }
  .appearances-grid, .related-grid { grid-template-columns: 1fr; }
  .entry-row { grid-template-columns: 48px 40px 1fr auto; }

  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; padding: 2rem 1.5rem; gap: 1.5rem; }
  .cta-btns { width: 100%; }
  .cta-btns button, .cta-btns a { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .entry-row {
    grid-template-columns: 36px 40px 1fr;
    grid-template-areas: "rank photo info" "vote vote vote";
    row-gap: 0.6rem;
    padding: 0.875rem 0.625rem;
  }
  .rank-col { grid-area: rank; }
  .entry-photo { grid-area: photo; width: 40px; height: 40px; }
  .entry-info { grid-area: info; }
  .entry-right { grid-area: vote; }
  .vote-widget { width: 100%; height: 44px; }
  .vote-btn { flex: 1; }

  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ADVERTISING
   Deliberately quiet. A reserved min-height (set per slot in the dashboard)
   keeps the page from jumping as an ad loads — that shove is the main reason
   ad-funded sites feel cheap, and it is what Google measures as Cumulative
   Layout Shift. Nothing here is sticky and nothing overlays content.
   ═══════════════════════════════════════════════════════════════════════════ */

.ad {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}
.ad__label {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.375rem;
  opacity: 0.7;
}
.ad__unit { display: flex; align-items: center; justify-content: center; }
.ad__unit > * { max-width: 100%; }

/* Wide and short, between sections. Capped at 970px — the widest standard
   leaderboard — so it never outgrows the reading column on a large screen,
   and centred so it reads as part of the layout rather than bolted on. */
.ad--leaderboard {
  width: 100%;
  max-width: 970px;
  padding: 0.625rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Portrait. 300px is the width of every standard sidebar unit ever made
   (300x250, 300x600, 160x600), so the cap matches all three — without it a
   leaderboard snippet pasted into this slot would overflow its column. */
.ad--sidebar { margin: 0 0 1.375rem; max-width: 300px; }
.ad--sidebar .ad__unit { flex-direction: column; }

/* Whatever the network returns, it stays inside its slot. */
.ad__unit iframe, .ad__unit ins, .ad__unit img { max-width: 100%; }

@media (max-width: 640px) {
  .ad { margin: 1.5rem auto; }
}


/* ── Long-form policy pages (privacy, terms) ───────────────────────────── */
.prose { max-width: 720px; padding: 3rem 1.75rem 4rem; }
.prose h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem; font-weight: 900;
  margin-bottom: 0.5rem;
}
.prose .prose-updated {
  font-size: 0.75rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  margin: 2rem 0 0.625rem;
}
.prose p, .prose li {
  font-size: 0.9375rem; color: var(--text-2); line-height: 1.85;
}
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--accent); }


/* ── NEGATIVE-LIST NOTICE AND PER-ENTRY CITATION ──────────────────────────
   Both belong to lists that say something about named living people. They
   are styled to be read rather than skipped — a disclaimer set in grey
   six-point type is a disclaimer nobody has read, which defeats the point
   of having one. Set in the body colour at body size, held apart from the
   ranking by a rule rather than by shouting. */

.list-notice {
  margin: 1.25rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.7;
}
.list-notice p { margin: 0; }
.list-notice p + p { margin-top: 0.6rem; }
.list-notice strong { color: var(--text-1); }
.list-notice a { color: var(--accent); text-decoration: underline; }

/* Sits under the name it belongs to, inside the entry row. Not italic and
   not dimmed to the point of decoration: this line is the reason the name
   is allowed on the page at all. */
.entry-source {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0.15rem 0 0.5rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--border-s);
  max-width: 62ch;
}
.entry-source-label {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.64rem;
  font-weight: 700;
  margin-right: 0.25rem;
}
.entry-source a {
  color: var(--accent);
  white-space: nowrap;
  margin-left: 0.3rem;
}


/* ── FEATURE ARTICLE PROSE ────────────────────────────────────────────────
   Set for reading rather than scanning: a real measure, generous leading,
   and headings that separate sections without shouting. These pieces are
   900 to 1,200 words and are the only long-form text on the site, so they
   get their own type scale rather than borrowing the ranking pages'. */

.article-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 68ch;
}
.article-prose > *:first-child { margin-top: 0; }
.article-prose > *:last-child  { margin-bottom: 0; }
.article-prose p { margin: 0 0 1.15rem; }
.article-prose strong { color: var(--text-1); font-weight: 650; }
.article-prose em { font-style: italic; }
.article-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.article-prose h2 {
  font-size: 1.28rem;
  line-height: 1.3;
  color: var(--text-1);
  margin: 2.2rem 0 0.85rem;
  letter-spacing: -0.01em;
}
.article-prose h3 {
  font-size: 1.05rem;
  color: var(--text-1);
  margin: 1.7rem 0 0.6rem;
}
.article-prose ul { margin: 0 0 1.15rem 1.1rem; padding: 0; }
.article-prose li { margin-bottom: 0.5rem; }

/* A pulled quote, not a decorative one — used for the line the piece is
   actually arguing with. */
.article-prose blockquote {
  margin: 1.4rem 0;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-1);
  font-size: 1.02rem;
}

/* The opening paragraphs, above the items. Slightly larger, because the
   first screen decides whether anybody reads the rest. */
.article-lede {
  font-size: 1.06rem;
  line-height: 1.75;
}
.article-lede p:first-child { color: var(--text-1); }

.article-item-blurb {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-top: 0.3rem;
  max-width: 64ch;
}
.article-item-blurb p { margin: 0 0 0.6rem; }
.article-item-blurb p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .article-prose, .article-lede { font-size: 0.98rem; }
  .article-prose h2 { font-size: 1.18rem; }
}


/* ── "NOW SETTLE IT" ──────────────────────────────────────────────────────
   The block that closes every feature and hands the reader to the poll the
   piece is arguing about. Deliberately the loudest thing on an article
   page: the writing is what brings somebody in, and the vote is what keeps
   them and gives them a reason to come back. */

.settle-it {
  margin: 2rem 0 1rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
}
.settle-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.settle-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
  text-decoration: none;
  margin-bottom: 0.7rem;
}
.settle-title:hover { color: var(--accent); }

/* The current top three. "Vote on this" alone is an instruction; showing
   who is winning is an invitation to disagree, which is the actual hook. */
.settle-leaders { list-style: none; margin: 0 0 0.7rem; padding: 0; }
.settle-leaders li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 0.18rem 0;
}
.settle-rank {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 1.1rem;
}
.settle-stat {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: var(--text-3);
}
.settle-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: filter 0.15s;
}
.settle-btn:hover { filter: brightness(1.1); }

/* ── CROSS-LINKS ──────────────────────────────────────────────────────────
   Two blocks that exist for one reason: a ranking page and a person page
   were both leaves. Somebody arrived from search, read one page, and left.
   Each of these gives them somewhere obvious to go next, which is worth
   more per visitor than any amount of extra traffic. */

.read-about { margin: 2.5rem 0 1rem; }
.read-about-head {
  font-size: 1.05rem;
  color: var(--text-1);
  margin: 0 0 0.9rem;
}
.read-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}
.read-about-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  background: var(--bg-card, var(--bg-hover));
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.read-about-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.read-about-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.read-about-title {
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text-1);
}
.read-about-sub {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-3);
}

.also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
}
.also-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s;
}
.also-card:hover { border-color: var(--accent-border); }
.also-name { font-size: 0.88rem; font-weight: 600; color: var(--text-1); }
.also-meta { font-size: 0.72rem; color: var(--text-3); }

/* ── ANCHOR AD ────────────────────────────────────────────────────────────
   The one sticky unit on the site, and the exception to the no-sticky rule
   in AdSlot's docstring. Three conditions, and all three are here rather
   than in a policy document: it is dismissible, the page reserves its
   height at the foot so it never covers content, and it is out of the way
   of the vote buttons on a ranking row.

   `body:has()` reserves the space only when the bar is actually rendered —
   which is only when ads are on AND the slot is active AND it has code in
   it. On a browser without :has() support the bar simply overlaps the
   footer, which is the least bad degradation available. */

.ad-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 2.5rem 0.35rem 0.5rem;
  background: var(--bg-nav);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-s);
}
.ad-anchor[hidden] { display: none !important; }
.ad-anchor__close {
  position: absolute;
  top: 0.25rem;
  right: 0.4rem;
  width: 26px;
  height: 26px;
  line-height: 1;
  font-size: 1.1rem;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-s);
  color: var(--text-2);
}
.ad-anchor__close:hover { color: var(--text-1); border-color: var(--text-3); }

body:has(.ad-anchor:not([hidden])) { padding-bottom: 96px; }

@media (max-width: 640px) {
  .settle-it { padding: 1.1rem 1.1rem 1.2rem; }
  .settle-title { font-size: 1.12rem; }
}

/* ── PHOTO CREDITS ─────────────────────────────────────────────────────── */
/* Several hundred rows, so it has to stay readable on a phone: the table
   scrolls inside its own box rather than widening the page. */
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 1rem; }
.credits-table th { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 2px solid var(--border);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.credits-table td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.credits-table tr:last-child td { border-bottom: 0; }
.credits-table a { color: var(--accent); }
.credit-cell { color: var(--text-3); font-size: 0.76rem; line-height: 1.5; }
@media (max-width: 560px) {
  .credits-table, .credits-table tbody, .credits-table tr, .credits-table td { display: block; width: 100%; }
  .credits-table thead { display: none; }
  .credits-table tr { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .credits-table td { border: 0; padding: 0; }
}

/* ── THE PIECE UNDER A RANKING ─────────────────────────────────────────── */
/* The fold is CSS, not JavaScript. The whole text is in the HTML on first
   render — a crawler reads all of it whether the button is clicked or not.
   Collapsing in JS, or fetching on click, would hide the one thing on a
   ranking page worth indexing. */
.list-essay {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding: 0 1.75rem;
}
.list-essay-head {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: var(--text-1);
}
.list-essay-body { color: var(--text-2); }

/* Only a foldable essay is clipped. A short one renders whole and gets no
   button, because a "read more" control over two sentences is noise. */
.list-essay.is-foldable .list-essay-body {
  max-height: 16rem;
  overflow: hidden;
  position: relative;
  /* Fades the last line rather than cutting it mid-letter. */
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.list-essay.is-foldable.is-open .list-essay-body {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}

.list-essay-toggle {
  margin-top: 0.85rem;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  cursor: pointer;
}
.list-essay-toggle:hover { background: var(--bg-hover); }
.list-essay .essay-less { display: none; }
.list-essay.is-open .essay-more { display: none; }
.list-essay.is-open .essay-less { display: inline; }

/* No JavaScript: show the whole thing rather than a permanently clipped
   essay with a button that does nothing. */
.no-js .list-essay.is-foldable .list-essay-body {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}
.no-js .list-essay-toggle { display: none; }

@media (max-width: 640px) {
  .list-essay { padding: 0 1rem; }
  .list-essay.is-foldable .list-essay-body { max-height: 13rem; }
}

/* ── HEAD TO HEAD ─────────────────────────────────────────────────────────── */
.versus-question { font-size: 1.15rem; color: var(--text-2); margin-top: 0.4rem; }
.entry-context-note { font-size:.83rem; color:var(--text-2); margin-bottom:.4rem; line-height:1.6; }
.entry-also-ranked { margin:.5rem 0; font-size:.78rem; line-height:1.5; }
.entry-also-label { color:var(--text-2); font-weight:600; }
.entry-also-ranked ul { list-style:none; margin:.2rem 0 0; padding:0; }
.entry-also-ranked li + li { margin-top:.15rem; }
.entry-also-ranked a { overflow-wrap:anywhere; }
.versus-wrap { max-width: 820px; padding-top: 1.5rem; padding-bottom: 2rem; }
.versus-faceoff {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.versus-side {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.45rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.25rem 0.75rem; box-shadow: var(--shadow-card); min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.versus-side.picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.versus-photo { width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--accent-border); display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); }
.versus-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.versus-init { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.versus-name { font-weight: 800; font-size: 1.05rem; color: var(--text-1); overflow-wrap: anywhere; }
.versus-meta { font-size: 0.8rem; color: var(--text-3); min-height: 1em; }
.versus-btn {
  margin-top: 0.35rem; width: 100%; max-width: 220px; padding: 0.65rem 0.9rem;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 0.9rem;
  background: var(--accent); color: #fff; transition: background .15s, transform .05s;
}
.versus-btn:hover { background: var(--accent-2); }
.versus-btn:active { transform: translateY(1px); }
.versus-side.picked .versus-btn { background: var(--green); }
.versus-form.busy .versus-btn { opacity: .6; pointer-events: none; }
.versus-vs {
  width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; letter-spacing: .02em;
}
.versus-result { margin-top: 1.25rem; }
.versus-bar { height: 14px; border-radius: 999px; overflow: hidden; background: var(--amber); }
.versus-bar-a { height: 100%; background: var(--accent); transition: width .4s ease; }
.versus-bar-labels { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.45rem;
  font-size: 0.9rem; color: var(--text-2); }
.versus-count, .versus-hint { font-size: 0.82rem; color: var(--text-3); margin-top: 0.5rem; text-align: center; }
.versus-error { font-size: 0.82rem; color: var(--red); margin-top: 0.5rem; text-align: center; }
.versus-tape-wrap, .versus-shared { margin: 2rem 0; }
.versus-tape { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.versus-tape th, .versus-tape td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border);
  vertical-align: top; }
.versus-tape thead th { font-weight: 800; color: var(--text-1); background: var(--accent-dim); }
.versus-tape thead th:first-child, .versus-tape td:first-child { text-align: right; width: 40%; }
.versus-tape thead th:last-child, .versus-tape td:last-child { text-align: left; width: 40%; }
.versus-tape tbody th { text-align: center; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-3); font-weight: 700; white-space: nowrap; }
.versus-tape tbody tr:last-child th, .versus-tape tbody tr:last-child td { border-bottom: 0; }
.versus-shared-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.versus-shared-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding: 0.7rem 0.9rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.versus-shared-list a { font-weight: 700; color: var(--text-1); }
.versus-shared-list span { font-size: 0.85rem; color: var(--text-2); }
.versus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }
.versus-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-card); transition: box-shadow .15s, transform .15s; color: var(--text-1); }
.versus-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.vc-faces { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; }
.vc-face { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--accent-border); }
.vc-face img { width: 100%; height: 100%; object-fit: cover; }
.vc-init { font-weight: 800; color: var(--accent); }
.vc-vs { font-size: 0.72rem; font-weight: 900; color: var(--accent); text-transform: uppercase; }
.vc-title { font-weight: 800; font-size: 0.98rem; }
.vc-q { font-size: 0.82rem; color: var(--text-3); }
.vc-cta { margin-top: auto; padding-top: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--accent); }
@media (max-width: 560px) {
  .versus-faceoff { gap: 0.5rem; }
  .versus-side { padding: 0.9rem 0.4rem; }
  .versus-photo { width: 92px; height: 92px; }
  .versus-vs { width: 40px; height: 40px; font-size: 0.8rem; }
  .versus-btn { font-size: 0.8rem; padding: 0.55rem 0.5rem; }
  .versus-name { font-size: 0.92rem; }
  .versus-tape { font-size: 0.8rem; }
  .versus-tape th, .versus-tape td { padding: 0.5rem 0.4rem; }
}
/* Six items in the bar with "Versus" added: the inline nav now needs
   roughly 890px, so the hamburger takes over up to 1000px instead of 900. */
@media (max-width: 1000px) { .nav-center { display: none; } }

/* ── Cookie choice ─────────────────────────────────────────────────────────
   Bottom of the viewport, above the anchor ad (z-index), never modal: the
   page stays usable while it is open. Both buttons share one style so that
   rejecting is exactly as easy as accepting. */
.consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 300;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  color: var(--text-2);
  border: 1px solid var(--border-s);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  font-size: 0.85rem;
  line-height: 1.55;
}
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1 1 260px; margin: 0; }
.consent-banner a { color: var(--accent); }
.consent-actions { display: flex; gap: 0.5rem; }
.consent-actions .btn { min-width: 6.5rem; justify-content: center; }
@media (max-width: 480px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}

/* Country discovery follows the country's own rankings. */
.country-discovery { margin-top: 2.75rem; }
.country-appearances, .country-explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.country-appearance, .country-explore-card { border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; color: inherit; text-decoration: none; background: var(--bg-card); transition: border-color .18s, transform .18s; }
.country-appearance:hover, .country-explore-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.country-appearance { display: flex; align-items: center; gap: 1rem; }
.country-place { font-family: var(--font-display, inherit); font-size: 1.7rem; font-weight: 800; color: var(--accent); min-width: 2.5rem; }
.country-appearance-copy { display: grid; gap: .35rem; flex: 1; min-width: 0; }
.country-appearance-copy strong, .country-explore-card strong { font-size: 1rem; line-height: 1.4; }
.country-appearance-copy > span:last-child, .country-explore-cta { font-size: .75rem; color: var(--text-2); }
.country-link-label { display: block; text-transform: uppercase; font-size: .65rem; font-weight: 700; letter-spacing: .09em; color: var(--accent); }
.country-card-arrow { color: var(--accent); }
.country-explore-card { display: flex; flex-direction: column; gap: .6rem; }
.country-explore-card strong { flex: 1; }
.country-explore-cta { display: flex; justify-content: space-between; gap: .5rem; margin-top: .5rem; }
@media (max-width: 640px) { .country-appearances, .country-explore-grid { grid-template-columns: 1fr; } .country-appearance, .country-explore-card { padding: 1rem; } }
