/* ===== TraceAV-Bench project page custom styles ===== */
/* Morandi palette aligned with the paper figures. */

:root {
  /* Primary text / brand (muted steel blue) */
  --tav-primary:   #3E5A75;   /* deep morandi blue (paper morandiTitle) */
  --tav-primary-2: #6F8AA3;   /* morandi frame */
  --tav-accent:    #B08A3E;   /* muted ochre (replaces loud gold) */

  /* Dimension accents — match the sunburst palette */
  --tav-avr: #7FA3C2;   /* muted blue — Knowledge & Information */
  --tav-vr:  #9FC2A8;   /* muted green — Film & TV */
  --tav-ar:  #E0B58E;   /* warm sand — Lifestyle / Life Record */
  --tav-mh:  #D49A9A;   /* dusty rose — Arts & Performance */
  --tav-sport: #B8AED1; /* soft lavender — Sports (reserved) */

  /* Backgrounds / surfaces */
  --tav-bg-soft:   #EEF2F6;   /* morandi back */
  --tav-bg-softer: #F6F8FB;
  --tav-surface:   #FFFFFF;
  --tav-border:    #D6DEE7;
  --tav-border-strong: #B8C4D2;

  /* Text */
  --tav-text:      #2F3B4A;
  --tav-text-muted:#6B7A8C;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-title { font-weight: 800; letter-spacing: -0.01em; }
.publication-subtitle {
  color: #445;
  margin-top: 0.5rem !important;
  font-weight: 500;
}

.traceav-brand {
  background: linear-gradient(90deg, #3E5A75 0%, #6F8AA3 45%, #B08A3E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.publication-authors { margin-top: 1rem; }
.publication-authors .author-block {
  margin: 0 0.2rem;
  font-weight: 400;   /* no bold for author names */
}
.publication-authors .author-block b,
.publication-authors .author-block strong { font-weight: 400; }

.disabled-link {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}

/* ===== top navbar ===== */
.tav-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--tav-border);
}
.tav-navbar .tav-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tav-nav-brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tav-primary) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: -0.01em;
}
.tav-nav-logo {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(62, 90, 117, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tav-nav-logo img,
.tav-nav-logo svg { width: 100%; height: 100%; display: block; }
.tav-nav-brand:hover .tav-nav-logo {
  transform: translateY(-1px) rotate(-2deg);
  box-shadow: 0 4px 10px rgba(62, 90, 117, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.tav-nav-brandname {
  background: linear-gradient(90deg, #3E5A75 0%, #6F8AA3 55%, #B08A3E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tav-nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}
.tav-nav-links a {
  color: #344054;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}
.tav-nav-links a:hover {
  color: var(--tav-primary-2);
  border-bottom-color: var(--tav-primary-2);
}
.tav-nav-links a.nav-cta {
  background: var(--tav-primary);
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 999px;
  border-bottom: 0;
}
.tav-nav-links a.nav-cta:hover {
  background: var(--tav-primary-2);
}
.tav-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 1.3rem;
  color: #344054;
  cursor: pointer;
}
@media (max-width: 860px) {
  .tav-nav-links { display: none; }
  .tav-nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 0.8rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    border-bottom: 1px solid var(--tav-border);
  }
  .tav-nav-toggle { display: inline-block; }
}

/* anchor offset under sticky nav */
section[id] { scroll-margin-top: 72px; }

/* ===== key stats strip ===== */
.key-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.stat-card {
  min-width: 130px;
  padding: 0.85rem 1.2rem;
  background: #ffffff;
  border: 1px solid var(--tav-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tav-primary);
}
.stat-label {
  font-size: 0.85rem;
  color: #667085;
  margin-top: 2px;
}

/* ===== teaser / pipeline figure ===== */
.teaser-figure, .pipeline-figure, .findings-figure, .stats-figure {
  margin: 0 auto;
  text-align: center;
}
.teaser-figure img, .pipeline-figure img, .findings-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.08);
  border: 1px solid var(--tav-border);
  background: #fff;
}
.teaser-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #475467;
  line-height: 1.55;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== dataset stats (stacked vertically) ===== */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  align-items: center;
}
.stats-figure {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}
.stats-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--tav-border);
  background: #fff;
  padding: 0.5rem 0.75rem;
}
/* the sunburst is square — narrower max-width keeps visual balance */
.stats-figure.is-square {
  max-width: 460px;
}
.stats-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--tav-text-muted);
  line-height: 1.55;
  text-align: center;
}

