/* CommonHouseParty.org — shared site stylesheet
   Visual identity ported from the React redesign mockup:
   paper/ink editorial palette, Fraunces display serif,
   Newsreader body serif, IBM Plex Mono labels. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/newsreader-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --paper: #f6f1e6;
  --paper-deep: #ede6d6;
  --paper-card: #faf6ec;
  --ink: #221d15;
  --ink-soft: #57503f;
  --ink-faint: #8a8069;
  --union-blue: #1d4e9e;
  --union-red: #a8341f;
  --union-gold: #8a6d1f;
  --gold-bright: #d9a441;               /* accents on dark (ink) surfaces only */
  --hairline: rgba(34, 29, 21, .22);
  --rule: rgba(34, 29, 21, .85);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--union-red); }
::selection { background: var(--ink); color: var(--paper); }

/* Shared kicker label: mono, small, wide tracking */
.kicker, .meta, .card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
}

/* Double editorial rule: 1px line over a 3px line */
.rule-double {
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  height: 5px;
}

/* ---------- Site header ---------- */
.site-header { background: var(--paper); }
.site-header .bar {
  max-width: 960px; margin: 0 auto; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.wordmark .tld { color: var(--union-red); }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding: .25rem 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease, color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ink); background-size: 100% 1px;
}
.gold-rule {
  background: none; height: 5px; line-height: 0; font-size: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--rule);
}

/* ---------- Layout ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 2rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Article chrome ---------- */
.article-header { text-align: center; padding-bottom: 0; margin-bottom: 2.5rem; }
.kicker { color: var(--union-red); margin-bottom: .9rem; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.article-header h1, .page-header h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.06; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 1rem;
}
.article-header .dateline {
  margin: 1.5rem 0 0; padding: .6rem 0; font-style: normal;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.page-header {
  padding-bottom: 1.1rem; margin-bottom: 2.25rem; position: relative;
  border-bottom: 1px solid var(--rule);
}
.page-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  border-bottom: 3px solid var(--rule);
}
.page-header p { margin: 0; color: var(--ink-soft); font-style: italic; font-size: 1.05rem; }

.article-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.55rem; letter-spacing: -.01em; line-height: 1.2;
  color: var(--ink); position: relative;
  border-bottom: 1px solid var(--rule); padding-bottom: .45rem;
  margin: 3rem 0 1.35rem;
}
.article-body h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  border-bottom: 3px solid var(--rule);
}
.article-body h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: var(--ink); margin: 1.75rem 0 .4rem;
}
.article-body h3 .num {
  font-family: var(--font-mono); font-weight: 600;
  font-size: .85em; letter-spacing: .1em; color: var(--union-red);
}
.article-body figure { margin: 2.25rem 0; }
.article-body figure img {
  width: 100%; height: auto; display: block;
  background: var(--paper-deep);
  border: 1px solid rgba(34, 29, 21, .25);
  padding: 6px; border-radius: var(--radius);
}
.article-body figcaption {
  font-size: .85rem; font-style: italic; color: var(--ink-soft);
  line-height: 1.55; margin-top: .8rem; padding-left: .8rem;
  border-left: 2px solid rgba(34, 29, 21, .3);
}
.article-body figcaption a { color: inherit; text-decoration: underline; }
.article-body a { color: var(--union-red); text-decoration-color: rgba(168, 52, 31, .45); }
.article-body a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.article-body p { margin: 0 0 1.35em; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; }
.timeline li {
  padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid rgba(34, 29, 21, .1);
  position: relative; font-size: .97rem;
}
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 1.2rem; z-index: 1;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink);
  transition: background .3s ease, border-color .3s ease;
}
.timeline li::after {
  content: ""; position: absolute; left: 5px; top: 0; bottom: 0;
  width: 1px; background: rgba(34, 29, 21, .15);
}
.timeline li:first-child::after { top: 1.4rem; }
.timeline li:last-child::after { bottom: auto; height: 1.4rem; }
.timeline li:hover::before { background: var(--union-red); border-color: var(--union-red); }
.timeline .date {
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-soft); white-space: nowrap;
}

