/* Small, readable, fast on 2G. No web fonts; images are lazy-loaded and resized. */
:root { --fg: #1a1a1a; --bg: #fff; --muted: #555; --line: #ddd; --accent: #0b5cad;
        --warn-bg: #fff4e5; --warn: #8a4b00; --stop-bg: #fdecea; --stop: #a01d12; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e8e8e8; --bg: #121212; --muted: #aaa; --line: #333; --accent: #7fb6ff;
          --warn-bg: #3a2a10; --warn: #ffcf8a; --stop-bg: #3d1512; --stop: #ffaba3; }
}
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: break-word; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       color: var(--fg); background: var(--bg); }
header, main, footer { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
header { padding-top: 12px; border-bottom: 1px solid var(--line); }
header a { font-weight: 700; text-decoration: none; color: var(--fg); }
a { color: var(--accent); }
table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
blockquote { margin: 1em 0; padding: 0 1em; border-left: 4px solid var(--line); }
.byline { color: var(--muted); font-size: .9em; }
.banner { padding: 10px 12px; border-radius: 4px; font-weight: 600; }
.banner.draft { background: var(--stop-bg); color: var(--stop); }
.banner.stale { background: var(--warn-bg); color: var(--warn); }
.ref { text-decoration: none; font-size: .85em; }
.sources li { margin-bottom: .4em; overflow-wrap: anywhere; }
footer { margin-top: 3em; padding-bottom: 2em; border-top: 1px solid var(--line); }
.disclaimer { color: var(--muted); font-size: .9em; }
@media print {
  header, script { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  a { color: #000; }
  .banner { border: 2px solid #000; }
}
form[role=search] { margin: 1em 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 4px 8px; }
details { border-bottom: 1px solid var(--line); padding: 6px 0; }
summary { cursor: pointer; font-weight: 600; }
.planned, summary small { color: var(--muted); }
#q { width: 100%; font: inherit; padding: 8px; margin-top: 4px; }
figure { margin: 1em 0; }
figure img { display: block; max-width: 100%; height: auto; border-radius: 4px; background: var(--line); }
figcaption { font-size: .9em; margin-top: .4em; }
.credit { display: block; color: var(--muted); overflow-wrap: anywhere; }
.reminder { background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 4px; font-size: .9em; }
figure.illustration img { background: #fff; border: 1px solid var(--line); }
.enlarge { display: block; }
#va select, #va input { font: inherit; padding: 8px; margin: 4px 0 12px; width: 100%; }
#va-out { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
#va-out dt { font-weight: 600; }
#va-out dd { margin: 0; }
.gloss { list-style: none; font-weight: 600; }
