/* LLM Wiki stylesheet. Professional grey wiki, immediately recognizable as
   MediaWiki/Vector: light grey page, white content pane, near-black sans body,
   Georgia serif page/section headings over 1px #a2a9b1 rules, boxed grey
   furniture. Vivarium identity survives as small accents only: mono in the
   sidebar/search/footer, amber and magenta details. Flat; no shadows,
   rounded corners, or animation. */

* { box-sizing: border-box; }

:root {
  --ink: #202122;           /* body text */
  --dim: #54595d;           /* secondary text */
  --faint: #72777d;         /* tertiary text */
  --rule: #a2a9b1;          /* principal 1px borders */
  --rule-light: #c8ccd1;    /* lighter hairlines */
  --ground: #f6f6f6;        /* page background */
  --pane: #ffffff;          /* content pane */
  --panel: #f8f9fa;         /* infobox/TOC/catlinks fill */
  --panel-head: #eaecf0;    /* table headers, box title rows */
  --blue: #3366cc;          /* body links */
  --blue-visited: #6b4ba1;
  --amber: #ffb000;         /* decorative accent only (never body text) */
  --amber-ink: #8a5c00;     /* text-safe amber for accents on light ground */
  --magenta: #ff5fd2;       /* hover-invert accent, sidebar/summary chrome only */
  --red: #d33;              /* broken-link style; must never appear shipped */
  --mono: "Berkeley Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular",
          Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
}

::selection { background: var(--amber); color: #000; }

.page-shell {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- sidebar: mono accent zone ---------- */

.sidebar {
  flex: 0 0 176px;
  padding: 12px 8px 24px 16px;
  font-size: 12px;
  font-family: var(--mono);
}

.logo-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 8px 0 4px;
}

.logo-link img { display: block; margin: 0 auto; width: 100px; height: 100px; }

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  margin-top: 6px;
  color: var(--ink);
}

.wordmark::after {
  content: "";
  display: block;
  width: 44px;
  margin: 4px auto 0;
  border-bottom: 2px solid var(--amber);
}

.site-tagline {
  font-size: 10.5px;
  color: var(--dim);
  font-style: italic;
  margin-top: 3px;
}

.nav-group { margin-top: 14px; }

.nav-group h3 {
  font-size: 10.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dim);
  border-bottom: 1px solid var(--rule-light);
  margin: 0 0 4px;
  padding-bottom: 2px;
}

.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group li { margin: 0; padding: 2px 0; }
.nav-group a { color: var(--blue); }
.nav-group a:visited { color: var(--blue); }
.nav-group a:hover { background: var(--magenta); color: #000; text-decoration: none; }

/* ---------- links (Vector treatment) ---------- */

a { color: var(--blue); text-decoration: none; }
a:visited { color: var(--blue-visited); }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 1px solid var(--amber-ink); outline-offset: 2px; }
a.new, .redlink { color: var(--red); }
b.selflink { color: inherit; }

a.external::after {
  content: "\2197";
  font-size: 10px;
  margin-left: 2px;
  color: var(--dim);
}

/* ---------- content shell ---------- */

.content-shell {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 16px 4px;
}

.search-wrap { position: relative; }

#wiki-search {
  width: 280px;
  padding: 5px 8px;
  border: 1px solid var(--rule);
  font-size: 12px;
  font-family: var(--mono);
  background: var(--pane);
  color: var(--ink);
}

#wiki-search::placeholder { color: var(--faint); }
#wiki-search:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

#search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--pane);
  border: 1px solid var(--rule);
  border-top: none;
  z-index: 50;
}

#search-results a {
  display: block;
  padding: 6px 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--panel-head);
}

#search-results a:last-child { border-bottom: none; }
#search-results a.sel, #search-results a:hover {
  background: #eaf3ff;
  text-decoration: none;
}
#search-results .sr-title { font-weight: bold; }
#search-results .sr-desc { font-size: 12px; color: var(--dim); }

.content-pane {
  background: var(--pane);
  border: 1px solid var(--rule);
  padding: 20px 28px 32px;
  max-width: 960px;
  flex: 1 0 auto;
}

/* ---------- typography (Vector) ---------- */

h1.firstHeading {
  font-family: var(--serif);
  font-size: 1.8em;
  font-weight: normal;
  margin: 0 0 .25em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.3;
}

h2 {
  font-family: var(--serif);
  font-size: 1.5em;
  font-weight: normal;
  margin: 1em 0 .25em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.3;
}

h3 { font-family: var(--sans); font-size: 1.2em; font-weight: bold; margin: .8em 0 .3em; }
h4 { font-family: var(--sans); font-size: 1.05em; font-weight: bold; margin: .8em 0 .3em; }

