/* ══════════════════════════════════════════════════════════════════
   THE HONEST COPY — PUBLIC ARTICLE PAGE
   Broadsheet aesthetic: Playfair headlines, Lora body text,
   warm paper background, ruled sections. Reads like a newspaper.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --paper: #faf7f2;
  --ink: #1a1a1a;
  --ink-light: #4a4a4a;
  --ink-muted: #888;
  --accent: #8b7355;
  --rule: #333;
  --border: #e2ddd5;
  --warm-bg: #f5f0e8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-sans: -apple-system, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
}


/* ── PREVIEW BANNER ──────────────────────────────────────────── */

.preview-banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 2px solid #f59e0b;
  font-family: var(--font-sans);
}

.preview-banner a {
  color: #92400e;
  margin-left: 1rem;
  text-decoration: underline;
}


/* ── MASTHEAD ────────────────────────────────────────────────── */

.article-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  border-bottom: 3px double var(--rule);
  max-width: 1100px;
  margin: 0 auto;
}

.masthead-home {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.masthead-home-logo {
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

.masthead-home:hover { color: var(--accent); }

.masthead-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.masthead-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.masthead-nav a:hover { color: var(--ink); }
.masthead-nav span { color: var(--border); }


/* ── ARTICLE ─────────────────────────────────────────────────── */

.article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}


/* Header */
.article-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-flag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.7rem;
  margin-bottom: 1.2rem;
}

.article-headline {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-dateline {
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}


/* ── KEY FINDING ─────────────────────────────────────────────── */

.key-finding {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.key-finding-stat {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

.key-finding-unit {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.key-finding-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: #d4d0c8;
}

.key-finding-text strong {
  color: #fff;
}


/* Editor's Note */
.editors-note {
  background: #fef3c7;
  color: #78350f;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #f59e0b;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: var(--font-body);
}

.editors-note strong {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  margin-right: 0.3rem;
}


/* Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}


/* Main column */
.article-lede {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.inline-source {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

.inline-source a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.inline-source a:hover { text-decoration: underline; }

.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}


/* ── EVIDENCE ────────────────────────────────────────────────── */

.article-evidence h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-evidence h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  color: var(--ink-muted);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.evidence-figure {
  text-align: center;
  padding: 1.1rem 0.75rem;
  background: var(--warm-bg);
  border-radius: 4px;
}

.evidence-figure.figure-primary {
  background: var(--ink);
  color: var(--paper);
}

.figure-primary .figure-label {
  color: #b8b0a0;
}

.figure-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.figure-primary .figure-value {
  font-size: 1.5rem;
}

.figure-label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.35;
  font-family: var(--font-sans);
}


/* Entity comparison (side-by-side) */
.entity-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.entity-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.entity-list {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-light);
}

.entity-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0ece4;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.entity-list li:last-child { border-bottom: none; }

.entity-amount {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.entity-list-beneficiaries li {
  justify-content: flex-start;
}


/* Timeline / velocity */
.timeline-note {
  background: var(--warm-bg);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.92rem;
  margin-top: 1rem;
}

.cross-ref {
  font-size: 0.88rem;
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--accent);
  background: #faf5ee;
  line-height: 1.6;
}


/* Bill title */
.bill-title-block h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
}

.bill-title-block p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.6;
}


/* ── CONTEXT BRIDGE ──────────────────────────────────────────── */

.context-bridge h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.context-bridge p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-light);
}


/* ── DEEP RESEARCH ──────────────────────────────────────────── */

.research-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.research-intro {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.research-intro a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.research-intro a:hover { text-decoration: underline; }

.research-entity {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.research-entity:last-child { border-bottom: none; }

.entity-header {
  margin-bottom: 1rem;
}

.entity-header h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.entity-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.entity-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-sans);
}

.tag-sec  { background: #dbeafe; color: #1e40af; }
.tag-cik  { background: #f3f4f6; color: #4b5563; }
.tag-alloc { background: #fef3c7; color: #92400e; }

.research-panel {
  margin-bottom: 1.25rem;
}

.research-panel h5 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.research-table th {
  text-align: left;
  padding: 0.45rem 0.6rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--rule);
  font-weight: 600;
  font-family: var(--font-sans);
}

.research-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-light);
}

.research-table tr:last-child td { border-bottom: none; }

.awards-summary {
  background: var(--warm-bg);
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.disclosure-item {
  margin-bottom: 0.9rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
}

.disclosure-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.disclosure-item p {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.55;
}

/* Funding context */
.context-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.context-stat {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--warm-bg);
  border-radius: 4px;
}

.context-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.context-label {
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
}


.entity-no-data {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  padding: 0.6rem 0;
}

.research-timestamp {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 0.5rem;
}


/* ── MEDIA COVERAGE ─────────────────────────────────────────── */

