/* Milk Metabolite Database
   Layout: centred column (max 1180px), sticky slim header, panels on a cool milk-white ground.
   Palette: pasture greens and ink, diet series fixed site-wide (GRS green, PMR amber, TMR slate blue). */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --sunk: #eaf0ec;
  --ink: #14231c;
  --muted: #56675e;
  --line: #d7e1db;
  --accent: #1d6a4b;
  --accent-ink: #ffffff;
  --pos: #23799b;
  --neg: #c25a3c;
  --ok: #1f8a54;
  /* series: factor B levels (diets) */
  --s1: #2e8b57; --s2: #d48a1f; --s3: #4c6fa8; --s4: #8a5aa8; --s5: #3a9a9a; --s6: #b0476b;
  /* factor A / seasons */
  --t1: #8bbf5a; --t2: #e3a72b; --t3: #b9553a; --t4: #5f86b8;
  /* metabolite classes */
  --k1: #2e8b57; --k2: #d48a1f; --k3: #4c6fa8; --k4: #b0476b; --k5: #3a9a9a; --k6: #8a5aa8; --k7: #8c7a3c; --k8: #c25a3c;
  --f-display: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 28, .06), 0 8px 24px rgba(20, 35, 28, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1612; --surface: #15201b; --sunk: #1b2822; --ink: #e3ece6; --muted: #9db0a5; --line: #2a3a32;
    --accent: #5cc08f; --accent-ink: #0e1612; --pos: #5bb7d8; --neg: #e8896b; --ok: #5cc08f;
    --s1: #5cc08f; --s2: #ecaa4c; --s3: #86a6dc; --s4: #b893d6; --s5: #64c4c4; --s6: #e07c9f;
    --t1: #a7d77d; --t2: #f0c454; --t3: #e3826a; --t4: #8fb0de;
    --k1: #5cc08f; --k2: #ecaa4c; --k3: #86a6dc; --k4: #e07c9f; --k5: #64c4c4; --k6: #b893d6; --k7: #c9b36a; --k8: #e8896b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0e1612; --surface: #15201b; --sunk: #1b2822; --ink: #e3ece6; --muted: #9db0a5; --line: #2a3a32;
    --accent: #5cc08f; --accent-ink: #0e1612; --pos: #5bb7d8; --neg: #e8896b; --ok: #5cc08f;
    --s1: #5cc08f; --s2: #ecaa4c; --s3: #86a6dc; --s4: #b893d6; --s5: #64c4c4; --s6: #e07c9f;
    --t1: #a7d77d; --t2: #f0c454; --t3: #e3826a; --t4: #8fb0de;
    --k1: #5cc08f; --k2: #ecaa4c; --k3: #86a6dc; --k4: #e07c9f; --k5: #64c4c4; --k6: #b893d6; --k7: #c9b36a; --k8: #e8896b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.muted { color: var(--muted); }
.num, .tile b, .hero-stats b, .facts b { font-variant-numeric: tabular-nums; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.eyebrow a { color: inherit; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand b { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.brand-sub { display: block; font-size: .78rem; color: var(--muted); }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; flex: none; background:
  radial-gradient(circle at 50% 50%, var(--surface) 0 30%, transparent 31%),
  conic-gradient(var(--s1) 0 33%, var(--s2) 0 66%, var(--s3) 0); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.nav .ext { color: var(--muted); }

/* hero */
.hero { padding-block: clamp(32px, 6vw, 72px) 24px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-search { display: flex; gap: 8px; max-width: 520px; }
.hero-search input { flex: 1; min-width: 0; }
.spectrum { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.spectrum svg { display: block; width: 100%; height: auto; overflow: visible; }
.spectrum figcaption { order: 2; font-size: .8rem; color: var(--muted); }
.spectrum .pk { cursor: pointer; }
.spectrum .pk-lbl { font-family: var(--f-mono); font-size: 10.5px; fill: var(--muted); transition: fill .2s; }
.spectrum .pk:hover .pk-lbl, .spectrum .pk:focus .pk-lbl { fill: var(--ink); }
.spectrum .axis text { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }

/* forms */
input[type="search"], select { font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; max-width: 100%; }
input[type="range"] { accent-color: var(--accent); flex: 1 1 160px; min-width: 100px; }
.btn, .hero-search button { font: inherit; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hero-search button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

/* blocks */
.block { padding-block: 20px; display: flex; flex-direction: column; gap: 16px; }
.block-head { display: flex; flex-direction: column; gap: 6px; max-width: 75ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.4vw, 24px); display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative; }
.panel-head { display: flex; flex-direction: column; gap: 4px; }
.panel-head .muted { font-size: .92rem; max-width: 80ch; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.grid2.inner { gap: 24px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .9rem; }
.controls label { color: var(--muted); }
.controls input[type="search"] { flex: 1 1 220px; }
.sub-h { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.month-big { font-family: var(--f-display); font-size: 1.6rem; min-width: 7ch; }
.readout { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.readout b { color: var(--ink); font-weight: 600; }

/* page head */
.page-head { padding-block: clamp(28px, 5vw, 56px) 8px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; }
.crumbs { font-size: .88rem; color: var(--muted); }
.cite { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; max-width: 90ch; }

/* studies */
.study-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.study-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.study-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.study-card p { color: var(--muted); font-size: .95rem; }
.study-viz { height: 120px; }
.study-viz svg { display: block; width: 100%; height: 100%; }
.study-meta { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; }
.tile span { font-size: .88rem; color: var(--muted); }
.diet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.diet { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--dc); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.diet p { font-size: .93rem; color: var(--muted); }
.code { font-family: var(--f-mono); font-size: .8rem; background: color-mix(in srgb, var(--dc) 18%, transparent); color: var(--ink); padding: 2px 6px; border-radius: 4px; vertical-align: 3px; margin-right: 4px; }
.findings { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; max-width: 85ch; }

/* charts */
.chart { position: relative; width: 100%; min-height: var(--h, 260px); }
.chart svg { display: block; overflow: visible; }
.chart text { font-family: var(--f-body); font-size: 12px; fill: var(--muted); }
.chart .strong { fill: var(--ink); }
.chart .mono { font-family: var(--f-mono); font-size: 11px; }
.grid-l { stroke: var(--line); }
.axis-l { stroke: var(--muted); stroke-opacity: .6; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--muted); background: var(--surface); font-variant-numeric: tabular-nums; }
.chip.sig { color: var(--ink); border-color: var(--muted); font-weight: 600; }
.chip.sig::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.chip.link { text-decoration: none; color: var(--ink); }
.chip.link:hover { border-color: var(--accent); }
button.chip { font: inherit; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
button.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.grad { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.grad .bar { height: 8px; width: 10rem; border-radius: 4px; background: linear-gradient(90deg, var(--neg), var(--surface), var(--pos)); border: 1px solid var(--line); }
.tip { position: fixed; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .12s; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 6px 10px; font-size: .82rem; line-height: 1.4; max-width: 280px; font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.tip .t { color: var(--muted); }
.tip .r { display: flex; align-items: center; gap: 6px; }

/* tables */
.table-wrap { overflow: auto; max-height: 34rem; border: 1px solid var(--line); border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { position: sticky; top: 0; background: var(--sunk); font-weight: 600; color: var(--ink); z-index: 1; }
table.data thead button { all: unset; cursor: pointer; }
table.data thead th[aria-sort] button::after { content: " ↓"; }
table.data thead th[aria-sort="ascending"] button::after { content: " ↑"; }
table.data tbody tr:hover td, table.data tbody tr:hover th { background: var(--sunk); }
table.data td.sig { font-weight: 600; color: var(--ink); }
table.data td.ns { color: var(--muted); }
table.data .sd { color: var(--muted); font-size: .85em; }
table.compact { font-size: .85rem; }
table.compact tbody th { font-weight: 600; }

/* explorer + cards */
.ex-tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.ex-tools input { flex: 1 1 240px; }
.ex-count { font-size: .88rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 12px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; min-width: 0; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cc); }
.mcard h3 { font-size: 1.12rem; overflow-wrap: anywhere; }
.mcard .cls, .mc-head .cls { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.mcard .cls::before, .mc-head .cls::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); }
.mcard p { font-size: .86rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard .viz { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.mcard .viz span { font-size: .7rem; color: var(--muted); display: block; }
.mcard .viz svg { display: block; width: 100%; height: auto; }
.mcard .stud { display: flex; gap: 6px; flex-wrap: wrap; }
.mcard .stud span { font-family: var(--f-mono); font-size: .68rem; color: var(--muted); background: var(--sunk); border-radius: 4px; padding: 1px 6px; }
.empty { color: var(--muted); padding: 24px 0; }

/* metabolite page */
.mc-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 8%, transparent), transparent); }
.mc-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.mc-title .cls { font-size: .85rem; }
.ext-links { font-size: .9rem; color: var(--muted); }
.mc-body { gap: 16px; }
.mc-sec { scroll-margin-top: 80px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.facts div { display: flex; flex-direction: column; }
.facts span { font-size: .8rem; color: var(--muted); }
.facts b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
details summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-block: 4px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 8px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
  .draw { animation: draw 1.1s cubic-bezier(.3, .6, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms + 150ms); }
  .hm-in { animation: fade .5s ease-out both; animation-delay: calc(var(--i) * 80ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
.draw { stroke-dasharray: 1 1; }

/* terms + attribution */
.terms { gap: 22px; max-width: 860px; }
.term { display: flex; flex-direction: column; gap: 8px; }
.term h2 { font-size: 1.25rem; }
.term .tn { font-family: var(--f-mono); font-size: .9rem; color: var(--muted); }
.term ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.term p, .term li { max-width: 75ch; }
.attrib { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--sunk); border-radius: 0 8px 8px 0; font-family: var(--f-display); font-size: 1.05rem; }

.findings a, .cite a, .page-head a { overflow-wrap: anywhere; }

/* logo, partners, figures, lightbox, about */
.brand-logo { width: 32px; height: auto; flex: none; }
.foot-main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.partners { height: 44px; width: auto; max-width: 100%; background: #fff; border-radius: 8px; padding: 6px 10px; }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.fig-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.fig { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fig a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.fig img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.fig a:hover img { transform: scale(1.02); }
.fig figcaption { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.fig figcaption b { color: var(--ink); font-weight: 600; }
.panel .fig { margin-top: 4px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 16, 13, .82); }
.lightbox img { display: block; max-width: min(96vw, 1400px); max-height: 82vh; width: auto; height: auto; margin-inline: auto; background: #fff; border-radius: 8px; }
.lightbox .lb-cap { color: #e8efe9; font-size: .92rem; max-width: 90ch; margin: 10px auto 0; text-align: center; }
.lightbox .lb-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #14231c; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.about-dl { display: grid; gap: 14px; margin: 0; }
.about-dl dt, .ids dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.about-dl dd { margin: 2px 0 0; max-width: 85ch; }
.ids { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ids dd { margin: 2px 0 0; }
.mc-title .mbb { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; }
.vip { font-size: .8rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 2px 10px; }
.mcard .vipdot { font-family: var(--f-mono); font-size: .66rem; color: var(--accent-ink); background: var(--accent); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }

.fig-grid.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.mc-title { row-gap: 6px; }
.fig-grid.wide .fig img { max-height: 560px; object-fit: contain; }

/* charts switched off with "hide" in site.json */
[hidden]{display:none!important}
.grid2:has(> [hidden]){grid-template-columns:1fr}
.grid2:not(:has(> :not([hidden]))){display:none}

/* properties study (milk properties by month + predictor models) */
.sub-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.small { font-size: .82rem; }
.chart .letters { font-size: 11px; fill: var(--muted); }
.chart .eyebrow-t { font-size: 10.5px; letter-spacing: .08em; fill: var(--muted); font-weight: 600; }
.chart .muted-t { fill: var(--muted); }
.chart .small-t { font-size: 11.5px; }
.r2 { margin: 6px 0 2px; font-size: .92rem; }
.tbl-h { font-size: 1rem; margin: 20px 0 6px; }
.tbl-h .muted { font-weight: 400; font-size: .88rem; }
table.props td { white-space: nowrap; }
sup.grp { font-family: var(--f-mono); font-size: .68em; color: var(--muted); margin-left: 1px; }
.unit { color: var(--muted); font-weight: 400; }
details.coefs { margin-top: 18px; }
details.coefs summary { cursor: pointer; font-weight: 600; }
.coef-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 12px; }
.coef h4 { margin: 0 0 6px; font-size: .95rem; }
.coef h4 .muted { font-weight: 400; font-size: .82rem; }
.dir { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.dir.up { color: var(--pos); }
.dir.down { color: var(--neg); }
.mcard .viz b.pred { display: block; font-size: .78rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
