body {
  font-family: 'Noto Sans', sans-serif;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.costream {
  font-variant: small-caps;
  color: #2c7bfe;
}

.word-simple {
  color: #2c7bfe;
}

.word-complex {
  color: #f5a623;
}

/* In the main title, keep CoStream neutral so the simple/complex
   accents carry the contrast. CoStream stays blue everywhere else. */
.publication-title .costream {
  color: inherit;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

/* Widen the hero teaser beyond the default desktop column for a bigger,
   more engaging first impression while keeping it framed and centered. */
.teaser .container.is-max-desktop {
  max-width: 1240px;
  width: 92%;
}
#teaser {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 18px 44px rgba(0,0,0,0.12);
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

.venue-badge-container {
  display: flex;
  justify-content: center;
  margin: 0.75em 0 0.5em;
}

.venue-badge {
  display: inline-block;
  border: 2px solid #2c7bfe;
  color: #2c7bfe;
  border-radius: 20px;
  padding: 0.2em 0.9em;
  font-size: 0.85rem;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.publication-links .button {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-top: 1em;
}

.results-table thead tr {
  background-color: #f0f0f0;
}

.results-table th {
  padding: 0.65em 0.75em;
  text-align: left;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid #ddd;
}

.results-table th:not(:first-child) {
  text-align: center;
}

.results-table td {
  padding: 0.6em 0.75em;
  font-size: 0.92rem;
}

.results-table td:not(:first-child) {
  text-align: center;
}

.results-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.results-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.results-table tbody tr.row-highlight {
  background-color: #e8f1ff;
  border-left: 3px solid #2c7bfe;
}

.results-table tbody tr.row-highlight td:first-child {
  padding-left: calc(0.75em - 3px);
}

/* Consistent video styling across all sections */
section video:not(#teaser) {
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  width: 100%;
}

/* Uniform video captions */
.video-caption {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #666;
  text-align: center;
}

/* Section heading left accent */
.section-accent {
  border-left: 4px solid #2c7bfe;
  padding-left: 0.6em;
  margin-left: -0.6em;
}

/* Centered single video (RAM perturbation) */
.video-centered-single {
  display: flex;
  justify-content: center;
}

.video-centered-single .column {
  max-width: 60%;
}

/* ===== Growable bar charts ===== */
.bar-chart {
  margin: 0.75em 0 0.25em;
}

/* Legend */
.bar-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9em;
  margin-bottom: 0.6em;
  font-size: 0.8em;
  color: #444;
}
.bar-chart-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.bar-chart-legend .legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

/* Plot area: a row of task groups */
.bar-chart-plot {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 0.4em;
  height: 170px;
  padding: 0 0.4em 0;
  border-bottom: 2px solid #d9d9d9;
}

/* One task = a group of method bars sharing an x-axis label */
.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  height: 100%;
  justify-content: flex-end;
}
.bar-group-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
}
.bar-group-label {
  margin-top: 0.4em;
  font-size: 0.78em;
  color: #333;
  text-align: center;
  font-weight: 600;
  line-height: 1.1;
}

