/* TBC opinions dashboard — SMU CGI Monitor
 * Rebranded 2026-05-22 to match smucgi.org umbrella site.
 * Visual system: SMU Navy #0a1e3a + Cream #fdfaf3 + Accent Red #CC0000 + Accent Warm #d96544.
 * Type: Source Serif 4 headings, Inter body, JetBrains Mono citations.
 * Sentence case throughout. No decoration, no gradients.
 */

:root {
  /* Umbrella palette — aliased to cgi-tokens.css (single source of truth, BUILD_MANUAL §53).
     Local names retained for backward compatibility with all existing rules.
     Hex fallbacks match cgi-tokens.css values so layout survives a missing tokens load. */
  --navy:           var(--cgi-navy,         #0a1e3a);
  --navy-deep:      var(--cgi-navy-deep,    #061226);
  --navy-soft:      var(--cgi-navy-soft,    #16315a);
  --cream:          var(--cgi-cream,        #fdfaf3);
  --cream-tint:     var(--cgi-cream-tint,   #fefcf6);
  --surface:        var(--cgi-cream,        #fdfaf3);
  --surface-alt:    var(--cgi-surface,      #f5f0e8);
  --bg:             var(--cgi-cream,        #fdfaf3);
  --border:         var(--cgi-hairline-on-cream, rgba(10, 30, 58, 0.08));
  --border-soft:    rgba(10, 30, 58, 0.06);
  --text:           var(--cgi-ink,          #1a1a1a);
  --text-muted:     var(--cgi-ink-muted,    #4a4a4a);
  --text-faint:     var(--cgi-ink-subtle,   #6b6760);
  --hairline:       var(--cgi-hairline-on-cream, rgba(10, 30, 58, 0.08));

  /* Brand accents — replacing former teal/terra tokens */
  --teal:           var(--cgi-navy-soft,    #16315a);   /* navy-soft used as primary action color */
  --teal-hover:     var(--cgi-navy,         #0a1e3a);
  --teal-soft:      rgba(10, 30, 58, 0.08);
  --terra:          var(--cgi-red,          #CC0000);   /* SMU red as the secondary accent */
  --terra-soft:     rgba(204, 0, 0, 0.08);
  --warm:           var(--cgi-warm,         #d96544);   /* warm accent for CTAs */
  --warm-soft:      rgba(217, 101, 68, 0.12);

  /* Status colors stay similar but tinted toward umbrella */
  --success:        var(--cgi-navy-soft,    #16315a);
  --warn:           var(--cgi-warm,         #d96544);
  --error:          var(--cgi-red,          #CC0000);

  /* Action green — the primary interactivity color (added 2026-05-22 PM) */
  --action:         #0F7B5A;          /* deep professional green */
  --action-hover:   #0a5d44;
  --action-light:   #4FAD8B;
  --action-soft:    rgba(15, 123, 90, 0.12);
  --action-tint:    rgba(15, 123, 90, 0.04);

  --radius:         4px;
  --radius-sm:      2px;
  --shadow-sm:      0 1px 2px rgba(10, 30, 58, 0.06);

  /* Typography — aliased to cgi-tokens.css font stacks */
  --font-display:   var(--cgi-font-display, "Source Serif 4", "Source Serif Pro", Georgia, "Iowan Old Style", serif);
  --font-body:      var(--cgi-font-body,    "Inter", "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif);
  --font-mono:      var(--cgi-font-mono,    "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace);

  --container:      1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============ Page hero ============ */
.page-header {
  padding: 88px 0 64px;
  border-bottom: 3px solid var(--terra);
  background: var(--navy);
  color: var(--cream);
  position: relative;
}
.page-header::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 64px;
  background: var(--terra);
}
/* Children of the navy hero get cream/light coloring so the dark hero
   matches the umbrella masthead pattern (cf. proxy-advisors). */
.page-header .eyebrow { color: var(--terra); }
.page-header h1,
.page-header .page-title,
.page-header .page-deck,
.page-header p,
.page-header li { color: var(--cream); }
.page-header a { color: var(--cream); border-bottom-color: rgba(253,250,243,0.45); }
.page-header a:hover { color: #fff; border-bottom-color: #fff; }
.page-header .meta,
.page-header .source-line,
.page-header time,
.page-header small { color: rgba(253,250,243,0.78); }
.page-header .byline,
.page-header .author-block,
.page-header .author-byline { color: rgba(253,250,243,0.92); }
/* Override inline color styles in the author-byline block (HTML uses inline color:var(--navy)) */
.page-header .author-byline > div > div { color: var(--cream) !important; }
.page-header .author-byline > div > div:first-child { color: #fff !important; }
.page-header .author-byline { border-top-color: rgba(253,250,243,0.25) !important; }
/* Ghost action buttons on navy hero need cream borders + cream text */
.page-header .btn-action--ghost { background: transparent; border-color: rgba(253,250,243,0.35); color: var(--cream); }
.page-header .btn-action--ghost:hover { background: rgba(253,250,243,0.08); border-color: var(--cream); color: #fff; }
.page-header .btn-action { color: var(--cream); }
.page-header .page-meta,
.page-header #meta-source,
.page-header #meta-date { color: rgba(253,250,243,0.78); }
/* The JS-injected link inside #meta-source needs to override .page-meta a
   (which is colored for light backgrounds via --text-faint). */
.page-header .page-meta a,
.page-header #meta-source a {
  color: var(--cream) !important;
  border-bottom: 1px dotted rgba(253,250,243,0.45) !important;
}
.page-header .page-meta a:hover,
.page-header #meta-source a:hover {
  color: #fff !important;
  border-bottom-color: #fff !important;
}
/* Clickable breakdown items in the iceberg detail pane */
.iceberg-detail .clickable-item { cursor: pointer; transition: background 0.12s, color 0.12s; border-radius: 3px; }
.iceberg-detail .clickable-item:hover,
.iceberg-detail .clickable-item:focus { background: rgba(204,0,0,0.08); outline: 1px solid rgba(204,0,0,0.35); outline-offset: -1px; }
.iceberg-detail .clickable-item:focus { outline-width: 2px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 18px 0;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 3.4vw + 1rem, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 24px 0;
  color: var(--navy);
  max-width: 22ch;
  text-wrap: balance;
}

.page-deck {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  margin: 0 0 28px 0;
  max-width: 64ch;
  text-wrap: pretty;
}

.page-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 0;
}
.page-meta a { color: var(--text-faint); text-decoration: none; border-bottom: 1px dotted var(--text-faint); }
.page-meta a:hover { color: var(--navy); border-bottom-color: var(--navy); }

/* ============ Sections — McKinsey/Goldman framing ============ */
section { padding: 80px 0; }
section + section { border-top: 1px solid var(--border-soft); }
section:nth-child(even of [class*="section"]) { background: var(--surface-alt); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 14px 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 1.4vw + 1rem, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px 0;
  color: var(--navy);
  max-width: 32ch;
  text-wrap: balance;
}

/* NEW: section-lede — McKinsey explainer paragraph under each section title */
.section-lede {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 36px 0;
  max-width: 68ch;
  text-wrap: pretty;
}
.section-lede strong { font-weight: 600; color: var(--navy); }
.section-lede em { font-style: italic; color: var(--navy-soft); }

/* NEW: "What to look for" callout — the McKinsey side-note pattern */
.section-callout {
  background: var(--cream-tint);
  border-left: 3px solid var(--terra);
  padding: 18px 22px;
  margin: 32px 0 0 0;
  max-width: 68ch;
  border-radius: 0 4px 4px 0;
}
.section-callout__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 6px 0;
  display: block;
}
.section-callout__body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.section-callout__body strong { font-weight: 600; color: var(--navy); }

/* ============ Hero iceberg ============ */
.hero-section {
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-stat {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 20px 0;
  color: var(--text);
}

.counter {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  font-feature-settings: "tnum", "lnum";
}

.emphasis-teal { color: var(--teal); font-weight: 600; }

.hero-deck {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  max-width: 540px;
}

/* iceberg bar */
.iceberg-figure { margin: 0; }

.iceberg-bar {
  display: flex;
  width: 100%;
  height: 84px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--surface-alt);
}

.iceberg-segment {
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 18px;
  font-family: var(--font-body);
  text-align: left;
  transition: opacity 200ms ease, transform 200ms ease;
  position: relative;
  font-size: inherit;
}

.iceberg-segment.threshold {
  background: var(--teal);
  color: #FBFAF6;
  flex-basis: 62.1%;
}
.iceberg-segment.merits {
  background: var(--terra);
  color: #FBFAF6;
  flex-basis: 37.9%;
}

.iceberg-bar:hover .iceberg-segment { opacity: 0.45; }
.iceberg-bar:hover .iceberg-segment:hover { opacity: 1; }
.iceberg-segment:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  opacity: 1;
}

.seg-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.seg-count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  font-feature-settings: "tnum", "lnum";
}
.seg-pct {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.85;
}

/* iceberg detail panes */
.iceberg-detail {
  margin-top: 16px;
  min-height: 130px;
  position: relative;
}

.detail-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.detail-pane.is-active {
  opacity: 1;
  transform: translateY(0);
}

.detail-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}

.detail-list li {
  font-size: 13px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  border-bottom: 0.5px dotted var(--border);
  padding: 4px 0;
}

.detail-list .label { color: var(--text); }
.detail-list .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  font-feature-settings: "tnum", "lnum";
}

.detail-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin: 0;
  letter-spacing: 0.02em;
  opacity: 1;
  transition: opacity 200ms ease;
}
.iceberg-detail.has-hover .detail-hint { opacity: 0; }

/* ============ Matrix section ============ */
.matrix-section { background: var(--bg); }

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.matrix-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  background: var(--surface);
  color: var(--text);
}
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn-primary {
  background: var(--teal);
  color: #FBFAF6;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: #FBFAF6;
}

/* ============ Filters ============ */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 28px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
}

.filter-group { display: flex; flex-direction: column; gap: 10px; }

.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 12px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  color: var(--text);
  width: 100%;
}
.filter-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 96px;
  overflow-y: auto;
  padding: 2px;
}

.chip {
  font-family: var(--font-body);
  font-size: 12px;
  padding: 4px 10px;
  border: 0.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 120ms ease;
  white-space: nowrap;
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #FBFAF6;
}
.chip .chip-count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.7;
}
.chip.is-active .chip-count { opacity: 0.85; }

/* Active chips bar */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 24px;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  padding: 4px 10px;
  background: var(--teal-soft);
  color: var(--teal-hover);
  border-radius: 999px;
  border: 0.5px solid var(--teal);
}
.active-chip button {
  background: transparent;
  border: 0;
  color: var(--teal);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

/* ============ Table ============ */
.table-wrap {
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  overflow-y: auto;
  max-height: 720px;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.matrix-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-alt);
  z-index: 5;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 12px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: bottom;
  white-space: nowrap;
}

.matrix-table thead th.sortable { cursor: pointer; user-select: none; }
.matrix-table thead th.sortable:hover { color: var(--teal); }
.matrix-table thead th.is-sorted-asc::after  { content: " ↑"; color: var(--teal); font-weight: 500; }
.matrix-table thead th.is-sorted-desc::after { content: " ↓"; color: var(--teal); font-weight: 500; }

.matrix-table tbody tr {
  border-bottom: 0.5px solid var(--border-soft);
  transition: background 120ms ease;
}
.matrix-table tbody tr.row-main { cursor: pointer; }
.matrix-table tbody tr.row-main:hover { background: var(--surface-alt); }

.matrix-table tbody td {
  padding: 12px 12px;
  vertical-align: top;
  color: var(--text);
}

.cell-citation {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal);
  white-space: nowrap;
}
.cell-citation a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 0.5px dotted var(--teal);
}
.cell-citation a:hover { color: var(--teal-hover); border-bottom-color: var(--teal-hover); }

.cell-date, .cell-division, .cell-judge {
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--text-muted);
}

.cell-caption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  min-width: 240px;
  max-width: 340px;
}

.cell-posture, .cell-ruling, .cell-jurisdictional {
  font-size: 12.5px;
  color: var(--text);
}

.ruling-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.ruling-badge.granted   { background: #E2EFEF; color: var(--teal-hover); border: 0.5px solid var(--teal); }
.ruling-badge.denied    { background: #F2E0D9; color: var(--terra);     border: 0.5px solid var(--terra); }
.ruling-badge.mixed     { background: #FBF2DC; color: #7A5A14;          border: 0.5px solid #C49B3A; }
.ruling-badge.dismissed { background: #F4DEEA; color: #6E1F4F;          border: 0.5px solid #A12C7B; }
.ruling-badge.remanded  { background: #E8E3F2; color: #4A356E;          border: 0.5px solid #6B4FB0; }
.ruling-badge.merits    { background: #E5E3DC; color: var(--text);      border: 0.5px solid var(--border); }
.ruling-badge.confirmed { background: #DDECDB; color: var(--success);   border: 0.5px solid var(--success); }
.ruling-badge.other     { background: var(--surface-alt); color: var(--text-muted); border: 0.5px solid var(--border); }

.cell-jurisdictional .jur-issue {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  padding: 2px 7px;
  margin: 1px 3px 1px 0;
  background: var(--surface-alt);
  color: var(--text-muted);
  border-radius: 2px;
  border: 0.5px solid var(--border-soft);
  white-space: nowrap;
}

.cell-claims { min-width: 160px; max-width: 280px; padding-right: 18px !important; }
.cell-claims .claim-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  padding: 1px 6px;
  margin: 1px 3px 2px 0;
  background: var(--teal-soft);
  color: var(--teal-hover);
  border-radius: 2px;
  border: 0.5px solid var(--teal);
  white-space: normal;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.cell-claims.is-empty {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  font-style: normal;
}

.cell-expand {
  text-align: right;
  width: 32px;
}

.expand-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: background 120ms ease, color 120ms ease;
}
.expand-btn:hover { background: var(--surface-alt); color: var(--teal); }
.row-main.is-expanded .expand-btn { color: var(--teal); transform: rotate(90deg); }

/* expandable detail row */
.row-detail { display: none; background: var(--surface-alt); }
.row-detail.is-visible { display: table-row; }
.row-detail td {
  padding: 16px 24px 24px 24px;
  border-bottom: 0.5px solid var(--border);
}
.detail-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px 28px;
  align-items: baseline;
}
.detail-grid dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.detail-grid dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.detail-grid dd.summary-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.matrix-footnote {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.matrix-footnote a { color: var(--teal); text-decoration: none; border-bottom: 0.5px solid var(--teal); }
.matrix-footnote code {
  font-family: var(--font-mono);
  background: var(--surface);
  padding: 1px 5px;
  border: 0.5px solid var(--border);
  border-radius: 2px;
  font-size: 10.5px;
}

/* ============ Footer ============ */
.page-footer {
  padding: 32px 0 56px;
  border-top: 0.5px solid var(--border);
  background: var(--surface);
}
.page-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   LAYOUT (rail nav + main content)
============================================================ */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  align-items: start;
}
.main-content { min-width: 0; }  /* prevent grid blowout */

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
}

/* ============ Left-rail navigation ============ */
.rail-nav {
  position: sticky;
  top: 32px;
  padding: 32px 24px 32px 32px;
  border-right: 0.5px solid var(--border-soft);
  font-family: var(--font-body);
}
.rail-nav ol { list-style: none; padding: 0; margin: 0; }
.rail-nav li { margin: 0 0 4px; }
.rail-link {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 8px 10px 8px 0;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.rail-link:hover { color: var(--text); background: var(--surface); }
.rail-link.is-active {
  color: var(--teal);
  border-left-color: var(--teal);
  font-weight: 500;
}
.rail-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  flex-shrink: 0;
}
.rail-link.is-active .rail-num { color: var(--teal); }
.rail-text { flex: 1; }

@media (max-width: 1100px) {
  .rail-nav {
    position: static;
    top: auto;
    padding: 16px 0;
    border-right: 0;
    border-bottom: 0.5px solid var(--border-soft);
    background: var(--surface);
    overflow-x: auto;
    white-space: nowrap;
  }
  .rail-nav ol { display: flex; padding: 0 20px; gap: 4px; }
  .rail-link { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .rail-link.is-active { border-left: 0; border-bottom-color: var(--teal); }
}

/* Section consistent spacing */
.section-deck {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  max-width: 760px;
}
.section-deck cite { font-style: italic; }
.figure-footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin: 16px 0 0;
}

/* ============================================================
   02 · SANKEY FLOW
============================================================ */
.flow-section { background: var(--bg); border-bottom: 0.5px solid var(--border-soft); }
.flow-canvas {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 0;
  overflow: hidden;
}
.flow-svg { display: block; width: 100%; height: auto; }
.flow-col-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--text-faint);
}
.flow-node {
  fill: var(--text);
  fill-opacity: 0.78;
  cursor: pointer;
  transition: fill-opacity 160ms ease;
}
.flow-node:hover { fill-opacity: 1; }
.flow-node-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  fill: var(--text);
  pointer-events: none;
  font-feature-settings: "tnum";
}
.flow-link {
  cursor: pointer;
  transition: fill-opacity 180ms ease;
}
.flow-svg.is-hovering .flow-link { fill-opacity: 0.12; }
.flow-svg.is-hovering .flow-link.is-hot,
.flow-svg.is-hovering .flow-link:not(.is-dimmed) { fill-opacity: 0.72; }

.flow-tooltip {
  position: absolute;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 10;
  max-width: 260px;
  box-shadow: 0 4px 12px rgba(40, 37, 29, 0.15);
}
.flow-tooltip .tip-flow { margin: 0 0 4px; font-weight: 500; }
.flow-tooltip .tip-flow .arrow { color: var(--text-faint); margin: 0 4px; }
.flow-tooltip .tip-flow .tip-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c5c2bb;
  display: inline-block;
  margin-right: 6px;
}
.flow-tooltip .tip-count {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  color: #f7f6f2;
  font-size: 13px;
}
.flow-tooltip .tip-hint {
  margin: 0;
  color: #a8a59c;
  font-size: 11px;
  font-style: italic;
}

/* ============================================================
   03 · HEATMAP
============================================================ */
.heatmap-section { background: var(--surface); border-bottom: 0.5px solid var(--border-soft); }
.heatmap-wrap {
  background: var(--bg);
  border: 0.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
}
.heatmap {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 0.5px solid var(--border-soft);
  min-width: 720px;
}
.hm-corner {
  background: var(--bg);
  padding: 12px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: flex-end;
}
.hm-col-header {
  background: var(--bg);
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.hm-col-label {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  max-height: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-col-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
}
.hm-row-header {
  background: var(--bg);
  padding: 10px 14px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hm-row-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
}
.hm-row-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.hm-cell {
  background: var(--surface);
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 4px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: outline-color 120ms ease;
  outline: 0.5px solid transparent;
}
.hm-cell:not(.is-empty) {
  background: rgba(10, 30, 58, var(--cell-alpha, 0));
}
.hm-cell:not(.is-empty):hover { outline-color: var(--teal); z-index: 2; }
.hm-cell.is-empty {
  cursor: default;
  background: var(--surface);
  color: var(--text-faint);
}
.hm-cell.is-empty .hm-cell-n { display: none; }
/* dark cells need light text */
.hm-cell .hm-cell-n {
  color: var(--text);
  mix-blend-mode: normal;
}
.hm-cell[style*="--cell-alpha: 0.6"] .hm-cell-n,
.hm-cell[style*="--cell-alpha: 0.7"] .hm-cell-n,
.hm-cell[style*="--cell-alpha: 0.8"] .hm-cell-n {
  color: #fff;
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.legend-swatches { display: inline-flex; gap: 2px; }
.legend-sw {
  width: 22px;
  height: 14px;
  display: inline-block;
  border: 0.5px solid var(--border-soft);
}
.legend-sw[data-bin="1"] { background: rgba(10, 30, 58, 0.18); }
.legend-sw[data-bin="2"] { background: rgba(10, 30, 58, 0.34); }
.legend-sw[data-bin="3"] { background: rgba(10, 30, 58, 0.50); }
.legend-sw[data-bin="4"] { background: rgba(10, 30, 58, 0.66); }
.legend-sw[data-bin="5"] { background: rgba(10, 30, 58, 0.82); }

/* ============================================================
   04 · DOCTRINE / CLEAN-CO SLIDER
============================================================ */
.doctrine-section { background: var(--bg); border-bottom: 0.5px solid var(--border-soft); }
.slider-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.slider-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .slider-grid { grid-template-columns: 1fr; gap: 28px; }
}
.slider-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 8px;
}
.slider-stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--text);
  font-feature-settings: "tnum", "lnum";
}
.slider-stat-value .unit {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}
.slider-stat-detail {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  max-width: 320px;
}
.slider-right { padding-left: 32px; border-left: 0.5px solid var(--border-soft); }
@media (max-width: 820px) {
  .slider-right { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 0.5px solid var(--border-soft); }
}

#slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background:
    linear-gradient(to right,
      var(--teal) 0%,
      var(--teal) var(--pct, 0%),
      var(--border) var(--pct, 0%),
      var(--border) 100%);
  outline: none;
  margin: 6px 0 4px;
  cursor: pointer;
}
#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(40, 37, 29, 0.15);
}
#slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--teal);
  cursor: pointer;
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
}
.slider-marks .threshold {
  color: var(--terra);
  font-weight: 500;
}
.slider-marks .endpoint { color: var(--text-muted); }

