/* EndoComparer project page — self-contained stylesheet, no framework. */

:root {
  --bg: #fbfbfa;
  --bg-elev: #ffffff;
  --bg-sunken: #f1f2f0;
  --fg: #1c1f22;
  --fg-muted: #5a6168;
  --fg-faint: #8a9199;
  --line: #e2e5e3;
  --line-strong: #c9ced0;
  --accent: #0f766e;        /* teal: primary actions, links */
  --accent-soft: #e0f2ef;
  --v1: #4a7fc1;            /* video-slot 1 (blue, as in the paper figures) */
  --v1-soft: #dbe7f6;
  --v2: #d9a53d;            /* video-slot 2 (amber) */
  --v2-soft: #fbefd2;
  --ok: #2e8b57;
  --ok-soft: #dff3e6;
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 8px 24px rgba(20, 24, 28, .06);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1000px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121416;
    --bg-elev: #1a1d20;
    --bg-sunken: #0d0f11;
    --fg: #e8eaec;
    --fg-muted: #a7aeb5;
    --fg-faint: #767d84;
    --line: #2a2f34;
    --line-strong: #3b4248;
    --accent: #3fb8ab;
    --accent-soft: #11302d;
    --v1: #7aa7e0;
    --v1-soft: #1b2a3f;
    --v2: #e4b85a;
    --v2-soft: #3a2f16;
    --ok: #5fc48a;
    --ok-soft: #16301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #121416;
  --bg-elev: #1a1d20;
  --bg-sunken: #0d0f11;
  --fg: #e8eaec;
  --fg-muted: #a7aeb5;
  --fg-faint: #767d84;
  --line: #2a2f34;
  --line-strong: #3b4248;
  --accent: #3fb8ab;
  --accent-soft: #11302d;
  --v1: #7aa7e0;
  --v1-soft: #1b2a3f;
  --v2: #e4b85a;
  --v2-soft: #3a2f16;
  --ok: #5fc48a;
  --ok-soft: #16301f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "tnum";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.75rem; margin-top: 0; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .92em; background: var(--bg-sunken); padding: .1em .35em; border-radius: 4px; }
pre { font-family: var(--mono); font-size: .86rem; line-height: 1.5; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; margin: 0; }
pre code { background: none; padding: 0; font-size: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--fg-muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 52px; }
.nav .brand { font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.nav .brand svg { width: 28px; height: 28px; display: block; }
.nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.nav li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg-muted); font-size: .92rem; white-space: nowrap; }
.nav li a:hover { color: var(--fg); background: var(--bg-sunken); text-decoration: none; }
.nav .theme { border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg-muted); border-radius: 6px; width: 32px; height: 32px; cursor: pointer; display: grid; place-items: center; flex: none; }
.nav .theme:hover { color: var(--fg); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 28px; text-align: center; }
.hero .venue { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 18px; font-weight: 600; }
.hero .logo { display: block; width: min(360px, 80%); height: auto; margin: 0 auto 26px; color: var(--fg); }
.hero h1 { font-size: clamp(.95rem, 2.2vw, 1.5rem); font-weight: 500; color: var(--fg-muted); letter-spacing: 0; line-height: 1.35; max-width: 880px; margin: 0 auto .5em; }
.authors { margin: 22px auto 8px; max-width: 860px; font-size: 1.02rem; line-height: 1.8; }
.authors span { white-space: nowrap; }
.authors sup { font-size: .68em; color: var(--fg-muted); margin-left: 1px; }
.affils { font-size: .9rem; color: var(--fg-muted); max-width: 820px; margin: 0 auto; line-height: 1.6; }
.affils sup { margin-right: 2px; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  transition: transform .08s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); opacity: .92; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.soon { background: var(--bg-elev); color: var(--fg-muted); border-color: var(--line-strong); cursor: default; }
.btn.soon:hover { transform: none; opacity: 1; }
.btn.soon::after { content: "soon"; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--bg-sunken); padding: 2px 6px; border-radius: 4px; color: var(--fg-faint); }

