:root {
  --bg: #f3f5f7;
  --bg-elevated: #ffffff;
  --ink: #0f1c24;
  --muted: #5a6f7c;
  --line: rgba(15, 28, 36, 0.08);
  --accent: #0c7f79;
  --accent-2: #b88314;
  --chart-1: #0c7f79;
  --chart-2: #3b6ea5;
  --chart-3: #b88314;
  --chart-4: #5b7c5a;
  --chart-5: #a85a4a;
  --surface-dark: #0a2229;
  --surface-dark-2: #0e2f33;
  --on-dark: #eef3f4;
  --on-dark-muted: rgba(238, 243, 244, 0.62);
  --line-on-dark: rgba(238, 243, 244, 0.14);
  --accent-bright: #2aa79e;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0.16'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --font-sans: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-normal: 240ms;
  --duration-enter: 550ms;
  --shadow-soft: 0 1px 2px rgba(15, 28, 36, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8fa 0%, var(--bg) 48%, #eef1f4 100%);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.2);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.35rem;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 400;
  margin-left: 0.5rem;
  letter-spacing: 0.02em;
}

.mode-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.mode-link {
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.mode-link:hover,
.mode-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.nav-dd {
  position: relative;
}

.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.nav-dd.is-active .nav-dd-trigger,
.nav-dd.is-open .nav-dd-trigger {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-dd-trigger .chev {
  font-size: 0.65rem;
  opacity: 0.7;
}

.nav-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 11rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 28, 36, 0.12);
  padding: 0.35rem 0;
  z-index: 40;
}

.nav-dd.is-open .nav-dd-menu {
  display: block;
}

.nav-dd-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-dd-menu a:hover,
.nav-dd-menu a:focus-visible {
  background: rgba(12, 127, 121, 0.08);
  color: var(--accent);
  text-decoration: none;
}

/* Report filters strip — above chapter tabs */
.report-filters {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.report-filters-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.45rem 1.35rem 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.75rem;
}

.report-filters-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
  padding-top: 0.45rem;
  flex-shrink: 0;
}