/* ---------- Callouts & lists ---------- */
.note {
  background: rgba(138, 109, 31, .06);
  border: 1px solid rgba(138, 109, 31, .25);
  border-left: 2px solid var(--union-gold);
  padding: 1rem 1.25rem; margin: 1.75rem 0;
  font-size: .92rem; font-style: italic; color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note > strong:first-child {
  font-family: var(--font-mono); font-style: normal;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--union-gold);
}
.sources {
  background: var(--paper-card);
  border: 1px solid rgba(34, 29, 21, .25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  font-size: .88rem;
}
.sources li { margin-bottom: .45rem; color: var(--ink-soft); line-height: 1.5; }
.sources li::marker { font-family: var(--font-mono); font-weight: 600; color: var(--union-red); }
.credits {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-faint); margin-top: 1.75rem;
}

/* Floated side figures (portraits) */
figure.float-right {
  float: right; max-width: 240px; margin: .25rem 0 1rem 1.5rem;
}
figure.float-right img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) {
  figure.float-right { float: none; max-width: 100%; margin: 1.5rem 0; }
}

/* ---------- Cards (home / index) ---------- */
.card {
  background: var(--paper-card);
  border: 1px solid rgba(34, 29, 21, .3);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--ink); }
.card img { display: block; width: 100%; height: auto; border-bottom: 1px solid rgba(34, 29, 21, .3); }
.card .card-body { padding: 1.4rem 1.6rem 1.6rem; }
.card h2, .card h3 {
  margin: .4rem 0 .6rem; line-height: 1.25;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.45rem; letter-spacing: -.01em; color: var(--ink);
}
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--union-red); }
.card .meta { color: var(--union-red); display: block; margin-bottom: .25rem; }
.card p { margin: .25rem 0 0; font-size: .97rem; color: var(--ink-soft); }
.card-grid { display: grid; gap: 1.5rem; }
.card-grid .card { margin-bottom: 0; }
@media (min-width: 720px) { .card-grid.two { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero (home) ---------- */
.hero-full {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}
.hero-full .kicker-line {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-faint);
  max-width: 60rem; margin: 0 auto 3rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.hero-full .kicker-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  border-bottom: 3px solid var(--rule);
}
.hero-full h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.02; letter-spacing: -.02em;
  max-width: 15em; margin: 0 auto 1.4rem; color: var(--ink);
}
.hero-full h1 .gold { font-style: italic; font-weight: 500; color: var(--union-red); }
.hero-full p.lede {
  max-width: 38em; margin: 0 auto 2.25rem;
  font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft);
}
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
/* Framed hero photograph (mockup's bordered figure); reuses the preloaded LCP image */
.hero-full::after {
  content: ""; display: block;
  max-width: 52rem; margin: 3rem auto 0;
  aspect-ratio: 1200 / 618;
  padding: 8px;
  background-color: var(--paper-card);
  background-image: url('/images/articles/scotus-dusk-panorama-768w.jpg');
  background-image: image-set(
    url('/images/articles/scotus-dusk-panorama-480w.jpg') 480w,
    url('/images/articles/scotus-dusk-panorama-768w.jpg') 768w,
    url('/images/articles/scotus-dusk-panorama.jpg') 1200w);
  background-size: cover; background-position: center 38%;
  background-clip: content-box;
  border: 1px solid rgba(34, 29, 21, .4);
  border-radius: var(--radius);
}
.btn-gold {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
  padding: .85rem 1.75rem; border-radius: var(--radius);
  transition: background .2s ease, color .2s ease;
}
.btn-gold:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-soft); border: 1px solid rgba(34, 29, 21, .4);
  padding: .85rem 1.75rem; border-radius: var(--radius);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* ---------- Credibility strip ---------- */