/* A single bar */
.bar {
  position: relative;
  width: 100%;
  max-width: 38px;
  height: 0;                 /* grows to its target via inline --target */
  border-radius: 4px 4px 0 0;
  transition: height 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.bar-chart.in-view .bar {
  height: var(--target);
}
/* Value label that rides on top of the bar */
.bar-value {
  position: absolute;
  top: -1.45em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72em;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}
.bar-chart.in-view .bar-value { opacity: 1; }

/* Hover tooltip (fraction + percent) */
.bar:hover .bar-tooltip { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.4em;
  background: #1b1b1b;
  color: #fff;
  font-size: 0.75em;
  font-weight: 500;
  padding: 0.35em 0.6em;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.bar-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1b1b1b;
}

/* Method colors */
.bar.method-voxposer { background: #9aa0a6; }
.bar.method-pi       { background: #f0a330; }
.bar.method-costream { background: #2c7bfe; }
.bar.method-ablation-off  { background: #d97362; }

/* Two-bar ablation chart: narrower, centered */
.bar-chart.ablation .bar-group-bars { max-width: 120px; margin: 0 auto; }
.bar-chart.ablation .bar { max-width: 90px; }

@media screen and (max-width: 600px) {
  .bar-chart-plot { height: 200px; }
  .bar-group-label { font-size: 0.72em; }
}

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

/* ===== "Why CoStream" comparison band ===== */
.why-band {
  margin: 1.5em 0 0.5em;
}
.why-card {
  background: #fafbfc;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  padding: 1.25em 1.25em 1.4em;
  height: 100%;
}
.why-card.is-ours {
  background: #eef4ff;
  border: 1px solid #2c7bfe;
  box-shadow: 0 4px 18px rgba(44, 123, 254, 0.12);
}
.why-card h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 0.75em;
  color: #444;
}
.why-card.is-ours h3 { color: #2c7bfe; }
.why-row {
  display: block;
  font-size: 0.92em;
  line-height: 1.4;
  padding: 0.5em 0;
  border-top: 1px solid #edeff2;
}
.why-row:first-of-type { border-top: none; }
.why-row .why-axis {
  display: block;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a909a;
  margin-bottom: 0.15em;
}
.why-card.is-ours .why-axis { color: #6b9bff; }
.why-row .why-val { color: #555; }
.why-card.is-ours .why-row .why-val { color: #1b3a73; font-weight: 600; }
.why-cross { color: #c0392b; font-weight: 700; margin-right: 0.3em; }
.why-check { color: #2c7bfe; font-weight: 700; margin-right: 0.3em; }

/* Related Research cards */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.related-card {
  display: flex;
  align-items: stretch;
  gap: 1.35em;
  background: #fafbfc;
  border: 1px solid #e6e8eb;
  border-left: 3px solid #2c7bfe;
  border-radius: 12px;
  padding: 1.1em 1.35em 1.2em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.06);
}
.related-body {
  flex: 1 1 auto;
  min-width: 0;
}
.related-title {
  font-size: 1.08em;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.25em;
  line-height: 1.35;
}
.related-authors {
  font-size: 0.9em;
  color: #555;
  line-height: 1.4;
  margin-bottom: 0.35em;
}
.related-venue {
  font-size: 0.88em;
  font-weight: 600;
  color: #2c7bfe;
  margin-bottom: 0.7em;
}
.related-desc {
  font-size: 0.95em;
  line-height: 1.55;
  color: #555;
  margin-bottom: 0.6em;
}
.related-links {
  margin-bottom: 0;
  font-size: 0.92em;
}
.related-links a {
  font-weight: 600;
  color: #2c7bfe;
  margin-right: 0.7em;
}
.related-links a[aria-disabled="true"] {
  color: #9aa3ad;
  pointer-events: none;
  text-decoration: none;
}
.related-links a::before { content: "["; color: #aab2bb; }
.related-links a::after { content: "]"; color: #aab2bb; }
@media screen and (max-width: 640px) {
  .related-card { flex-direction: column; gap: 0.9em; }
}

/* Pull-quote claim line above results */
.claim-line {
  text-align: center;
  font-size: 1.15em;
  font-weight: 700;
  color: #2c7bfe;
  margin: 0.5em 0 1.25em;
  letter-spacing: 0.01em;
}

/* ============================================================
   Design polish (inspired by chen-geng.com/neurok)
   ============================================================ */
:root {
  --accent: #2c7bfe;
  --accent-strong: #0056c8;
  --accent-soft: rgba(44, 123, 254, 0.08);
  --text-primary: #111111;
  --text-secondary: #4d5561;
  --border-line: rgba(17, 17, 17, 0.12);
  --nav-height: 58px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 18px); }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
.title, .subtitle { font-family: var(--font-sans) !important; }
.publication-title { letter-spacing: -0.02em; font-weight: 800; }

/* Push content below the fixed nav */
body { padding-top: var(--nav-height); }

/* ── Fixed translucent nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-height);
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-line);
}
.site-mark {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-variant: small-caps;
}
.site-mark .mark-accent { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-sections { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.nav-sections a {
  color: #50565f;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 7px;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav-sections a:hover { color: var(--accent-strong); background: var(--accent-soft); }
.nav-sections a.is-active { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }

/* ── BibTeX copy button ── */
.bibtex-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bibtex-head .title { margin-bottom: 0; }
.bibtex-copy {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(44, 123, 254, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}
.bibtex-copy:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.bibtex-copy.is-copied { color: #fff; background: #2a9d5c; border-color: #2a9d5c; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.nav-cta:hover { color: #fff; background: var(--accent-strong); transform: translateY(-1px); }

@media screen and (max-width: 820px) {
  .nav-sections { display: none; }
  .site-nav { padding: 0 18px; }
}

/* ── Card / shadow refinement on existing blocks ── */
.why-card { border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.06); }
.why-card.is-ours { box-shadow: 0 4px 18px rgba(44,123,254,0.16); }
section video:not(#teaser) { border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 12px 30px rgba(0,0,0,0.09); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ── Affiliation logos ── */
.affiliation-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.4em;
  margin: 1.2em 0 0.4em;
}
.affiliation-logos .logo-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.affiliation-logos img {
  height: 30px;
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.16s ease;
}
.affiliation-logos .logo-item:hover img { opacity: 1; }
.affiliation-logos .logo-sup {
  font-size: 0.72em;
  color: #8b8b8b;
  font-weight: 600;
  vertical-align: top;
}
@media screen and (max-width: 640px) {
  .affiliation-logos { gap: 1.3em; }
  .affiliation-logos img { height: 24px; }
}