.report-filters .filter-bar {
  flex: 1;
  min-width: 12rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.report-filters .filter-bar-status {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
}

/* Report chapter strip (separate Market HTML pages, tab chrome) */
.report-chapters {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.report-chapters-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.35rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.report-chapters-inner a {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.85rem 1.15rem 0.75rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: -1px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.report-chapters-inner a:hover {
  color: var(--ink);
  background: rgba(15, 28, 36, 0.04);
  text-decoration: none;
}

.report-chapters-inner a.is-active {
  color: var(--accent);
  background: rgba(12, 127, 121, 0.12);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Legacy class kept for any leftover references */
.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.primary-nav a {
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.market-subnav {
  display: none;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.85rem 1.35rem 3.25rem;
}

.page-pulse {
  padding-top: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3rem);
  font-optical-sizing: auto;
  letter-spacing: -0.035em;
  margin: 0 0 0.55rem;
  font-weight: 600;
  line-height: 1.08;
}

.page-pulse h1 {
  margin-bottom: 0.65rem;
}

.lede {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  line-height: 1.55;
}

.page-pulse .lede {
  margin-bottom: 1.85rem;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.phase-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(12, 127, 121, 0.35);
  background: rgba(12, 127, 121, 0.08);
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.65rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  margin-top: 2.5rem;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.35rem 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer-credit {
  margin: 0.9rem 0 0;
  font-size: 0.84rem;
  color: var(--ink);
  font-weight: 500;
}

.site-footer-credit a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer-credit a:hover {
  text-decoration: underline;
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.15rem;
}

.dq-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.55rem;
  font-size: 0.76rem;
}

.dq-table th,
.dq-table td {
  text-align: left;
  padding: 0.42rem 0.65rem 0.42rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.dq-table th {
  color: var(--ink);
  font-weight: 600;
}

.dq-table td:first-child {
  color: var(--ink);
  font-weight: 500;
  width: 28%;
}

.dq-table td:nth-child(2) {
  width: 26%;
  color: var(--ink);
}

.snapshot-banner {
  background: rgba(184, 131, 20, 0.1);
  border: 1px solid rgba(184, 131, 20, 0.32);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  border-radius: var(--radius);
}

.pulse-synthesis {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 0 0 2rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 42rem;
  box-shadow: none;
  animation-name: pulse-fade-up;
  animation-duration: var(--duration-enter);
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}

.pulse-synthesis h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse-synthesis p {
  margin: 0;
  max-width: 40rem;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.kpi-tile {
  flex: none;
  min-width: 0;
  max-width: none;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 0.85rem 0 1rem;
  position: relative;
  overflow: visible;
  transition: opacity var(--duration-fast) var(--ease);
  animation-name: pulse-fade-up;
  animation-duration: var(--duration-enter);
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}

.kpi-tile::before {
  display: none;
}

.kpi-tile.is-hero {
  grid-column: 1 / -1;
  border-top: 0;
  padding-top: 0;
  padding-bottom: 1.25rem;
  margin-bottom: 0.25rem;
}

.kpi-tile.is-hero .kpi-value {
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.kpi-tile.is-hero .kpi-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
}

.kpi-tile:nth-child(1) { animation-delay: 0.02s; }
.kpi-tile:nth-child(2) { animation-delay: 0.06s; }
.kpi-tile:nth-child(3) { animation-delay: 0.1s; }
.kpi-tile:nth-child(4) { animation-delay: 0.14s; }
.kpi-tile:nth-child(5) { animation-delay: 0.18s; }
.kpi-tile:nth-child(6) { animation-delay: 0.22s; }

.kpi-tile:hover {
  transform: none;
  border-color: var(--line);
  opacity: 0.92;
}

.kpi-tile .kpi-label {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.kpi-tile .kpi-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-optical-sizing: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kpi-tile .kpi-context {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.kpi-tile .kpi-chip {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.66rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.12rem 0.4rem;
  border-radius: var(--radius);
}

.panel-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.15rem;
}

.panel-head-row h2 {
  margin: 0;
}

.panel-head-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}

.panel-head-link:hover {
  color: var(--accent);
}

.watchlist-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.watchlist-list li {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 0;
  background: transparent;
  transition: opacity var(--duration-fast) var(--ease);
}

.watchlist-list li:hover {
  background: transparent;
  border-color: var(--line);
  opacity: 0.88;
}

.watchlist-list .wl-finding {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}

.watchlist-list a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-underline-offset: 2px;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.65rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Introduction's four-layer doorway grid — same tile/border logic, one
   more column (first/last-child rules below are column-count-agnostic). */
@media (min-width: 900px) {
  .teaser-grid.teaser-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.teaser-tile {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: opacity var(--duration-fast) var(--ease);
}

@media (min-width: 800px) {
  .teaser-tile {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 1.35rem 1.25rem 1.35rem 0;
  }

  .teaser-tile:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .teaser-tile:not(:first-child) {
    padding-left: 1.25rem;
  }
}

.teaser-tile:hover {
  transform: none;
  border-color: var(--line);
  opacity: 0.9;
}

.teaser-tile .teaser-eyebrow {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--muted);
}

.teaser-tile .teaser-stat {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-optical-sizing: auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.teaser-tile .teaser-context {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.teaser-tile .teaser-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.teaser-tile .teaser-links a,
.teaser-tile > a.teaser-cta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}

.teaser-tile .teaser-links a:hover,
.teaser-tile > a.teaser-cta:hover {
  color: var(--accent);
}

.teaser-tile > a.teaser-cta {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

@keyframes pulse-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes briefing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Layer hero: generalized full-bleed opening act (every page, not only
   Pulse — see DESIGN.md §5). One signature finding, one oversized numeral,
   reused verbatim as the shared primitive Pulse's own hero also draws from. */
.layer-hero {
  margin: 0 0 2.75rem;
  padding: 3rem 0 3.25rem;
}

.layer-hero--dark {
  position: relative;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1.35rem, calc(50vw - 560px + 1.35rem));
  padding-right: max(1.35rem, calc(50vw - 560px + 1.35rem));
  background-color: var(--surface-dark);
  background-image: var(--noise),
    linear-gradient(180deg, var(--surface-dark-2) 0%, var(--surface-dark) 100%);
  color: var(--on-dark);
}

.layer-hero--dark > *:not(.hero-particles) {
  position: relative;
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.layer-hero--dark .eyebrow {
  color: var(--on-dark-muted);
}

.layer-hero .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.5rem 0 1.1rem;
}

.layer-hero .hero-stat-value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(4.25rem, 11vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}

.layer-hero .hero-stat-label {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.layer-hero .hero-line {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.layer-hero .eyebrow,
.layer-hero .hero-stat,
.layer-hero .hero-line {
  opacity: 1;
  transform: none;
}

.layer-hero.is-ready .eyebrow,
.layer-hero.is-ready .hero-stat,
.layer-hero.is-ready .hero-line {
  opacity: 0;
  transform: translateY(18px);
  animation-name: briefing-rise;
  animation-duration: var(--duration-enter);
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
}

.layer-hero.is-ready .eyebrow { animation-delay: 0.04s; }
.layer-hero.is-ready .hero-stat { animation-delay: 0.16s; }
.layer-hero.is-ready .hero-line { animation-delay: 0.3s; }

/* —— Hero chart: the one promoted, load-bearing chart beneath a layer hero.
   Supporting charts stay in .chart-grid-2; this one stands alone, larger. */
.chart-panel--hero {
  padding: 1.6rem 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.chart-panel--hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chart-wrap.hero {
  height: 420px;
}

@media (min-width: 640px) {
  .chart-wrap.hero {
    height: 480px;
  }
}

/* Non-canvas hero content (e.g. rate-meter lists) scales up in step. */
.chart-panel--hero .rate-meter-list {
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.chart-panel--hero .rate-meter-row {
  font-size: 1.05rem;
}

.chart-panel--hero .rate-meter-track {
  height: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .kpi-tile,
  .pulse-synthesis,
  .teaser-tile,
  .layer-hero .eyebrow,
  .layer-hero .hero-stat,
  .layer-hero .hero-line {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .kpi-tile:hover,
  .teaser-tile:hover {
    transform: none;
  }
}

.callout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.85rem;
}

.callout {
  background: rgba(12, 127, 121, 0.07);
  border: 1px solid rgba(12, 127, 121, 0.22);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  min-width: 10rem;
}

.callout.callout-ni {
  min-width: 14rem;
  max-width: 22rem;
}

.callout .label {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--muted);
}

.callout .value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
}

.callout .value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.callout .def {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.comparator-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-sans, inherit);
  font-weight: 500;
  color: var(--ink);
  border: 1px solid rgba(59, 110, 165, 0.35);
  background: rgba(59, 110, 165, 0.08);
  padding: 0.15rem 0.45rem;
  line-height: 1.3;
  border-radius: var(--radius);
}

.chart-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: none;
}

.chart-panel h2 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.chart-n {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.chart-wrap {
  position: relative;
  height: 280px;
  margin-bottom: 0.5rem;
}

.chart-wrap.short {
  height: 120px;
}

.chart-wrap.tall {
  height: 360px;
}

.chart-wrap.paired {
  height: 300px;
}

.chart-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 860px) {
  .chart-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.chart-footnote {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}

.muted-callout {
  background: rgba(92, 114, 128, 0.08);
  border: 1px dashed rgba(92, 114, 128, 0.35);
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.heatmap-wrap {
  overflow-x: auto;
  margin-bottom: 0.5rem;
}

.heatmap {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  min-width: 640px;
}

.heatmap th,
.heatmap td {
  border: 1px solid var(--line);
  padding: 0.35rem 0.4rem;
  text-align: center;
}

.heatmap thead th {
  background: rgba(20, 36, 45, 0.04);
  font-weight: 600;
  text-transform: capitalize;
}

.heatmap tbody th {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.heatmap .hm-pct {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.heatmap .hm-n {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.heatmap--rate {
  min-width: 280px;
  max-width: 440px;
}

.heatmap--rate td {
  min-width: 7rem;
}

.heatmap tr.hm-section th {
  background: color-mix(in srgb, var(--bg) 80%, var(--line));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
  text-align: left;
}

/* —— Disclosure rate strips (3-column) —— */
.disc-heatmap-host {
  margin: 0.35rem 0 0.75rem;
}

.disc-strips-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.disc-leg::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -0.05rem;
}

.disc-leg--below::before {
  background: color-mix(in srgb, var(--chart-5) 70%, transparent);
}

.disc-leg--above::before {
  background: color-mix(in srgb, var(--chart-1) 70%, transparent);
}

.disc-leg-mid {
  color: var(--ink);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-variant-numeric: tabular-nums;
}

.disc-strips-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.disc-strips-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.disc-strips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.disc-strip-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 2.6rem;
  gap: 0.45rem;
  align-items: center;
}

.disc-strip-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disc-strip-track {
  position: relative;
  height: 0.72rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 65%, var(--line));
  border: 1px solid var(--line);
  overflow: hidden;
}

.disc-strip-fill {
  display: block;
  height: 100%;
  border-radius: 1px;
  min-width: 2px;
}

.disc-strip-mark {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: var(--ink);
  opacity: 0.55;
  transform: translateX(-50%);
  pointer-events: none;
}

.disc-strip-pct {
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 900px) {
  .disc-strips-cols {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

.legend-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.geo-filter-bar {
  margin: 0.65rem 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, var(--accent) 12%);
}

.geo-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
}

.geo-filter-btn {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
}

.geo-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.geo-filter-other {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
}

.geo-filter-other input {
  accent-color: var(--accent);
}

.geo-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  max-height: 9.5rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.geo-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.22rem 0.55rem 0.22rem 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 0.72rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.geo-filter-chip input {
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.geo-filter-chip.is-other {
  border-style: dashed;
  color: var(--muted);
}

.geo-filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}

.geo-filter-chip .geo-n {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* —— Compensation dumbbell + skill premium tabs —— */
.dumbbell {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 0.5rem;
}

.dumbbell-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr minmax(9rem, 12rem);
  gap: 0.75rem 1rem;
  align-items: center;
}

.dumbbell-band {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.dumbbell-track {
  position: relative;
  height: 1.35rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 70%, var(--line));
  border: 1px solid var(--line);
  overflow: visible;
}

.dumbbell-line {
  position: absolute;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 1px;
}

.dumbbell-dot {
  position: absolute;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--bg-elevated);
  box-sizing: border-box;
}

.dumbbell-dot--a16z {
  background: var(--chart-1);
}

.dumbbell-dot--market {
  background: var(--chart-3);
}

.dumbbell-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.dumbbell-prem {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.dumbbell-ns {
  font-size: 0.68rem;
  color: var(--muted);
}

.dumbbell-disc-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.dumbbell-disc-link:hover {
  color: var(--ink);
}

#prem-unplottable:empty {
  display: none;
}

.comp-skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.comp-skill-tab {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  cursor: pointer;
}

.comp-skill-tab.is-active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-elevated));
}

.comp-skill-tab:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .dumbbell-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.fn-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.35rem;
}

.fn-header h1 {
  margin: 0;
}

.fn-select-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.fn-select-label select {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  min-width: 12rem;
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.tab-strip .tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1rem 0.6rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-strip .tab:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(15, 28, 36, 0.04);
}

.tab-strip .tab.is-active {
  color: var(--accent);
  background: rgba(12, 127, 121, 0.12);
  border-bottom-color: var(--accent);
}

.tab-strip .tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: transparent;
}

.tab-panel[hidden] {
  display: none;
}

.tier-badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.4rem;
  margin-bottom: 0.45rem;
  border: 1px solid var(--line);
}

.tier-badge.tier-1 {
  color: var(--chart-4);
  border-color: rgba(91, 124, 90, 0.45);
  background: rgba(91, 124, 90, 0.1);
}

.tier-badge.tier-2 {
  color: var(--accent-2);
  border-color: rgba(196, 138, 26, 0.45);
  background: rgba(196, 138, 26, 0.1);
}

.muted-callout.pending-panel {
  padding: 1.25rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}

.below-floor {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.company-search-label input[type="search"] {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  min-width: 16rem;
}

.role-results {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  max-height: 18rem;
  overflow: auto;
}

.role-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.role-result-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.role-result-btn:hover,
.role-result-btn:focus-visible {
  background: color-mix(in srgb, var(--accent, #2a6f7a) 10%, transparent);
}

.role-result-label {
  font-weight: 600;
}

.role-grade {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
}

.role-result-meta,
.role-result-ex {
  font-size: 0.8rem;
  color: var(--muted);
}

.role-notices {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.role-notices li {
  margin: 0.25rem 0;
}

.section-block {
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.25rem;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.section-block h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

/* —— Introduction's chapter list (Pulse → Anomalies) —— */
.intro-chapters {
  list-style: none;
  counter-reset: chapter;
  margin: 0;
  padding: 0;
}

.intro-chapters li {
  counter-increment: chapter;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.intro-chapters li::before {
  content: counter(chapter, decimal-leading-zero);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 1.6rem;
  font-variant-numeric: tabular-nums;
}

.intro-chapters a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.intro-chapters a:hover {
  color: var(--accent);
}

.intro-chapters p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.limited-sample {
  font-size: 0.85rem;
  color: var(--accent-2);
  margin: 0 0 0.75rem;
}

.compact-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0;
}

.compact-dl dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.compact-dl dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.partial-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}

.callout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.cross-nav {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.cross-nav a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alert-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left-width: 4px;
  background: var(--bg-elevated);
}

.alert-card header {
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.alert-sev {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.35rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
}

.alert-critical {
  border-left-color: #a85a4a;
}

.alert-critical .alert-sev {
  color: #a85a4a;
  border-color: rgba(168, 90, 74, 0.45);
  background: rgba(168, 90, 74, 0.1);
}

.alert-high {
  border-left-color: #c48a1a;
}

.alert-high .alert-sev {
  color: #c48a1a;
  border-color: rgba(196, 138, 26, 0.45);
  background: rgba(196, 138, 26, 0.1);
}

.alert-info {
  border-left-color: #3b6ea5;
}

.alert-info .alert-sev {
  color: #3b6ea5;
  border-color: rgba(59, 110, 165, 0.45);
  background: rgba(59, 110, 165, 0.1);
}

.alert-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.alert-action {
  color: var(--muted);
  font-size: 0.85rem !important;
}

.stage-tag {
  font-size: 0.72rem;
  white-space: nowrap;
}

.stage-tag.stage-1 {
  color: #a85a4a;
}

.stage-tag.stage-2 {
  color: #c48a1a;
}

.signal-density-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.signal-density-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.sig-head {
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.sig-count {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line);
  color: var(--muted);
}

.sig-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.signal-chip {
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  background: rgba(13, 138, 132, 0.08);
  color: var(--ink);
}

/* Chart help */
.chart-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.15rem;
}

.chart-panel-head h2,
.chart-panel-head h3 {
  margin: 0;
  flex: 1 1 auto;
}

.chart-panel-head .tier-badge {
  margin-bottom: 0;
}

.chart-help-btn {
  appearance: none;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.chart-help-btn:hover,
.chart-help-btn:focus-visible {
  color: var(--ink);
  border-color: var(--accent);
  outline: none;
}

body.chart-help-open {
  overflow: hidden;
}

.chart-help-modal[hidden] {
  display: none !important;
}

.chart-help-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.chart-help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 36, 45, 0.45);
}

.chart-help-panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(85vh, 40rem);
  overflow: auto;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(20, 36, 45, 0.18);
  padding: 1rem 1.15rem 1.25rem;
}

.chart-help-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.chart-help-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.chart-help-close {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.chart-help-close:hover {
  color: var(--ink);
}

.chart-help-body section {
  margin-bottom: 0.85rem;
}

.chart-help-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.chart-help-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink);
}


/* —— Cleveland dot-plot primitives (shared: Pulse coverage, Signals skills/AI) —— */
.coverage-fn-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.covdot-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 4.5rem 8.5rem;
  gap: 0 0.9rem;
  align-items: center;
  font-size: 0.85rem;
}

.covdot-label {
  font-weight: 600;
}

.covdot-track {
  position: relative;
  height: 14px;
  background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat;
  border-right: 1px solid var(--line);
}

.covdot-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--chart-1);
  box-shadow: 0 0 0 2px var(--bg-elevated);
}

