/* EgoNight Project Website - Light Theme */

:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-hover: #e9ecef;
  --color-text: #212529;
  --color-text-muted: #6c757d;
  --color-accent: #4f46e5;
  --color-accent-hover: #4338ca;
  --color-border: #dee2e6;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hero-content {
  max-width: 1300px;
  margin: 0 auto;
}

.hero-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 900px;
  margin: 0 auto 1rem;
  font-weight: 500;
}

.hero-venues {
  font-size: 1.75rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero-authors {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.hero-authors p {
  margin: 0.2rem 0;
}

.hero-affiliation {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

.institute-logo {
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
}

/* VIGA-style links - exact match */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.link-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.link-btn i {
  font-size: 1rem;
}

/* Paper button - Berkeley Blue */
.link-btn.paper {
  background: #003262;
  border: none;
  color: #fff;
  font-weight: 600;
}

.link-btn.paper i {
  color: #fff;
}

.link-btn.paper:hover {
  background: #002147;
}

/* Code button - dark gray/black (GitHub style) */
.link-btn.code {
  background: #24292f;
  border: none;
  color: #fff;
  font-weight: 600;
}

.link-btn.code i {
  color: #fff;
}

.link-btn.code:hover {
  background: #32383f;
}

/* Benchmark/Dataset button - Berkeley Gold */
.link-btn.benchmark {
  background: #FDB515;
  border: none;
  color: #fff;
  font-weight: 600;
}

.link-btn.benchmark i,
.link-btn.benchmark .link-btn-logo {
  color: #000;
}

.link-btn.benchmark .link-btn-logo {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

.link-btn.benchmark:hover {
  background: #E8A700;
}

/* OpenReview button - red (navbar-inverse style) */
.link-btn.openreview {
  background: #a94442;
  border: none;
  color: #fff;
  font-weight: 600;
}

.link-btn.openreview i {
  color: #fff;
}

.link-btn.openreview:hover {
  background: #8b3636;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--color-accent);
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.hero-authors a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.hero-authors a:hover {
  color: var(--color-accent);
}

.contact-card strong a {
  color: var(--color-text);
  text-decoration: none;
}

.contact-card strong a:hover {
  color: var(--color-accent);
}

/* Sections */
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section--wide .table-card {
  max-width: 100%;
}

.section {
  margin-bottom: 4rem;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
  color: var(--color-text);
}

.section h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-text);
}

.section h4 {
  font-size: 1rem;
  margin: 2rem 0 1rem;
  color: var(--color-text-muted);
}

.section p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

/* TL;DR callout */
.tldr {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(79, 70, 229, 0.02) 100%);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem !important;
  font-size: 0.95rem;
  color: var(--color-text);
}

.section ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.section li {
  margin: 0.3rem 0;
}

/* Dataset grid */
.dataset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.dataset-card-wrapper {
  flex: 1 1 220px;
  min-width: 220px;
  position: relative;
  transition: flex 0.4s ease;
}

.dataset-card-wrapper:hover {
  flex: 2 1 420px;
  z-index: 1;
}

.dataset-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.dataset-card-wrapper:hover .dataset-card {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

/* Dropdown expand - tabs only visible on hover */
.dataset-card-expand {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dataset-card-wrapper:hover .dataset-card-expand {
  max-height: 380px;
  opacity: 1;
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Tab dots */
.dataset-tab-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.dataset-tab-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.dataset-tab-dot:hover {
  background: var(--color-text-muted);
}

.dataset-tab-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* Tab panels */
.dataset-tab-panels {
  position: relative;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.dataset-tab-panel {
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  animation: tabFadeIn 0.3s ease;
}

.dataset-tab-panel.active {
  display: flex;
}

@keyframes tabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dataset-tab-placeholder,
.dataset-tab-panel video {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.dataset-tab-placeholder {
  height: auto;
}

/* Comparison slider - fills dataset-card-expand width */
.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 427;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.comparison-slider-before {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-slider-after {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  clip-path: inset(0 calc(100% - var(--slider-pos, 50%)) 0 0);
}

.comparison-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comparison-slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-pos, 50%);
  width: 4px;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 0 0 2px var(--color-accent);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

.comparison-slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  border: 2px solid var(--color-accent);
}

.dataset-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dataset-card .dataset-icon {
  width: 44px;
  height: 44px;
  display: block;
  margin: 0 auto;
}

.dataset-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.dataset-card-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Comparison panel - expands on hover */
.dataset-card-comparison {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.35s ease;
}

.dataset-card-wrapper:hover .dataset-card-comparison {
  max-height: 320px;
  opacity: 1;
  margin-top: 1rem;
}

.dataset-card-comparison.content {
  padding: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.dataset-card-comparison.has-text-centered {
  text-align: center;
}

.comparison-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.comparison-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 120px;
  max-width: 180px;
}

.comparison-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.dataset-attribution {
  margin-top: 0.75rem !important;
  font-size: 0.7rem !important;
}

.dataset-attribution a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.dataset-attribution a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* QA examples block */
.qa-examples-block {
  margin: 1.5rem 0;
}

.qa-examples-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* QA types */
.qa-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.qa-types li {
  background: var(--color-surface);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 0;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.qa-types li:hover,
.qa-types li.qa-type-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.qa-example-current {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.qa-example-annotation {
  margin-top: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.qa-example-img[hidden] {
  display: none !important;
}

.qa-example-img:not([hidden]) {
  display: block !important;
  margin-left: auto;
  margin-right: auto;
}

/* Figures */
.figure-block {
  margin: 2.5rem 0;
}

/* Collapsible (Auxiliary Tasks) */
.collapsible-block {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
}

.collapsible-summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.collapsible-arrow {
  font-size: 0.7rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.collapsible-block[open] .collapsible-arrow {
  transform: rotate(90deg);
}

.collapsible-summary:hover {
  background: var(--color-surface-hover);
}

.collapsible-summary h4 {
  margin: 0;
  font-size: 1rem;
}

.collapsible-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.collapsible-content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 0;
}

.figure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.figure-row > div {
  flex: 1;
  min-width: 280px;
}

.figure-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.figure-img.small {
  flex: 1;
  min-width: 280px;
}

.wide-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.figure-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.teaser {
  text-align: center;
  margin: 2rem 0;
}

.teaser-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Highlight section */
.section.highlight {
  text-align: center;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

/* BibTeX */
.bibtex {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  border: 1px solid var(--color-border);
}

.bibtex code {
  color: var(--color-text);
}

/* Contact */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  min-width: 280px;
  border: 1px solid var(--color-border);
}

.contact-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.3rem;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

/* Scroll reveal animation (VIGA-style) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Table card - VIGA-style */
.table-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin: 2.5rem 0;
}

.table-header {
  padding: 24px 32px;
  border-bottom: 2px solid #e5e7eb;
  background: #f9fafb;
}

.table-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  text-align: center;
}

.leaderboard-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.table-caption {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.table-wrapper {
  padding: 24px 32px;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums lining-nums;
  table-layout: fixed;
}

/* Column widths: Easy narrower (was too wide); Mid/Hard slightly wider for 2-digit scores */
.results-table col.col-models { width: 200px; min-width: 200px; }
.results-table col.col-easy { width: 58px; min-width: 58px; max-width: 58px; }
.results-table col.col-mid,
.results-table col.col-hard { width: 68px; min-width: 68px; max-width: 68px; }
.results-table col.col-avg { width: 72px; min-width: 72px; max-width: 72px; }

.results-table th,
.results-table td {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #d1d5db;
  vertical-align: middle;
  box-sizing: border-box;
}

/* Numeric cells: tight horizontal padding so Easy aligns with header */
.results-table td:nth-child(n+2):nth-child(-n+10),
.results-table thead tr:last-child th {
  padding-left: 6px;
  padding-right: 6px;
}

/* Models column - fixed width, left aligned */
.results-table .col-models,
.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
  padding-left: 20px;
  width: 200px;
  min-width: 200px;
  border-right: 1px solid #d1d5db;
}

.results-table .col-models {
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: normal;
}

.results-table td:first-child {
  font-weight: 500;
  color: #111827;
  font-size: 0.9rem;
}

/* Model icons in table */
.results-table .model-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 4px;
}

/* Group headers span 3 cols — width follows colgroup */
.results-table .col-group {
  text-align: center;
}

.results-table .dataset-header-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  display: inline-block;
}

.results-table .col-sub {
  text-align: center;
}

/* Explicit center for Easy columns (Synthetic, Sofia, Oxford) */
.results-table thead tr:last-child th:nth-child(1),
.results-table thead tr:last-child th:nth-child(4),
.results-table thead tr:last-child th:nth-child(7),
.results-table td:nth-child(2),
.results-table td:nth-child(5),
.results-table td:nth-child(8) {
  text-align: center;
}

/* Dataset group separators */
.results-table th:nth-child(5),
.results-table th:nth-child(8),
.results-table td:nth-child(5),
.results-table td:nth-child(8) {
  border-left: 1px solid #d1d5db;
}

/* Avg column */
.results-table .col-avg,
.results-table th:last-child,
.results-table td:last-child {
  border-left: 1px solid #d1d5db;
}

.results-table th {
  font-weight: 600;
  color: #374151;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f9fafb;
}

.results-table thead tr:first-child th {
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  font-size: 0.85rem;
}

.results-table thead tr:last-child th {
  font-weight: 500;
  border-bottom: 1px solid #d1d5db;
}

.results-table td {
  color: #374151;
  font-size: 0.85rem;
  transition: background-color 0.15s ease;
}

.results-table tbody tr:hover td {
  background: #f9fafb;
}

/* Section headers - distinct colors + clear separation */
.results-table .section-header.section-closed-source {
  background: #fef2f2;
}

.results-table .section-header.section-closed-source td {
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-top: 1px solid #d1d5db;
}

.results-table .section-header:first-child td {
  border-top: none;
}

.results-table .section-header.section-open-source {
  background: #f0fdf4;
}

.results-table .section-header.section-open-source td {
  color: #15803d;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-top: 1px solid #d1d5db;
}

.results-table .section-header.section-egocentric {
  background: #eff6ff;
}

.results-table .section-header.section-egocentric td {
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-top: 1px solid #d1d5db;
}

.results-table .section-header td {
  padding: 14px 24px;
  text-align: left;
  border: 1px solid #d1d5db;
}

.results-table .section-header.section-closed-source:hover td {
  background: #fef2f2;
}

.results-table .section-header.section-open-source:hover td {
  background: #f0fdf4;
}

.results-table .section-header.section-egocentric:hover td {
  background: #eff6ff;
}

/* Row backgrounds: Closed=light red, Open=light green, Egocentric=light blue */
.results-table .row-closed-source td {
  background: #fef2f2;
}

.results-table .row-closed-source:hover td {
  background: #fecaca;
}

.results-table .row-open-source td {
  background: #f0fdf4;
}

.results-table .row-open-source:hover td {
  background: #dcfce7;
}

.results-table .row-egocentric td {
  background: #eff6ff;
}

.results-table .row-egocentric:hover td {
  background: #dbeafe;
}

/* Best model in each category - accent colors */
.results-table .best-closed td {
  background: #fee2e2 !important;
}

.results-table .best-closed td:first-child {
  border-left: 4px solid #dc2626;
}

.results-table .best-closed:hover td {
  background: #fecaca !important;
}

.results-table .best-open td {
  background: #dcfce7 !important;
}

.results-table .best-open td:first-child {
  border-left: 4px solid #16a34a;
}

.results-table .best-open:hover td {
  background: #bbf7d0 !important;
}

.results-table .best-egocentric td {
  background: #dbeafe !important;
}

.results-table .best-egocentric td:first-child {
  border-left: 4px solid #2563eb;
}

.results-table .best-egocentric:hover td {
  background: #bfdbfe !important;
}

/* Best score highlighting - VIGA-style green accent */
.results-table .highlight-red {
  color: #dc2626;
  font-weight: 600;
}
.results-table .highlight-blue {
  color: #2563eb;
  font-weight: 600;
}
.results-table .highlight-green {
  color: #059669;
  font-weight: 600;
}

.results-table tbody tr:hover .highlight {
  color: #047857;
}

.results-table .row-egocentric .highlight {
  color: #047857;
}

/* Responsive table */
@media (max-width: 768px) {
  .table-header {
    padding: 16px 20px;
  }

  .table-wrapper {
    padding: 12px 16px;
  }
  
  .results-table {
    font-size: 0.75rem;
  }
  
  .results-table th,
  .results-table td {
    padding: 8px 10px;
  }
  
  .table-caption {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title-row {
    gap: 0.5rem;
  }
  
  .hero-logo {
    width: 36px;
    height: 36px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .nav {
    gap: 1rem;
  }
  
  .figure-img.small {
    min-width: 100%;
  }
}
