/* ============================================================
   pages/vetoes.css — Governor's veto record (public)
   ------------------------------------------------------------
   Depends on: tokens.css, base.css, chrome.css, compare.css
   (compare.css supplies shared chrome: hero, glance, sx-mast,
   final-cta. This file adds the list table, the message cards
   and the members gate.)
   ============================================================ */


/* ════ HERO + GLANCE OVERRIDES — same tightening as features.css ════ */
.hero   { padding: 32px 0 16px; }
.glance { padding: 16px 0 32px; }


/* ════ SECTIONS ════ */
.vt-section { padding: 48px 0; background: var(--bg); }
.vt-section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.vt-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.vt-head h2 {
  font-size: 40px; font-weight: 900; color: var(--ink);
  letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 18px;
}
.vt-head h2 .accent {
  color: var(--red); font-style: italic;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
}
.vt-head p { font-size: 16px; color: var(--body); line-height: 1.6; margin: 0; }
@media (max-width: 720px) { .vt-head h2 { font-size: 30px; } }

/* hero: the answer sentence sits in .hero-sub (compare.css); this is the smaller method line under it */
.vt-hero-note { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 640px; margin: 12px auto 0; }
time { font: inherit; color: inherit; }


/* ════ SIGNED vs VETOED — one proportional bar per period ════ */
.vt-stats-band { background: var(--bg); border-bottom: 1px solid var(--line-soft); padding: 22px 0 6px; }
.vt-stats { max-width: 980px; margin: 0 auto; }
.vt-stats-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.vt-stats-title { font-size: 11.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.vt-stats-note  { font-size: 12px; color: var(--muted); }
.vt-stat {
  display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 16px;
  padding: 9px 0; border-top: 1px solid var(--line-soft);
}
.vt-stat:last-child { border-bottom: 1px solid var(--line-soft); }
.vt-stat-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.vt-stat-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.vt-stat-bar .s { background: #15803d; }
.vt-stat-bar .v { background: var(--red-deep); }
.vt-stat-nums { display: flex; gap: 14px; align-items: baseline; font-size: 12.5px; white-space: nowrap; }
.vt-stat-nums b { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.vt-stat-nums b.s { color: #15803d; }
.vt-stat-nums b.v { color: var(--red-deep); }
.vt-stat-nums .r { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.vt-stat-nums .r strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .vt-stat { grid-template-columns: 1fr; gap: 6px; }
  .vt-stat-nums { flex-wrap: wrap; gap: 10px; white-space: normal; }
}


/* ════ PERIOD SWITCHER — only rendered when the session has vetoes in more than one month ════ */
.vt-periods {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  flex-wrap: wrap; margin: 0 0 16px;
}
.vt-periods-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin-right: 6px;
}
.vt-periods a, .vt-periods span.on {
  font: 600 12px 'Inter', sans-serif; border-radius: 6px; padding: 5px 10px;
  border: 1px solid var(--line); color: var(--body); background: #fff;
}
.vt-periods a:hover { border-color: var(--slate-blue); color: var(--slate-blue); }
.vt-periods span.on { background: var(--slate-blue-soft); color: var(--slate-blue); border-color: rgba(61,90,122,0.22); }
.vt-periods b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--muted); margin-left: 4px; }


/* ════ FILTER — segmented control ════ */
.vt-filter { display: flex; justify-content: center; gap: 6px; margin: 0 0 22px; flex-wrap: wrap; }
.vt-filter button {
  font: 600 12.5px 'Inter', sans-serif; color: var(--body);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  display: inline-flex; gap: 7px; align-items: center;
}
.vt-filter button b { font-family: var(--mono); font-weight: 500; color: var(--muted); font-size: 11px; }
.vt-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.vt-filter button.on b { color: rgba(255,255,255,0.65); }


/* ════ §01 THE LIST ════ */
.vt-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vt-table th {
  font: 800 10.5px 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 12px 16px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.vt-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--body); }
.vt-table tr:last-child td { border-bottom: 0; }
.vt-table tr.row:hover td { background: var(--slate-blue-wash); }
.vt-table tr.hide { display: none; }
.vt-table td.bill    { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; width: 1%; }
.vt-table td.bill a  { color: var(--ink); }
.vt-table td.author  { white-space: nowrap; color: var(--ink-mid); width: 1%; }
.vt-table td.subject { line-height: 1.45; }
.vt-table td.when    { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; width: 1%; letter-spacing: 0.02em; }
.vt-table td.access  { white-space: nowrap; width: 1%; text-align: right; }

