/* Mobile first. No framework. */
:root {
  --ink: #1d1d1b;
  --muted: #5c5c58;
  --line: #d9d7d0;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #0b5d8c;
  --warn-bg: #fff4d6;
  --flag-bg: #eceae3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0.6rem 0 0.4rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }
main { max-width: 64rem; margin: 0 auto; padding: 0 16px 2rem; }

header.site {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between;
  padding: 0.8rem 16px; border-bottom: 1px solid var(--line); background: var(--card);
}
header.site .brand { font-weight: 700; color: var(--ink); text-decoration: none; }
header.site nav a { margin-left: 1rem; }
footer.site {
  max-width: 64rem; margin: 2rem auto 0; padding: 1rem 16px 2rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}

.small, .n { color: var(--muted); font-size: 0.88rem; }
.n { white-space: nowrap; }
.warn { background: var(--warn-bg); padding: 0.6rem 0.8rem; border-radius: 4px; }
.notpred { font-weight: 600; }
.flag {
  display: inline-block; background: var(--flag-bg); color: var(--muted); font-size: 0.75rem;
  padding: 0 0.4rem; border-radius: 3px; margin: 0.15rem 0.25rem 0 0; white-space: nowrap;
}

.hero { padding: 1rem 0; }
.headline { font-size: 1.2rem; }
form.search { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0; }
form.search label { width: 100%; font-weight: 600; }
form.search input {
  flex: 1 1 10rem; font-size: 1.1rem; padding: 0.55rem 0.7rem; border: 2px solid var(--ink); border-radius: 4px;
  text-transform: uppercase;
}
button {
  font: inherit; padding: 0.5rem 1rem; border: 0; border-radius: 4px; background: var(--accent); color: #fff;
  cursor: pointer;
}
form.filters { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; margin: 1rem 0; }
form.filters select { font: inherit; padding: 0.3rem; }

.stats { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 1rem 0.8rem; }
.stats h2 { margin-top: 0.6rem; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.figures th[scope], table.figures tbody th { font-weight: normal; }
table.figures td { white-space: nowrap; }
table.figures td .n { display: block; }
table.figures tbody th { min-width: 9rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.na { color: var(--muted); font-style: italic; }
td.date { white-space: nowrap; }
table.decisions { font-size: 0.92rem; margin-top: 1rem; }
table.decisions thead th { position: sticky; top: 0; background: var(--bg); }
table.decisions th button { background: none; color: var(--accent); padding: 0; text-decoration: underline; }
table.facts th { font-weight: normal; color: var(--muted); width: 45%; }

.map { height: 320px; margin: 1.2rem 0 0.5rem; border: 1px solid var(--line); border-radius: 6px; }
blockquote.excerpt {
  margin: 0; padding: 0.8rem 1rem; background: var(--card); border-left: 4px solid var(--line); white-space: pre-line;
}
ul.areas { columns: 2 12rem; padding-left: 1.2rem; }

a.button { display: inline-block; background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 4px;
  text-decoration: none; margin: 0.8rem 0.6rem 0.4rem 0; }
ul.checks { list-style: none; padding: 0; }
li.check { border-left: 5px solid var(--line); background: var(--card); padding: 0.4rem 0.9rem; margin: 0.8rem 0; }
li.check.meets { border-color: #2e7d32; }
li.check.fails { border-color: #c0392b; }
li.check.unknown { border-color: #b08900; }
li.check p { margin: 0.3rem 0; }
.verdict { font-size: 1rem; }
.rule { color: var(--muted); font-size: 0.88rem; }
form.notice-form label { display: block; margin: 0.6rem 0; }
form.notice-form input, form.notice-form select { display: block; font: inherit; padding: 0.35rem; margin-top: 0.2rem;
  max-width: 100%; }
form.notice-form label.tick input { display: inline; margin-right: 0.4rem; }
.results { margin-bottom: 2rem; }

@media (min-width: 48rem) {
  h1 { font-size: 2rem; }
  .map { height: 420px; }
}
