:root {
  --accent: #1a5f7a;
  --text: #1a1a1a;
  --muted: #4d565c;
  --bg: #ffffff;
  --row-alt: #f4f6f7;
  --border: #d5dadd;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
main { max-width: 960px; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.6rem; margin: 1rem 0 0.25rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }
.lede { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 0.85rem; }

form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 1rem 0; }
label { font-size: 0.9rem; font-weight: 600; display: block; }
input[type="search"], select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}
input[type="search"] { flex: 1 1 16rem; }
input:focus-visible, select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

button {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

#result-count { color: var(--muted); font-size: 0.9rem; min-height: 1.2em; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th { border-bottom: 2px solid var(--text); }
tbody tr:nth-child(even) { background: var(--row-alt); }

.version {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 0.3rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  white-space: nowrap;
}
.badge-official { background: #e7f2ea; }
.badge-cross { background: #fbf0dc; }
.badge-incomplete { background: #eef0f1; }
.badge-conflict { background: #f9e8e8; }

a { color: var(--accent); }
td ul.sources { margin: 0; padding-left: 1rem; }
footer { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 0.5rem; }
