:root {
  --fg: #1a1a1a; --muted: #666; --bg: #fdfdfc; --line: #ddd;
  --accent: #0b6; --flag: #b45; --panel: #f5f5f3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e8e8e6; --muted: #999; --bg: #1a1a19; --line: #333;
    --accent: #3d9; --flag: #e88; --panel: #242423;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header, footer, main { max-width: 62rem; margin: 0 auto; padding: 1rem; }
header { display: flex; justify-content: space-between; align-items: baseline;
         border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--fg); }
nav a { margin-left: 1rem; }
a { color: var(--accent); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
         margin-top: 3rem; }
h1 { font-size: 1.6rem; margin-bottom: .3rem; }
h2 { font-size: 1.15rem; margin-top: 2rem; }
.lede { color: var(--muted); max-width: 44rem; }
.muted { color: var(--muted); font-size: .9rem; }
code { background: var(--panel); padding: 0 .25em; border-radius: 3px; }

form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
       padding: 1.25rem; margin: 1.5rem 0; }
form label { display: block; font-weight: 600; margin-bottom: .5rem; }
input[type=file] { display: block; margin-bottom: 1rem; max-width: 100%; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 6px;
         padding: .6rem 1.4rem; font-size: 1rem; cursor: pointer; }
.fineprint { color: var(--muted); font-size: .8rem; margin: .9rem 0 0; }

.notice { background: var(--panel); border-left: 3px solid var(--muted);
          padding: .7rem 1rem; max-width: 44rem; }
.notice.kept { border-left-color: var(--accent); }

table { border-collapse: collapse; width: 100%; margin: .5rem 0 1rem;
        font-size: .88rem; }
th, td { text-align: left; padding: .35rem .6rem; border-bottom: 1px solid var(--line);
         vertical-align: top; }
th { font-weight: 600; color: var(--muted); }
.kv { max-width: 44rem; } .kv th { width: 10rem; }
.entries td, .types td { font-variant-numeric: tabular-nums; }
.entries .fields { font-family: ui-monospace, monospace; font-size: .8rem;
                   word-break: break-word; }
tr.misaligned td, tr.notable td { background: color-mix(in srgb, var(--flag) 12%, transparent); }
.flag { color: var(--flag); font-size: .75rem; text-transform: uppercase;
        letter-spacing: .04em; }
.downloads a { display: inline-block; margin-right: 1rem; }
.results { list-style: none; padding: 0; }
.results li { padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* Wide tables scroll rather than breaking the page on a phone. */
@media (max-width: 40rem) {
  .entries, .types { display: block; overflow-x: auto; white-space: nowrap; }
}