.cred-strip {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0 1.25rem;
}
.cred-strip .inner {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.cred {
  padding: 2rem 1rem; text-align: center; color: var(--ink-soft);
  border-left: 1px solid rgba(34, 29, 21, .2);
}
.cred:first-child { border-left: none; }
.cred .big {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: 2.9rem; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.1; margin-bottom: .5rem;
}
.cred .lbl {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1.7;
  display: inline-block; max-width: 18rem;
}
@media (max-width: 640px) {
  .cred-strip .inner { grid-template-columns: 1fr; }
  .cred { border-left: none; border-top: 1px solid rgba(34, 29, 21, .2); padding: 1.5rem 1rem; }
  .cred:first-child { border-top: none; }
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 3.25rem 0 1.6rem;
  border-bottom: 1px solid var(--rule); padding-bottom: .55rem;
  position: relative;
}
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  border-bottom: 3px solid var(--rule);
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  font-size: 1.9rem; letter-spacing: -.02em; color: var(--ink);
}
.section-head .more {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
}
.section-head .more:hover { color: var(--union-red); text-decoration: underline; }

/* ---------- Feature row: lead story + side list ---------- */
.feature-row {
  display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; align-items: stretch;
}
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }
.lead-card {
  display: flex; flex-direction: column;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.lead-card img { display: block; width: 100%; height: auto; border-bottom: 2px solid var(--ink); }
.lead-card .card-body { padding: 1.5rem 1.7rem 1.7rem; }
.lead-card h3 {
  margin: .4rem 0 .6rem; font-family: var(--font-display); font-weight: 900;
  font-size: 1.6rem; line-height: 1.2; letter-spacing: -.01em;
}
.lead-card h3 a { color: var(--ink); text-decoration: none; }
.lead-card h3 a:hover { color: var(--union-red); }
.lead-card p { color: var(--ink-soft); }
.side-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.side-card {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  background: var(--paper-card);
  border: 1px solid rgba(34, 29, 21, .3);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: border-color .2s ease;
}
.side-card:hover { border-color: var(--ink); }
.side-card h3 {
  margin: .4rem 0 .5rem; font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em;
}
.side-card h3 a { color: var(--ink); text-decoration: none; }
.side-card h3 a:hover { color: var(--union-red); }
.side-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }
.meta { color: var(--union-red); }