/* ---------- sections ---------- */
section { padding: 44px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.section-head { margin-bottom: 20px; }
.section-head .kicker { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.lede { font-size: 1.12rem; color: var(--fg-muted); max-width: 820px; }

.figure { margin: 26px 0; }
.figure .frame { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.figure figcaption { font-size: .9rem; color: var(--fg-muted); margin-top: 10px; line-height: 1.5; }
.figure figcaption b { color: var(--fg); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card h3, .card h4 { margin-top: 0; }
.card h4 { font-size: 1rem; margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.card .n small { font-size: .55em; font-weight: 600; color: var(--fg-muted); margin-left: 4px; }

.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- task example ---------- */
.example { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.example .head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.example .head .q { font-weight: 700; font-size: 1.05rem; flex: 1 1 320px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--fg-muted); white-space: nowrap; }
.strips { padding: 16px 18px 6px; display: grid; gap: 14px; }
.strip { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.strip .label { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.strip .label i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.strip.v1 .label i { background: var(--v1); }
.strip.v2 .label i { background: var(--v2); }
.strip .frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.strip .frames img { border-radius: 6px; border: 2px solid transparent; aspect-ratio: 16 / 9; object-fit: cover; }
.strip.v1 .frames img { border-color: var(--v1-soft); }
.strip.v2 .frames img { border-color: var(--v2-soft); }
@media (max-width: 540px) { .strip { grid-template-columns: 1fr; gap: 6px; } }
.example .body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; padding: 10px 18px 18px; }
@media (max-width: 760px) { .example .body { grid-template-columns: 1fr; } }
.options { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.options li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; transition: background .25s ease, border-color .25s ease; }
.options li b { font-family: var(--mono); color: var(--fg-muted); }
.options li.correct { background: var(--ok-soft); border-color: var(--ok); }
.options li.correct b { color: var(--ok); }
.options li .why { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-faint); }
.options li.correct .why { color: var(--ok); }
.answer { background: var(--bg-sunken); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }
.answer .lbl { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.answer .line { font-family: var(--mono); font-size: .9rem; line-height: 1.7; }
.answer .line .h1 { color: var(--v1); font-weight: 600; }
.answer .line .h2 { color: var(--v2); font-weight: 600; }
.answer .line .y { color: var(--ok); font-weight: 700; }
.example .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--fg-muted); }
.swapbtn { border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.swapbtn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; color: var(--fg-muted); font-size: .82rem; letter-spacing: .02em; background: var(--bg-sunken); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tr.group td { font-style: italic; color: var(--fg-muted); background: var(--bg-sunken); font-size: .85rem; padding-top: 6px; padding-bottom: 6px; }
tr.ours td { background: var(--accent-soft); font-weight: 600; }
td b { font-weight: 700; }
td .dag { color: var(--fg-faint); font-size: .8em; vertical-align: super; }
th.sep, td.sep { border-left: 1px solid var(--line-strong); }
.table-note { font-size: .85rem; color: var(--fg-muted); margin-top: 10px; line-height: 1.5; }
table.templates td, table.wrapcells td { white-space: normal; }
table.compact th, table.compact td { padding: 7px 8px; }
table.compact thead tr:last-child th { white-space: normal; max-width: 86px; line-height: 1.25; vertical-align: bottom; }
table.templates td:first-child { font-family: var(--mono); font-size: .85em; }

/* ---------- metric cards ---------- */
.metric h4 { display: flex; align-items: center; gap: 8px; }
.metric h4 .pill { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 12px; right: 14px; font-size: .75rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; }
.step h4 { font-size: .98rem; margin: 0 28px .4em 0; }
.step p { font-size: .9rem; color: var(--fg-muted); margin: 0; }

/* ---------- release / code ---------- */
.release ul { margin: 0; padding-left: 20px; }
.release li { margin-bottom: 6px; }
.status { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.status.todo { background: var(--bg-sunken); color: var(--fg-faint); border: 1px solid var(--line); }
.status.live { background: var(--ok-soft); color: var(--ok); }

/* ---------- bibtex ---------- */
.bib { position: relative; }
.bib button { position: absolute; top: 10px; right: 10px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg-muted); border-radius: 6px; font: inherit; font-size: .78rem; padding: 4px 10px; cursor: pointer; }
.bib button:hover { color: var(--fg); border-color: var(--accent); }

footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--fg-muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
footer a { color: var(--fg-muted); }
footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- TL;DR ---------- */
.tldr { display: flex; gap: 14px; align-items: flex-start; text-align: left; max-width: 820px; margin: 30px auto 0; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--radius); padding: 14px 18px; }
.tldr .lbl { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.tldr p { margin: 0; font-size: 1.02rem; }

/* ---------- dataset stat tiles + folds ---------- */
.stats { margin-bottom: 8px; }
.stats .card { padding: 14px 18px; }
.stats .card p { font-size: .9rem; color: var(--fg-muted); margin: 2px 0 0; }
details.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); margin: 14px 0; }
details.fold summary { cursor: pointer; padding: 12px 18px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--fg-muted); border-bottom: 2px solid var(--fg-muted); transform: rotate(-45deg); transition: transform .15s ease; margin-left: 2px; }
details.fold[open] summary::before { transform: rotate(45deg); }
details.fold summary:hover { color: var(--accent); }
details.fold .inner { padding: 0 18px 16px; }
details.fold .table-wrap { border: 0; border-radius: 0; background: none; }
details.fold .figure { margin: 0; }
details.fold .figure .frame { box-shadow: none; }

/* ---------- selectors (templates, qualitative) ---------- */
.selector { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-bottom: 16px; }
.selector .sel { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.selector .sel span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.selector select { font: inherit; font-size: .92rem; font-weight: 600; color: var(--fg); background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 34px 7px 12px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; max-width: 100%; }
.selector select:hover { border-color: var(--accent); }
.selector select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--fg-muted); margin: 0 0 16px; }
.legend b { font-family: var(--mono); color: var(--fg); font-weight: 700; }

/* ---------- template cards ---------- */
.tcards { display: grid; gap: 16px; }
.tcard { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tcard[hidden] { display: none; }
.tcard .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.tcard .head .attr { font-weight: 700; }
.tcard .head .ctx { margin-left: auto; font-size: .82rem; color: var(--fg-muted); }
.tcard .tbody { padding: 12px 16px 14px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px 20px; }
@media (max-width: 760px) { .tcard .tbody { grid-template-columns: 1fr; } }
.tcard .stem { grid-column: 1 / -1; font-family: var(--mono); font-size: .8rem; color: var(--fg-muted); }
.tcard .stem em { font-style: normal; color: var(--accent); }
.tcard .stem .lbl, .tcard .ans .lbl { font-family: var(--font); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); margin-right: 8px; }
.tcard .q { grid-column: 1 / -1; font-weight: 700; font-size: 1.02rem; margin: 0; }
.tcard .options li { padding: 6px 10px; font-size: .9rem; }
.tcard .ans { background: var(--ok-soft); border: 1px solid var(--ok); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; align-self: start; }
.tcard .ans .lbl { color: var(--ok); display: block; margin-bottom: 4px; }
.tcard .ans .rel { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--bg-elev); color: var(--ok); border: 1px solid var(--ok); }
.tcard .ans .scores { font-size: .82rem; color: var(--fg-muted); margin-top: 6px; }