.slider-status {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  border-left: 3px solid var(--text-faint);
  background: var(--surface-alt);
  color: var(--text);
}
.slider-status.is-not-springing {
  border-left-color: var(--teal);
  background: var(--teal-soft);
}
.slider-status.is-springing {
  border-left-color: var(--terra);
  background: var(--terra-soft);
}
.slider-status em { font-style: italic; color: var(--text); }

.slider-footnote {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 320ms ease, opacity 240ms ease, padding 240ms ease, margin-top 240ms ease;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}
.slider-footnote.is-visible {
  max-height: 400px;
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 16px;
  margin-top: 18px;
}
.fn-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 8px;
}
.slider-footnote p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 6px;
  font-style: italic;
}
.slider-footnote .fn-cite {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-style: normal;
  margin: 8px 0 0;
}

.slider-takeaway {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-top: 0.5px solid var(--border-soft);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.slider-takeaway strong { color: var(--teal); font-weight: 600; }

.doctrine-related {
  margin: 24px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
}
.inline-filter {
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--text-muted);
  padding: 1px 0;
  margin: 0 4px;
  font: inherit;
  color: var(--teal);
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}
.inline-filter:hover { color: var(--teal-hover); border-bottom-color: var(--teal); }

/* ============================================================
   05 · JUDGES
============================================================ */
.judges-section { background: var(--surface); border-bottom: 0.5px solid var(--border-soft); }
.judges-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
}
.sort-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.judge-sort-btn {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 140ms ease;
}
.judge-sort-btn:hover { color: var(--text); border-color: var(--text-muted); }
.judge-sort-btn.is-active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.judge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.judge-card {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.judge-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(10, 30, 58, 0.08);
  transform: translateY(-1px);
}
.judge-card.tier-secondary {
  background: var(--surface-alt);
}
.judge-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.judge-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  color: var(--text);
}
.judge-tier {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}
.judge-count {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.judge-count .big {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
  font-feature-settings: "tnum", "lnum";
}
.judge-count .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.judge-spark {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border-soft);
}
.spark-seg { display: block; transition: flex-basis 240ms ease; }
/* Judge ruling-sparkline color rules — wires the data-r attribute to the SMU umbrella palette */
.spark-seg[data-r="granted"]  { background: #0a1e3a; }
.spark-seg[data-r="denied"]   { background: #CC0000; }
.spark-seg[data-r="mixed"]    { background: #16315a; }
.spark-seg[data-r="remanded"] { background: #d96544; }
.spark-seg[data-r="other"]    { background: #b9b3a3; }
.judge-metric {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}
.judge-metric .metric-v { color: var(--text); font-weight: 500; }
.judge-signature {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}
.judge-divisions {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  margin: 0;
  padding-top: 8px;
  border-top: 0.5px solid var(--border-soft);
}

/* ============================================================
   06 · REPEAT-LITIGANT RIBBON
============================================================ */
.ribbon-section { background: var(--bg); border-bottom: 0.5px solid var(--border-soft); }
.ribbon-wrap {
  
/* ============== ACTION BUTTON SYSTEM (added 2026-05-22 PM) ==============
   The interactivity layer: professional green push buttons that signal
   "click me" everywhere a reader can take action. Sits on top of the
   navy/cream/red/warm umbrella palette without disturbing it.
   ====================================================================== */

.btn-action,
a.btn-action,
button.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--action);
  color: #fdfaf3;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border: 1px solid var(--action);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease,
              transform 100ms ease, box-shadow 140ms ease;
  box-shadow: 0 1px 2px rgba(15, 123, 90, 0.20),
              0 2px 6px rgba(15, 123, 90, 0.08);
  white-space: nowrap;
}
.btn-action:hover,
.btn-action:focus-visible {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: #fdfaf3;
  box-shadow: 0 2px 4px rgba(15, 123, 90, 0.28),
              0 4px 10px rgba(15, 123, 90, 0.14);
  outline: none;
}
.btn-action:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 123, 90, 0.18);
}
.btn-action:focus-visible {
  outline: 3px solid var(--action-soft);
  outline-offset: 2px;
}
.btn-action--lg {
  padding: 14px 24px;
  font-size: 14px;
}
.btn-action--sm {
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.015em;
}
.btn-action--ghost {
  background: var(--cream);
  color: var(--action);
  border-color: var(--action);
  box-shadow: none;
}
.btn-action--ghost:hover,
.btn-action--ghost:focus-visible {
  background: var(--action-soft);
  border-color: var(--action-hover);
  color: var(--action-hover);
  box-shadow: 0 1px 3px rgba(15, 123, 90, 0.15);
}
.btn-action__arrow {
  font-size: 1.05em;
  line-height: 1;
  display: inline-block;
  transition: transform 140ms ease;
}
.btn-action:hover .btn-action__arrow {
  transform: translateX(2px);
}

/* ============== FLOATING ACTION CONTROLS ============== */

/* "Back to top" floating button — appears after the reader scrolls past hero */
.action-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--action);
  color: #fdfaf3;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 123, 90, 0.32),
              0 8px 24px rgba(15, 123, 90, 0.18);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, background-color 140ms ease;
}
.action-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.action-fab:hover {
  background: var(--action-hover);
}
.action-fab svg {
  width: 22px; height: 22px;
}
@media (max-width: 720px) {
  .action-fab { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* ============== UPGRADE EXISTING BUTTON CLASSES TO GREEN ============== */
.btn-primary,
button.btn-primary,
a.btn-primary {
  background: var(--action) !important;
  color: #fdfaf3 !important;
  border-color: var(--action) !important;
  box-shadow: 0 1px 2px rgba(15, 123, 90, 0.20),
              0 2px 6px rgba(15, 123, 90, 0.08) !important;
}
.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
  background: var(--action-hover) !important;
  border-color: var(--action-hover) !important;
  box-shadow: 0 2px 4px rgba(15, 123, 90, 0.28),
              0 4px 10px rgba(15, 123, 90, 0.14) !important;
}

/* Reset-filters button — make it visible green-outline */
#btn-reset {
  background: var(--cream);
  color: var(--action);
  border: 1px solid var(--action);
  font-weight: 600;
}
#btn-reset:hover {
  background: var(--action-soft);
  border-color: var(--action-hover);
  color: var(--action-hover);
}

