:root {
  --stride-accent: #146C8A;
  --stride-accent-dark: #0E5A73;
  --stride-accent-tint: #f3f8fa;
  --stride-dark: #2C2C3A;
  --stride-gray: #4A4A5A;
  --stride-muted: #6B6B76;

  /* VRDST protocol colors, as defined in the paper's LaTeX source (tags.sty). */
  --vrdst-v: #BF54A2;
  --vrdst-r: #FB9324;
  --vrdst-d: #63B063;
  --vrdst-s: #25A6D1;
  --vrdst-t: #F86365;
}

body {
  font-family: 'Hanken Grotesk', sans-serif;
  color: var(--stride-dark);
}

a {
  color: var(--stride-accent);
}

a:hover {
  color: var(--stride-accent-dark);
  text-decoration: underline;
}

/* Links inside text are underlined, not marked by colour alone (WCAG 1.4.1). */
.content p a,
.publication-authors a,
.footer a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.stride-accent {
  color: var(--stride-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-body .container {
  max-width: 860px;
}

/* Typographic wordmark in place of a logo image. */
.wordmark {
  display: block;
  font-family: 'Space Grotesk', 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--stride-dark);
}

.wordmark-bar {
  display: flex;
  width: 9.5rem;
  height: 5px;
  margin: 0.7rem auto 1.4rem;
  border-radius: 3px;
  overflow: hidden;
}

.wordmark-bar span {
  flex: 1;
}

.wordmark-bar .v { background: var(--vrdst-v); }
.wordmark-bar .r { background: var(--vrdst-r); }
.wordmark-bar .d { background: var(--vrdst-d); }
.wordmark-bar .s { background: var(--vrdst-s); }
.wordmark-bar .t { background: var(--vrdst-t); }

.publication-title {
  font-family: 'Space Grotesk', 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--stride-dark);
  text-wrap: balance;
}

.publication-authors {
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

.publication-authors a {
  color: var(--stride-accent);
}

.author-block {
  display: inline-block;
  margin-right: 0.15rem;
}

/* The asterisk glyph is tiny at superscript size; enlarge the corresponding-author mark. */
.corr {
  font-size: 1.3em;
  line-height: 0;
}

.publication-affiliations {
  font-size: 0.9rem;
  color: var(--stride-gray);
  margin-top: 0.5rem;
}

.publication-venue {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--stride-dark);
  margin-top: 0.4rem;
}

.publication-links {
  margin-top: 1.2rem;
}

.publication-links .button {
  margin: 0.25rem;
  border-color: var(--stride-accent);
  color: var(--stride-accent);
  font-weight: 500;
}

.publication-links .button:hover,
.publication-links .button:focus-visible {
  background-color: var(--stride-accent);
  border-color: var(--stride-accent);
  color: #fff;
  text-decoration: none;
}

.publication-links .button .icon {
  margin-right: 0.3rem;
}

.section {
  padding: 2.5rem 1.5rem;
}

.container.is-max-desktop {
  max-width: 860px;
}

.title.is-3 {
  font-family: 'Space Grotesk', 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--stride-dark);
  text-wrap: balance;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--stride-gray);
  text-align: justify;
}

.teaser-image {
  border-radius: 6px;
  width: 100%;
  height: auto;
}

.figure-caption {
  font-size: 0.9rem;
  color: var(--stride-gray);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.5;
}

.section-divider {
  max-width: 860px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #e0e0e0;
  height: 0;
  background: none;
}

.highlight-box {
  background: var(--stride-accent-tint);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}

.design-choices {
  list-style: none;
  margin: 0;
  padding: 0;
}

.design-choices li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--stride-gray);
  margin: 0.6rem 0;
}

.design-choices li strong {
  color: var(--stride-dark);
}

.vrdst {
  display: inline-flex;
  gap: 2px;
  vertical-align: 0.1em;
  margin-right: 0.35rem;
}

.vrdst span {
  display: inline-block;
  min-width: 1.15em;
  padding: 0 0.2em;
  border-radius: 2px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8em;
  line-height: 1.45;
  text-align: center;
  color: #fff;
}

.vrdst .v { background: var(--vrdst-v); }
.vrdst .r { background: var(--vrdst-r); }
.vrdst .d { background: var(--vrdst-d); }
.vrdst .s { background: var(--vrdst-s); }
.vrdst .t { background: var(--vrdst-t); }

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.stats li {
  background: var(--stride-accent-tint);
  border-radius: 6px;
  padding: 0.9rem 0.5rem;
  text-align: center;
}

.key-number {
  display: block;
  font-family: 'Space Grotesk', 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--stride-accent);
}

.key-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--stride-gray);
}

.bibtex-block {
  position: relative;
}

/* Verbatim BibTeX, highlighted like the publication pages on ivia.ethz.ch
   (Prism okaidia: dark box, 12 px, colours from the theme). Sized so its
   longest line (109 characters) fits the 860 px column. */
.bibtex-block pre[class*='language-'] {
  margin: 0;
  padding: 1.2rem 1.25rem;
  border-radius: 5px;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.bibtex-block pre[class*='language-'] code {
  font-size: inherit;
}

.bibtex-copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--stride-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.bibtex-copy-btn:hover,
.bibtex-copy-btn:focus-visible {
  background: var(--stride-accent-dark);
}

.footer {
  padding: 2rem 1.5rem;
  background: #fafafa;
}

.footer .content p {
  font-size: 0.85rem;
  color: var(--stride-muted);
  text-align: center;
}

sup {
  font-size: 0.7em;
}

@media screen and (max-width: 768px) {
  .wordmark {
    font-size: 3rem;
  }

  .publication-title {
    font-size: 1.6rem;
  }

  /* Let the title and the author list wrap naturally on narrow screens. */
  .publication-title br,
  .publication-authors br {
    display: none;
  }

  .content p {
    text-align: left;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats li:last-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 2rem 1rem;
  }

  /* Keep the first BibTeX line clear of the Copy button on narrow phones. */
  .bibtex-block pre[class*='language-'] {
    padding-top: 2.6rem;
  }
}
