/* Omniposter-hosted starter theme. Generated from the site's theme settings;
   edit those (or "Custom CSS", appended at the end) rather than this file. */
@font-face {
  font-family: "Fraunces";
  src: url("/_omni/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/_omni/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
--bg: #ffffff;
  --text: #16181d;
  --accent: #a15c07;
  --accent-fg: #ffffff;
  --muted: #6f7073;
  --surface: #f6f6f6;
  --border: #e1e1e2;  --font-heading: 'Fraunces', Charter, Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 72rem;
  --narrow: 42rem;
  --wide: 60rem;
  --radius: 10px;
  --gap: clamp(1rem, 3vw, 2rem);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111318;
  --text: #eceef2;
  --accent: #f2b544;
  --accent-fg: #000000;
  --muted: #999b9f;
  --surface: #1a1c21;
  --border: #2d2f34; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; padding: 0 1rem; }
.wide { max-width: var(--wide); margin-left: auto; margin-right: auto; padding: 0 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); padding: 1.1rem 0 .9rem; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.brand-logo { max-height: 44px; width: auto; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -0.02em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .35rem 0; display: inline-block; }
.site-nav a:hover { color: var(--accent); }
.tagline { color: var(--muted); margin: .35rem auto 0; font-size: .95rem; }

.site-main { padding: clamp(1.5rem, 4vw, 3rem) 0 4rem; min-height: 50vh; }

/* Story cards */
.meta { color: var(--muted); font-size: .875rem; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.card { display: flex; flex-direction: column; gap: .75rem; }
.card-img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 16 / 9; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.02); }
.card-title { font-size: 1.25rem; margin: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-summary { margin: .35rem 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--gap); }
.card-lead { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--border); }
.card-lead .card-title { font-size: clamp(1.75rem, 4vw, 2.6rem); }
.card-lead .card-summary { font-size: 1.1rem; -webkit-line-clamp: 4; }
@media (min-width: 800px) {
  .card-lead { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2.5rem; }
  .card-lead.card-noimg { grid-template-columns: 1fr; }
}
.story-list { display: flex; flex-direction: column; max-width: 52rem; }
.story-list .card { flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--border); gap: 1.25rem; }
.story-list .card-img { flex: 0 0 9rem; aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .story-list .card-img { flex-basis: 6rem; } }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.pager-pos { color: var(--muted); font-size: .9rem; }
.empty { padding: 3rem 0; }
.section-title { font-size: 1.4rem; margin: 3.5rem 0 1.25rem; }
.section-title a { color: var(--text); text-decoration: none; }
.page-heading { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 1.5rem; }

/* Articles */
.article-head { margin-bottom: 1.75rem; }
.article-title { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .75rem; }
.dek { font-size: 1.25rem; line-height: 1.5; color: var(--muted); margin: 0; }
.article-meta { margin-top: 1rem; }
.byline { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hero { margin-bottom: 2rem; }
.hero img { width: 100%; border-radius: var(--radius); }
.hero figcaption { color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.prose { font-size: 1.125rem; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin: 0 0 1.25rem; }
.prose blockquote { border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.1rem; color: var(--muted); font-style: italic; }
.prose img { border-radius: var(--radius); }
.prose pre { background: var(--surface); border: 1px solid var(--border); padding: 1rem; overflow-x: auto; border-radius: 8px; font-size: .9rem; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.back { margin-top: 3rem; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: var(--gap); }
.video-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); margin-bottom: .6rem; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: auto auto .6rem .6rem; background: rgba(0,0,0,.7); color: #fff; border-radius: 999px; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-size: .9rem; }
.video-frame { aspect-ratio: 16 / 9; margin-bottom: 1.5rem; }
.video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2.5rem 0 1.5rem; font-size: .925rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin: 0 0 .4rem; }
.footer-text { color: var(--muted); margin: 0 0 .75rem; max-width: 34rem; white-space: pre-line; }
.social, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer-links a, .social a { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .825rem; margin-top: 2rem; }
.footer-base a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header nav, .site-footer, .back, .pager { display: none; } }