/* Matrix "Read PDF" / opinion-row action links — green pill in last column */
.opinion-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--action);
  color: #fdfaf3 !important;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 120ms;
}
.opinion-pdf-link:hover {
  background: var(--action-hover);
  text-decoration: none;
}

/* Judge card hover — show "View opinions →" green action chip */
.judge-card {
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.judge-card:hover {
  transform: translateY(-2px);
  border-color: var(--action) !important;
  box-shadow: 0 4px 12px rgba(15, 123, 90, 0.10),
              0 1px 3px rgba(15, 123, 90, 0.06);
  cursor: pointer;
}
.judge-card::after {
  content: "Filter to judge \2192";
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--action);
  color: #fdfaf3;
  padding: 5px 12px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateY(4px);
}
.judge-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Iceberg segments — clearer click affordance */
.iceberg-segment {
  position: relative;
  cursor: pointer;
}
.iceberg-segment::after {
  content: "Filter \2192";
  position: absolute;
  right: 16px;
  bottom: 12px;
  background: rgba(15, 123, 90, 0.92);
  color: #fdfaf3;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}
.iceberg-segment:hover::after,
.iceberg-segment:focus-visible::after {
  opacity: 1;
}

/* Ribbon dots — bigger click target + green ring on hover */
.ribbon-dot {
  cursor: pointer;
  transition: transform 120ms ease, stroke-width 120ms ease;
}
.ribbon-dot:hover {
  transform: scale(1.4);
  stroke: var(--action);
  stroke-width: 2;
}

/* Filter chips — green when active */
.chip[data-facet].is-active,
.active-chip {
  background: var(--action) !important;
  color: #fdfaf3 !important;
  border-color: var(--action) !important;
}
.active-chip button {
  color: #fdfaf3 !important;
}
.active-chip button:hover {
  background: var(--action-hover) !important;
}

/* Heatmap cells — green ring on hover */
.heatmap-cell:hover,
.heat-cell:hover {
  outline: 2px solid var(--action);
  outline-offset: 1px;
  cursor: pointer;
}

/* Sankey streams — green highlight on hover */
.flow-link:hover {
  filter: brightness(1.05) drop-shadow(0 0 4px rgba(15, 123, 90, 0.4));
  cursor: pointer;
}

/* In-text inline-filter buttons (§04 doctrine related) — make them pop */
.inline-filter {
  background: var(--cream);
  color: var(--action);
  border: 1px solid var(--action);
  padding: 3px 10px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms, color 120ms;
}
.inline-filter:hover {
  background: var(--action);
  color: #fdfaf3;
}

/* Section-callout — add a green "Take a closer look →" CTA hint */
.section-callout {
  position: relative;
}
.section-callout::after {
  content: "";
  position: absolute;
  inset: -1px -1px -1px auto;
  width: 4px;
  background: var(--action);
  opacity: 0;
  transition: opacity 200ms ease;
  border-radius: 0 4px 4px 0;
}

