:root { --ink: #1d2230; --muted: #5c6475; --line: #dde1e8; --bg: #fff; --soft: #f3f5f9; --accent: #2d4fa3; }
* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.65 Georgia, "Iowan Old Style", "Times New Roman", serif; color: var(--ink); background: var(--bg); }
.top, main, footer { max-width: 740px; margin: 0 auto; padding: 0 18px; }
.top { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 1.2rem 0 .4rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
a { color: var(--accent); overflow-wrap: anywhere; }
.checked { color: var(--muted); font-size: .9rem; margin-top: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.lede { font-size: 1.1rem; color: var(--muted); }
.small { font-size: .9rem; color: var(--muted); }
.guides li { margin-bottom: 1rem; }
li { margin-bottom: .3rem; }
table.stack { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; line-height: 1.5; }
table.stack th, table.stack td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.stack thead th { background: var(--soft); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* On phones each row becomes a block: the first cell as its heading, the rest as labelled lines. */
@media (max-width: 640px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack caption { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
  table.stack th, table.stack td { border: 0; }
  table.stack tbody th { background: var(--soft); }
  table.stack td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
}
footer { margin-top: 3rem; padding-top: 12px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.related { margin-top: 2.5rem; padding-top: .4rem; border-top: 1px solid var(--line); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
table.results caption { caption-side: top; text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: 6px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
table.results .n { color: var(--muted); font-size: .85em; white-space: nowrap; }
figure { margin: 1.5rem 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 6px; }
figcaption { margin-top: 6px; color: var(--muted); font-size: .9rem; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.toc { background: var(--soft); border-radius: 8px; padding: 10px 16px 6px; margin: 1.2rem 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: .95rem; }
.toc-title { font-weight: 700; margin: 0 0 .3rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
h2[id], h3[id] { scroll-margin-top: 12px; }
