/* Billings Pet Votes. System fonts only, no external requests. */
:root {
  --bg: #fff4df;
  --surface: #ffffff;
  --ink: #17100e;
  --muted: #4a3b36;
  --line: #17100e;
  --red: #b3120f;
  --red-ink: #ffffff;
  --red-text: #a50f0c;
  --green: #0b6b2e;
  --green-text: #0b6b2e;
  --amber: #ffc531;
  --amber-ink: #17100e;
  --amber-text: #7a4b00;
  --inv-bg: #17100e;
  --inv-fg: #fff4df;
  --focus: #0046c8;
  --alt: #f6e3c2;
  --head: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140d0b;
    --surface: #241814;
    --ink: #fff4df;
    --muted: #eddcc9;
    --line: #fff4df;
    --red-text: #ff8a7e;
    --green-text: #66d891;
    --amber-text: #ffd36b;
    --inv-bg: #fff4df;
    --inv-fg: #17100e;
    --focus: #ffd34d;
    --alt: #1d1310;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--red-text); text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 600; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--inv-bg); color: var(--inv-fg); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6rem; }
.poster, h2 { font-family: var(--head); font-weight: 400; font-synthesis: none; text-transform: uppercase; letter-spacing: .02em; }
.poster { font-size: clamp(2.4rem, 11vw, 4.75rem); line-height: 1; margin: .4rem 0 1rem; }
h2 { font-size: clamp(1.9rem, 7vw, 2.75rem); margin-top: 0; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

/* header */
.site-header { background: var(--inv-bg); color: var(--inv-fg); border-bottom: 6px solid var(--red); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--inv-fg); font-family: var(--head); font-weight: 400; font-synthesis: none; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .03em; text-decoration: none; min-height: 3rem; }
.brand .icon { width: 1.6rem; height: 1.6rem; color: #ff6a5e; }
.site-header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 .5rem; color: var(--inv-fg); font-weight: 700; }
.site-header nav a[aria-current="page"] { text-decoration-thickness: 4px; }
@media (prefers-color-scheme: dark) { .brand .icon { color: #b3120f; } }

/* hero */
.hero { background: var(--red); color: var(--red-ink); padding: 1.25rem 0 1.75rem; border-bottom: 8px solid var(--inv-bg); background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.14) 0 14px, transparent 14px 28px); }
.hero a { color: var(--red-ink); }
.hero .status-copy { font-size: 1.3rem; font-weight: 700; max-width: 40rem; }
.status-label { margin: 0 0 .25rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1.3; border: 2px solid currentColor; }
.pill-alarm { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); letter-spacing: .06em; text-transform: uppercase; }
.pill-plain { background: var(--surface); color: var(--ink); }
.pill-ok { background: var(--surface); color: var(--green-text); }
.pill-warn { background: var(--surface); color: var(--amber-text); }
.note { background: var(--surface); color: var(--ink); border: 3px solid var(--ink); border-left-width: 12px; padding: .75rem 1rem; border-radius: .4rem; font-size: 1.05rem; max-width: 46rem; }
.note a { color: var(--red-text); }
.hero .note { border-color: var(--ink); }

.ask { background: var(--amber); color: var(--amber-ink); border: 4px solid var(--ink); border-radius: .6rem; padding: 1rem; margin-top: 1rem; max-width: 46rem; }
.ask a { color: var(--amber-ink); }
.ask-label { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .25rem; }
.ask-text { font-family: var(--head); font-synthesis: none; text-transform: uppercase; font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.05; margin: 0 0 .75rem; }
.ask-actions { display: grid; gap: .6rem; margin-top: .5rem; }