/* Features this site uses */
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.archive-list a { color: var(--text); text-decoration: none; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.archive-list a:hover { color: var(--accent); }
.archive-list p { margin: .3rem 0 0; color: var(--muted); }
.account { font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-width: 8.5em; min-height: 2.5rem; padding: .3em .85em; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); cursor: pointer; white-space: nowrap; }
.account:hover { border-color: var(--accent); color: var(--accent); }
.account[data-initials]::before { content: attr(data-initials); display: inline-grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: .8em; }
.account-link { font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; min-width: 4.5em; text-align: left; }
.account[hidden] { display: inline-flex; visibility: hidden; }
.account-link[hidden] { display: inline-block; visibility: hidden; }
@media (max-width: 40rem) { .account { min-width: 0; } .account[hidden] { display: none; } }
.omni-slot:not(:empty) { margin-top: 2rem; margin-bottom: 2rem; }
@media print { .account, .account-link, .omni-slot, .comments { display: none; } }
.header-tools { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-bottom: .85rem; padding-bottom: .7rem; border-bottom: 1px solid var(--border); }
.header-tools .account { min-height: 2.1rem; font-size: .85rem; }
@media (max-width: 40rem) { .header-tools .site-search { flex: 1; } .header-tools .site-search input { width: 100%; } }
.omni-games-card { margin: 0 0 clamp(2.25rem, 5vw, 3.5rem); }
.site-nav .nav-ico-item a { display: inline-flex; align-items: center; gap: .4rem; }
.site-nav .nav-ico { flex: none; width: 1.15rem; height: 1.15rem; padding: .2rem; border-radius: 50%; background: var(--accent); fill: none; stroke: var(--accent-fg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Research-data pages (app/datahub/templates). Appended to the site stylesheet
   on data-hub sites only; uses the theme's custom properties, so it follows
   the site's palette and light/dark mode. */

/* Page frame */
.dh { font-size: 1rem; line-height: 1.55; }
.dh h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.dh-head { margin-bottom: 1.5rem; }
.dh-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.dh-kicker { margin: 0 0 .35rem; font-size: .85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.dh-kicker a { color: var(--muted); text-decoration: none; }
.dh-kicker a:hover { color: var(--accent); }
.dh-lede { margin: 0; color: var(--muted); max-width: 48rem; }
.dh-meta { margin: .5rem 0 1rem; color: var(--muted); font-size: .9rem; }
.dh-fine { margin: .5rem 0 .9rem; color: var(--muted); font-size: .85rem; }
.dh-muted { color: var(--muted); }
.dh-note { margin: 1.5rem 0; padding: .75rem 1rem; border-left: 3px solid var(--border); color: var(--muted); font-size: .9rem; }
.dh-explainer { max-width: 48rem; margin: 0 0 1rem; }
.dh-empty { color: var(--muted); padding: 1rem 0; }
.dh-section { margin: 2.25rem 0 0; }
.dh code { font-size: .85em; }

/* Breadcrumbs */
.dh-crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .85rem; color: var(--muted); }
.dh-crumbs li + li::before { content: "/"; margin-right: .25rem; color: var(--border); }
.dh-crumbs a { color: var(--muted); text-decoration: none; }
.dh-crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Links row and lists */
.dh-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .75rem 0 0; font-size: .92rem; font-weight: 500; }
.dh-linklist { margin: 1rem 0; padding-left: 1.1rem; }
.dh-linklist li { margin: .25rem 0; }
.dh-notes { margin: 1rem 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }

/* Facts (key/value grid) */
.dh-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .1rem 1.5rem; margin: 0 0 1rem; }
.dh-facts > div { padding: .45rem 0; border-bottom: 1px solid var(--border); }
.dh-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dh-facts dd { margin: .1rem 0 0; }