.covdot-row.is-low .covdot-dot {
  background: var(--accent-2);
}

.covdot-bench {
  position: absolute;
  left: 80%;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: var(--muted);
  opacity: 0.35;
}

.covdot-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.covdot-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.covdot-legend {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .covdot-row {
    grid-template-columns: minmax(0, 1fr) 4.5rem;
    grid-template-areas:
      "label value"
      "track track"
      "meta meta";
    row-gap: 0.3rem;
  }

  .covdot-label { grid-area: label; }
  .covdot-track { grid-area: track; }
  .covdot-value { grid-area: value; }
  .covdot-meta { grid-area: meta; }
}

/* —— Symmetric matrix heatmap variant (skill co-occurrence) —— */
.heatmap--matrix {
  min-width: 760px;
}

.heatmap--matrix thead th {
  text-transform: none;
}

.heatmap--matrix .hm-diag {
  box-shadow: inset 0 0 0 1px var(--line);
  filter: saturate(0.35);
}

/* —— Plain-language panel explainer (injected by chart-help.js from `plain` field) —— */
.panel-explainer {
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
  margin: 0.35rem 0 0.9rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 46rem;
}

.panel-explainer .pe-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

/* —— Mini dot meters (function coverage, signal counts) —— */
.fn-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
}

.fn-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
}