/* ---------- qualitative cards (compact) ---------- */
.example[hidden] { display: none; }
.example.qual .head { padding: 10px 16px; gap: 8px 12px; }
.example.qual .head .q { font-size: 1rem; }
.example .meta { padding: 6px 16px 0; font-size: .82rem; color: var(--fg-muted); }
.example .head .tag.id { font-family: var(--mono); font-size: .85rem; color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.example.qual .strips { grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 16px 4px; }
@media (max-width: 600px) { .example.qual .strips { grid-template-columns: 1fr; } }
.example.qual .strip { grid-template-columns: 1fr; gap: 4px; min-width: 0; }
.example.qual .strip .label { font-size: .82rem; }
.strip .one img { width: 100%; border-radius: 6px; border: 2px solid transparent; }
.strip.v1 .one img { border-color: var(--v1); }
.strip.v2 .one img { border-color: var(--v2); }
.strip .one .t { font-size: .72rem; color: var(--fg-faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.example.qual .body { padding: 6px 16px 14px; gap: 12px 18px; }
.example.qual .options { gap: 4px; }
.example.qual .options li { padding: 5px 9px; font-size: .86rem; grid-template-columns: 24px 1fr auto; }
.options li .why { white-space: nowrap; }
.preds .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 4px; }
.preds table { font-size: .86rem; }
.preds th, .preds td { white-space: normal; vertical-align: top; padding: 5px 6px; border-bottom: 1px solid var(--line); background: none; }
.preds th { font-weight: 600; color: var(--fg); font-size: .86rem; letter-spacing: 0; width: 36%; }
.preds th small { display: block; font-weight: 500; font-size: .72rem; color: var(--fg-faint); }
.preds tr:last-child th, .preds tr:last-child td { border-bottom: 0; }
.preds td:last-child { width: 22px; text-align: center; font-weight: 800; }
.preds .ok { color: var(--ok); }
.preds .bad { color: #c0392b; }
.preds .line { font-family: var(--mono); font-size: .8rem; line-height: 1.55; }
.preds .line .h1 { color: var(--v1); font-weight: 600; }
.preds .line .h2 { color: var(--v2); font-weight: 600; }
.preds .why { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-faint); white-space: nowrap; }
.preds tr:last-child th { color: var(--accent); }
.tcard .head .tag.id { font-family: var(--mono); font-size: .85rem; color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.authors a { color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.authors a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