.media-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.media-intro {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.media-intro a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.media-intro a:hover { text-decoration: underline; }

.media-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.media-stat {
  text-align: center;
  padding: 0.7rem 0.5rem;
  background: var(--warm-bg);
  border-radius: 4px;
}

.media-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

.media-stat-label {
  font-size: 0.68rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tone-favorable { color: #166534; }
.tone-critical  { color: #991b1b; }
.tone-neutral   { color: var(--ink-light); }

/* Stance bar (stacked horizontal) */
.stance-bar {
  display: flex;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.stance-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-sans);
  min-width: 24px;
}

.stance-favorable { background: #166534; }
.stance-neutral   { background: #6b7280; }
.stance-critical  { background: #991b1b; }

.stance-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.stance-key {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.stance-dot.stance-favorable { background: #166534; }
.stance-dot.stance-neutral   { background: #6b7280; }
.stance-dot.stance-critical  { background: #991b1b; }

/* Outlet cards */
.media-outlets h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.outlet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.outlet-card {
  padding: 0.6rem 0.75rem;
  background: var(--warm-bg);
  border-radius: 4px;
  border-left: 3px solid var(--border);
}

.outlet-name {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.outlet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.outlet-count {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
}

.outlet-stance {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-family: var(--font-sans);
}

.stance-badge-favorable {
  background: #dcfce7;
  color: #166534;
}

.stance-badge-neutral {
  background: #f3f4f6;
  color: #4b5563;
}

.stance-badge-critical {
  background: #fecaca;
  color: #991b1b;
}

.media-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.55;
  font-style: italic;
  margin-top: 0.75rem;
}


/* ── BOTTOM LINE ─────────────────────────────────────────────── */

.bottom-line {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.bottom-line h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
}

.bottom-line p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.bottom-line-note {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.6;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.bottom-line-note strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
}

.bottom-line-note a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.bottom-line-note a:hover { text-decoration: underline; }


/* ── HOW WE KNOW THIS ────────────────────────────────────────── */

.methodology-inline {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--warm-bg);
  border-radius: 4px;
}

.methodology-inline h2 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.methodology-inline p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-light);
}

.methodology-inline strong {
  color: var(--ink);
}


/* ── SHARE BAR ───────────────────────────────────────────────── */

.share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.share-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.share-links {
  display: flex;
  gap: 0.5rem;
}

.share-link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-light);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.12s;
}

.share-link:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
  background: var(--warm-bg);
}


/* ── SIDEBAR ─────────────────────────────────────────────────── */

.article-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-panel {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-panel:last-child {
  border-bottom: none;
}

.sidebar-panel h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sidebar-panel p {
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.sidebar-note {
  font-style: italic;
  color: var(--ink-muted) !important;
}

.source-link {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  font-weight: 500;
}

.source-link:hover { text-decoration: underline; }


/* ── MORE STORIES ────────────────────────────────────────────── */

.more-stories {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 2px solid var(--ink);
}

.more-link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.more-link:hover { color: var(--accent); }

.more-rss {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.more-rss a {
  color: var(--accent);
  text-decoration: none;
}

.more-rss a:hover { text-decoration: underline; }


/* ── FOOTER ──────────────────────────────────────────────────── */

.article-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 3px double var(--rule);
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
}

.article-footer a {
  color: var(--ink-light);
  text-decoration: none;
}

.article-footer a:hover { text-decoration: underline; }

.footer-sources { margin-bottom: 0.5rem; }


/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .evidence-grid {
    grid-template-columns: 1fr;
  }
  .entity-comparison {
    grid-template-columns: 1fr;
  }
  .media-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .outlet-grid {
    grid-template-columns: 1fr;
  }
  .article-headline {
    font-size: 1.6rem;
  }
  .bill-text-tabs {
    flex-wrap: wrap;
  }
  .bill-text-tab {
    font-size: 0.72rem;
    padding: 0.45rem 0.8rem;
  }
  .key-finding {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }
  .key-finding-stat {
    font-size: 2.5rem;
  }
  .article { padding: 1.5rem 1rem; }
  .article-masthead { padding: 0.9rem 1rem; }
  .more-stories { padding: 1.5rem 1rem; }
  .share-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 500px) {
  body { font-size: 15px; }
  .article-dateline {
    flex-direction: column;
    gap: 0.15rem;
  }
  .article-dateline span:nth-child(even) { display: none; }
  .bottom-line { padding: 1rem; }
  .article-headline { font-size: 1.35rem; }
  .article { padding: 1rem 0.75rem; }
  .article-masthead { padding: 0.7rem 0.75rem; }
  .more-stories { padding: 1rem 0.75rem; }
  .key-finding { padding: 1rem; }
  .key-finding-stat { font-size: 2rem; }
  .media-stats { grid-template-columns: 1fr; }
  .evidence-grid { gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ── BILL TEXT CHANGES ───────────────────────────────────────── */

.bill-text-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bill-text-intro {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.bill-text-legend {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.bill-text-legend .at-del-sample {
  color: #b91c1c;
  background: rgba(185,28,28,0.06);
  padding: 1px 4px;
  border-radius: 2px;
  text-decoration: line-through;
}

.bill-text-legend .at-add-sample {
  color: #166534;
  background: rgba(22,101,52,0.06);
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 600;
}

.bill-text-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
}

.bill-text-tab {
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.bill-text-tab:hover {
  color: var(--ink-light);
}

.bill-text-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.bill-text-reader {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  background: var(--warm-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.8;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink-light);
}

.bill-text-reader .at-same {
  color: var(--ink-light);
}

.bill-text-reader .at-del {
  color: #b91c1c;
  background: rgba(185,28,28,0.06);
  padding: 1px 3px;
  border-radius: 2px;
  text-decoration: line-through;
}

.bill-text-reader .at-add {
  color: #166534;
  background: rgba(22,101,52,0.06);
  padding: 1px 3px;
  border-radius: 2px;
  font-weight: 600;
}

.bill-text-reader .at-arrow {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-style: italic;
}

.bill-text-reader .at-replace {
  /* visual grouping for replaced text blocks */
}

.bill-text-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: var(--font-sans);
}

.bill-text-loading {
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-style: italic;
}


/* ── OTHER DETECTED ANOMALIES (cross-reference) ─────────────── */

.other-signals {
  margin-top: 1.5rem;
}

.other-signals h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.other-signals-intro {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.other-signal-card {
  display: block;
  padding: 0.65rem 0.9rem;
  background: var(--warm-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s;
}

.other-signal-card:hover {
  background: #ede8de;
}

.other-signal-detector {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.other-signal-headline {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-light);
}

.other-signal-score {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}