.fn-dot.on {
  background: var(--chart-1);
  border-color: var(--chart-1);
}

/* Bar-in-cell: disc-strip spans are inline and collapse inside <td> without this */
.data-table .disc-strip-track {
  display: block;
  min-width: 6.5rem;
  margin-top: 0.25rem;
}

/* Company-cluster chips row above the Stage-2 outlier table */
.cluster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0.75rem;
}

/* Sub-heading inside a multi-part chart panel (e.g. company lexical) */
.section-sub {
  margin: 1rem 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Rate-meter list: accurate length-based ranking for high-variance rates */
.rate-meter-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.rate-meter-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 3.2rem;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
}

.rate-meter-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rate-meter-track {
  position: relative;
  height: 0.85rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 65%, var(--line));
  border: 1px solid var(--line);
  overflow: hidden;
}

.rate-meter-fill {
  display: block;
  height: 100%;
  background: var(--chart-1);
  border-radius: 1px;
  min-width: 2px;
}

.rate-meter-value {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--muted);
}

@media (max-width: 720px) {
  .rate-meter-row {
    grid-template-columns: minmax(0, 1fr) 3.2rem;
    grid-template-areas:
      "label value"
      "track track";
    row-gap: 0.3rem;
  }

  .rate-meter-label { grid-area: label; }
  .rate-meter-track { grid-area: track; }
  .rate-meter-value { grid-area: value; }
}

