/* VoteBrief — mockup design language: warm paper, Literata + IBM Plex Sans. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Literata:opsz,wght@7..72,500;7..72,650;7..72,750&display=swap');

:root {
  color-scheme: light dark;
  --bg: #f5f4ef;
  --paper: #fffef9;
  --ink: #17201d;
  --muted: #52605b;
  --faint: #74807b;
  --line: #cfd4cf;
  --line-strong: #9da8a2;
  --green: #0b654b;
  --green-deep: #084735;
  --green-soft: #dcece4;
  --orange: #c95d24;
  --orange-soft: #f6e4d8;
  --blue-soft: #e1ecef;
  --shadow: 0 16px 48px rgba(25, 43, 35, .08);
  --focus: #1a78c2;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111613;
    --paper: #19201c;
    --ink: #eff4f0;
    --muted: #b8c4bd;
    --faint: #8f9d95;
    --line: #38443d;
    --line-strong: #59675f;
    --green: #5bc89e;
    --green-deep: #8bdfbd;
    --green-soft: #173c30;
    --orange: #f59a66;
    --orange-soft: #46291c;
    --blue-soft: #20363d;
    --shadow: 0 18px 48px rgba(0, 0, 0, .28);
    --focus: #76bdf3;
}
html[data-theme="light"] {
  color-scheme: light;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
h1, h2, h3 { font-family: "Literata", Georgia, serif; }
code { font-size: .88em; }

/* ---- sticky nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1180px;
  min-height: 62px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  font-family: "Literata", Georgia, serif;
  font-weight: 750;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: stretch; gap: 24px; min-height: 62px; }
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
}
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--orange);
}

/* ---- layout ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: 760px; }
main { display: block; }

/* ---- hero ---- */
.hero { padding: 66px 0 46px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 72px;
  align-items: end;
}
.status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}
.draft-tag {
  display: inline-flex;
  padding: 3px 9px;
  color: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 46%, var(--line));
  background: var(--orange-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.draft-tag.ok {
  color: var(--green-deep);
  border-color: color-mix(in srgb, var(--green) 46%, var(--line));
  background: var(--green-soft);
}
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 5.7vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.dek {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}
.meeting-meta { border-top: 3px solid var(--green); }
.meta-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.meta-row dt { color: var(--faint); }
.meta-row dd { margin: 0; font-weight: 600; }

/* ---- summary strip ---- */
.summary-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  margin: 0; padding: 0; list-style: none;
  border-bottom: 1px solid var(--line);
}
.summary-strip li { padding: 23px 28px; border-right: 1px solid var(--line); }
.summary-strip li:first-child { padding-left: max(28px, calc((100vw - 1180px) / 2 + 28px)); }
.summary-strip li:last-child { border-right: 0; padding-right: max(28px, calc((100vw - 1180px) / 2 + 28px)); }
.summary-strip strong { display: block; font-size: 1.24rem; line-height: 1.25; }
.summary-strip span { color: var(--muted); font-size: .88rem; }

/* ---- sections / decisions ---- */
.section { padding: 58px 0; }
.section-heading { margin: 0 0 26px; font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.decision {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 34px 0 38px;
  border-top: 1px solid var(--line-strong);
}
.decision:first-of-type { border-top: 3px solid var(--ink); }
.decision-number {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green-deep);
  font-size: .87rem; font-weight: 700;
}
.decision h3 { margin: 0 0 12px; font-size: 1.34rem; line-height: 1.28; letter-spacing: -.02em; }
.decision p { margin: 0 0 14px; }
.decision p:last-child { margin-bottom: 0; }
.detail-note { color: var(--muted); }

/* ---- vote boxes ---- */
.vote-box {
  margin-top: 22px;
  padding: 17px 18px 16px;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
}
.vote-box.pending {
  background: var(--orange-soft);
  border-left-color: var(--orange);
}
.vote-box h4 {
  margin: 0 0 7px;
  color: var(--green-deep);
  font-size: .76rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.vote-box.pending h4 { color: var(--orange); }
.vote-main { margin: 0 !important; font-weight: 700; }
.vote-note { margin: 5px 0 0 !important; color: var(--muted); font-size: .84rem; }
.vote-split { display: grid; gap: 13px; }
.vote-split > div + div {
  padding-top: 13px;
  border-top: 1px solid color-mix(in srgb, var(--green) 25%, var(--line));
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
  vertical-align: 1px;
}
.badge.ok { color: var(--green-deep); background: color-mix(in srgb, var(--green) 14%, var(--paper)); border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line)); }
.badge.warn { color: var(--orange); background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 46%, var(--line)); }
.notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--orange-soft);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, var(--line));
  font-size: .88rem;
}
.roll { margin: 6px 0 0; font-size: .92rem; }

/* ---- cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin: 18px 0;
}
.card h2, .card h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.015em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.card .d { margin: 0; color: var(--muted); font-size: .9rem; }
.card + .card { margin-top: 18px; }

/* ---- buttons / forms ---- */
.btn {
  display: inline-block;
  padding: 11px 20px;
  background: var(--green-deep);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
button {
  padding: 10px 18px;
  background: var(--green-deep);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: default; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.filters button { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.filters button[aria-pressed="true"] { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.pager { display: flex; align-items: center; gap: 16px; margin: 28px 0; }
.pager button { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.searchrow { display: flex; gap: 10px; margin: 22px 0; max-width: 640px; }
.searchrow input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

/* ---- transcript / search results ---- */
.seg { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.seg .t { flex: 0 0 64px; color: var(--faint); font-variant-numeric: tabular-nums; }
.seg .x { flex: 1; }
.result { background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; margin: 12px 0; }
.result .snip { margin: 0 0 6px; }
.result .from { margin: 0; color: var(--faint); font-size: .85rem; }
mark { background: var(--orange-soft); color: inherit; padding: 0 2px; }

/* ---- plain lists ---- */
ul.plain { margin: 0 0 18px; padding: 0; list-style: none; max-width: 760px; }
ul.plain li { padding: 10px 0; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }

/* ---- methodology ---- */
.methodology {
  padding: 52px 0 62px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.method-grid { display: grid; grid-template-columns: .75fr 1.6fr; gap: 78px; }
.methodology h2 { margin: 0; font-size: 1.5rem; }
.method-copy p { margin: 0 0 14px; color: var(--muted); max-width: 720px; }
.method-copy p:first-child { color: var(--ink); font-weight: 600; }

/* ---- footer ---- */
.footer-line {
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: .79rem;
}
.footer-line p { margin: 4px 0; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .meeting-meta { max-width: 520px; }
  .method-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 620px) {
  .nav-inner, .wrap { padding-left: 18px; padding-right: 18px; }
  .site-nav { position: relative; }
  .nav-inner { min-height: 58px; }
  .nav-links { gap: 16px; min-height: 58px; }
  .nav-links a { font-size: .85rem; }
  .hero { padding: 40px 0 34px; }
  h1 { font-size: 2.75rem; }
  .summary-strip { grid-template-columns: 1fr; }
  .summary-strip li, .summary-strip li:first-child, .summary-strip li:last-child {
    padding: 16px 18px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .summary-strip li:last-child { border-bottom: 0; }
  .decision { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 28px 0 32px; }
  .decision-number { width: 31px; height: 31px; }
  .decision h3 { font-size: 1.2rem; }
  .searchrow { flex-direction: column; }
  .methodology { padding: 42px 0 50px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-nav { position: static; }
  body { background: #fff; }
}