.site-sub {
  font-style: italic;
  font-size: 12.8px;
  color: var(--dim);
  margin: -2px 0 12px;
}

p { margin: .5em 0 1em; }

ul, ol { margin: .3em 0 .6em 1.6em; padding: 0; }

code, pre {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--panel);
  border: 1px solid var(--panel-head);
  color: var(--ink);
}

code { padding: 1px 4px; }
pre { padding: 8px 12px; overflow-x: auto; }

blockquote {
  margin: .5em 0 .5em 1.6em;
  padding-left: 12px;
  border-left: 3px solid var(--rule-light);
  color: var(--dim);
}

/* ---------- hatnote (MediaWiki style) ---------- */

.hatnote {
  font-style: italic;
  color: var(--dim);
  padding-left: 1.6em;
  margin-bottom: .5em;
  font-size: 13px;
}

/* ---------- infobox (Vector: 88% sans, grey title row) ---------- */

.infobox {
  float: right;
  clear: right;
  width: 22em;
  margin: 0 0 1em 1.5em;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-collapse: separate;
  border-spacing: 3px;
  font-family: var(--sans);
  font-size: 88%;
  line-height: 1.4;
}

.infobox th, .infobox td {
  border: none;
  padding: 2px 6px;
  vertical-align: top;
  text-align: left;
}

.infobox-image {
  text-align: center !important;
  padding: 6px !important;
}

.infobox-image img {
  max-width: 100%;
  height: auto;
  max-height: 110px;
}

.infobox-title {
  text-align: center !important;
  font-size: 114%;
  font-weight: bold;
  padding: 7px !important;
  background: var(--panel-head);
  border-bottom: 1px solid var(--rule) !important;
}

.infobox-label { width: 40%; font-weight: bold; }

/* ---------- TOC (classic thin-bordered box) ---------- */

.toc {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 7px 14px 7px 10px;
  font-size: 13px;
  margin: .5em 0 1em;
  line-height: 1.5;
}

.toc-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 3px;
}

.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li.toc2 { padding-left: 1.8em; }
.tocnum { font-family: var(--mono); font-size: 11px; color: var(--dim); padding-right: 5px; }

/* ---------- wikitable (Vector-grey) ---------- */

table.wikitable,
.article-body table:not(.infobox) {
  border-collapse: collapse;
  border: 1px solid var(--rule);
  background: var(--panel);
  font-size: 14px;
  margin: .5em 0 1em;
}

table.wikitable th, table.wikitable td,
.article-body table:not(.infobox) th,
.article-body table:not(.infobox) td {
  border: 1px solid var(--rule);
  padding: 0.2em 0.4em;
}

/* wide tables scroll inside the pane instead of overflowing it */
.article-body table:not(.infobox) {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
}

table.wikitable th,
.article-body table:not(.infobox) th {
  background: var(--panel-head);
  text-align: center;
  font-weight: bold;
}

table.wikitable tr:nth-child(even) td,
.article-body table:not(.infobox) tr:nth-child(even) td { background: #fdfdfd; }

table.wikitable.sortable th { cursor: pointer; user-select: none; }
table.wikitable.sortable th::after { content: " \21C5"; color: var(--faint); font-size: 10px; }
table.wikitable.sortable th.sorted-asc::after { content: " \2191"; color: var(--amber-ink); }
table.wikitable.sortable th.sorted-desc::after { content: " \2193"; color: var(--amber-ink); }

/* ---------- article figures (inline SVG diagrams) ---------- */

.wiki-figure {
  margin: 1em 0 1.2em;
  padding: .6em;
  border: 1px solid var(--rule);
  background: #fff;
  overflow-x: auto;
}

.wiki-figure svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.wiki-figure figcaption {
  margin-top: .45em;
  font-size: 90%;
  color: var(--dim);
}

/* ---------- family tree ---------- */

ul.tree, ul.tree ul { list-style: none; margin: 0; padding-left: 1.4em; }

ul.tree li {
  position: relative;
  padding: 2px 0 2px 1em;
  border-left: 1px solid var(--rule);
}

ul.tree li::before {
  content: "";
  position: absolute;
  top: .85em;
  left: 0;
  width: .8em;
  border-top: 1px solid var(--rule);
}

ul.tree > li:last-child, ul.tree ul > li:last-child { border-left-color: transparent; }

ul.tree > li:last-child::after, ul.tree ul > li:last-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: .85em;
  border-left: 1px solid var(--rule);
}

