/* TruVista Media — shared stylesheet
   Palette and typography locked to the approved design mockups. */

:root {
  /* Matched to the Tru or Not? logo/banner's warm tan (sampled from the
     real brand assets) rather than the site's old, slightly cooler cream —
     so the logo and banner sit flush with the page instead of showing a
     background seam. */
  --bg: #F1E2D2;
  --surface: #FFFFFF;
  --border: #D6C2A4;
  --divider: #E9D8C4;
  --navy: #0C2340;
  --navy-2: #1B3A63;
  --rust: #993C1D;
  --ink: #2C2C2A;
  --sub: #5F5E5A;
  --muted: #888780;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; }

.topstripe { height: 3px; background: var(--rust); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { height: 46px; width: auto; object-fit: contain; display: block; }
.logo-word { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: .2px; color: var(--navy); white-space: nowrap; }
.logo-word em { font-style: normal; color: #B4893F; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  font-size: 14px; color: var(--navy); font-weight: 600; letter-spacing: .2px;
  text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy-2); }
.main-nav a.active { border-bottom-color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.search-toggle { display: flex; align-items: center; cursor: pointer; background: none; border: none; padding: 0; }
.btn-signin {
  font-size: 13px; font-weight: 700; color: #FFFFFF; background: var(--navy);
  padding: 9px 18px; border-radius: 20px; text-decoration: none; white-space: nowrap;
}
.btn-signin:hover { background: var(--navy-2); }

/* ---------- Hamburger menu (mobile nav) ---------- */
.hamburger-toggle {
  display: none; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 4px; width: 32px; height: 32px;
}
.hamburger-drawer {
  display: none; flex-direction: column; background: var(--surface);
  border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(12,35,64,.12);
  position: absolute; top: 100%; left: 0; right: 0; z-index: 160;
}
.hamburger-drawer.open { display: flex; }
.hamburger-nav { display: flex; flex-direction: column; }
.hamburger-nav a {
  padding: 16px 24px; font-size: 15px; font-weight: 600; color: var(--navy);
  text-decoration: none; border-bottom: 1px solid var(--divider);
}
.hamburger-nav a.active { color: var(--rust); }
.hamburger-signin {
  margin: 16px 24px; padding: 12px; border-radius: 20px; background: var(--navy);
  color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; text-align: center;
}
.hamburger-signin:hover { background: var(--navy-2); }
.site-header { position: relative; }

@media (max-width: 640px) {
  .btn-signin { display: none; }
  .hamburger-toggle { display: flex; }
}
.back-link { font-size: 13px; color: var(--sub); font-weight: 600; text-decoration: none; }

/* ---------- Search panel ---------- */
.search-panel { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; display: none; }
.search-panel.open { display: block; }
.search-panel .inner { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.search-input {
  width: 100%; max-width: 420px; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: var(--sans); color: var(--ink); background: var(--bg);
}
.search-results { max-width: 420px; margin-top: 8px; }
.search-results a {
  display: block; padding: 10px 12px; text-decoration: none; border-radius: 8px;
}
.search-results a:hover { background: var(--bg); }
.search-results .r-cat { font-size: 10.5px; font-weight: 700; color: var(--sub); margin-bottom: 3px; }
.search-results .r-head { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.search-results .r-none { font-size: 13px; color: var(--muted); padding: 10px 12px; }

/* ---------- News ticker bar ---------- */
@keyframes tv-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes tv-promo-in { 0% { transform: translateY(16px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

.newsbar {
  background: var(--navy); display: flex; align-items: stretch;
  border-bottom: 1px solid var(--navy-2); position: sticky; top: 0; z-index: 150;
}
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; padding: 9px 0; }
.ticker-track { display: inline-flex; animation: tv-ticker 34s linear infinite; }
.tick {
  display: inline-flex; align-items: center; font-size: 12.5px;
  color: rgba(255,255,255,.92); padding: 0 26px; font-weight: 500;
}
.tick .dot { color: rgba(255,255,255,.4); margin-right: 10px; }
.newsbar-inds { flex: none; display: flex; align-items: center; gap: 20px; padding: 0 24px; border-left: 1px solid var(--navy-2); }
.nb-ind { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.nb-ind .lbl { font-size: 11px; color: rgba(255,255,255,.55); font-weight: 600; }
.nb-ind .val { font-size: 12.5px; color: #FFFFFF; font-weight: 700; }
.nb-ind .dlt { font-size: 11px; font-weight: 700; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.badge.sm { padding: 3px 10px; font-size: 11px; }
.badge.sq { border-radius: 3px; padding: 4px 10px; }
.st-confirmed { background: #E1F5EE; color: #04342C; }
.st-disputed { background: #FAEEDA; color: #412402; }
.st-developing { background: #E6F1FB; color: #042C53; }
.st-unverified { background: #F1EFE8; color: #444441; }

.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted);
  color: var(--muted); font-size: 10px; font-style: italic; font-family: Georgia, serif;
  cursor: pointer; flex: none; background: none; padding: 0;
}
.info-dot.sm { width: 14px; height: 14px; font-size: 9px; }

/* ---------- Heat labels (public face of private view tracking) ---------- */
.heat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.heat.trending { background: #FDEBD7; color: #8A3B12; }
.heat.popular { background: #E6F1FB; color: #042C53; }

/* ---------- Publish/update timestamps ---------- */
.pub-line { font-size: 12px; color: var(--muted); margin: 2px 0 14px; }
.pub-line b { color: var(--sub); font-weight: 600; }

/* ---------- Ad slots ---------- */
.ad-slot { width: 100%; position: relative; display: block; }
.ad-leaderboard { height: 90px; }
.ad-rectangle { height: 250px; }
.ad-skyscraper { width: 160px; height: 600px; }
.ad-infeed { height: 100%; min-height: 220px; }
.ad-inner {
  width: 100%; height: 100%; border: 1px dashed #C7C2B2;
  background: repeating-linear-gradient(135deg, #EDE7D8, #EDE7D8 10px, #E4DDCB 10px, #E4DDCB 20px);
  border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ad-label { font-size: 10px; font-weight: 700; letter-spacing: .6px; color: #A39F91; text-transform: uppercase; }
.ad-dims { font-size: 11px; color: #C7C2B2; font-family: 'Courier New', monospace; }

/* ---------- Homepage ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 44px 48px 0; }
.page-mb { margin-bottom: 36px; }

.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.eyebrow .pip { width: 7px; height: 7px; background: var(--navy); border-radius: 50%; display: inline-block; }
.eyebrow .txt { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .3px; }

.meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.meta-updated { font-size: 12px; color: var(--sub); }
.meta-cat { font-size: 12px; color: var(--muted); }

.info-panel {
  background: var(--surface); border-radius: 10px; padding: 14px 18px;
  font-size: 13px; line-height: 1.6; color: var(--ink); margin-bottom: 16px; max-width: 640px; display: none;
}
.info-panel.open { display: block; }
.info-panel b { color: var(--navy); }

.hero-headline {
  font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1.16;
  color: var(--navy); margin: 0 0 28px; max-width: 900px;
}
.hero-figure { margin-bottom: 36px; position: relative; }
.hero-img { width: 100%; height: 420px; display: block; object-fit: cover; border-radius: 16px; background: var(--divider); }
.hero-caption { display: flex; align-items: center; gap: 8px; padding: 12px 2px 0; cursor: pointer; }
.hero-caption .cap { font-size: 13px; color: var(--sub); line-height: 1.5; }
.hero-caption .tog { font-size: 11px; color: var(--navy); font-weight: 700; white-space: nowrap; }
.hero-brief {
  background: var(--surface); border-radius: 10px; padding: 16px 18px; margin-top: 10px;
  font-size: 14px; line-height: 1.65; color: var(--ink); max-width: 760px; display: none;
}
.hero-brief.open { display: block; }

.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding-bottom: 40px; }

.sect-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.facts-list { margin: 0 0 30px; padding-left: 20px; font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--ink); }
.facts-list li { margin-bottom: 10px; }
.facts-list .fn { color: var(--muted); font-size: 13px; text-decoration: none; }
.framing-blend { margin: 0 0 30px; font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--ink); }

.bs-item { padding: 16px 0; border-top: 1px solid #E4DDCB; }
.bs-cat { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.bs-head { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.bs-chips { display: flex; gap: 8px; }
.chip {
  cursor: pointer; font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; color: var(--sub); background: #F6F2E8; border: none; font-family: var(--sans);
}
.chip.open { color: var(--navy); background: #EFE9DA; }
.bs-detail { font-size: 13px; line-height: 1.55; color: var(--ink); padding-top: 12px; margin-top: 12px; display: none; }
.bs-detail.open { display: block; }
.bs-detail b { font-weight: 700; color: var(--navy); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #FFFFFF;
  font-size: 13px; font-weight: 700; padding: 13px 22px; border-radius: 24px;
  text-decoration: none; border: none; cursor: pointer; font-family: var(--sans);
}
.btn-primary:hover { background: var(--navy-2); }

.coverage-card { background: var(--surface); border-radius: 14px; padding: 26px; }
.coverage-card .title { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.coverage-card .sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.src-row { padding: 14px 0; border-top: 1px solid var(--divider); }
.src-row.extra { display: none; }
.coverage-card.expanded .src-row.extra { display: block; }
.src-row .outlet { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.src-row p { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.6; color: var(--sub); }
.src-toggle { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--divider); cursor: pointer; }
.src-toggle span { font-size: 12.5px; font-weight: 700; color: var(--navy); }

.econ-panel {
  background: var(--surface); border-radius: 14px; padding: 26px 30px; margin-bottom: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.econ-panel .title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.econ-panel .sub { font-size: 12px; color: var(--muted); }
.econ-inds { display: flex; gap: 36px; flex-wrap: wrap; }
.econ-ind .lbl { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.econ-ind .row { display: flex; align-items: baseline; gap: 8px; }
.econ-ind .val { font-size: 19px; font-weight: 700; color: var(--navy); }
.econ-ind .dlt { font-size: 12px; font-weight: 700; }
.econ-link { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }

.more-label { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 52px; }

.story-card { background: var(--surface); border-radius: 14px; overflow: hidden; }
.story-card > a { text-decoration: none; color: inherit; display: block; position: relative; }
.story-card .thumb { width: 100%; height: 150px; display: block; object-fit: cover; background: var(--divider); }
.story-card .body { padding: 18px 20px 0; }
.story-card .badges { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.story-card .cat { font-size: 11px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.story-card .head { font-family: var(--serif); font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.story-card .summary {
  font-size: 13.5px; line-height: 1.55; color: var(--sub); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.story-card .updated { font-size: 11px; color: var(--muted); padding-bottom: 18px; }
.story-card .card-info { background: var(--bg); padding: 12px 20px; font-size: 12px; line-height: 1.55; color: var(--ink); display: none; }
.story-card .card-info.open { display: block; }
.story-card .card-info b { color: var(--navy); }
.ad-card { background: var(--surface); border-radius: 14px; padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 220px; }

/* ---------- Site-wide feedback button ---------- */
.fb-toggle {
  position: fixed; left: 24px; bottom: 24px; z-index: 190;
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #FFFFFF; border: none; border-radius: 24px;
  padding: 12px 18px 12px 14px; font-size: 13px; font-weight: 700; font-family: var(--sans);
  cursor: pointer; box-shadow: 0 8px 24px rgba(12,35,64,.25);
}
.fb-toggle:hover { background: var(--navy-2); }
.fb-modal {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(12,35,64,.35); align-items: center; justify-content: center; padding: 20px;
}
.fb-modal.open { display: flex; }
.fb-card {
  position: relative; background: var(--surface); border-radius: 16px; padding: 30px 32px;
  max-width: 420px; width: 100%; box-shadow: 0 18px 40px rgba(12,35,64,.25);
}
.fb-close { position: absolute; top: 14px; right: 16px; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 13px; }
.fb-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.fb-copy { font-size: 13.5px; line-height: 1.6; color: var(--sub); margin: 0 0 18px; }
.fb-textarea, .fb-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: var(--sans); color: var(--ink); background: var(--bg); margin-bottom: 14px; resize: vertical;
}
.fb-label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.fb-opt { color: var(--muted); font-weight: 400; }
.fb-submit {
  width: 100%; padding: 13px; border: none; border-radius: 10px; font-size: 13px; font-weight: 700;
  font-family: var(--sans); color: #FFFFFF; background: var(--navy); cursor: pointer;
}
.fb-submit:hover { background: var(--navy-2); }
.fb-submit:disabled { background: #B7C1D1; cursor: not-allowed; }
@media (max-width: 640px) {
  .fb-toggle span { display: none; }
  /* Lifted above the bottom tab bar (64px) so the two don't collide. */
  .fb-toggle { padding: 14px; left: 16px; bottom: 80px; }
}

/* ---------- Card actions (save / share) ---------- */
.card-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 5; }
.card-action-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(12,35,64,.55); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.card-action-btn.active { color: #F0A868; }
.card-action-btn:hover { background: rgba(12,35,64,.75); }
.story-figure-wrap { position: relative; }

/* No real photo: the same save/share icons sit directly on the card's
   light background instead of over a photo, so they get a light tinted
   circle (matching the card surface) instead of the photo-contrast dark
   one, and the body content gets top padding so it doesn't run under them. */
.card-actions.no-photo .card-action-btn { background: var(--divider); color: var(--navy); }
.card-actions.no-photo .card-action-btn:hover { background: var(--border); }
.card-actions.no-photo .card-action-btn.active { color: var(--rust); }
.story-card > a:has(.card-actions.no-photo) .body,
.cat-card:has(.card-actions.no-photo) .body { padding-top: 46px; }

/* ---------- Bottom tab bar (mobile app-style nav) ---------- */
.bottom-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 195;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom)); justify-content: space-around; align-items: center;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none;
  color: var(--muted); font-size: 10.5px; font-weight: 600; padding: 4px 10px;
}
.tab-item.active { color: var(--navy); }
@media (max-width: 640px) {
  .bottom-tabbar { display: flex; }
  body { padding-bottom: 64px; }
}

/* ---------- Notable reactions ---------- */
.reaction-item { border-top: 1px solid var(--divider); padding: 16px 0; }
.reaction-item p { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--ink); }
.reaction-attr { font-size: 12.5px; color: var(--muted); }

/* ---------- Comments ---------- */
.comment-item { border-top: 1px solid var(--divider); padding: 14px 0; }
.comment-meta { font-size: 12.5px; color: var(--sub); margin-bottom: 4px; }
.comment-meta b { color: var(--navy); }
.comment-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.comment-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.comment-name-input, .comment-textarea {
  width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: var(--sans); color: var(--ink); background: var(--bg); margin-bottom: 10px; resize: vertical;
}
.comment-submit {
  padding: 11px 20px; border: none; border-radius: 20px; font-size: 13px; font-weight: 700;
  font-family: var(--sans); color: #FFFFFF; background: var(--navy); cursor: pointer;
}
.comment-submit:hover { background: var(--navy-2); }
.comment-submit:disabled { background: #B7C1D1; cursor: not-allowed; }

/* ---------- Promo popup ---------- */
.promo-pop {
  position: fixed; right: 24px; bottom: 24px; width: 340px; max-width: calc(100vw - 48px);
  background: var(--navy); border-radius: 16px; padding: 22px 22px 20px;
  box-shadow: 0 18px 40px rgba(12,35,64,.35); z-index: 200; animation: tv-promo-in .35s ease-out;
  display: none;
}
.promo-pop.visible { display: block; }
.promo-pop .close { position: absolute; top: 14px; right: 16px; cursor: pointer; color: rgba(255,255,255,.5); font-size: 13px; background: none; border: none; }
.promo-pop .kicker { font-size: 11px; font-weight: 700; color: #F0A868; letter-spacing: .4px; margin-bottom: 8px; }
.promo-pop .head { font-family: var(--serif); font-size: 18px; font-weight: 700; color: #FFFFFF; line-height: 1.3; margin-bottom: 8px; }
.promo-pop .sub { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.75); margin: 0 0 14px; }
.promo-pop input {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  font-size: 13px; font-family: var(--sans); color: #FFFFFF; background: rgba(255,255,255,.08); margin-bottom: 10px;
}
.promo-pop input::placeholder { color: rgba(255,255,255,.45); }
.promo-pop .cta {
  display: block; text-align: center; padding: 11px; background: #FFFFFF; color: var(--navy);
  font-size: 13px; font-weight: 700; border-radius: 8px; text-decoration: none;
}

/* ---------- Story page ---------- */
.story-layout { max-width: 760px; margin: 0 auto; }
.story-rail { display: none; }
@media (min-width: 1300px) {
  /* Rail grid only when ad rails are actually filled — otherwise the page
     stays a plain centered column with no reserved gaps. */
  .story-layout:has(.story-rail) {
    max-width: 1360px; padding: 0 24px;
    display: grid; grid-template-columns: 160px minmax(0, 760px) 160px; gap: 28px; justify-content: center;
  }
  .story-layout:has(.story-rail) .story-rail { display: block; position: sticky; top: 130px; height: fit-content; margin-top: 44px; }
}
.story-main { max-width: 760px; margin: 0 auto; padding: 44px 48px 64px; width: 100%; }

.story-info-panel {
  border: 1px solid var(--border); background: var(--surface); padding: 12px 16px;
  font-size: 13px; line-height: 1.6; color: var(--ink); margin-bottom: 16px; display: none;
}
.story-info-panel.open { display: block; }
.story-info-panel b { color: var(--navy); }

.story-headline { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.22; color: var(--navy); margin: 8px 0 18px; }
.story-dek { font-family: var(--serif); font-size: 20px; line-height: 1.6; color: #3A3935; margin: 0 0 24px; max-width: 700px; }
.story-photo { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 8px; background: var(--divider); }
.photo-credit { font-size: 12px; color: var(--muted); margin-bottom: 28px; }

.rule-heading {
  font-size: 14px; font-weight: 700; color: var(--navy);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.story-body p { margin: 0 0 18px; font-family: var(--serif); font-size: 18px; line-height: 1.8; color: var(--ink); }

.ai-note { border: 1px solid var(--border); background: var(--surface); padding: 18px 20px; margin-bottom: 36px; }
.ai-note p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--sub); }
.ai-note a { color: var(--navy); font-weight: 700; text-decoration: none; }

.story-facts { margin: 0; padding-left: 20px; font-family: var(--serif); font-size: 18px; line-height: 1.8; color: var(--ink); }
.story-facts li { margin-bottom: 14px; }
.story-facts .fn { color: var(--muted); font-size: 13px; text-decoration: none; }

/* Paywall gate */
.gate-wrap { position: relative; margin-bottom: 40px; }
.gate-blur { filter: blur(5px); opacity: .5; pointer-events: none; user-select: none; }
.gate-blur p { margin: 0 0 14px; font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--ink); }
.gate-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 20px; }
.gate-card {
  background: var(--surface); border-radius: 16px; padding: 30px 32px; max-width: 460px; width: 100%;
  box-shadow: 0 12px 32px rgba(12,35,64,.14); text-align: center;
}
.gate-lock { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.gate-title { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.gate-copy { font-size: 13.5px; line-height: 1.6; color: var(--sub); margin: 0 0 22px; }
.gate-plans { display: flex; gap: 10px; margin-bottom: 16px; }
.gate-plan { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 14px 10px; position: relative; }
.gate-plan.featured { border-color: var(--navy); }
.gate-plan .save {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--rust); color: #FFF; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.gate-plan .plan-lbl { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.gate-plan .plan-price { font-size: 17px; font-weight: 700; color: var(--navy); }
.gate-plan .plan-per { font-size: 11px; font-weight: 600; color: var(--muted); }
.gate-subscribe {
  cursor: pointer; background: var(--navy); color: #FFFFFF; font-size: 13px; font-weight: 700;
  padding: 13px; border-radius: 24px; margin-bottom: 12px; border: none; width: 100%; font-family: var(--sans);
}
.gate-subscribe:hover { background: var(--navy-2); }
.gate-free { font-size: 12.5px; color: var(--navy); font-weight: 700; text-decoration: none; }

.sub-banner {
  background: #E1F5EE; color: #04342C; border-radius: 10px; padding: 14px 18px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}

.framing-block { margin-bottom: 26px; }
.framing-block:last-child { margin-bottom: 0; }
.framing-block .side-lbl { font-size: 12px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.framing-block p { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--ink); }
.framing-block .outlets { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------- The framing — one of TruVista's core selling points, given a
   prominent, distinct treatment high on the story page instead of being
   buried at the bottom as a plain text block. ---------- */
.framing-feature {
  margin: 8px 0 40px; padding: 24px 26px 26px; background: var(--divider);
  border-radius: 14px; border: 1px solid var(--border);
}
.framing-feature-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.framing-feature-head .rule-heading { margin-bottom: 0; border: none; padding: 0; }
.framing-feature-tag {
  font-size: 11px; font-weight: 700; color: var(--rust); letter-spacing: .5px; text-transform: uppercase;
}
.framing-feature-sub { font-size: 13px; color: var(--sub); margin: 0 0 20px; }
.framing-blend {
  font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin-bottom: 18px;
}
.framing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.framing-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--navy);
  border-radius: 10px; padding: 18px 18px 16px;
}
.framing-card.center { border-top-color: var(--sub); }
.framing-card.right { border-top-color: var(--rust); }
.framing-card .side-lbl {
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 10px;
}
.framing-card.center .side-lbl { color: var(--sub); }
.framing-card.right .side-lbl { color: var(--rust); }
.framing-card p { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.7; color: var(--ink); }
.framing-card .outlets {
  font-size: 11px; color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--divider);
}
.framing-feature .gate-wrap { margin-bottom: 0; }
@media (max-width: 760px) {
  .framing-grid { grid-template-columns: 1fr; }
}

/* ---------- The Unbiased View (renamed from "Summary") — real sourced
   quotes woven directly into the body as pull-quotes so the section reads
   as a page, not one straight block of text. ---------- */
.unbiased-body p { margin: 0 0 18px; font-family: var(--serif); font-size: 17.5px; line-height: 1.85; color: var(--ink); }
.pull-quote { margin: 30px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--rust); }
.pull-quote p { margin: 0 !important; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.6; color: var(--navy); }
.pull-quote .pq-attr { margin-top: 8px; font-size: 12.5px; font-style: normal; color: var(--muted); }

.sources-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 2; color: var(--ink); }
.sources-list a { color: var(--navy); text-decoration: none; font-weight: 600; }
.sources-list .desc { color: var(--muted); }

.related-list { display: flex; flex-direction: column; border: 1px solid var(--border); }
.related-list a { display: block; padding: 16px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--border); }
.related-list a:last-child { border-bottom: none; }
.related-list a:hover { background: var(--surface); }
.related-list .r-cat { font-size: 11px; font-weight: 700; color: var(--sub); margin-bottom: 6px; }
.related-list .r-head { font-size: 15px; font-weight: 700; color: var(--navy); }

.report-link { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }

/* ---------- Category page ---------- */
.cat-title { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--navy); margin: 0 0 8px; }
.cat-sub { font-size: 14px; color: var(--sub); margin: 0 0 28px; }

.featured-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; text-decoration: none; color: inherit;
  background: var(--surface); border-radius: 16px; overflow: hidden; margin-bottom: 36px; position: relative;
}
.featured-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; background: var(--divider); }
.featured-card .body { padding: 26px 30px 26px 0; display: flex; flex-direction: column; justify-content: center; }
/* No real photo: collapse to a single column, body takes full width. */
.featured-card:has(> .card-actions.no-photo) { grid-template-columns: 1fr; }
.featured-card:has(> .card-actions.no-photo) .body { padding: 30px 34px; }
.featured-card .badges { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.featured-card .top-tag { font-size: 11px; font-weight: 700; color: var(--rust); letter-spacing: .3px; }
.featured-card .head { font-family: var(--serif); font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.featured-card .summary { font-size: 14.5px; line-height: 1.65; color: var(--sub); margin-bottom: 14px; }
.featured-card .updated { font-size: 11px; color: var(--muted); }

.cat-grid-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.cat-card { background: var(--surface); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: block; position: relative; }
.cat-card .thumb { width: 100%; height: 140px; display: block; object-fit: cover; background: var(--divider); }
.cat-card .body { padding: 18px 20px; }
.cat-card .badges { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cat-card .cat { font-size: 11px; font-weight: 700; color: var(--sub); margin-bottom: 8px; }
.cat-card .head { font-family: var(--serif); font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.cat-card .summary {
  font-size: 13.5px; line-height: 1.6; color: var(--sub); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card .updated { font-size: 11px; color: var(--muted); }
.no-results { border: 1px solid var(--border); background: var(--surface); padding: 32px; text-align: center; color: var(--sub); font-size: 14px; }

/* ---------- Methodology ---------- */
.method-main { max-width: 760px; margin: 0 auto; padding: 52px 48px 64px; }
.method-kicker { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .3px; margin-bottom: 12px; }
.method-title { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.2; color: var(--navy); margin: 0 0 24px; }
.method-lede { font-family: var(--serif); font-size: 18px; line-height: 1.8; color: var(--ink); margin: 0 0 40px; }
.method-section { margin-bottom: 44px; }
.method-section .rule-heading { font-size: 13px; }
.method-section p { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--ink); margin: 0 0 16px; }
.method-section p:last-child { margin-bottom: 0; }
.status-row { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.status-row .badge { margin-top: 2px; flex: none; }
.status-row p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.7; color: var(--ink); }

/* ---------- Auth pages ---------- */
.auth-main { max-width: 440px; margin: 0 auto; padding: 72px 48px 90px; }
.auth-main.wide { max-width: 640px; padding: 64px 48px 90px; }
.auth-kicker { font-size: 12px; font-weight: 700; color: var(--rust); letter-spacing: .3px; margin-bottom: 12px; }
.auth-title { font-family: var(--serif); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--navy); margin: 0 0 28px; }
.auth-main.wide .auth-title { font-size: 34px; margin-bottom: 12px; }
.auth-lede { font-size: 15px; line-height: 1.6; color: var(--sub); margin: 0 0 32px; max-width: 480px; }
.auth-card { background: var(--surface); border-radius: 16px; padding: 30px 32px; }
.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.field-label .opt { color: var(--muted); font-weight: 400; }
.field-input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: var(--sans); color: var(--ink); background: var(--bg);
}
.field-input.error { border-color: #C0432A; }
.field-error { font-size: 12px; color: var(--rust); margin-top: 6px; display: none; }
.field-error.show { display: block; }
.forgot-row { text-align: right; margin-top: 10px; }
.forgot-row span { font-size: 12px; color: var(--navy); font-weight: 600; cursor: pointer; }
.btn-submit {
  width: 100%; padding: 15px; border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
  font-family: var(--sans); color: #FFFFFF; background: var(--navy); cursor: pointer; margin-top: 22px;
}
.btn-submit:hover { background: var(--navy-2); }
.btn-submit:disabled { background: #B7C1D1; cursor: not-allowed; }
.auth-alt { text-align: center; margin-top: 24px; font-size: 13px; color: var(--sub); }
.auth-alt a { color: var(--navy); font-weight: 700; text-decoration: none; }

.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.topic-chip {
  cursor: pointer; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 20px;
  color: var(--sub); background: var(--divider); border: none; font-family: var(--sans);
}
.topic-chip.on { color: #FFFFFF; background: var(--navy); }
.field-hint { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.freq-row { display: flex; gap: 8px; margin-bottom: 28px; }
.freq-opt {
  cursor: pointer; flex: 1; text-align: center; font-size: 13px; font-weight: 700; padding: 12px 0;
  border-radius: 8px; color: var(--navy); background: var(--surface); border: 1px solid var(--border); font-family: var(--sans);
}
.freq-opt.on { color: #FFFFFF; background: var(--navy); border-color: var(--navy); }
.sub-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; }

.success-block { text-align: center; padding: 20px 0 10px; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.success-title { font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--navy); margin: 0 0 12px; }
.success-copy { font-size: 15px; line-height: 1.6; color: var(--sub); margin: 0 0 32px; }
.prefs-card { background: var(--surface); border-radius: 14px; padding: 22px 26px; text-align: left; margin-bottom: 28px; }
.prefs-card .title { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .3px; margin-bottom: 14px; }
.pref-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--divider); }
.pref-row .k { font-size: 13px; color: var(--sub); }
.pref-row .v { font-size: 13px; font-weight: 700; color: var(--navy); text-align: right; max-width: 320px; }
.edit-prefs { font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; display: inline-block; background: none; border: none; font-family: var(--sans); }
.return-link { font-size: 13px; color: var(--sub); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.site-footer .inner { max-width: 1240px; margin: 0 auto; padding: 36px 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 28px; }
.footer-col .title { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.footer-col .links { display: flex; flex-direction: column; gap: 9px; }
.footer-col .links a, .footer-col .links span { font-size: 13px; color: var(--sub); text-decoration: none; }
.footer-col .links a:hover { color: var(--navy); }
.footer-col .links a.active { font-weight: 700; }
.footer-col .links .soon em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.footer-note { border-top: 1px solid var(--border); padding-top: 16px; font-size: 12px; color: var(--muted); }

/* ---------- Responsive fallbacks ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stories-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .body { padding: 24px 26px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-header .inner, .page, .search-panel .inner, .site-footer .inner { padding-left: 20px; padding-right: 20px; }
  .story-main, .method-main, .auth-main, .mkt-main { padding-left: 20px; padding-right: 20px; }
  .main-nav { display: none; }
  .stories-grid, .cat-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 30px; }
  .hero-img { height: 240px; }
  .newsbar-inds { display: none; }

  /* Story page */
  .story-headline { font-size: 26px; }
  .story-dek { font-size: 17px; }
  .story-photo { height: 220px; }

  /* Category page */
  .cat-title { font-size: 26px; }
  .featured-card img { min-height: 180px; }

  /* Methodology / Mission / Vetted Sources */
  .method-title { font-size: 26px; }
  .method-lede { font-size: 16px; }

  /* Sign in / Sign up */
  .auth-title { font-size: 24px; }
  .auth-main.wide .auth-title { font-size: 26px; }
  .auth-card { padding: 22px 20px; }
  .success-title { font-size: 22px; }

  /* Markets */
  .mkt-main { padding-top: 28px; }
}

/* ---------- Presidential Rating & Candidates/Races (premium features) ---------- */
.rating-main { max-width: 900px; margin: 0 auto; padding: 40px 48px 64px; }
.seed-note {
  background: #FAEEDA; color: #412402; font-size: 12.5px; font-weight: 600;
  border-radius: 8px; padding: 10px 14px; margin-bottom: 24px;
}

.rating-hero {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--navy);
  border-radius: 10px; padding: 28px 32px; margin-bottom: 28px;
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
}
.rating-gauge { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; width: 100%; }
.rating-photo { width: 80px; height: 104px; object-fit: cover; object-position: 50% 18%; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.rg-num { font-family: var(--serif); font-size: 48px; font-weight: 700; line-height: 1; color: var(--navy); }
.rg-max { font-size: 16px; font-weight: 600; color: var(--muted); }
.rg-side { display: flex; flex-direction: column; gap: 3px; }
.rg-trend { font-size: 13px; font-weight: 700; }
.rg-meta { font-size: 13.5px; color: var(--sub); }
.rg-updated { font-size: 12px; color: var(--muted); }

/* Full width per factor card — each one now contains an internal 3-column
   left/center/right framing grid that needs the room. */
.rating-factors-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 8px; }
.rating-factors-grid.one-free { max-width: 640px; }
.factor-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.factor-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.factor-lbl { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.factor-score { font-size: 20px; font-weight: 700; }
.factor-bar { height: 6px; background: var(--divider); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.factor-bar-fill { height: 100%; border-radius: 3px; }
.factor-evidence { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; }
.factor-framing-label { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }

/* ---------- Left/center/right framing sub-cards inside each factor ---------- */
.factor-framing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ff-card { border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: 8px; padding: 12px 13px; background: var(--divider); }
.ff-card.center { border-top-color: var(--sub); }
.ff-card.right { border-top-color: var(--rust); }
.ff-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.ff-card.center .ff-lbl { color: var(--sub); }
.ff-card.right .ff-lbl { color: var(--rust); }
.ff-title { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.ff-title:hover { text-decoration: underline; }
.ff-outlet { font-size: 11px; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .factor-framing-grid { grid-template-columns: 1fr; } }

/* ---------- Approval history chart (real 3-point line chart) ---------- */
.approval-chart { width: 100%; max-width: 640px; height: auto; display: block; margin-bottom: 6px; }
.approval-chart-src { font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }

.rating-timeline { display: flex; gap: 0; overflow-x: auto; padding: 12px 4px 20px; margin-bottom: 8px; }
.tl-point { flex: 0 0 110px; text-align: center; position: relative; }
.tl-point:not(:last-child)::after { content: ''; position: absolute; top: 5px; left: 55%; width: 100%; height: 2px; background: var(--border); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); margin: 0 auto 8px; position: relative; z-index: 2; }
.tl-score { font-size: 16px; font-weight: 700; color: var(--navy); }
.tl-label { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.tl-date { font-size: 11px; color: var(--muted); }

.rating-methodology {
  font-size: 12.5px; line-height: 1.7; color: var(--sub); background: var(--divider);
  border-radius: 10px; padding: 16px 20px; margin-top: 32px;
}
.rating-methodology a { color: var(--navy); font-weight: 700; text-decoration: none; }

.level-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.level-tab {
  border: 1px solid var(--border); background: var(--surface); color: var(--sub);
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 20px; cursor: pointer;
}
.level-tab.active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }

.race-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 22px; }
.race-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
.race-office { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--navy); }
.race-jurisdiction { font-size: 14px; color: var(--sub); }
.race-date { font-size: 12px; font-weight: 700; color: var(--rust); text-transform: uppercase; letter-spacing: .3px; }
.race-summary { font-size: 14px; color: var(--ink); margin-bottom: 16px; }

.poll-line { margin-bottom: 8px; }
.poll-row { display: grid; grid-template-columns: 170px 1fr 44px 20px; align-items: center; gap: 10px; margin-bottom: 10px; }
.poll-name { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.poll-party { font-weight: 500; color: var(--muted); }
.poll-bar-wrap { background: var(--divider); border-radius: 4px; height: 10px; overflow: hidden; }
.poll-bar { display: block; height: 100%; background: var(--rust); border-radius: 4px; }
.poll-pct { font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; }
.poll-trend { font-size: 13px; font-weight: 700; }

.candidates-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.candidate-card { background: var(--divider); border-radius: 12px; padding: 18px 20px; }
.candidate-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.candidate-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.candidate-party { font-size: 12px; color: var(--muted); }
.candidate-stat { font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.candidate-positions { font-size: 13px; color: var(--ink); margin: 10px 0; }
.candidate-positions ul { margin: 6px 0 0; padding-left: 18px; }
.candidate-framing { font-size: 12.5px; color: var(--sub); padding-top: 10px; border-top: 1px solid var(--border); margin-bottom: 10px; }
.candidate-checks { font-size: 12.5px; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--border); }
.fc-item { margin-top: 8px; }
.fc-claim { font-style: italic; color: var(--ink); }
.fc-verdict { font-weight: 700; color: var(--rust); font-size: 12px; text-transform: uppercase; margin-top: 2px; }
.fc-note { color: var(--muted); font-size: 12px; }

@media (max-width: 700px) {
  .rating-factors-grid, .candidates-grid { grid-template-columns: 1fr; }
  .poll-row { grid-template-columns: 110px 1fr 40px 16px; }
  .rating-main { padding: 24px 20px 48px; }
}

/* ---------- Ratings hub callout — restrained, editorial style: a white
   card with a thin rust top rule, matching the rest of the site's chrome
   rather than a separate loud/colorful "app" aesthetic. ---------- */
.ratings-hub {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--rust);
  border-radius: 10px; padding: 22px 26px 20px; margin-bottom: 28px;
}
.ratings-hub-label { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--rust); text-transform: uppercase; margin-bottom: 10px; }
.ratings-hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rh-card {
  display: block; text-decoration: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; background: var(--surface);
}
.rh-card:hover { border-color: var(--navy); }
.rh-card.disabled { cursor: default; opacity: .6; }
.rh-title { font-family: var(--serif); font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.rh-sub { font-size: 12px; color: var(--sub); line-height: 1.5; }
.rh-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .3px; color: var(--muted); text-transform: uppercase; margin-top: 8px; }
.rh-score { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 6px; }
@media (max-width: 800px) { .ratings-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ratings-hub-grid { grid-template-columns: 1fr; } }

.premium-callout {
  display: block; background: var(--surface); color: var(--navy); text-decoration: none;
  border: 1px solid var(--border); border-top: 3px solid var(--rust);
  border-radius: 10px; padding: 20px 24px; margin-bottom: 28px;
}
.premium-callout .pc-lbl { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--rust); text-transform: uppercase; margin-bottom: 8px; }
.premium-callout .pc-title { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.premium-callout .pc-copy { font-size: 13.5px; color: var(--sub); line-height: 1.6; max-width: 640px; margin-bottom: 10px; }
.premium-callout .pc-cta { font-size: 13px; font-weight: 700; color: var(--navy); }
.premium-callout:hover .pc-cta { text-decoration: underline; }

/* ---------- "Paid tier coming soon" waitlist popup ---------- */
.waitlist-overlay {
  position: fixed; inset: 0; background: rgba(12,35,64,.55); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.waitlist-card {
  background: var(--surface); border-radius: 16px; padding: 32px 30px 26px; max-width: 420px; width: 100%;
  position: relative; box-shadow: 0 24px 60px rgba(12,35,64,.35);
}
.waitlist-close {
  position: absolute; top: 14px; right: 16px; border: none; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted);
}
.waitlist-close:hover { color: var(--ink); }
.waitlist-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--rust);
  background: #FAEEDA; padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
}
.waitlist-title { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.waitlist-copy { font-size: 14px; line-height: 1.6; color: var(--sub); margin: 0 0 12px; }
.waitlist-offer { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.waitlist-form { display: flex; gap: 8px; margin-bottom: 14px; }
.waitlist-input {
  flex: 1; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; font-family: var(--sans);
}
.waitlist-submit {
  background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 13.5px; border: none;
  border-radius: 8px; padding: 0 18px; cursor: pointer; white-space: nowrap;
}
.waitlist-submit:hover { background: var(--navy-2); }
.waitlist-thanks { font-size: 14px; color: #04342C; background: #E1F5EE; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.waitlist-dismiss { display: block; margin: 0 auto; border: none; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.waitlist-dismiss:hover { color: var(--ink); }

/* ---------- Governors tracker ---------- */
.gov-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 32px; }
.gov-tile {
  display: block; text-decoration: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; background: var(--surface); cursor: pointer;
}
.gov-tile:hover { border-color: var(--navy); }
.gov-tile.active { border-color: var(--navy); background: var(--divider); }
.gov-tile-photo { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: 50% 18%; border-radius: 6px; display: block; margin-bottom: 8px; background: var(--divider); }
.gov-tile-top { display: flex; justify-content: space-between; align-items: baseline; }
.gov-abbr { font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--navy); }
.gov-party-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.gov-party-dot.R { background: #7A1F0F; }
.gov-party-dot.D { background: var(--navy-2); }
.gov-score { font-size: 12px; color: var(--sub); margin-top: 4px; }
.gov-score.na { color: var(--muted); font-style: italic; }
@media (max-width: 900px) { .gov-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .gov-grid { grid-template-columns: repeat(3, 1fr); } }

.gov-detail { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: 10px; padding: 26px 30px; }
.gov-detail-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.gov-detail-photo { width: 96px; height: 128px; object-fit: cover; object-position: 50% 18%; border-radius: 8px; border: 1px solid var(--border); flex: none; }
.gov-name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy); }
.gov-meta { font-size: 13px; color: var(--sub); }
.gov-bio { font-size: 13.5px; line-height: 1.6; color: var(--ink); margin: 8px 0 0; max-width: 560px; }
.gov-bio a { color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.gov-stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 14px 0 16px; }
.gov-stat-lbl { font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.gov-stat-val { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--navy); }
.gov-source { font-size: 12px; color: var(--muted); border-top: 1px solid var(--divider); padding-top: 12px; margin-top: 6px; }
.gov-empty { color: var(--muted); font-size: 13.5px; padding: 20px 0; }

/* ---------- Info-dot tooltips (click-to-reveal explanations) ---------- */
.info-dot-wrap { position: relative; display: inline-flex; vertical-align: middle; margin-left: 5px; }
.info-dot.xs { width: 14px; height: 14px; font-size: 9px; }
.info-tip {
  display: none; position: absolute; z-index: 60; bottom: calc(100% + 8px); left: 0; transform: none;
  width: 200px; background: var(--navy); color: #FFFFFF; font-size: 12px; font-weight: 500; line-height: 1.5;
  text-transform: none; text-align: left; font-style: normal; letter-spacing: normal;
  border-radius: 8px; padding: 10px 12px; box-shadow: 0 8px 20px rgba(12,35,64,.25);
}
.info-tip::after {
  content: ''; position: absolute; top: 100%; left: 8px;
  border: 6px solid transparent; border-top-color: var(--navy);
}
.info-tip.open { display: block; }

/* ---------- Governor detail modal (opens over a blurred backdrop instead
   of appending inline at the bottom of the page) ---------- */
.gov-modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(12,35,64,.4); backdrop-filter: blur(4px);
}
.gov-modal-card { max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; }
.gov-modal-close {
  position: absolute; top: -14px; right: -14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #FFFFFF; border: 2px solid var(--surface); cursor: pointer;
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.gov-modal-close:hover { background: var(--navy-2); }

/* ---------- "In development" full-page notice (Candidates & Races) ---------- */
.coming-soon-block {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--rust);
  border-radius: 10px; padding: 36px 40px; text-align: center; max-width: 620px; margin: 0 auto;
}
.coming-soon-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--rust);
  background: #FAEEDA; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.coming-soon-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.coming-soon-copy { font-size: 14px; line-height: 1.7; color: var(--sub); margin: 0; }

/* ---------- Brand banner (homepage) ---------- */
.brand-banner { margin-bottom: 28px; }
.brand-banner img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; border: 2px solid #B4893F;
}