/* ===== key findings ===== */
.teaser-fallback, .pipeline-fallback {
  border: 2px dashed var(--tav-border);
  background: var(--tav-bg-soft);
  padding: 3rem 2rem;
  color: var(--tav-text-muted);
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.teaser-fallback i, .pipeline-fallback i {
  font-size: 2rem;
  color: var(--tav-border-strong);
}

/* ===== highlights ===== */
.highlights-grid { margin-top: 1.5rem; }
.highlight-card {
  background: #fff;
  border: 1px solid var(--tav-border);
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.2s ease;
}
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  border-color: var(--tav-primary-2);
}
.highlight-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--tav-bg-soft);
  color: var(--tav-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}
.highlight-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--tav-text);
}
.highlight-card p {
  font-size: 0.92rem;
  color: var(--tav-text-muted);
  line-height: 1.55;
}

/* ===== task taxonomy ===== */
/* ===== Task taxonomy: horizontal compact rows ===== */
.taxonomy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tax-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #fff;
  border: 1px solid var(--tav-border);
  border-left: 5px solid var(--tav-primary);
  border-radius: 12px;
  overflow: hidden;
  align-items: stretch;
}
.tax-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  background: var(--tav-bg-soft);
  border-right: 1px solid var(--tav-border);
}
.tax-header .tax-tag {
  align-self: flex-start;
  padding: 2px 10px;
  background: #fff;
  color: var(--tav-primary);
  border: 1px solid var(--tav-border);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tax-header .tax-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--tav-text);
  line-height: 1.3;
}
.tax-header .tax-count {
  font-size: 0.76rem;
  color: var(--tav-text-muted);
}
.tax-avr { border-left-color: var(--tav-avr); }
.tax-vr  { border-left-color: var(--tav-vr);  }
.tax-ar  { border-left-color: var(--tav-ar);  }
.tax-mh  { border-left-color: var(--tav-mh);  }

.tax-avr .tax-tag { color: #486b87; border-color: #cedae4; }
.tax-vr  .tax-tag { color: #5a8365; border-color: #d4e2d8; }
.tax-ar  .tax-tag { color: #8a6335; border-color: #e8d5bd; }
.tax-mh  .tax-tag { color: #994d4d; border-color: #e8c8c8; }

/* tax-list: 2-column grid of equally-sized rounded pills */
.tax-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 44px;
  align-content: start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
}
.tax-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  font-size: 0.85rem;
  color: #344054;
  background: var(--tav-bg-softer);
  border: 1px solid var(--tav-border);
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-height: 34px;
  overflow: hidden;
}
.tax-item:hover {
  border-color: var(--tav-primary-2);
  transform: translateY(-1px);
}
/* every pill stays uniform width — odd last item simply leaves the other slot empty */

.tax-item b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--tav-border);
  white-space: nowrap;
}
.tax-item .tax-task {
  font-size: 0.85rem;
  color: #344054;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tax-item .tax-q {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--tav-text-muted);
  min-width: 30px;
}