.tree-year { color: var(--dim); font-size: 12px; }

/* ---------- references (MediaWiki reflist) ---------- */

sup { line-height: 1; font-size: 11px; vertical-align: super; }

/* Wikipedia-style bracketed inline citations: [1] */
a.footnote-ref::before { content: "["; }
a.footnote-ref::after { content: "]"; }
a.footnote-ref { text-decoration: none; }

.footnote { font-size: 90%; }
.footnote hr { display: none; }

/* the references block opens with a Vector-style section heading */
.footnote::before {
  content: "References";
  display: block;
  font-family: var(--serif);
  font-size: 1.67em; /* 1.5em relative to full-size body */
  font-weight: normal;
  color: var(--ink);
  margin: 1em 0 .25em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.3;
}

.footnote-backref { font-size: 11px; text-decoration: none; }

/* pages that author their own == References == heading keep just that one */
h2#references ~ .footnote::before { content: none; margin: 0; border: none; }

.footnote ol {
  column-count: 2;
  column-gap: 32px;
  margin-top: .4em;
}

@media (max-width: 720px) { .footnote ol { column-count: 1; } }

.footnote li { margin-bottom: .3em; break-inside: avoid; }
.footnote-backref { font-size: 11px; }

/* ---------- what links here / navbox ---------- */

details.whatlinkshere, details.navbox {
  margin-top: 1.2em;
  border: 1px solid var(--rule);
  background: #fdfdfd;
  font-size: 12px;
}

details.whatlinkshere summary, details.navbox summary {
  cursor: pointer;
  padding: 4px 10px;
  background: var(--panel-head);
  font-weight: bold;
}

details.whatlinkshere summary:hover, details.navbox summary:hover {
  background: var(--magenta);
  color: #000;
}

details.whatlinkshere ul { margin: 6px 6px 6px 2em; }

details.navbox table { width: 100%; border-collapse: collapse; }

.navbox-group {
  width: 12em;
  background: var(--panel-head);
  padding: 3px 10px;
  text-align: right;
  font-weight: bold;
  border-top: 1px solid var(--rule-light);
  vertical-align: top;
}

.navbox-list { padding: 3px 10px; border-top: 1px solid var(--rule-light); background: var(--panel); }

/* ---------- categories bar (MediaWiki catlinks) ---------- */

.catlinks {
  margin-top: 1.4em;
  padding: 5px 8px;
  background: var(--panel);
  border: 1px solid var(--rule);
  font-size: 13px;
}

.cat-sep { color: var(--faint); padding: 0 2px; }

/* ---------- ambox ---------- */

.ambox {
  border: 1px solid var(--rule);
  border-left: 8px solid var(--amber);
  background: #fbfbfb;
  padding: 6px 12px;
  margin: .5em 0 1em;
  font-size: 13px;
}

.ambox.ambox-warning { border-left-color: var(--magenta); }

/* ---------- main page ---------- */

.mp-banner {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 10px 16px;
  margin-bottom: 14px;
  font-size: 15px;
}

.mp-columns { display: flex; gap: 14px; flex-wrap: wrap; }
.mp-col { flex: 1 1 320px; min-width: 0; }

.mp-box {
  border: 1px solid var(--rule);
  margin-bottom: 14px;
  background: var(--pane);
}

.mp-box-title {
  background: var(--panel-head);
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  padding: 5px 12px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: bold;
}

.mp-box-body { padding: 8px 12px; }
.mp-box ul { margin: .2em 0 .4em 1.4em; }

.mp-portals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
  padding: 10px 12px;
}

.mp-portals a { display: block; padding: 4px 6px; border: 1px solid var(--rule-light); }
.mp-portals a:hover { border-color: var(--rule); background: var(--panel); text-decoration: none; }

.mp-dashboard .dashboard-note {
  font-size: 12px;
  color: var(--dim);
  padding: 6px 12px 0;
  margin: 0;
}

.mp-dashboard table { margin: 8px 12px 12px; }