/* sections */
.band, .board-section, .wards, .cards, .page-head { padding: 1.75rem 0; }
.band-alt, .page-head { background: var(--alt); }
.page-head { border-bottom: 6px solid var(--red); }
.lede { font-size: 1.25rem; max-width: 40rem; }
.box { background: var(--surface); border: 4px solid var(--ink); border-radius: .6rem; padding: 1rem 1.25rem; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.4rem; padding: .6rem 1rem; border: 3px solid var(--ink); border-radius: .5rem; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn .icon { width: 1.3em; height: 1.3em; }
.btn-mail { background: var(--red); color: var(--red-ink); border-color: var(--red); outline: 0; box-shadow: 0 0 0 3px var(--ink); }
.btn-call { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 4px solid var(--focus); outline-offset: 5px; }
.hero .btn-mail { background: var(--red); border-color: #fff; box-shadow: none; }
.ask .btn-mail { box-shadow: none; border-color: var(--ink); }
.m-actions { display: grid; gap: .6rem; margin-top: .75rem; }

/* verdict board */
.board { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }
.group { flex: 1 1 22rem; min-width: 0; border: 4px solid var(--ink); border-radius: .6rem; background: var(--surface); overflow: hidden; }
.group-head { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .75rem 1rem; font-family: var(--head); font-synthesis: none; font-weight: 400; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .03em; }
.group-head .icon { width: 1.5rem; height: 1.5rem; }
.group-vote_out .group-head { background: var(--red); color: var(--red-ink); }
.group-keep .group-head { background: var(--green); color: #fff; }
.group-undecided .group-head { background: var(--amber); color: var(--amber-ink); }
.members, .mini-list { list-style: none; margin: 0; padding: 0; }
.member { padding: 1rem; border-top: 3px solid var(--ink); border-left: 12px solid var(--amber); }
.member:first-child { border-top: 0; }
.member.v-vote_out { border-left-color: var(--red); }
.member.v-keep { border-left-color: var(--green); }
.m-name { font-size: 1.5rem; margin: 0; }
.m-chip { margin: .35rem 0; }
.m-meta { color: var(--muted); margin: 0 0 .5rem; font-size: 1rem; }
.m-fact, .m-reason { margin: 0 0 .5rem; }
@media (min-width: 62rem) { .group-undecided .members { display: grid; grid-template-columns: 1fr 1fr; } .group-undecided .member { border-top: 3px solid var(--ink); } .group-undecided .member:nth-child(odd) { border-right: 3px solid var(--ink); } .group-undecided .member:first-child, .group-undecided .member:nth-child(2) { border-top: 0; } .m-actions { grid-template-columns: 1fr; } }

.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: .4rem; font-weight: 800; border: 3px solid var(--ink); background: var(--surface); color: var(--ink); line-height: 1.3; }
.chip-keep { background: var(--green); color: #fff; border-color: var(--green); }
.chip-vote_out { background: var(--red); color: #fff; border-color: var(--red); }
.chip-undecided, .chip-pending { background: var(--amber); color: var(--amber-ink); border-color: var(--ink); }

/* finder */
.finder { display: grid; gap: .6rem; max-width: 28rem; margin: 1rem 0; }
.finder[hidden] { display: none; }
.finder label { font-weight: 800; }
.finder select { font: inherit; min-height: 3.4rem; padding: 0 .75rem; border: 3px solid var(--ink); border-radius: .5rem; background: var(--surface); color: var(--ink); }
.finder-status { font-weight: 700; min-height: 1.5rem; }
.ward-links { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 1rem; }
.ward-links .btn { min-width: 6rem; }
.ward { background: var(--surface); border: 4px solid var(--ink); border-radius: .6rem; padding: 1rem; margin-bottom: 1.25rem; scroll-margin-top: 1rem; }
.ward.is-match, .member.is-match { outline: 6px solid var(--focus); outline-offset: 2px; }
.mini { padding: .75rem 0; border-top: 2px solid var(--ink); }
.mini:first-child { border-top: 0; }
.mini-role { color: var(--muted); font-size: 1rem; }
.your-rep { display: inline-block; background: var(--inv-bg); color: var(--inv-fg); font-weight: 800; padding: .1rem .6rem; border-radius: .3rem; margin-left: .5rem; }

/* steps and timeline */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps > li { counter-increment: s; background: var(--surface); border: 3px solid var(--ink); border-radius: .6rem; padding: 1rem 1rem 1rem 4.2rem; position: relative; }
.steps > li::before { content: counter(s); position: absolute; left: .8rem; top: .8rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--head); font-size: 1.6rem; display: grid; place-items: center; }
.steps h3 { margin-bottom: .4rem; }
.timeline { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 8px solid var(--red); }
.timeline li { margin: 0 0 1.25rem 1rem; }
.t-date { font-weight: 800; font-size: 1.15rem; margin: 0 0 .25rem; }
.publisher { font-size: 1.25rem; font-weight: 700; }

/* record */
.card { background: var(--surface); border: 4px solid var(--ink); border-left-width: 14px; border-left-color: var(--amber); border-radius: .6rem; padding: 1rem; margin-bottom: 1.5rem; scroll-margin-top: 1rem; }
.card.v-keep { border-left-color: var(--green); }
.card.v-vote_out { border-left-color: var(--red); }
.card h3 { font-size: 1.8rem; margin: 0; }
.card h4 { margin-top: 1.25rem; }
.opinion { font-weight: 800; }
.outlet, .cell-note { color: var(--muted); }
.record-index { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.record-index a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3.2rem; padding: .4rem .8rem; border: 3px solid var(--ink); border-radius: .5rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.legend ul { padding-left: 0; list-style: none; display: grid; gap: .6rem; }
.vote { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; padding: .15rem .6rem; border: 3px solid var(--ink); border-radius: .4rem; background: var(--surface); }
.vote-yes { color: var(--green-text); border-color: var(--green-text); }
.vote-no { background: var(--red); color: #fff; border-color: var(--red); }
.vote-pending, .vote-abstain { background: var(--amber); color: var(--amber-ink); }
.status { display: inline-block; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.status-pending { color: var(--amber-text); }
.role { font-weight: 700; }
blockquote { margin: 0 0 1rem; padding: .5rem 1rem; border-left: 8px solid var(--red); background: var(--alt); font-size: 1.15rem; }
blockquote footer { color: var(--muted); font-size: 1rem; }
.empty { font-weight: 700; }

.record-table { width: 100%; border-collapse: collapse; }
.record-table th, .record-table td { text-align: left; vertical-align: top; padding: .6rem .5rem; border-bottom: 2px solid var(--ink); }
.record-table th { background: var(--inv-bg); color: var(--inv-fg); }
@media (max-width: 52rem) {
  .record-table thead { position: absolute; left: -999px; }
  .record-table, .record-table tbody, .record-table tr, .record-table td { display: block; width: 100%; }
  .record-table tr { border: 3px solid var(--ink); border-radius: .5rem; margin-bottom: 1rem; padding: .25rem .5rem; }
  .record-table td { border: 0; padding: .4rem 0; }
  .record-table td::before { content: attr(data-label); display: block; font-weight: 900; text-transform: uppercase; font-size: .9rem; letter-spacing: .05em; color: var(--muted); }
}
.source-list { padding-left: 2.2rem; }
.source-list li { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); scroll-margin-top: 1rem; }
.source-list li::marker { font-weight: 900; font-size: 1.2rem; }
.src-title { font-size: 1.2rem; font-weight: 800; margin: 0 0 .25rem; }
.src-meta { margin: 0 0 .25rem; }
.src-url { overflow-wrap: anywhere; margin: 0; color: var(--muted); }
.gaps li { margin-bottom: .6rem; }

.site-footer { background: var(--inv-bg); color: var(--inv-fg); padding: 1.5rem 0 2rem; border-top: 8px solid var(--red); }
.site-footer a { color: var(--inv-fg); }
.foot-brand { font-family: var(--head); font-size: 1.5rem; text-transform: uppercase; }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.foot-links a { display: inline-flex; min-height: 3rem; align-items: center; }

@media (min-width: 40rem) {
  .m-actions, .ask-actions { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}
@media (min-width: 62rem) { .group-undecided .m-actions { grid-template-columns: 1fr; } }
@media print { .site-header nav, .btn { display: none; } }

/* layers and rumors */
.layers, .rumors { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; counter-reset: l; }
.layers > li, .rumor { background: var(--surface); border: 3px solid var(--ink); border-left-width: 12px; border-radius: .6rem; padding: .9rem 1rem; }
.layers > li { border-left-color: var(--red); }
.layers p, .rumor p { margin: 0 0 .5rem; }
.layer-actor { font-weight: 900; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
@media (min-width: 62rem) { .layers { grid-template-columns: repeat(3, 1fr); } }
.rumor-claim { font-weight: 800; font-size: 1.2rem; }

/* buttons inside colored panels keep their own colors */
.ask .btn-mail, .hero .btn-mail { color: #fff; }
.ask .btn-ghost, .hero .btn-ghost { background: #fff; color: #17100e; border-color: #17100e; }
.ask .btn-call, .hero .btn-call { background: #17100e; color: #fff4df; }

.indep-bar { margin: 0; background: var(--amber); color: var(--amber-ink); border-bottom: 3px solid var(--ink); font-weight: 800; }
.indep-bar .wrap { display: block; padding-top: .5rem; padding-bottom: .5rem; }
.indep-foot { font-weight: 600; }