/* release-date group rows */
.vt-table tr.group td { background: var(--ink); color: #fff; font-size: 12px; padding: 10px 16px; }
.vt-table tr.group td b    { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; margin-right: 12px; }
.vt-table tr.group td span { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.6); }
.vt-table tr.group td a    { color: #fca5a5; font-family: var(--mono); font-size: 11px; margin-left: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.pill svg { width: 11px; height: 11px; }
.pill.open   { color: #15803d; background: #dcfce7; border: 1px solid rgba(21,128,61,0.25); }
.pill.member { color: var(--slate-blue); background: var(--slate-blue-soft); border: 1px solid rgba(61,90,122,0.22); }

.vt-src { font-size: 12.5px; color: var(--muted); margin: 14px 4px 0; line-height: 1.55; }

@media (max-width: 880px) {
  .vt-table td.author, .vt-table th.author { display: none; }
  .vt-table td.subject { font-size: 13px; }
}
@media (max-width: 560px) {
  .vt-table td.when, .vt-table th.when { display: none; }
  .vt-table td, .vt-table th { padding: 10px 12px; }
  .pill { padding: 4px 7px; }
  .pill.member { font-size: 0; gap: 0; }          /* lock only, the row is already narrow */
  .pill.member svg { width: 12px; height: 12px; }
}


/* ════ §02 THE MESSAGES ════ */
.vt-cards { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }

.vt-date {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 20px;
  padding: 10px 0 12px; border-bottom: 1px solid var(--line); margin: 28px 0 4px;
}
.vt-date:first-child { margin-top: 0; }
.vt-date .d { font-size: 20px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; }
.vt-date .n { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.vt-date a  { font-family: var(--mono); font-size: 11px; white-space: nowrap; }

.vt-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red-deep);
  border-radius: 12px; padding: 22px 26px 20px; scroll-margin-top: 90px;
}
.vt-card.hide { display: none; }
.vt-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.vt-card-bill { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin: 0; line-height: 1.3; }   /* h3 */
.vt-card-bill span { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.vt-chip {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.10em;
  color: var(--red-deep); background: var(--red-wash); border: 1px solid rgba(220,38,38,0.28);
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.vt-card-subject { font-size: 15px; font-weight: 700; color: var(--ink-mid); line-height: 1.4; margin: 0 0 16px; }
.vt-msg-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }   /* h4, question-shaped */

.vt-msg p       { font-size: 15px; line-height: 1.7; color: var(--ink-mid); margin: 0 0 14px; }
.vt-msg p.sal   { color: var(--muted); }
.vt-msg p.close { margin-bottom: 2px; }
.vt-msg p.sig   { font-weight: 700; color: var(--ink); }

.vt-card-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 12px; margin-top: 8px;
  font-size: 12px; color: var(--muted);
}
.vt-card-foot a { font-family: var(--mono); font-size: 11.5px; }

/* members preview: the opening + 25 words, a light fade, then the gate */
.vt-card.locked .vt-msg { position: relative; }
.vt-card.locked .vt-msg p:last-child { margin-bottom: 6px; }
.vt-card.locked .vt-msg::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.9));
  pointer-events: none;
}
.vt-gate {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  background: var(--slate-blue-wash); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-top: 6px;
}
.vt-gate-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--slate-blue-soft); color: var(--slate-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.vt-gate-icon svg { width: 18px; height: 18px; }
.vt-gate strong { display: block; font-size: 13.5px; color: var(--ink); }
.vt-gate span   { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.vt-gate-ctas   { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-gate .btn   { font-size: 12.5px; padding: 8px 14px; }
@media (max-width: 640px) {
  .vt-gate { grid-template-columns: 40px 1fr; }
  .vt-gate-ctas { grid-column: 1 / -1; }
  .vt-card { padding: 18px 18px 16px; }
}

.vt-note { max-width: 860px; margin: 28px auto 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; text-align: center; }


/* ════ EMPTY STATE ════ */
.vt-empty {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 40px 32px;
}
.vt-empty-title { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 10px; }
.vt-empty p { font-size: 15px; color: var(--body); line-height: 1.6; margin: 0; }