/* ---------- Method steps ---------- */
.method-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(34, 29, 21, .25);
  border: 1px solid rgba(34, 29, 21, .25);
  border-radius: var(--radius);
  overflow: hidden;
  counter-reset: step;
}
@media (max-width: 900px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.6rem; position: relative;
  transition: background .2s ease;
}
.step:hover { background: var(--paper-card); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: 2.25rem; color: rgba(34, 29, 21, .15);
  line-height: 1; margin-bottom: .7rem;
  transition: color .2s ease;
}
.step:hover::before { color: var(--union-red); }
.step h3 {
  margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink);
}
.step p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  margin: 3.5rem 0 0;
  background: var(--ink); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center;
  color: rgba(246, 241, 230, .75);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-family: var(--font-display); font-weight: 900;
  color: var(--paper); font-size: 2rem; letter-spacing: -.02em;
  margin: 0 0 .8rem;
}
.cta-band p { max-width: 38em; margin: 0 auto 1.75rem; line-height: 1.7; }
.cta-band .btn-gold {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.cta-band .btn-gold:hover { background: transparent; color: var(--paper); }

/* ---------- Buttons (generic, e.g. comment form submit) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink);
  padding: .75rem 1.6rem; border-radius: var(--radius); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }

/* ---------- Site footer ---------- */
.site-footer { background: var(--ink); margin-top: 3.5rem; }
.site-footer .inner {
  max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem;
  font-family: var(--font-body); font-size: .95rem; line-height: 1.7;
  color: rgba(246, 241, 230, .7);
}
.site-footer .inner::before {
  content: ""; display: block; width: 8px; height: 8px; margin-bottom: 1.25rem;
  background: var(--union-blue);
  box-shadow: 14px 0 0 rgba(246, 241, 230, .6), 28px 0 0 var(--union-red);
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .fword {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.4rem; letter-spacing: -.02em; color: var(--paper);
}
.site-footer .fword .tld { color: var(--gold-bright); }
.site-footer p { margin: .5rem 0; }

/* ---------- Comments ---------- */
:root {
  --dem: #1d4e9e;
  --rep: #a8341f;
  --ind: #8a8069;
}
.comments { margin-top: 3rem; }
.comments h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.55rem; letter-spacing: -.01em; color: var(--ink);
  position: relative;
  border-bottom: 1px solid var(--rule); padding-bottom: .45rem;
  margin: 0 0 1.35rem;
}
.comments h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  border-bottom: 3px solid var(--rule);
}
.comment-count { color: var(--ink-faint); font-weight: 400; }
.comment-lede { font-size: .95rem; color: var(--ink-soft); }
.comment-box {
  background: var(--paper-card);
  border: 1px solid rgba(34, 29, 21, .3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.25rem 0 1.75rem;
}
.chp-form label {
  display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  margin: .9rem 0 .3rem;
}
.chp-form input[type="text"], .chp-form textarea {
  width: 100%; padding: .6rem .7rem;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid rgba(34, 29, 21, .3); border-radius: var(--radius);
}
.chp-form input[type="text"]:focus, .chp-form textarea:focus {
  outline: none; border-color: var(--ink);
}
.chp-form textarea { resize: vertical; }
.chp-form .btn { margin-top: 1rem; }
.chp-form .hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.party-pick { border: none; padding: 0; margin: .9rem 0 0; display: flex; gap: .75rem; flex-wrap: wrap; }
.party-pick legend {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  padding: 0 0 .3rem; float: left; width: 100%;
}
.party {
  display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid rgba(34, 29, 21, .3); border-radius: var(--radius);
  padding: .5rem 1.1rem;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.party input { position: absolute; opacity: 0; }
.party.dem { color: var(--dem); } .party.dem:has(input:checked) { background: var(--dem); color: var(--paper); border-color: var(--dem); }
.party.rep { color: var(--rep); } .party.rep:has(input:checked) { background: var(--rep); color: var(--paper); border-color: var(--rep); }
.party.ind { color: var(--ink-soft); } .party.ind:has(input:checked) { background: var(--paper-card); color: var(--ink); border-color: var(--ink); }
.chp-form-inline { margin-top: .5rem; }
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
  text-decoration: underline;
}
.linklike:hover { color: var(--ink); }
.chip {
  display: inline-block; font-family: var(--font-mono); font-size: 9px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 999px; vertical-align: middle;
}
.chip.dem { background: var(--dem); color: var(--paper); }
.chip.rep { background: var(--rep); color: var(--paper); }
.chip.ind { background: transparent; color: var(--ink-soft); border: 1px solid var(--ind); }
.swatch { font-weight: bold; }
.swatch.dem { color: var(--dem); } .swatch.rep { color: var(--rep); } .swatch.ind { color: var(--ink-soft); }
.comment-empty { color: var(--ink-faint); font-style: italic; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment {
  border: 1px solid rgba(34, 29, 21, .25); border-left-width: 4px;
  border-radius: var(--radius);
  padding: .8rem 1.15rem; margin: 0 0 .75rem;
  background: var(--paper-card);
}
.comment.dem { border-left-color: var(--dem); background: rgba(29, 78, 158, .05); }
.comment.rep { border-left-color: var(--rep); background: rgba(168, 52, 31, .05); }
.comment.ind { border-left-color: var(--ind); background: var(--paper-card); }
.comment-head { font-size: .9rem; margin-bottom: .25rem; }
.comment-head .chip { margin: 0 .4rem; }
.comment-head time {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}
.comment p { margin: .25rem 0 0; font-size: .95rem; }

/* ---------- Comments: guardrails UI ---------- */
.chp-error {
  background: rgba(168, 52, 31, .07);
  border: 1px solid rgba(168, 52, 31, .35); border-left: 4px solid var(--rep);
  border-radius: var(--radius); padding: .7rem 1rem;
  font-size: .92rem; color: var(--ink-soft);
}
.chp-delete { display: inline; margin-left: .5rem; }
.chp-delete .linklike { color: var(--rep); font-size: 10px; }

/* ---------- Comments: disclaimer ---------- */
.comment-disclaimer {
  margin-top: 1.5rem; padding-top: .75rem; border-top: 1px solid rgba(34, 29, 21, .15);
  font-size: .8rem; line-height: 1.6;
  color: var(--ink-faint);
}

/* ---------- Beef price ticker (article page) ---------- */
.beef-ticker {
  display: flex; align-items: baseline; gap: .55rem;
  background: var(--ink); color: rgba(246, 241, 230, .78);
  border-left: 4px solid var(--gold-bright);
  border-radius: var(--radius);
  padding: .6rem .95rem; margin: 0 0 2rem;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6;
}
.beef-ticker[hidden] { display: none; }
.beef-ticker .ticker-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-bright); align-self: center;
}
.beef-ticker strong { color: var(--paper); font-weight: 600; }
.beef-ticker .up { color: #7fbf7f; }
.beef-ticker .down { color: #e08a7a; }
.beef-ticker .ticker-note { color: rgba(246, 241, 230, .5); }
.beef-ticker a { color: var(--paper); }
.beef-ticker a:hover { color: var(--gold-bright); }

/* ---------- Charts (prices page, inline SVG, no libraries) ---------- */
.chart-block {
  background: var(--paper-card);
  border: 1px solid rgba(34, 29, 21, .3);
  border-radius: var(--radius);
  padding: 1rem 1.1rem .75rem; margin: 1.5rem 0 .25rem;
}
.chart-block svg { display: block; width: 100%; height: auto; }
/* Recolor the JS-generated SVG (colors are presentation attributes, CSS wins) */
.chart-block svg line { stroke: rgba(34, 29, 21, .12); }
.chart-block svg text {
  fill: var(--ink-soft);
  font-family: var(--font-mono); font-size: 10px;
}
#chart-price svg path:nth-of-type(1) { stroke: var(--union-blue); }
#chart-price svg path:nth-of-type(2) { stroke: var(--union-red); }
#chart-price svg path:nth-of-type(3) { stroke: var(--union-gold); }
#chart-supply svg path { stroke: var(--ink); }
#chart-price .chart-legend li:nth-child(1) .swatch { background: var(--union-blue) !important; }
#chart-price .chart-legend li:nth-child(2) .swatch { background: var(--union-red) !important; }
#chart-price .chart-legend li:nth-child(3) .swatch { background: var(--union-gold) !important; }
#chart-supply .chart-legend li:nth-child(1) .swatch { background: var(--ink) !important; }
.chart-legend {
  list-style: none; padding: .6rem 0 0; margin: .5rem 0 0;
  border-top: 1px solid rgba(34, 29, 21, .15);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .04em; color: var(--ink-soft);
}
.chart-legend li { margin-bottom: .3rem; }
.chart-legend .swatch {
  display: inline-block; width: 14px; height: 3px; border-radius: 1px;
  margin-right: .45rem; vertical-align: middle;
}
.chart-legend .legend-last { color: var(--ink-faint); }
.chart-caption { font-size: .85rem; font-style: italic; color: var(--ink-soft); margin: .35rem 0 1.5rem; }
.chart-error { color: var(--ink-faint); font-style: italic; margin: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Submit a Tip form ---------- */
.chp-form label .opt, .chp-form label .req {
  font-weight: 500; letter-spacing: .08em; text-transform: none;
  color: var(--ink-faint);
}
.chp-form label .req { color: var(--union-red); }
.chp-form .field-note {
  margin: .3rem 0 0; font-size: .82rem; font-style: italic;
  color: var(--ink-faint); line-height: 1.55;
}
.chp-form .chp-error, .chp-error p { margin: 0; }
.chp-error p + p { margin-top: .4rem; }
.article-body > .chp-error { margin-bottom: 1.25rem; }
.tip-success {
  background: var(--paper-card);
  border: 1px solid rgba(34, 29, 21, .3); border-left: 4px solid var(--union-gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin: 1.5rem 0;
}
.tip-success .tip-success-head {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink);
  margin: 0 0 .5rem;
}
.tip-success .tip-ref {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--union-gold); margin: 0 0 1rem;
}
.tip-success p:last-child { margin-bottom: 0; }