/* Per-dimension theming */
.tax-avr .tax-item            { background: rgba(127, 163, 194, 0.10); border-color: #d4dfe9; }
.tax-vr  .tax-item            { background: rgba(159, 194, 168, 0.13); border-color: #d8e6dd; }
.tax-ar  .tax-item            { background: rgba(224, 181, 142, 0.15); border-color: #ecd9c2; }
.tax-mh  .tax-item            { background: rgba(212, 154, 154, 0.15); border-color: #ebcccc; }

.tax-avr .tax-item:hover      { background: rgba(127, 163, 194, 0.20); }
.tax-vr  .tax-item:hover      { background: rgba(159, 194, 168, 0.24); }
.tax-ar  .tax-item:hover      { background: rgba(224, 181, 142, 0.26); }
.tax-mh  .tax-item:hover      { background: rgba(212, 154, 154, 0.26); }

.tax-avr .tax-item b { color: #486b87; border-color: #cedae4; }
.tax-vr  .tax-item b { color: #5a8365; border-color: #d4e2d8; }
.tax-ar  .tax-item b { color: #8a6335; border-color: #e8d5bd; }
.tax-mh  .tax-item b { color: #994d4d; border-color: #e8c8c8; }

.tax-avr .tax-item .tax-q { color: #486b87; }
.tax-vr  .tax-item .tax-q { color: #5a8365; }
.tax-ar  .tax-item .tax-q { color: #8a6335; }
.tax-mh  .tax-item .tax-q { color: #994d4d; }

/* All pills share the same height; no per-dimension overrides. */

@media (max-width: 720px) {
  .tax-group {
    grid-template-columns: 1fr;
  }
  .tax-header {
    border-right: 0;
    border-bottom: 1px solid var(--tav-border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }
}

/* ===== pipeline ===== */
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.pipeline-step {
  background: #fff;
  border: 1px solid var(--tav-border);
  border-radius: 12px;
  padding: 1.2rem;
  position: relative;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tav-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.pipeline-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.pipeline-step p {
  font-size: 0.88rem;
  color: var(--tav-text-muted);
  line-height: 1.5;
}

/* ===== leaderboard ===== */
.lb-controls { margin-bottom: 1rem; }
.lb-filter-btn {
  border-radius: 999px !important;
  font-weight: 500;
}
.lb-filter-btn.is-active {
  background: var(--tav-primary) !important;
  color: #fff !important;
  border-color: var(--tav-primary) !important;
}

.leaderboard-wrapper {
  overflow-x: auto;
  border: 1px solid var(--tav-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 0.55rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #f2f4f7;
  white-space: nowrap;
}
.leaderboard-table thead th {
  background: #f9fafb;
  color: #344054;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 2;
}
.leaderboard-table thead tr:first-child th {
  border-bottom: 1px solid #e4e7ec;
}
.leaderboard-table .lb-group-avr,
.leaderboard-table .lb-group-vr,
.leaderboard-table .lb-group-ar {
  color: var(--tav-text);
  background: var(--tav-bg-soft) !important;
  font-weight: 700;
  border-top: 3px solid var(--tav-avr);
}
.leaderboard-table .lb-group-vr { border-top-color: var(--tav-vr); }
.leaderboard-table .lb-group-ar { border-top-color: var(--tav-ar); }

.leaderboard-table .lb-rank {
  width: 38px;
  color: var(--tav-text-muted);
  font-weight: 600;
}
.leaderboard-table .lb-model {
  text-align: left;
  font-weight: 600;
  color: var(--tav-text);
  min-width: 180px;
}
.leaderboard-table .lb-avg {
  background: var(--tav-bg-softer);
  font-weight: 700;
  color: var(--tav-primary);
}
/* Intentionally no highlight for best/os-best. */
.leaderboard-table .best,
.leaderboard-table .os-best { font-weight: inherit; color: inherit; background: inherit; text-decoration: none; }
.leaderboard-table tbody tr:hover {
  background: var(--tav-bg-softer);
}
.leaderboard-table tr.lb-section td {
  background: var(--tav-bg-soft);
  color: var(--tav-primary);
  font-weight: 700;
  text-align: left;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.lb-legend {
  font-size: 0.82rem;
  color: var(--tav-text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}
.lb-note {
  font-size: 0.9rem;
  color: var(--tav-text-muted);
  margin-top: 1.25rem;
}
/* MH table is much narrower than the general one — constrain width
   so cell heights/widths match the general leaderboard visually. */
.leaderboard-wrapper.lb-mh-wrap {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.lb-mh {
  font-size: 0.88rem;
}
.lb-mh th,
.lb-mh td {
  padding: 0.55rem 0.75rem;
}

/* Modality column / badge */
.leaderboard-table th.lb-modality,
.leaderboard-table td.lb-modality {
  text-align: center;
  width: 78px;
}
.modality-badge {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid var(--tav-border);
  background: var(--tav-bg-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.modality-av { color: #486b87; background: rgba(127, 163, 194, 0.16); border-color: #cedae4; }
.modality-v  { color: #5a8365; background: rgba(159, 194, 168, 0.20); border-color: #d4e2d8; }
.modality-a  { color: #8a6335; background: rgba(224, 181, 142, 0.22); border-color: #e8d5bd; }

/* ===== code blocks ===== */
pre {
  background: #0b1324;
  color: #e6edf3;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  overflow-x: auto;
}
pre code { color: inherit; background: transparent; }
.content code {
  background: #f2f4f7;
  color: #1f2937;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* bibtex */
.bibtex-header { display: flex; justify-content: space-between; align-items: center; }
.copy-bibtex-btn {
  background: #fff;
  border: 1px solid var(--tav-border);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #344054;
}
.copy-bibtex-btn:hover { border-color: var(--tav-primary-2); color: var(--tav-primary-2); }

/* responsive */
@media (max-width: 768px) {
  .key-stats .stat-card { min-width: 100px; padding: 0.6rem 0.8rem; }
  .stat-value { font-size: 1.2rem; }
  .publication-subtitle { font-size: 1rem; }
  .leaderboard-table { font-size: 0.78rem; }
}

/* =============================================================
   Hero — make it own the first screen
   ============================================================= */
.tav-hero {
  min-height: calc(100vh - 60px) !important;   /* 60px = navbar */
  display: flex !important;
  flex-direction: row !important;              /* override bulma's column */
  align-items: center !important;              /* vertical centering */
  justify-content: center !important;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,  rgba(127,163,194,0.18) 0%, rgba(127,163,194,0) 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(224,181,142,0.16) 0%, rgba(224,181,142,0) 55%),
    radial-gradient(ellipse 60% 50% at 50% 95%, rgba(159,194,168,0.12) 0%, rgba(159,194,168,0) 55%),
    #fbfcfd;
}
.tav-hero .hero-body {
  width: 100%;
  padding: 2.5rem 1.5rem;
  flex: 1 1 auto;                              /* fill width so .container auto-centers */
}
.tav-hero .publication-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.tav-hero .publication-subtitle {
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  color: var(--tav-text-muted);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.tav-hero .publication-authors .author-block {
  color: var(--tav-text);
}
.tav-hero .publication-authors sup {
  color: var(--tav-primary-2);
  font-weight: 600;
}
.tav-hero .eql-cntrb small { color: var(--tav-text-muted); }
.tav-hero .key-stats { margin-top: 2.4rem; }
.tav-hero .stat-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
}

/* Button palette alignment (Morandi) */
.publication-links .button.is-dark {
  background: var(--tav-primary);
  border-color: var(--tav-primary);
}
.publication-links .button.is-dark:hover {
  background: #2F4A66;
  border-color: #2F4A66;
}
.publication-links .button.is-primary {
  background: var(--tav-accent);
  border-color: var(--tav-accent);
}
.publication-links .button.is-primary:hover {
  background: #967530;
  border-color: #967530;
}

/* Brand-colored action buttons */
.publication-links .button.btn-arxiv,
.publication-links .button.btn-github,
.publication-links .button.btn-hf {
  color: #fff;
  border: none;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.publication-links .button.btn-arxiv:hover,
.publication-links .button.btn-github:hover,
.publication-links .button.btn-hf:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  filter: brightness(1.05);
  color: #fff;
}

/* arXiv: muted brick red */
.publication-links .button.btn-arxiv {
  background: #A35D5D;
}
.publication-links .button.btn-arxiv:hover {
  background: #B16C6C;
}

/* GitHub: soft graphite */
.publication-links .button.btn-github {
  background: #4A4F57;
}
.publication-links .button.btn-github:hover {
  background: #5A6068;
}

/* Hugging Face: muted sand yellow */
.publication-links .button.btn-hf {
  background: #D9B871;
  color: #3a2f1a;
}
.publication-links .button.btn-hf:hover {
  background: #E2C384;
  color: #3a2f1a;
}

/* =============================================================
   Stats tables (appendix: overview + per-sub-task)
   ============================================================= */
.stats-section-block { margin-top: 3rem; }
.stats-section-block h3.stats-subheading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tav-text);
  margin-bottom: 0.4rem;
  text-align: center;
}
.stats-section-block p.stats-subcaption {
  font-size: 0.88rem;
  color: var(--tav-text-muted);
  text-align: center;
  margin-bottom: 1rem;
}

.stats-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--tav-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.stats-table th,
.stats-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid #f0f3f7;
  text-align: center;
  white-space: nowrap;
}
.stats-table thead th {
  background: var(--tav-bg-soft);
  color: var(--tav-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stats-table tbody td.left { text-align: left; }
.stats-table tbody td.dim-cell {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--tav-primary);
  background: var(--tav-bg-softer);
  width: 56px;
  border-left: 4px solid var(--tav-primary-2);
}
/* Per-dimension color theming — mirrors the Task Taxonomy palette */
.stats-table tbody td.dim-avr {
  border-left-color: var(--tav-avr);
  background: rgba(127, 163, 194, 0.14);
  color: #486b87;
}
.stats-table tbody td.dim-vr {
  border-left-color: var(--tav-vr);
  background: rgba(159, 194, 168, 0.18);
  color: #4f7a5b;
}
.stats-table tbody td.dim-ar {
  border-left-color: var(--tav-ar);
  background: rgba(224, 181, 142, 0.20);
  color: #8a6335;
}
.stats-table tbody td.dim-mh {
  border-left-color: var(--tav-mh);
  background: rgba(212, 154, 154, 0.20);
  color: #994d4d;
}
.stats-table tbody tr:hover { background: var(--tav-bg-softer); }
.stats-table tfoot td {
  background: var(--tav-bg-soft);
  font-weight: 700;
  color: var(--tav-text);
}

/* overview triple-column block */
.overview-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.overview-block {
  background: #fff;
  border: 1px solid var(--tav-border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  border-top: 4px solid var(--tav-avr);
}
.overview-block:nth-child(2) { border-top-color: var(--tav-vr); }
.overview-block:nth-child(3) { border-top-color: var(--tav-ar); }
.overview-block h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--tav-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.overview-block dl {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.35rem;
  column-gap: 0.75rem;
  font-size: 0.87rem;
}
.overview-block dt { color: var(--tav-text-muted); }
.overview-block dd {
  color: var(--tav-text);
  font-weight: 600;
  text-align: right;
  margin: 0;
}
@media (max-width: 820px) {
  .overview-triple { grid-template-columns: 1fr; }
}
