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


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

/* Hugging Face logo in the Models button (Font Awesome has no HF glyph) */
.link-block .hf-icon { width: 1.35em; height: 1.35em; max-height: none; }

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

.dnerf {
  font-variant: small-caps;
}


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

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


.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: #111 !important;   /* author links read as plain names; underline on hover */
}

/* first author: black, still a link */
.publication-authors a.author-self {
  color: #111 !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;
}


/* ---------------------------------------------------------------- SVP page */

.svp-accent { color: #c62828; }

.publication-title .svp-mark {
  color: #2e7d32;
}

/* headline result strip under the teaser */
.headline-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.headline-card {
  flex: 1 1 200px;
  max-width: 260px;
  padding: 1.1rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.headline-card .headline-number {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  color: #c62828;
}

.headline-card .headline-label {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.35rem;
}

.headline-card .headline-sub {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.15rem;
}

/* figure blocks */
.svp-figure {
  margin: 0 0 0.5rem 0;
}

.svp-figure img {
  width: 100%;
  border-radius: 6px;
}

.svp-caption {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-top: 0.6rem;
}

/* result tables */
.svp-table-wrap {
  overflow-x: auto;
  margin-bottom: 0.8rem;
}

table.svp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

table.svp-table th,
table.svp-table td {
  padding: 0.35rem 0.55rem;
  text-align: right;
  white-space: nowrap;
  border: none;
}

table.svp-table th:first-child,
table.svp-table td:first-child {
  text-align: left;
}

table.svp-table thead th {
  border-bottom: 1.5px solid #363636;
  font-weight: 600;
  color: #363636;
}

table.svp-table tbody tr.group-head td {
  padding-top: 0.7rem;
  font-weight: 600;
  color: #666;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-top: 1px solid #dbdbdb;
}

table.svp-table tbody tr.ours {
  background: #fdecea;
}

table.svp-table tbody tr.ours td:first-child {
  font-weight: 600;
  color: #c62828;
}

table.svp-table td.best {
  font-weight: 700;
}

table.svp-table tfoot td {
  border-top: 1.5px solid #363636;
  font-size: 0.78rem;
  color: #777;
  text-align: left;
  white-space: normal;
}

/* small print under a section */
.svp-note {
  font-size: 0.82rem;
  color: #777;
}

/* method equation block */
.svp-eq {
  background: #fafafa;
  border-left: 3px solid #c62828;
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.9rem;
  overflow-x: auto;
}

.svp-eq .eq-caption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.4rem;
}

/* setup bullet grid */
.svp-setup {
  font-size: 0.88rem;
}

.svp-setup li {
  margin-bottom: 0.25rem;
}


/* links that do not exist yet (arXiv, Hugging Face): visible, but inert */
.button.is-pending {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.button.is-pending .pending-tag {
  font-size: 0.72em;
  opacity: 0.85;
  margin-left: 0.15em;
}

/* the notes now sit outside the table, so the table needs its own bottom rule */
table.svp-table tbody tr:last-child td {
  border-bottom: 1.5px solid #363636;
}


.publication-affiliations {
  margin-top: 0.35rem;
  color: #555;
}


/* ------------------------------------------------ toggles (model / benchmark) */
.svp-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.svp-toggle button {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #fff;
  color: #4a4a4a;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.svp-toggle button:hover { border-color: #c62828; color: #c62828; }

.svp-toggle button.is-active {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.svp-toggle button:focus-visible { outline: 2px solid #c62828; outline-offset: 2px; }

#cov-table tbody.is-entering { animation: svp-fade 0.3s ease; }

@keyframes svp-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------ animated GRPO bar chart */
.svp-bars-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.1rem 1.2rem 0.9rem;
}

.svp-vbars {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* spacing is a margin, not a flex gap, so a collapsing column can take its spacing with it */
.svp-vbars .vbar-col {
  flex: 1 1 0;
  max-width: 6.5rem;
  min-width: 0;
  margin: 0 0.25rem;
  text-align: center;
  animation: svp-fade 0.3s ease;
  transition: flex-grow 0.5s ease, max-width 0.5s ease, margin 0.5s ease,
              opacity 0.35s ease, visibility 0s;
}

/* ablation columns fold away instead of popping out, so the other bars slide */
.svp-vbars .vbar-col.is-collapsed {
  flex-grow: 0;
  max-width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: flex-grow 0.5s ease, max-width 0.5s ease, margin 0.5s ease,
              opacity 0.35s ease, visibility 0s 0.5s;
}

/* a folding column is too narrow for its label: keep it on one line so the row height holds */
.svp-vbars .vbar-col.is-collapsed .bar-label,
.is-toggling .svp-vbars .is-grpo .bar-label { white-space: nowrap; overflow-wrap: normal; }

.svp-vbars .vbar-plot {
  height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1.5px solid #363636;
}

.svp-vbars .bar {
  width: 68%;
  height: 0;
  flex: none;
  border-radius: 3px 3px 0 0;
  background: #b5b5b5;
  transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* axis-break mark: the bars do not start at zero */
.svp-vbars .bar { position: relative; }
.svp-vbars .bar::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 7px;
  height: 4px;
  background: #fff;
  transform: skewY(-8deg);
}

.svp-axis-note {
  text-align: center;
  font-size: 0.72rem;
  color: #888;
  margin: 0.5rem 0 0;
}

.svp-vbars .is-grpo .bar {
  background: repeating-linear-gradient(135deg, #e39a94 0 5px, #f0c4c0 5px 10px);
}

.svp-vbars .is-ours .bar { background: #c62828; }

.svp-vbars .bar-value {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: #363636;
  margin-bottom: 0.15rem;
}

.svp-vbars .is-best .bar-value { font-weight: 700; }

.svp-vbars .bar-label {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #363636;
  overflow-wrap: anywhere;
  transition: font-size 0.5s ease;
}

.svp-vbars .is-ours .bar-label { font-weight: 600; color: #c62828; }

/* eight bars with the ablation shown: shrink the labels so each stays on one line */
@media (min-width: 601px) {
  .show-ablation .svp-vbars .bar-label {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.svp-ablation-toggle { text-align: center; margin-top: 0.9rem; }

.svp-ablation-toggle button {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  border: 1px dashed #c62828;
  border-radius: 999px;
  background: #fff;
  color: #c62828;
  cursor: pointer;
}

.svp-ablation-toggle button:hover,
.svp-ablation-toggle button.is-active { background: #fdecea; }
.svp-ablation-toggle button:focus-visible { outline: 2px solid #c62828; outline-offset: 2px; }

.svp-bars-legend > span { margin: 0 0.55rem; white-space: nowrap; }

.svp-bars-legend .legend-ablation {
  display: inline-block;
  max-width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-width 0.5s ease, margin 0.5s ease, opacity 0.35s ease, visibility 0s 0.5s;
}
.show-ablation .svp-bars-legend .legend-ablation {
  max-width: 17rem;
  margin: 0 0.55rem;
  opacity: 1;
  visibility: visible;
  transition: max-width 0.5s ease, margin 0.5s ease, opacity 0.35s ease, visibility 0s;
}

.svp-bars-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.3rem;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: #666;
}

.svp-bars-legend .sw {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -0.1rem;
}

.sw-released { background: #b5b5b5; }
.sw-grpo { background: repeating-linear-gradient(135deg, #e39a94 0 3px, #f0c4c0 3px 6px); }
.sw-ours { background: #c62828; }

.svp-fulltable { margin-bottom: 0.8rem; }
.svp-fulltable summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6rem; }

@media (max-width: 600px) {
  .svp-vbars .vbar-col { margin: 0 0.1rem; }
  .svp-vbars .vbar-col.is-collapsed { margin: 0; }
  .svp-vbars .vbar-plot { height: 12rem; }
  .svp-vbars .bar { width: 80%; }
  .svp-vbars .bar-value { font-size: 0.72rem; }
  .svp-vbars .bar-label { font-size: 0.62rem; }
  /* eight bars do not fit a phone: keep the labels whole and let the chart scroll sideways */
  .svp-bars-card { overflow-x: auto; }
  .show-ablation .svp-vbars { min-width: 33rem; }
  .show-ablation .svp-vbars .bar-label { white-space: nowrap; overflow-wrap: normal; }
}

/* ------------------------------------------------ phone-width type */
@media (max-width: 600px) {
  .title.is-1.publication-title { font-size: 2.1rem; }   /* outranks Bulma's .title.is-1 */
  .svp-tldr { font-size: 1.15rem; }
  .svp-tldr br { display: none; }
  .title.is-3 { font-size: 1.6rem; }
  .title.is-4 { font-size: 1.3rem; }
  /* justified text leaves rivers in narrow columns */
  .content.has-text-justified, .has-text-justified { text-align: left !important; }
  #mech-fig svg { min-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .svp-vbars .bar { transition: none; }
  .svp-vbars .vbar-col, .svp-vbars .vbar-col.is-collapsed,
  .svp-vbars .bar-label, .svp-bars-legend .legend-ablation { transition: none; }
  .svp-collapse > summary::after { transition: none; }
  .svp-vbars .vbar-col { animation: none; }
  #cov-table tbody.is-entering { animation: none; }
}


/* ------------------------------------------------ animated branching tree */
.svp-branch-card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1.1rem 1.2rem 0.9rem;
  margin-bottom: 0.5rem;
}

.svp-branch-problem { font-size: 0.92rem; color: #363636; margin-bottom: 0.9rem; }
.svp-branch-problem .bt-solution { font-family: 'Google Sans', sans-serif; font-size: 0.85rem; margin-top: 0.3rem; }
.svp-branch-problem .bt-solution b { color: #9c6f14; }

#branch-problem button.is-active { background: #363636; border-color: #363636; }
#branch-toggle button[data-method="det"].is-active { background: #555; border-color: #555; }
#branch-toggle button[data-method="agn"].is-active { background: #1f77b4; border-color: #1f77b4; }

#branch-tree svg { display: block; width: 100%; height: auto; }

.bt-critical { fill: #fbf3e0; }
.bt-critical-label { font: 600 10px 'Google Sans', sans-serif; fill: #9c6f14; letter-spacing: 0.04em; }

.bt-edge {
  fill: none;
  stroke-opacity: 0.25;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.55s ease-in-out;
}
.bt-edge.is-ok { stroke-opacity: 0.65; }

.bt-node { opacity: 0; transition: opacity 0.35s ease; }
.bt-node rect { fill: #fff; stroke: #cfcfcf; stroke-width: 1.4; }
.bt-node.is-gold rect { stroke: #9c6f14; stroke-width: 2; }
.bt-val { font: 500 13px 'Google Sans', sans-serif; font-variant-numeric: tabular-nums; fill: #222; }
.bt-node.is-gold .bt-val { font-weight: 700; fill: #9c6f14; }
.bt-count { font: 400 10px 'Google Sans', sans-serif; fill: #999; }
.bt-axis { font: 400 14px 'Google Sans', sans-serif; fill: #555; }
.bt-axis-sub { font: 400 10px 'Google Sans', sans-serif; fill: #999; }

svg.is-playing .bt-edge { stroke-dashoffset: 0; }
svg.is-playing .bt-node { opacity: 1; }

.bt-story { font-size: 0.86rem; color: #4a4a4a; margin: 0.8rem 0 0; line-height: 1.55; }

.svp-branch-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #666;
}
.svp-branch-stats b {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.05rem;
  color: #363636;
  margin-right: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.svp-branch-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: #666;
}
.svp-branch-foot .sw-gold { background: #fff; border: 2px solid #9c6f14; }
.svp-branch-foot .sw-ok { background: #777; }
.svp-branch-foot .sw {
  display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px;
  margin-right: 0.35rem; vertical-align: -0.1rem; box-sizing: border-box;
}
.svp-branch-foot > div span { display: inline-block; }   /* wrap legend items whole */
.svp-branch-foot span + span { margin-left: 0.9rem; }
#branch-replay {
  font-size: 0.75rem; padding: 0.2rem 0.7rem; border: 1px solid #d0d0d0;
  border-radius: 999px; background: #fff; color: #4a4a4a; cursor: pointer;
}
#branch-replay:hover { border-color: #c62828; color: #c62828; }

@media (prefers-reduced-motion: reduce) {
  .bt-edge, .bt-node { transition: none; }
}


/* ------------------------------------------------ animated main figure */
.svp-mech { overflow-x: auto; }
#mech-fig svg { display: block; width: 88%; min-width: 640px; height: auto; margin: 0 auto; }
.svp-mech-foot { text-align: right; margin-top: 0.2rem; }
#mech-replay {
  font-size: 0.75rem; padding: 0.2rem 0.7rem; border: 1px solid #d0d0d0;
  border-radius: 999px; background: #fff; color: #4a4a4a; cursor: pointer;
}
#mech-replay:hover { border-color: #c62828; color: #c62828; }

.mf-title { font: 400 19px 'Google Sans', sans-serif; fill: #222; }
.mf-side, .mf-tok, .mf-note { font: 400 14px 'Google Sans', sans-serif; fill: #222; }
.mf-tok-b { font: 700 15px 'Google Sans', sans-serif; fill: #222; }
/* TeX faces for the figure's math labels, from the same CDN MathJax already loads them from.
   The italic face is italic by design, so font-style stays normal (italic would slant it twice). */
@font-face {
  font-family: 'SVP TeX Italic';
  src: url('https://cdn.jsdelivr.net/npm/mathjax@3/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'SVP TeX';
  src: url('https://cdn.jsdelivr.net/npm/mathjax@3/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff') format('woff');
  font-display: swap;
}
.mf-math { font: 400 18px 'SVP TeX Italic', 'Latin Modern Math', 'STIX Two Math', 'Times New Roman', serif; fill: #111; }
.mf-math.mf-rm, .mf-math .mf-rm { font-family: 'SVP TeX', 'Latin Modern Math', 'STIX Two Math', 'Times New Roman', serif; font-style: normal; }
.mf-lrm { font: 400 30px 'Google Sans', sans-serif; fill: #fff; }
.mf-dots { font: 700 18px 'Google Sans', sans-serif; fill: #6b7280; }
.mf-op { font: 300 40px 'Google Sans', sans-serif; fill: #111; }
.mf-arrow { fill: none; stroke: #111; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.45s ease-in-out; }
.mf-arrowhead { fill: none; stroke: #111; stroke-width: 1.4; }
.mf-garrow { fill: none; stroke: #9aa0a8; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }

.mf-s { opacity: 0; transition: opacity 0.45s ease; }
.mf-s.on { opacity: 1; }
.mf-s.on .mf-arrow { stroke-dashoffset: 0; }
.mf-s rect { transition: fill-opacity 0.5s ease; }
.mf-inject { opacity: 0.25; transition: opacity 0.6s ease; }
.mf-inject.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mf-s, .mf-arrow, .mf-inject, .mf-s rect { transition: none; }
}


/* ------------------------------------------------ method: short figure walkthrough */
.svp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.svp-step {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: #363636;
}

/* collapsible cards: the red title is the toggle, the body opens underneath */
.svp-steps { align-items: start; }
.svp-collapse > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.svp-collapse > summary::-webkit-details-marker { display: none; }
.svp-collapse > summary::after {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.2em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.3s ease;
}
.svp-collapse[open]:not(.is-closing) > summary::after { transform: translateY(15%) rotate(-135deg); }
.svp-collapse > summary:focus-visible { outline: 2px solid #c62828; outline-offset: 4px; border-radius: 4px; }
.svp-step-body { margin-top: 0.35rem; }

/* the RL section sits on a light-grey hero, so its cards need a white fill */
.svp-rl-steps { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.svp-rl-steps .svp-step { background: #fff; border-color: transparent; }
.svp-rl-steps .svp-step-body > .svp-step-eq:last-child { margin-bottom: 0.2rem; }

.svp-step-tag {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: #c62828;
  margin-bottom: 0.35rem;
}


/* ------------------------------------------------ RL headline + evidence labels */
.svp-lead { text-align: center; margin: 0.4rem 0 1.4rem; }
.svp-lead-num {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #c62828;
  font-variant-numeric: tabular-nums;
}
.svp-lead-arrow { color: #9aa0a8; font-weight: 400; margin: 0 0.15em; }
.svp-lead-sub { font-size: 0.95rem; color: #555; margin-top: 0.35rem; }

.svp-evidence {
  display: inline-block;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c62828;
  border: 1px solid #c62828;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-right: 0.6rem;
  vertical-align: 0.2em;
}

@media (max-width: 600px) { .svp-lead-num { font-size: 2rem; } }


/* ------------------------------------------------ overview: TL;DR + problem / idea / result */
.svp-tldr {
  max-width: 52rem;
  margin: 0 auto 1.8rem;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.35rem;
  line-height: 1.4;
  color: #222;
}

.svp-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.ov-card {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 0.9rem 1rem 1rem;
  background: #fff;
}

.ov-tag {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c62828;
}

.ov-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: #222;
  margin: 0.1rem 0 0.55rem;
}

.ov-fig { display: block; width: 100%; height: 5.6rem; }
.ov-figcap { text-align: center; font-size: 0.72rem; color: #888; margin: 0.15rem 0 0.55rem; }
.ov-card p { font-size: 0.88rem; color: #4a4a4a; }

.ov-line { fill: none; stroke: #c9c9c9; stroke-width: 2; }
.ov-line.ov-green { stroke: #eaa9a3; }
.ov-start { fill: #555; }
.ov-end { fill: #fff; stroke: #b5b5b5; stroke-width: 2; }
.ov-end-ok { fill: #c62828; stroke: #c62828; stroke-width: 2; }
.ov-dot { fill: #777; }
.ov-dot-green { fill: #c62828; }

/* Σ block at the fork: singular values on the diagonal, redrawn for every SVP-V trajectory */
.ov-off { fill: #fff; stroke: #e3e3e3; stroke-width: 0.5; }
.ov-sig { fill: #9a9a9a; stroke: #fff; stroke-width: 0.5; }
.ov-sig-svp { fill: #c62828; }
.ov-frame { fill: none; stroke: #9a9a9a; stroke-width: 1; }
.ov-frame-svp { stroke: #c62828; }

.ov-bars { display: flex; justify-content: center; align-items: flex-end; gap: 1.6rem; }
.ov-bar {
  height: 100%;
  width: 5.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.75rem;
  color: #555;
}
.ov-bar span { font-family: 'Google Sans', sans-serif; font-weight: 700; font-size: 1rem; color: #363636; }
.ov-bar i {
  display: block;
  width: 60%;
  border-radius: 3px 3px 0 0;
  background: #b5b5b5;
  transform-origin: bottom;
  animation: ov-grow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* axis-break mark: the mini bars do not start at zero either */
.ov-bar i { position: relative; }
.ov-bar i::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 5px;
  height: 3px;
  background: #fff;
  transform: skewY(-8deg);
}
.ov-bar em { font-style: normal; white-space: nowrap; border-top: 1.5px solid #363636; width: 100%; text-align: center; padding-top: 0.15rem; }
.ov-bar.is-ours span, .ov-bar.is-ours em { color: #c62828; }
.ov-bar.is-ours i { background: #c62828; animation-delay: 0.25s; }
@keyframes ov-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.svp-abstract { max-width: 46rem; margin: 1.4rem auto 0; }
.svp-abstract summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: #555; text-align: center; }
.svp-abstract .content { margin-top: 0.8rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .ov-dot { display: none; }
  .ov-bar i { animation: none; }
}


/* the single SVP-V box: description with its equation inside */
.svp-step-main { margin-bottom: 1rem; padding: 1.1rem 1.4rem; border-left: 3px solid #c62828; }
.svp-step-main .svp-step-tag { font-size: 1.1rem; }
.svp-step-eq { background: #fafafa; border-radius: 6px; margin: 0.8rem 0 0.5rem; padding: 0.2rem 0.8rem; overflow-x: auto; }
.svp-step-main .eq-caption { font-size: 0.85rem; color: #666; margin: 0; }


/* buttons do not inherit the page font by default */
button { font-family: inherit; }