/* Wikipedia Main Page box tints: featured (green), news (blue) */
.mp-featured { border-color: #cef2e0; background: #f5fffa; }
.mp-featured .mp-box-title { background: #cef2e0; border-bottom-color: #cef2e0; }
.mp-news { border-color: #cedff2; background: #f5faff; }
.mp-news .mp-box-title { background: #cedff2; border-bottom-color: #cedff2; }

/* ---------- misc ---------- */

.all-desc { color: var(--dim); }
.category-lead { margin-bottom: .6em; }
.category-count { color: var(--dim); font-size: 13px; }
.category-members { column-count: 2; column-gap: 32px; }
@media (max-width: 720px) { .category-members { column-count: 1; } }
.redirect-note { padding: 24px; }

/* footer: mono accent zone (exposed build state) */
.site-footer {
  padding: 12px 28px 20px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--dim);
}

.site-footer p { margin: 2px 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .page-shell { flex-direction: column; }
  .sidebar {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 18px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--rule);
    background: var(--ground);
  }
  .logo-link { display: flex; align-items: center; gap: 8px; padding: 0; }
  .logo-link img { width: 28px; height: 28px; }
  .wordmark { font-size: 16px; }
  .wordmark::after { display: none; }
  .site-tagline { display: none; }
  .nav-group { margin-top: 0; }
  .nav-group h3 { display: none; }
  .nav-group ul { display: flex; flex-wrap: wrap; gap: 0 12px; }
  .page-header { justify-content: stretch; }
  .search-wrap { width: 100%; }
  #wiki-search { width: 100%; }
  #search-results { width: 100%; }
  .infobox { float: none; width: 100%; margin: 0 0 1em; }
  .content-pane { padding: 14px 14px 24px; border-left: none; border-right: none; }
}

/* ---------- infobox logo image ---------- */

.infobox-image {
  text-align: center !important;
  padding: 10px 8px !important;
  background: #ffffff;
  border-bottom: 1px solid var(--rule-light);
}

.infobox-image img {
  max-width: 110px;
  max-height: 110px;
  width: auto;
  height: auto;
}

/* ---- succession rail (model pages; data from lineage.yaml) ---- */
.succession {
  font-size: 12.5px;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  margin: 0 0 10px 0;
}
.succession .succ-label { font-weight: bold; color: var(--ink); }
.succession .succ-planned { color: var(--faint); }
.succession .succ-sep { color: var(--faint); padding: 0 2px; }

/* ---- page information panel (same furniture as What links here) ---- */
details.pageinfo {
  background: var(--panel);
  border: 1px solid var(--rule);
  margin: 14px 0 0 0;
  font-size: 12.5px;
}
details.pageinfo summary {
  cursor: pointer;
  padding: 4px 10px;
  background: var(--panel-head);
  font-weight: bold;
}
details.pageinfo summary:hover { background: var(--magenta); color: #000; }
details.pageinfo table {
  margin: 4px 10px 8px 10px;
  border-collapse: collapse;
}
details.pageinfo th {
  text-align: left;
  padding: 2px 14px 2px 0;
  color: var(--dim);
  font-weight: normal;
  white-space: nowrap;
  vertical-align: top;
}
details.pageinfo td { padding: 2px 0; }

/* ---- search chips + type badges ---- */
.search-chips {
  padding: 6px 8px 4px 8px;
  border-bottom: 1px solid var(--panel-head);
  background: var(--panel);
}
.search-chips .chip {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  background: var(--pane);
  border: 1px solid var(--rule-light);
  padding: 1px 7px;
  margin-right: 4px;
  cursor: pointer;
}
.search-chips .chip:hover { border-color: var(--rule); color: var(--ink); }
.search-chips .chip-on {
  color: var(--ink);
  border-color: var(--amber);
  background: var(--panel-head);
}
#search-results .sr-none {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--faint);
}
#search-results .sr-badge {
  float: right;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: normal;
  color: var(--faint);
  padding-left: 8px;
}

/* ---- hover preview cards ---- */
.preview-card {
  display: none;
  position: absolute;
  z-index: 60;
  width: 330px;
  max-width: 90vw;
  background: var(--pane);
  border: 1px solid var(--rule);
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.45;
}
.preview-card .pv-title {
  font-family: var(--serif);
  font-size: 15px;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 2px;
  margin-bottom: 3px;
}
.preview-card .pv-meta {
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 4px;
}
.preview-card .pv-desc { color: var(--ink); margin-bottom: 4px; }
.preview-card .pv-box { border-collapse: collapse; width: 100%; }
.preview-card .pv-box th {
  text-align: left;
  font-weight: normal;
  color: var(--dim);
  padding: 1px 10px 1px 0;
  white-space: nowrap;
  vertical-align: top;
  font-size: 11.5px;
}
.preview-card .pv-box td { padding: 1px 0; font-size: 11.5px; }

/* ---- Special:Compare ---- */
.compare-picker { margin: 10px 0 14px 0; }
.compare-picker input {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  background: var(--pane);
  width: 280px;
  max-width: 60%;
}
.compare-picker button {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  margin-left: 5px;
  border: 1px solid var(--rule);
  background: var(--panel);
  cursor: pointer;
}
.compare-picker button:hover { background: var(--panel-head); }
.compare-empty, .compare-note, .compare-share { color: var(--dim); font-size: 13px; }
.compare-table th { vertical-align: top; }
.compare-table td.cmp-diff { background: var(--panel-head); }
.compare-table .cmp-absent { color: var(--faint); font-style: italic; }
.compare-table .cmp-remove {
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid var(--rule-light);
  background: var(--pane);
  color: var(--dim);
  cursor: pointer;
  margin-left: 6px;
  padding: 0 4px;
}
.compare-table .cmp-remove:hover { background: var(--magenta); color: #000; }
.compare-share code { font-size: 11px; word-break: break-all; }

/* ---- Special:Architecture (interactive explorer) ---- */
.arch-explorer { font-family: var(--mono); font-size: 13px; line-height: 1.55; margin-top: 14px; }
.arch-timeline {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 16px 20px 12px;
  margin-bottom: 20px;
}
.arch-year-row { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.arch-year { font-size: 28px; font-weight: 600; color: var(--amber-ink); }
.arch-era-label { font-size: 13px; color: var(--ink); letter-spacing: 0.02em; }
.arch-slider { width: 100%; accent-color: var(--amber); margin: 4px 0 6px; }
.arch-ticks { display: flex; justify-content: space-between; }
.arch-tick,
.arch-tick-active {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 10px;
  color: var(--faint);
  cursor: pointer;
  padding: 2px 0;
}
.arch-tick:hover { color: var(--amber-ink); }
.arch-tick-active { color: var(--amber-ink); font-weight: 700; }
.arch-card { border: 1px solid var(--rule); margin-bottom: 20px; background: var(--pane); }
.arch-card-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-light);
  background: var(--panel);
}
.arch-card-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
}
.arch-card-blurb { font-size: 12px; color: var(--dim); }
.arch-figure { display: block; width: 100%; height: auto; }
.arch-figure text { font-family: var(--mono); }
.arch-part-link { cursor: pointer; }
.arch-part-link:hover { opacity: 0.82; }
.arch-papers { border: 1px solid var(--rule); padding: 16px 20px; }
.arch-papers ul { margin: 10px 0 0; padding-left: 18px; }
.arch-papers li { margin-bottom: 6px; }
.arch-note { margin: 12px 0 0; font-size: 11px; color: var(--faint); }
@media (max-width: 640px) {
  .arch-card-blurb { display: none; }
}

