/* Chime pages. Same family as the Drummer site: warm paper, plain type, one accent. */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --paper: #fffefa;
  --ink: #222b2c;
  --muted: #586667;
  --line: #ced4d1;
  --accent: #1f5fae;
  --accent-bar: #2a78d6;
  --base-bar: #a9a7a0;
  --tint: #e6edf6;
  --danger: #9a3027;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 16px; background: transparent; touch-action: manipulation; }
button:hover:enabled { background: var(--tint); }
button:disabled { opacity: .45; cursor: default; }
code { font-size: .92em; overflow-wrap: anywhere; }

.skip { position: absolute; left: 12px; top: -100px; padding: 12px; background: var(--paper); z-index: 5; }
.skip:focus { top: 12px; }

header, main, footer { width: min(1040px, calc(100% - 32px)); margin: auto; }
header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-block: 20px; border-bottom: 1px solid var(--line); gap: 12px 20px; }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand svg { color: var(--accent); width: 26px; height: 26px; }
.brand span { font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { display: inline-block; padding: 10px 12px; min-height: 44px; border-radius: 9px; color: var(--muted); text-decoration: none; }
nav a:hover { background: var(--tint); color: var(--ink); }
nav a[aria-current="page"] { color: var(--ink); background: var(--tint); font-weight: 600; }

.intro { margin: 36px 0 26px; max-width: 64ch; }
.intro h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -1px; font-weight: 560; }
.intro p { color: var(--muted); margin-top: 14px; font-size: 17px; }

footer { margin-top: 56px; padding: 22px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p + p { margin-top: 6px; }

/* Data tables: the same scorecard style on both pages. */
.table-wrap { overflow-x: auto; margin: 14px 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
caption { text-align: left; font-weight: 650; padding-bottom: 8px; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--ink); }
th.num, td.num { text-align: right; white-space: nowrap; }
tr.own th, tr.own td { background: var(--tint); font-weight: 650; }
tr.own th { padding-left: 8px; }
.table-note { font-size: 13px; color: var(--muted); max-width: 70ch; }

.document { width: min(66rem, calc(100% - 32px)); }
.document article { margin-top: 2rem; overflow-wrap: anywhere; }
.document h1 { font-size: 1.85rem; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; margin-bottom: 1rem; }
.document h2 { font-size: 1.3rem; line-height: 1.35; font-weight: 650; margin: 2rem 0 .75rem; }
.document p { max-width: 76ch; margin: 0 0 1rem; }
.byline { color: var(--muted); font-size: .9rem; }
.result-card { background: #fffefa; border: 1px solid var(--line); border-radius: 4px; padding: clamp(16px, 3vw, 28px); margin: 1.5rem 0; }
.document .result-card h2 { margin: 0 0 1rem; }
.result-card p { font-size: .95rem; }
.result-card .card-links { font-size: .85rem; margin: 1rem 0 0; }
.card-links a { display: inline-block; padding-block: .6rem; min-height: 44px; }
.card-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 0 0 1rem; }
.card-facts dt { font-size: .85rem; color: var(--muted); }
.card-facts dd { margin: .2rem 0 0; font-size: 1.3rem; font-weight: 600; }
.document thead th { text-transform: none; font-size: .85rem; letter-spacing: 0; }
@media(max-width: 480px) { .card-facts { grid-template-columns: 1fr; } .document th,.document td { padding-right: .6rem; } }

.result-card thead th:nth-child(2) { white-space: nowrap; }