/* Tables: dense, scrollable sideways on narrow screens */
.dh-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.dh-table, .omni-calc-table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.4; }
.dh-table th, .dh-table td, .omni-calc-table th, .omni-calc-table td { padding: .45rem .65rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.dh-table thead th, .omni-calc-table thead th { position: sticky; top: 0; background: var(--surface); font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.dh-table tbody th { font-weight: 600; }
.dh-table tbody tr:last-child > *, .omni-calc-table tbody tr:last-child > * { border-bottom: 0; }
.dh-table tbody tr:hover, .omni-calc-table tbody tr:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.dh-num, .dh-table td.dh-num, .dh-table th.dh-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.omni-calc-table td:nth-child(4), .omni-calc-table td:nth-child(5),
.omni-calc-table th:nth-child(4), .omni-calc-table th:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-table a, .omni-calc-table a { text-decoration: none; }
.dh-table a:hover, .omni-calc-table a:hover { text-decoration: underline; }
tr.dh-retired > * { color: var(--muted); }
tr.dh-self > * { color: var(--muted); }
.dh-row-note { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }

/* Sortable headers (datahub.js wraps each header's text in a button) */
.omni-sort-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; }
.omni-sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.omni-sort-btn::after { content: ""; display: inline-block; width: 0; height: 0; border-left: .28em solid transparent; border-right: .28em solid transparent; border-top: .35em solid var(--border); }
th[aria-sort="ascending"] .omni-sort-btn::after { border-top: 0; border-bottom: .35em solid var(--accent); }
th[aria-sort="descending"] .omni-sort-btn::after { border-top-color: var(--accent); }

/* Badges */
.dh-badge { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-size: .7rem; font-weight: 600; line-height: 1.5; letter-spacing: .02em; padding: 0 .45rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.dh-badge-verifying { border-style: dashed; border-color: var(--accent); color: var(--text); }
.dh-badge-unverified { border-style: dotted; }
.dh-badge-retired, .dh-badge-deprecated { background: var(--surface); }
.dh-badge-retired { text-decoration: line-through; }
.dh-badge-cheapest { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.dh-badge-self { border-style: dashed; font-weight: 500; }
.dh-badge-correction { border-color: var(--accent); color: var(--text); }
.dh-kind { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 .35rem; }

/* Banners (a held price change, a board's validity warning, a retirement) */
.dh-banner { margin: .75rem 0; padding: .6rem .9rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); font-size: .9rem; }
.dh-banner-retired { border-left-color: var(--muted); }
.dh-banner-verifying { border-left-style: dashed; }

/* Freshness (datahub.js adds the class by the reader's clock): a dot, filled
   when fresh, half when ageing, hollow when stale. Shape, not only colour. */
.omni-fresh:not(tr):not(table)::before, tr.omni-fresh > :first-child::before,
.omni-ageing:not(tr):not(table)::before, tr.omni-ageing > :first-child::before,
.omni-stale:not(tr):not(table)::before, tr.omni-stale > :first-child::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; vertical-align: .08em;
  border-radius: 50%; border: 1.5px solid var(--accent); box-sizing: border-box;
}
.omni-fresh:not(tr):not(table)::before, tr.omni-fresh > :first-child::before { background: var(--accent); }
.omni-ageing:not(tr):not(table)::before, tr.omni-ageing > :first-child::before { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.omni-stale:not(tr):not(table)::before, tr.omni-stale > :first-child::before { background: transparent; border-color: var(--muted); }
tr.omni-stale > * { color: var(--muted); }

/* Charts (app/datahub/charts.py): colour comes from these classes only */
.dh-chart { margin: 1.25rem 0; }
.dh-chart-svg { display: block; width: 100%; height: auto; max-width: 48rem; color: var(--text); font-family: var(--font-body); }
.dh-chart figcaption { margin-top: .35rem; color: var(--muted); font-size: .8rem; }
.dh-chart-svg .dh-grid { stroke: var(--border); stroke-width: 1; }
.dh-chart-svg .dh-axis { stroke: var(--muted); stroke-width: 1; }
.dh-chart-svg .dh-tick, .dh-chart-svg .dh-unit, .dh-chart-svg .dh-legend { fill: var(--muted); font-size: 11px; }
.dh-chart-svg .dh-legend { fill: var(--text); }
.dh-chart-svg .dh-break { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 3; }
.dh-chart-svg .dh-break-lbl { fill: var(--muted); font-size: 10px; }
.dh-chart-svg .dh-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dh-chart-svg .dh-dot { stroke: none; }
.dh-chart-svg .dh-s0 { stroke: var(--accent); fill: var(--accent); }
.dh-chart-svg .dh-s1 { stroke: var(--text); fill: var(--text); }
.dh-chart-svg .dh-s2 { stroke: var(--muted); fill: var(--muted); }
.dh-chart-svg .dh-s3 { stroke: var(--accent); fill: var(--accent); }
.dh-chart-svg .dh-line.dh-s1 { stroke-dasharray: 6 3; }
.dh-chart-svg .dh-line.dh-s2 { stroke-dasharray: 2 3; }
.dh-chart-svg .dh-line.dh-s3 { stroke-dasharray: 8 3 2 3; }
.dh-chart-svg .dh-line { fill: none; }   /* after the series classes: a line is never filled */

/* Change log */
.dh-changes { list-style: none; margin: 0; padding: 0; }
.dh-changes li { padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.dh-changes time { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: .35rem; }

/* Sources footer */
.dh-attrib { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.dh-attrib-list { margin: 0; padding-left: 1.1rem; font-size: .85rem; }
.dh-attrib-list li { margin: .3rem 0; }
.dh-licence { color: var(--muted); }

/* Link-outs */
.dh-elsewhere > div { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.dh-elsewhere dt { font-weight: 600; }
.dh-elsewhere dd { margin: .2rem 0 0; }

/* The price calculator ([data-omni-pricing]; datahub.js builds the form) */
.dh-calc { margin: 1rem 0; }
.omni-calc-form { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin: 0 0 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.omni-calc-field { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.omni-calc-field input[type="number"] { width: 9rem; padding: .4rem .55rem; font: inherit; font-size: .95rem; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-variant-numeric: tabular-nums; }
.omni-calc-field input[aria-invalid="true"] { border-color: var(--accent); border-style: dashed; }
.omni-calc-check { flex-direction: row; align-items: center; gap: .4rem; padding-bottom: .45rem; color: var(--text); }
.omni-calc-check input { accent-color: var(--accent); width: 1rem; height: 1rem; }
.omni-calc-results { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.omni-calc-results > .omni-calc-table { border: 1px solid var(--border); }
tr.omni-calc-cheapest > * { background: color-mix(in srgb, var(--accent) 12%, transparent); }
tr.omni-calc-cheapest > td:first-child { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
tr.omni-calc-infeasible > * { color: var(--muted); }
tr.omni-calc-infeasible td:nth-child(4), tr.omni-calc-infeasible td:nth-child(5) { text-decoration: line-through; }
.omni-calc-note { margin: .5rem 0; color: var(--muted); font-size: .85rem; }
.omni-calc-empty { margin: 1rem 0; color: var(--muted); }

/* Panels: the data front page on the home, and [[data:panel:…]] in page text */
.dh-front { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem 2rem; margin: 0 0 2rem; }
.dh-panel { margin: 0 0 1.5rem; }
.dh-panel-title { font-size: 1.15rem; margin: 0 0 .5rem; }
.dh-panel-list { list-style: none; margin: 0; padding: 0; counter-reset: dhp; }
.dh-panel-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--border); }
.dh-panel-leaderboard .dh-panel-list li { counter-increment: dhp; }
.dh-panel-leaderboard .dh-panel-list li::before { content: counter(dhp); min-width: 1.5rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dh-panel-leaderboard .dh-panel-list li a { flex: 1; }
.dh-panel-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-panel-more { margin: .6rem 0 0; font-size: .92rem; font-weight: 500; }

@media (max-width: 640px) {
  .dh { font-size: .95rem; }
  .dh-table, .omni-calc-table { font-size: .8rem; }
  .dh-table th, .dh-table td, .omni-calc-table th, .omni-calc-table td { padding: .4rem .5rem; white-space: nowrap; }
  .dh-table thead th, .omni-calc-table thead th { position: static; }
  .dh-facts { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .omni-calc-form { gap: .6rem; padding: .75rem; }
  .omni-calc-field { flex: 1 1 8rem; }
  .omni-calc-field input[type="number"] { width: 100%; }
  .dh-links { gap: .4rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dh * { transition: none !important; }
}
.dh-chart-svg .dh-bar { stroke: none; }
.dh-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 1.5rem; }
.dh-sources { margin: 2rem 0 0; font-size: .85rem; color: var(--muted); }
.dh-sources ul { margin: .35rem 0 0; padding-left: 1.1rem; }