/* —— Market filter bar (shared across Market pages) —— */
.filter-bar {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 0;
  padding: 0.55rem 0 0.45rem;
  margin: 0 0 1.5rem;
}

.filter-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.filter-group-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.15rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: none;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}

.filter-chip:hover {
  border-color: rgba(12, 127, 121, 0.45);
  color: var(--ink);
}

.filter-chip.is-active {
  background: transparent;
  border-color: rgba(12, 127, 121, 0.45);
  color: var(--accent);
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.filter-toggle input {
  margin: 0;
  accent-color: var(--accent);
}

.filter-bar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.filter-reset {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.filter-reset:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .filter-chip {
    transition: none;
  }
}

.filter-bar-loading {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.filter-scope-note {
  margin: 0.6rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

/* —— Explore picker —— */
.explore-empty {
  min-height: calc(100vh - 6rem);
  padding: 2.75rem 0 4rem;
}

.explore-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.35rem;
  width: 100%;
}

.explore-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.explore-panel .lede {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 42ch;
}

.explore-type-chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}

.explore-type-chooser button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.explore-type-chooser button:hover {
  color: var(--ink);
  border-color: rgba(12, 127, 121, 0.45);
}

.explore-type-chooser button.is-on {
  color: var(--accent);
  border-color: rgba(12, 127, 121, 0.45);
  background: rgba(12, 127, 121, 0.1);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.explore-field {
  margin-bottom: 1.35rem;
  max-width: 36rem;
}

.explore-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.explore-field input[type="search"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.explore-field input:focus {
  outline: 2px solid rgba(12, 127, 121, 0.35);
  outline-offset: 1px;
}

.fn-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.fn-list button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
}

.fn-list button:last-child {
  border-bottom: 0;
}

.fn-list button:hover {
  background: rgba(12, 127, 121, 0.06);
}

.fn-list button.is-on {
  background: rgba(12, 127, 121, 0.1);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}

.fn-list .n {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.fn-list button.is-on .n {
  color: var(--accent);
}

.combo-wrap {
  position: relative;
}

.combo-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 28, 36, 0.1);
}

.combo-results[hidden] {
  display: none;
}

.combo-results li {
  margin: 0;
}

.combo-results button {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
}

.combo-results button:hover {
  background: rgba(12, 127, 121, 0.08);
}

.combo-results .n {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.combo-results .empty {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.explore-go {
  margin-top: 0.35rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.explore-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.explore-go:not(:disabled):hover {
  background: #0a6e69;
}

.explore-go[hidden] {
  display: none;
}

.entity-change {
  display: inline-flex;
  align-items: center;
  margin-left: 0.65rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.entity-change:hover {
  color: var(--accent);
  border-color: rgba(12, 127, 121, 0.45);
  text-decoration: none;
}

.fn-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

/* Entity shell: filters → tabs → hero */
.entity-filters {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.entity-filters-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.45rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem 0.85rem;
}

.entity-filters-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.entity-filters .fn-select-label {
  margin: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  flex: 0 1 22rem;
  min-width: 12rem;
  max-width: 28rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
}

.entity-filters .fn-select-label select,
.entity-filters .fn-select-label input[type="search"] {
  flex: 1;
  min-width: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.entity-combo {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.entity-combo .role-results,
.entity-combo .combo-results-like {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 25;
  margin: 0;
  max-height: 16rem;
  box-shadow: 0 10px 28px rgba(15, 28, 36, 0.1);
}

/* Match Report chapter tabs: left-aligned in content column */
.entity-tabs.tab-strip {
  display: block;
  border-bottom: 1px solid var(--line);
  background: #fff;
  margin: 0;
  padding: 0;
}

.entity-tabs-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.35rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.entity-tabs.tab-strip .tab {
  margin-bottom: -1px;
  padding: 0.85rem 1.15rem 0.75rem;
  font-size: 0.95rem;
}
