:root {
  /* Typography */
  --font-sans: "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Minimal blog palette */
  --ink: #111827;
  --ink2: #1f2937;
  --sand: #ffffff;
  --sand2: #ffffff;
  --muted: rgba(17, 24, 39, 0.74);
  --muted2: rgba(17, 24, 39, 0.56);
  --line: rgba(17, 24, 39, 0.14);

  /* Accent (kept subtle) */
  --teal: #2563eb;
  --teal2: #1d4ed8;
  --coral: #2563eb;
  --violet: #2563eb;

  /* Layout */
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 99;
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus {
  left: 12px;
}

/* Header */
.header {
  background: var(--sand);
  border-bottom: 1px solid rgba(17, 24, 39, 0.10);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 18px 44px;
}

.hero__kicker {
  margin: 0 0 10px;
  color: var(--muted2);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero__authors,
.hero__affils {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.hero__authors {
  margin-top: 6px;
}
.hero__affils {
  margin-top: 4px;
}
.sep {
  margin: 0 8px;
  color: rgba(11, 18, 32, 0.35);
}

.hero__tagline {
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Hero links: render as underlined words (not pill buttons) */
.hero .ctaRow {
  gap: 18px;
  margin-top: 14px;
}
.hero .ctaRow .btn {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--teal2);
  font-size: 16px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}
.hero .ctaRow .btn:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  color: var(--teal);
}
.hero .ctaRow .btn:active {
  transform: none;
  box-shadow: none;
}
.hero .ctaRow .btn[aria-disabled="true"] {
  opacity: 1;
  color: var(--muted2);
  cursor: default;
  text-decoration-color: rgba(17, 24, 39, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 6px 14px rgba(11, 18, 32, 0.06);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(11, 18, 32, 0.20);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.08);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 14px rgba(11, 18, 32, 0.06);
}
.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}
.btn[aria-disabled="true"] {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--primary {
  border-color: rgba(37, 99, 235, 0.65);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.10));
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.58);
}
.btn--small {
  padding: 8px 10px;
  font-size: 13px;
}

.metaRow {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  color: var(--muted);
}
.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal2);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

/* Main sections */
.main {
  width: 100%;
}
.section {
  padding: 18px 0;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}

.prose {
  max-width: none;
}
.prose p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: rgba(11, 18, 32, 0.92);
}
.prose p + figure.mediaCard {
  margin-top: 10px;
}
.prose figure.mediaCard {
  margin-bottom: 10px;
}
.blockquote {
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}
.blockquote strong {
  color: rgba(11, 18, 32, 0.92);
}

/* BibTeX */
.bibBox {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  max-width: none;
}
.bibBox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bibBox__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted2);
}
.bibtex {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.03);
  overflow: auto;
  line-height: 1.45;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.92);
}

/* Utility: previously used to crop a bit off the top of an image (heatmaps).
   Disabled so figures render fully without clipping. */
.imgCrop {
  overflow: visible;
}
.imgCrop--top10 img {
  transform: none;
  transform-origin: initial;
}

.grid2 {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: start;
}

/* Equal-width 2-col grid (use inside .container; avoids .grid2's asymmetry + extra padding) */
.figureGrid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.teaser {
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li {
  margin: 8px 0;
}

.mediaCard {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
.mediaPlaceholder {
  position: relative;
  height: 280px;
  background:
    radial-gradient(900px 240px at 20% 20%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(700px 260px at 88% 30%, rgba(249, 115, 22, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
}
.mediaPlaceholder__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.mediaPlaceholder__lines {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid;
  gap: 10px;
}
.line {
  height: 12px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.08);
}
.line--short {
  width: 60%;
}

.video {
  width: 100%;
  display: block;
  background: #000;
}

.caption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.lbSection {
  margin-top: 10px;
}
.lbSection__header {
  margin-top: 18px;
}
.lbSection__title {
  margin-top: 0;
  margin-bottom: 6px;
}
.lbSection__subtitle {
  margin: 0 0 14px;
}

.lbGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.lbCard {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.06);
  overflow: hidden;
}

.lbHead {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.lbTitle {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 20px;
}
.lbSub {
  color: var(--muted2);
  margin-top: 4px;
  font-size: 14px;
}

.lbTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.lbColModel {
  width: 58%;
}
.lbColRank {
  width: 18%;
}
.lbColScore {
  width: 24%;
}
.lbTable th,
.lbTable td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.09);
  font-size: 14px;
  vertical-align: middle;
}
.lbTable th {
  color: var(--muted2);
  font-weight: 800;
}
.lbTable td:first-child {
  font-weight: 700;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.lbCell--center {
  text-align: center;
  white-space: nowrap;
}
.lbCell--right {
  text-align: right;
  white-space: nowrap;
}

.lbRank {
  font-weight: 400;
}
.lbScore {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lbRow {
  position: relative;
}
.lbRow--highlight {
  background: rgba(59, 130, 246, 0.14);
}
.lbRow--highlight td:first-child {
  font-weight: 900;
  text-align: left;
  position: relative;
  padding-left: 12px;
}
.lbRow--highlight td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(37, 99, 235, 0.9);
  border-radius: 0 2px 2px 0;
}
.lbRow--highlight .lbScore {
  font-weight: 850;
  color: rgba(11, 18, 32, 0.92);
}

.lbCaption {
  margin: 12px 0 0;
  font-size: 13px;
}

/* Interactive marker comparison */
.interactiveSection {
  margin-top: 14px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.interactiveHeader {
  margin-bottom: 16px;
}
.markerSelector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.markerBtn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.markerBtn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.markerBtn--active {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.6);
  color: rgb(37, 99, 235);
}

.markerLabel {
  font-weight: 650;
  font-size: 14px;
}
.markerDropdown {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
}
.markerDropdown:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.interactiveGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}
.chartPanel,
.leaderboardPanel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
}
.plotlyChart {
  min-height: 400px;
}
.interactiveLb {
  width: 100%;
  border-collapse: collapse;
}
.interactiveLb th,
.interactiveLb td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(11, 18, 32, 0.09);
  font-size: 13px;
}
.interactiveLb th {
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.interactiveLb tbody tr:hover {
  background: rgba(20, 184, 166, 0.05);
}
.deltaUp {
  color: #16a34a;
  font-weight: 400;
}
.deltaDown {
  color: #dc2626;
  font-weight: 400;
}
.deltaZero {
  color: var(--muted2);
}

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


.sectionHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.galleryItem {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.06);
}
.thumb {
  height: 170px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(20, 184, 166, 0.12)),
    repeating-linear-gradient(
      -45deg,
      rgba(11, 18, 32, 0.06) 0px,
      rgba(11, 18, 32, 0.06) 12px,
      rgba(11, 18, 32, 0.02) 12px,
      rgba(11, 18, 32, 0.02) 24px
    );
  border-bottom: 1px solid var(--line);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.38) 100%);
}
.footer__inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__brand {
  font-weight: 800;
}
.footer__right a {
  color: var(--muted);
  font-weight: 650;
}
.footer__right a:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 960px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .lbGrid {
    grid-template-columns: 1fr;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .figureGrid2 {
    grid-template-columns: 1fr;
  }
  .mediaPlaceholder {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


