/* ==========================================================================
   MB Qualitas — Yahoo-style patriotic news portal
   ========================================================================== */
:root {
  --navy: #0a2342;
  --navy-2: #0b2545;
  --red: #b22234;
  --red-dark: #8f1b2a;
  --white: #ffffff;
  --paper: #eef1f6;
  --card: #ffffff;
  --ink: #10203a;
  --muted: #5b6577;
  --line: #e0e4ee;
  --gold: #c9a227;
  --up: #128a44;
  --down: #c62828;
  --shadow: 0 1px 2px rgba(10, 35, 66, 0.06), 0 8px 24px rgba(10, 35, 66, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1240px, 94vw); margin: 0 auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; }

.flag-stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--red) 0 33.3%, #fff 33.3% 66.6%, var(--navy) 66.6% 100%);
}

/* ---- Header ---- */
.topbar { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.topbar-inner { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; }
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: #fff; white-space: nowrap; }
.brand-star { color: var(--gold); font-size: 1.6rem; line-height: 1; }
.brand-name { font-family: "Oswald", sans-serif; font-weight: 700; letter-spacing: 0.12em; font-size: 1.35rem; }

.search { flex: 1; display: flex; max-width: 620px; margin: 0 auto; }
.search input {
  flex: 1; border: none; border-radius: 999px 0 0 999px; padding: 0.6rem 1.1rem;
  font-size: 0.95rem; outline: none; background: #fff; color: var(--ink);
}
.search button {
  border: none; background: var(--red); color: #fff; padding: 0 1.2rem;
  border-radius: 0 999px 999px 0; cursor: pointer; font-size: 1rem;
}
.search button:hover { background: var(--red-dark); }

.topbar-right { display: flex; align-items: center; gap: 0.9rem; white-space: nowrap; }
.weather-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; border-radius: 999px;
  padding: 0.35rem 0.7rem; cursor: pointer; font-size: 0.9rem; font-weight: 600;
}
.weather-chip:hover { background: rgba(255, 255, 255, 0.2); }
.chip-loc { font-weight: 700; }
.clock { font-family: "Oswald", sans-serif; font-size: 0.92rem; color: #cdd9ea; }

/* ---- Ticker ---- */
.ticker { background: #06182f; color: #e8eef7; overflow: hidden; border-bottom: 1px solid #14304f; }
.ticker-track { display: inline-flex; gap: 2.2rem; padding: 0.45rem 0; white-space: nowrap; animation: ticker-scroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { font-size: 0.85rem; font-weight: 600; }
.tick .sym { color: #aebfd6; margin-right: 0.4rem; }
.tick .up { color: #4ade80; }
.tick .down { color: #f87171; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---- Tabs / top navigation (multi-level drop-downs) ---- */
.tabs { background: var(--white); border-bottom: 2px solid var(--navy); position: sticky; top: 52px; z-index: 90; display: flex; flex-wrap: wrap; align-items: stretch; padding: 0 max(3vw, calc((100vw - 1240px) / 2)); box-shadow: var(--shadow); }
.nav-item { position: relative; }
.nav-top {
  display: inline-flex; align-items: center; gap: 0.3rem; border: none; background: none;
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 0.98rem; font-weight: 600; color: var(--navy); white-space: nowrap;
  padding: 0.85rem 1.05rem; cursor: pointer; border-bottom: 4px solid transparent;
}
.nav-top:hover { background: #f3f5fa; }
.nav-top.active { border-bottom-color: var(--red); color: var(--red-dark); }
.nav-caret { font-size: 0.62rem; opacity: 0.75; }

/* dropdown panel */
.nav-menu {
  position: absolute; left: 0; top: 100%; display: none; flex-direction: column; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  box-shadow: var(--shadow); z-index: 95; padding: 0.3rem;
}
.nav-item.has-children:hover > .nav-menu,
.nav-item.has-children.open > .nav-menu { display: flex; }

/* menu item (leaf or sub-parent) */
.nav-mi { position: relative; }
.nav-leaf {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%;
  border: none; background: none; text-align: left; cursor: pointer; border-radius: 6px;
  font-family: "Inter", sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--navy);
  padding: 0.55rem 0.7rem; white-space: nowrap; border-left: 3px solid transparent;
}
.nav-leaf:hover { background: #f3f5fa; }
.nav-leaf.active { color: var(--red-dark); border-left-color: var(--red); background: #fbeced; }
.nav-caret2 { color: var(--muted); font-size: 1rem; line-height: 1; }

/* nested flyout (e.g. NFL → NY Giants) */
.nav-submenu {
  position: absolute; left: 100%; top: -0.3rem; display: none; flex-direction: column; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
  box-shadow: var(--shadow); z-index: 96; padding: 0.3rem;
}
.nav-mi.has-sub:hover > .nav-submenu,
.nav-mi.has-sub.open > .nav-submenu { display: flex; }

/* ---- Layout ---- */
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.6rem; padding: 1.4rem 0 2.4rem; align-items: start; }
.content { min-width: 0; }

/* Section header inside a tab */
.section-head { display: flex; align-items: baseline; gap: 0.7rem; border-bottom: 3px solid var(--navy); padding-bottom: 0.45rem; margin: 0 0 1rem; }
.section-head h2 { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); margin: 0; font-size: 1.3rem; }
.section-head .blurb { color: var(--muted); font-size: 0.85rem; }

/* Aggregated tone / sentiment strip under a section header */
.sentiment { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin: -0.3rem 0 1.1rem; padding: 0.5rem 0.85rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 0.85rem; }
.sentiment-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.sentiment-label { color: var(--ink); }
.sentiment-label strong { color: var(--muted); font-weight: 600; }
.sentiment-themes { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.sentiment-themes-lbl { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; font-weight: 700; }
.sentiment-chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.78rem; font-weight: 600; color: var(--navy); }
.sentiment.tone-positive { border-color: rgba(18, 138, 68, 0.35); }
.sentiment.tone-positive .sentiment-dot { background: var(--up); }
.sentiment.tone-negative { border-color: rgba(198, 40, 40, 0.35); }
.sentiment.tone-negative .sentiment-dot { background: var(--down); }
.sentiment.tone-neutral .sentiment-dot { background: var(--gold); }

/* Hero */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem;
  box-shadow: var(--shadow); cursor: pointer; background: var(--navy); min-height: 260px;
}
.hero img { width: 100%; height: 420px; object-fit: cover; }
.hero .hero-fallback { height: 320px; display: grid; place-items: center; color: #fff; font-family: "Oswald"; letter-spacing: 0.1em; }
.hero .hero-overlay {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.3rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(6, 18, 34, 0.92));
  color: #fff;
}
.hero .hero-source { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #ffd7dc; font-weight: 700; }
.hero h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.75rem; line-height: 1.15; margin: 0.3rem 0 0; }
.hero:hover h3 { text-decoration: underline; }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.12s ease;
}
.card:hover { transform: translateY(-3px); }
.card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.card-thumb { width: 100%; height: 160px; object-fit: cover; background: #dfe4ee; }
.card-thumb.placeholder { display: grid; place-items: center; color: #fff; font-family: "Oswald"; letter-spacing: 0.08em; background: linear-gradient(135deg, var(--navy), #123a6b); }
.card-body { padding: 0.7rem 0.85rem 0.9rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.02rem; line-height: 1.25; margin: 0; }
.card-meta { margin-top: auto; display: flex; gap: 0.5rem; align-items: center; font-size: 0.73rem; color: var(--muted); }
.card-source { color: var(--red-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

/* Giants stats card */
.stats-card { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, var(--navy), #123a6b); color: #fff; border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 1rem; }
.stats-card img { width: 44px; height: 44px; }
.stats-card .stat-name { font-family: "Oswald"; font-size: 1.05rem; margin: 0; }
.stats-card .stat-line { margin: 0.1rem 0 0; font-size: 0.82rem; color: #cdd9ea; }
.stats-card .stat-badge { margin-left: auto; background: var(--red); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.8rem; font-weight: 700; }

/* Local topics */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.topic { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: var(--shadow); }
.topic h3 { font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); font-size: 0.98rem; margin: 0 0 0.6rem; }
.topic ul { list-style: none; margin: 0; padding: 0; }
.topic li { padding: 0.4rem 0; border-top: 1px dashed var(--line); }
.topic li:first-child { border-top: 0; }
.topic .link { display: inline; border: none; background: none; text-align: left; padding: 0; font: inherit; color: var(--ink); cursor: pointer; font-size: 0.9rem; text-decoration: none; }
.topic .link:hover { color: var(--red-dark); text-decoration: underline; }
.topic .li-source { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }
.topic .empty { color: var(--muted); font-size: 0.85rem; font-style: italic; }

/* Real estate dashboard */
.re-dash { margin-bottom: 1.6rem; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.kpi-value { font-family: "Oswald", sans-serif; font-size: 1.55rem; color: var(--navy); line-height: 1.1; margin-top: 0.15rem; }
.kpi-note { font-size: 0.76rem; font-weight: 700; margin-top: 0.2rem; }
.kpi-note.up { color: var(--up); }
.kpi-note.down { color: var(--down); }
.re-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.85rem 0.5rem; box-shadow: var(--shadow); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.2rem; }
.chart-title { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.chart-last { font-family: "Oswald", sans-serif; font-size: 1rem; color: var(--navy); }
.spark { width: 100%; height: 84px; display: block; }
.re-note { font-size: 0.78rem; color: var(--muted); font-style: italic; margin: 0.8rem 0 0; }

/* Listings */
.listings { margin-top: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.listings-title { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.03em; color: var(--navy); font-size: 0.98rem; margin: 0 0 0.8rem; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; }
.listing { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.listing img { width: 100%; height: 130px; object-fit: cover; background: #dfe4ee; }
.listing-price { font-family: "Oswald", sans-serif; font-size: 1.2rem; color: var(--navy); padding: 0.5rem 0.7rem 0; }
.listing-addr { font-size: 0.85rem; padding: 0.1rem 0.7rem; }
.listing-meta { font-size: 0.76rem; color: var(--muted); padding: 0 0.7rem 0.7rem; }
.listings-placeholder { color: var(--muted); font-size: 0.9rem; font-style: italic; margin: 0; }
.listings-sub { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.7rem; }
.portal-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portal-btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.portal-btn:hover { background: var(--red-dark); }
.flood-link { display: inline-block; margin-top: 0.7rem; color: var(--red-dark); font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.flood-link:hover { text-decoration: underline; }

/* Local economy */
.econ-dash { margin: 1.6rem 0; }
.sectors { margin-top: 1rem; }
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.sector { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.sector-sub { font-size: 0.76rem; color: var(--muted); margin-top: 0.2rem; }

/* Clickable ticker */
.ticker a.tick { text-decoration: none; color: inherit; cursor: pointer; }
.ticker a.tick:hover .sym { text-decoration: underline; }

/* NY Giants tab */
.giants { margin-bottom: 1.4rem; }
.giants-head { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #0b2265, #163a8a); color: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.giants-head img { width: 60px; height: 60px; }
.giants-name { font-family: "Oswald", sans-serif; font-size: 1.5rem; margin: 0; letter-spacing: 0.02em; }
.giants-sub { margin: 0.2rem 0 0; color: #cdd9ea; font-size: 0.9rem; }
.giants-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.g-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid #0b2265; border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: var(--shadow); }
.g-card h3 { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: #0b2265; font-size: 1rem; margin: 0 0 0.6rem; }
.g-matchup { display: block; font-family: "Oswald", sans-serif; font-size: 1.2rem; color: var(--red-dark); margin: 0 0 0.3rem; text-decoration: none; }
.g-link { color: var(--navy); text-decoration: none; }
a.g-matchup.g-link { color: var(--red-dark); }
.g-link:hover { text-decoration: underline; color: var(--red-dark); }
.g-detail { margin: 0.1rem 0; font-size: 0.88rem; color: var(--ink); }
.g-detail.muted, .muted { color: var(--muted); font-style: italic; }
.g-odds { margin: 0.4rem 0 0; font-weight: 700; color: #0b2265; font-size: 0.9rem; }
.g-schedule, .g-list { list-style: none; margin: 0; padding: 0; }
.g-schedule li { padding: 0.35rem 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.g-schedule li:first-child { border-top: 0; }
.g-srow { display: flex; align-items: center; gap: 0.5rem; width: 100%; text-decoration: none; color: inherit; }
a.g-srow:hover .g-opp { text-decoration: underline; color: var(--red-dark); }
.g-week { color: var(--muted); font-size: 0.76rem; min-width: 58px; }
.g-opp { font-weight: 600; flex: 1; }
.g-date { color: var(--muted); font-size: 0.8rem; }
.g-list li { padding: 0.32rem 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.g-list li:first-child { border-top: 0; }
.g-pos { display: inline-block; min-width: 30px; font-weight: 700; color: var(--red-dark); font-size: 0.75rem; }
.g-jersey { color: var(--muted); font-size: 0.78rem; }
.g-status { color: var(--down); font-size: 0.8rem; }

/* Watchlist */
.watch-form { display: flex; gap: 0.3rem; margin-bottom: 0.6rem; }
.watch-form input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.6rem; font-size: 0.85rem; outline: none; text-transform: uppercase; }
.watch-form button { border: none; background: var(--navy); color: #fff; border-radius: 8px; width: 34px; cursor: pointer; font-size: 1.1rem; }
.watch-form button:hover { background: var(--red-dark); }
.watchlist { display: grid; gap: 0.3rem; }
.watch-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-top: 1px solid var(--line); }
.watch-row:first-child { border-top: 0; }
.watch-sym { font-weight: 700; text-decoration: none; color: var(--navy); min-width: 54px; }
.watch-sym:hover { text-decoration: underline; }
.watch-val { flex: 1; text-align: right; font-size: 0.85rem; color: var(--muted); }
.watch-val.up { color: var(--up); font-weight: 700; }
.watch-val.down { color: var(--down); font-weight: 700; }
.watch-rm { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.2rem; }
.watch-rm:hover { color: var(--down); }

@media (max-width: 620px) { .giants-cards { grid-template-columns: 1fr; } }

/* ---- Sidebar ---- */
.sidebar { display: grid; gap: 1.2rem; position: sticky; top: 108px; }
.rail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem 1.1rem; box-shadow: var(--shadow); }
.rail-title { font-family: "Oswald"; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); font-size: 1.02rem; margin: 0 0 0.7rem; border-bottom: 2px solid var(--red); padding-bottom: 0.4rem; }
.bolt { color: var(--gold); }
.trending { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.trending li { counter-increment: t; display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.trending li:first-child { border-top: 0; }
.trending li::before { content: counter(t); font-family: "Oswald"; font-weight: 700; color: var(--red); font-size: 1.1rem; }
.trending .link { display: inline; border: none; background: none; text-align: left; padding: 0; font: inherit; color: var(--ink); cursor: pointer; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.trending .link:hover { color: var(--red-dark); text-decoration: underline; }
.trend-wrap { display: flex; flex-direction: column; gap: 0.15rem; }
.trend-traffic { font-size: 0.7rem; color: var(--muted); }

/* Weather */
.weather-body .wx-now { display: flex; align-items: center; gap: 0.8rem; }
.weather-body .wx-emoji { font-size: 2.6rem; line-height: 1; }
.weather-body .wx-temp { font-family: "Oswald"; font-size: 2.2rem; color: var(--navy); }
.weather-body .wx-loc { font-weight: 600; }
.weather-body .wx-desc { color: var(--muted); font-size: 0.85rem; }
.weather-body .wx-days { display: flex; justify-content: space-between; margin-top: 0.8rem; gap: 0.3rem; }
.weather-body .wx-day { text-align: center; font-size: 0.78rem; color: var(--muted); flex: 1; }
.weather-body .wx-day .d-emoji { font-size: 1.3rem; }
.weather-body .wx-day .d-hi { color: var(--ink); font-weight: 700; }

/* Crypto mini */
.crypto-mini { display: grid; gap: 0.4rem; }
.crypto-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; padding: 0.35rem 0; border-top: 1px solid var(--line); }
.crypto-row:first-child { border-top: 0; }
.crypto-row .c-sym { font-weight: 700; }
.crypto-row .c-chg.up { color: var(--up); font-weight: 700; }
.crypto-row .c-chg.down { color: var(--down); font-weight: 700; }
.mk-group { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-size: 0.72rem; margin: 0.7rem 0 0.05rem; }
.mk-group:first-child { margin-top: 0; }
.mk-group + .crypto-row { border-top: 0; }
a.mk-row { text-decoration: none; color: inherit; }
a.mk-row:hover .c-sym { text-decoration: underline; color: var(--red-dark); }

/* Clickable dashboard cards */
a.kpi-link { text-decoration: none; color: inherit; cursor: pointer; transition: box-shadow 0.12s ease, transform 0.12s ease; }
a.kpi-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10, 35, 66, 0.15); }

/* ---- Footer ---- */
.site-footer { margin-top: 1rem; background: var(--navy); color: #cdd9ea; }
.footer-inner { padding: 1.1rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-inner p { margin: 0; font-size: 0.82rem; }
.footer-note { color: #9fb0c9; }

.loading { color: var(--muted); font-style: italic; padding: 0.6rem 0; }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 18, 34, 0.66); backdrop-filter: blur(2px); }
.modal-dialog { position: relative; background: #fff; width: min(760px, 96vw); max-height: 88vh; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; }
.modal-close { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; border: none; background: rgba(6, 18, 34, 0.6); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; }
.modal-close:hover { background: var(--red); }
.modal-scroll { overflow-y: auto; padding: 0 0 1.4rem; }
.modal-image { width: 100%; max-height: 340px; object-fit: cover; }
.modal-source { color: var(--red-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; margin: 1rem 1.4rem 0; }
.modal-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1.6rem; line-height: 1.2; margin: 0.35rem 1.4rem 0.6rem; }
.modal-body { margin: 0 1.4rem; }
.modal-body p { font-size: 1rem; line-height: 1.65; margin: 0 0 0.9rem; color: #22324c; }
.modal-body .no-body { color: var(--muted); font-style: italic; }
.modal-open { display: inline-block; margin: 0.4rem 1.4rem 0; background: var(--red); color: #fff; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.modal-open:hover { background: var(--red-dark); }

/* ---- World tab (menu · trending · summaries) ---- */
.world { display: grid; grid-template-columns: 210px minmax(0, 1fr) 250px; gap: 1.2rem; align-items: start; }
.world-h { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: var(--navy); font-size: 1.05rem; margin: 0 0 0.7rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--red); }

/* left mega-menu */
.world-menu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.6rem; position: sticky; top: 110px; }
.wm-section { margin-bottom: 0.8rem; }
.wm-title { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; color: var(--red-dark); margin: 0.2rem 0 0.4rem; }
.wm-leaf { display: block; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.85rem; padding: 0.4rem 0.5rem; border-radius: 8px; }
.wm-leaf:hover { background: #f3f5fa; }
.wm-group { border-radius: 8px; }
.wm-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; background: none; border: none; cursor: pointer; font-family: inherit; text-align: left; color: var(--navy); font-weight: 600; font-size: 0.85rem; padding: 0.4rem 0.5rem; border-radius: 8px; }
.wm-toggle:hover { background: #f3f5fa; }
.wm-caret { transition: transform 0.15s ease; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.wm-sub { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.wm-group:hover .wm-sub, .wm-group.open .wm-sub { max-height: 60vh; overflow-y: auto; }
.wm-group:hover .wm-caret, .wm-group.open .wm-caret { transform: rotate(90deg); }
.wm-alliance { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; padding: 0.45rem 0.5rem 0.2rem; position: sticky; top: 0; background: var(--card); }
.wm-country { display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; text-decoration: none; color: var(--ink); font-size: 0.82rem; padding: 0.3rem 0.5rem 0.3rem 0.9rem; border-radius: 6px; }
.wm-country:hover { background: #eef2fb; color: var(--red-dark); }
.wm-dot { color: var(--up); font-size: 0.6rem; }
.wm-note { font-size: 0.68rem; color: var(--muted); margin: 0.4rem 0.3rem 0; line-height: 1.4; }

/* middle trending column */
.world-feed { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.9rem; }
.wf-row { display: grid; grid-template-columns: 92px 1fr; gap: 0.7rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.wf-row:hover { border-color: var(--navy); }
.wf-thumb { width: 92px; height: 72px; object-fit: cover; }
.wf-thumb.placeholder { width: 92px; height: 72px; font-size: 0.6rem; }
.wf-body { padding: 0.5rem 0.6rem 0.5rem 0; min-width: 0; }
.wf-title { margin: 0 0 0.3rem; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 0.92rem; line-height: 1.25; color: var(--ink); }
.wf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); }
.wf-stamp { font-family: "Oswald", sans-serif; letter-spacing: 0.02em; }
.wf-rel { color: var(--red-dark); font-weight: 600; }

/* right summary column */
.world-right { position: sticky; top: 110px; }
.wr-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 10px; padding: 0.6rem 0.75rem; margin-bottom: 0.7rem; box-shadow: var(--shadow); }
.wr-cat { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; color: var(--red-dark); margin-bottom: 0.3rem; }
.wr-link { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.86rem; line-height: 1.3; display: block; }
.wr-link:hover { text-decoration: underline; }
.wr-meta { font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }
.wr-empty { font-size: 0.8rem; color: var(--muted); font-style: italic; margin: 0; }

/* ---- Topic (perspective) page ---- */
.topic-back { margin-left: auto; color: #cdd9ea; text-decoration: none; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.topic-back:hover { color: #fff; }
.topic-wrap { padding: 1.4rem 0 2.4rem; }
.topic-crumb { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--red-dark); margin: 0 0 0.3rem; }
.topic-title { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.03em; color: var(--navy); font-size: 1.9rem; margin: 0 0 0.3rem; }
.topic-sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.2rem; }

.topic-map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.7rem; margin-bottom: 1.2rem; }
.topic-map { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #0a2342, #123a6b); }
.topic-map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.topic-markers { position: absolute; inset: 0; }
.marker { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.marker-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.35), 0 0 10px rgba(255,255,255,0.6); }
.marker-primary .marker-dot { background: var(--red); animation: pulse 1.8s ease-out infinite; }
.marker-focus .marker-dot { background: var(--gold); width: 11px; height: 11px; }
.marker-persp .marker-dot { background: var(--navy); width: 10px; height: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,0.55); }
.marker-label { font-size: 0.66rem; font-weight: 700; color: #fff; background: rgba(10, 35, 66, 0.8); padding: 1px 5px; border-radius: 999px; white-space: nowrap; }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px rgba(0,0,0,0.35), 0 0 0 0 rgba(178,34,52,0.6); } 70% { box-shadow: 0 0 0 2px rgba(0,0,0,0.35), 0 0 0 14px rgba(178,34,52,0); } 100% { box-shadow: 0 0 0 2px rgba(0,0,0,0.35), 0 0 0 0 rgba(178,34,52,0); } }
@media (prefers-reduced-motion: reduce) { .marker-primary .marker-dot { animation: none; } }
.topic-map-note { font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0.2rem 0.1rem; }

.topic-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; margin-bottom: 1.6rem; }
.topic-kpi { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 0.8rem 0.9rem; box-shadow: var(--shadow); }
.topic-kpi .kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.topic-kpi .kpi-value { font-family: "Oswald", sans-serif; font-size: 1.5rem; color: var(--navy); }
.topic-kpi .kpi-note { font-size: 0.72rem; color: var(--muted); }
.topic-kpi.tone-negative { border-top-color: var(--down); }
.topic-kpi.tone-positive { border-top-color: var(--up); }
.topic-kpi.tone-neutral { border-top-color: var(--gold); }

/* Group-overview: per-nation perspective cards */
.topic-perspectives { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.8rem; margin: 0.6rem 0 1.8rem; }
.persp-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 10px; padding: 0.75rem 0.85rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.45rem; }
.persp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.persp-name { font-family: "Oswald", sans-serif; font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.persp-alliance { font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; text-align: right; }
.persp-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--muted); }
.persp-metric b { color: var(--navy); font-family: "Oswald", sans-serif; font-weight: 600; }
.persp-tone { font-size: 0.64rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.persp-tone.tone-negative { background: #fbeced; color: var(--down); }
.persp-tone.tone-positive { background: #e9f6ee; color: var(--up); }
.persp-tone.tone-neutral { background: #fef6e0; color: #8a6d00; }
.persp-top { font-family: "Source Serif 4", Georgia, serif; font-size: 0.9rem; line-height: 1.3; color: var(--ink); text-decoration: none; }
.persp-top:hover { text-decoration: underline; }
.persp-link { font-size: 0.74rem; font-weight: 700; color: var(--red-dark); text-decoration: none; margin-top: auto; }
.persp-link:hover { text-decoration: underline; }
.wm-all { font-weight: 700; color: var(--red-dark); }

.topic-feed { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.9rem; }
.topic-row { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; box-shadow: var(--shadow); }
.topic-row:hover { border-color: var(--navy); }
.topic-row-title { margin: 0 0 0.35rem; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.topic-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); }
.topic-search { display: inline-block; margin-top: 1.2rem; background: var(--navy); color: #fff; text-decoration: none; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.topic-search:hover { background: #123a6b; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .world { grid-template-columns: 190px 1fr; }
  .world-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem; position: static; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .hero img { height: 300px; }
}
@media (max-width: 720px) {
  .world { grid-template-columns: 1fr; }
  .world-menu { position: static; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .topbar-inner { flex-wrap: wrap; }
  .hero h3 { font-size: 1.3rem; }
}

/* ==========================================================================
   Elections map page
   ========================================================================== */
:root {
  --gop: #cf2a36; --dem: #2b5fbf; --swing: #7d4fc9; --ind: #2e9e5b;
}
.elect-wrap { padding: 1.4rem 0 2.4rem; }
.elect-national { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin: 0 0 1.4rem; }
.elect-stat { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 0.7rem 0.85rem; box-shadow: var(--shadow); }
.es-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.es-value { font-family: "Oswald", sans-serif; font-size: 1.35rem; color: var(--navy); }
.es-note { font-size: 0.72rem; color: var(--muted); }
.bal-bar { display: flex; height: 7px; border-radius: 999px; overflow: hidden; margin-top: 0.45rem; background: #eef1f6; }
.bal-d { background: var(--dem); } .bal-r { background: var(--gop); } .bal-o { background: var(--ind); }

.elect-grid { display: grid; grid-template-columns: 1fr 400px; gap: 1.4rem; align-items: start; }
.elect-map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.8rem; position: sticky; top: 0.8rem; }
.elect-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.layer-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.layer-btn { border: 1px solid var(--line); background: #fff; color: var(--navy); font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.78rem; padding: 0.42rem 0.7rem; border-radius: 999px; cursor: pointer; }
.layer-btn:hover { border-color: var(--navy); }
.layer-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.zoom-reset { border: 1px solid var(--line); background: #fff; color: var(--red-dark); font-weight: 700; font-size: 0.78rem; padding: 0.42rem 0.7rem; border-radius: 999px; cursor: pointer; }
.zoom-reset:hover { border-color: var(--red); }

.elect-map { position: relative; width: 100%; background: #f3f6fb; border-radius: 10px; overflow: hidden; }
.elect-map svg { display: block; width: 100%; height: auto; }
.elect-map path.st { fill: #d6dced; stroke: #fff; stroke-width: 0.7; cursor: pointer; transition: fill 0.18s ease, filter 0.18s ease; }
.elect-map path.st:hover { filter: brightness(1.08) drop-shadow(0 0 3px rgba(10,35,66,0.4)); }
.elect-map path.p-R { fill: var(--gop); } .elect-map path.p-D { fill: var(--dem); }
.elect-map path.p-swing { fill: var(--swing); } .elect-map path.p-I { fill: var(--ind); }
.elect-map path.has-race { stroke: #ffd23f; stroke-width: 2.2; }
.elect-map path.battle { animation: statepulse 1.8s ease-out infinite; }
.elect-map path.selected { stroke: #0a2342; stroke-width: 2.4; filter: brightness(1.05); }
.elect-map text.st-abbr { font: 700 11px "Inter", sans-serif; fill: #12203a; text-anchor: middle; pointer-events: none; opacity: 0.75; }
@keyframes statepulse { 0% { filter: brightness(1); } 50% { filter: brightness(1.22); } 100% { filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .elect-map path.battle { animation: none; } }
.map-tip { position: absolute; z-index: 10; background: rgba(10,35,66,0.92); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }

.elect-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.leg-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.leg-dot { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.leg-dot.p-R { background: var(--gop); } .leg-dot.p-D { background: var(--dem); }
.leg-dot.p-swing { background: var(--swing); } .leg-dot.p-I { background: var(--ind); }

.elect-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; min-height: 300px; }
.ep-h { font-family: "Oswald", sans-serif; color: var(--navy); font-size: 1.15rem; margin: 0 0 0.5rem; }
.ep-sub { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; color: var(--red-dark); margin: 1.1rem 0 0.5rem; }
.ep-help { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ep-chip { border: 1px solid var(--swing); color: var(--swing); background: #f6f1fc; font-weight: 700; font-size: 0.78rem; padding: 0.3rem 0.6rem; border-radius: 999px; cursor: pointer; }
.ep-chip:hover { background: var(--swing); color: #fff; }
.ep-racelist { display: flex; flex-direction: column; gap: 0.3rem; }
.ep-racerow { display: flex; align-items: center; gap: 0.6rem; text-align: left; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; cursor: pointer; }
.ep-racerow:hover { border-color: var(--navy); background: #fff; }
.epr-state { font-family: "Oswald", sans-serif; font-weight: 700; color: var(--navy); min-width: 30px; }
.epr-offices { font-size: 0.8rem; color: var(--muted); }

.ep-statehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; border-bottom: 2px solid var(--line); padding-bottom: 0.7rem; }
.ep-state-name { font-family: "Oswald", sans-serif; color: var(--navy); font-size: 1.5rem; margin: 0; }
.ep-state-sub { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.cls-chip { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; }
.cls-R { background: var(--gop); } .cls-D { background: var(--dem); } .cls-swing { background: var(--swing); } .cls-I { background: var(--ind); }
.ev-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f6; color: var(--navy); }
.ep-back { border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; font-size: 0.76rem; padding: 0.35rem 0.6rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ep-back:hover { border-color: var(--navy); }

.office-list, .race-list { display: flex; flex-direction: column; gap: 0.4rem; }
.office-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.7rem; flex-wrap: wrap; }
.office-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.office-name { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; color: var(--ink); }
.office-right { display: flex; align-items: center; gap: 0.5rem; }
.office-note { font-size: 0.7rem; color: var(--muted); }
.office-row .bal-bar { flex-basis: 100%; }
.party-chip { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 0.78rem; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; }
.pc-R { background: var(--gop); } .pc-D { background: var(--dem); } .pc-I { background: var(--ind); }
.race-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: #fffdf5; border: 1px solid #f0e3b8; border-radius: 8px; padding: 0.5rem 0.7rem; }
.race-office { font-family: "Oswald", sans-serif; font-weight: 600; color: var(--navy); }
.race-inc { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--ink); }

.ep-feed { display: flex; flex-direction: column; gap: 0.5rem; }
.ep-feed-row { display: block; text-decoration: none; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; }
.ep-feed-row:hover { border-color: var(--navy); background: #fff; }
.epf-title { margin: 0 0 0.3rem; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 0.92rem; line-height: 1.3; color: var(--ink); }
.epf-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.7rem; color: var(--muted); }
.ep-empty { font-size: 0.85rem; color: var(--muted); font-style: italic; }

@media (max-width: 980px) {
  .elect-grid { grid-template-columns: 1fr; }
  .elect-map-card { position: static; }
}
.ep-search { display: inline-block; margin-top: 0.6rem; background: var(--navy); color: #fff; text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.82rem; }
.ep-search:hover { background: #123a6b; }

/* ==========================================================================
   Polls page
   ========================================================================== */
.polls-wrap { padding: 1.4rem 0 2.4rem; }
.polls-note { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.8rem; }

.polls-trending { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.poll-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.poll-card:hover { transform: translateY(-2px); border-color: var(--navy); }
.poll-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #dbe2ef; display: block; }
.poll-thumb.placeholder { display: flex; align-items: center; justify-content: center; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: linear-gradient(135deg, var(--navy), #123a6b); font-size: 0.9rem; text-align: center; padding: 0.5rem; }
.poll-body { padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.poll-title { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 0.95rem; line-height: 1.3; color: var(--ink); }
.poll-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); margin-top: auto; }

.polls-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.video-card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.video-card:hover { transform: translateY(-2px); border-color: var(--red); }
.video-thumb-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: rgba(178,34,52,0.92); color: #fff; border-radius: 50%; font-size: 1.3rem; padding-left: 4px; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.video-body { padding: 0.7rem 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.video-title { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.video-desc { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.72rem; color: var(--muted); margin-top: auto; }

.polls-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.polls-tab { border: 1px solid var(--line); background: #fff; color: var(--navy); font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.82rem; padding: 0.45rem 0.85rem; border-radius: 999px; cursor: pointer; }
.polls-tab:hover { border-color: var(--navy); }
.polls-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.polls-topic-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