/* ---- Contents: developer group headings ---- */
h3.dev-group { margin-bottom: 2px; }
h3.dev-group + ul { margin-top: 2px; }

/* ---------- benchmark-results furniture (data/evals.json) ---------- */

.evals { margin: 1.2em 0 0.6em; }
.evals-title {
  background: var(--panel-head);
  border: 1px solid var(--rule);
  border-bottom: none;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 14px;
}
.evals table.evals-table { margin: 0 0 0.3em; width: 100%; }
.evals td { text-align: right; font-variant-numeric: tabular-nums; }
.evals td.evals-ckpt { text-align: left; }
.evals-note { font-size: 12px; color: var(--faint); margin: 0.2em 0 0; }
.evals-note code { font-size: 11px; }

/* ---------- math (vendored KaTeX) ---------- */
.katex { font-size: 1.05em; }
.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35em 0.2em;
}
/* worked-example blocks: same register as wikitable furniture */
.math-example {
  border: 1px solid var(--rule);
  background: var(--panel-head);
  padding: 10px 14px;
  margin: 12px 0;
}
.math-example .math-example-title {
  font-weight: bold;
  font-size: 13px;
  margin: 0 0 6px;
}

/* ---------- Main Page: timeless-reference additions (2026-07-24) ---------- */

/* Did-you-know shares the featured-green family, per Wikipedia's
   green=content / blue=news semantics. */
.mp-dyk { border-color: #cef2e0; background: #f5fffa; }
.mp-dyk .mp-box-title { background: #cef2e0; border-bottom-color: #cef2e0; }
.mp-dyk ul { margin: .2em 0 .4em 1.4em; }
.mp-dyk li { margin-bottom: .25em; }

/* Bottom Indexes strip: one dense centered row of bare links. */
.mp-indexes { text-align: center; font-size: 14px; }
.mp-indexes p { margin: .2em 0; }

/* Did-you-know rotation furniture (2026-07-24) */
.mp-dyk-foot { text-align: right; font-size: 12px; margin: .3em 0 .1em; }
.dyk-archive li { margin-bottom: .35em; }

/* Major models: never break inside a model name; wrap only at separators. */
.mp-models a { white-space: nowrap; }
