:root {
  color-scheme: light dark;
  --fg: #1c1c1c;
  --bg: #fff;
  --muted: #444;
  --line: #b5b5b5;
  --link: #0645ad;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e6e6;
    --bg: #141414;
    --muted: #c8c8c8;
    --line: #5c5c5c;
    --link: #9ec1ff;
  }
}
body {
  margin: 0.6rem 0.8rem 1.4rem;
  background: var(--bg);
  color: var(--fg);
  font: 10pt sans-serif;
}
a { color: var(--link); }
h1 { font-size: 1.25rem; margin: 0 0 0.3rem; }
.lede, .empty, .site-footer { color: var(--muted); }
#layout { display: flex; gap: 1rem; align-items: flex-start; }
#filters-container {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 16rem;
  flex: none;
  max-height: 100vh;
  overflow: auto;
}
fieldset {
  border: 1px solid var(--line);
  margin: 0 0 0.55rem;
  padding: 0.35rem 0.5rem 0.45rem;
}
legend { font-weight: 700; padding: 0 0.2rem; }
#filters label, .sources li { display: block; }
.type-group ul { list-style: none; margin: 0.2rem 0 0; padding: 0 0 0 1rem; }
.sources { list-style: none; margin: 0.2rem 0 0; padding: 0; }
.font-bold { font-weight: 700; }
.table-scroll { overflow-x: auto; }
#catalog { border-collapse: collapse; }
#catalog th, #catalog td { white-space: nowrap; text-align: left; padding: 0.12rem 0.55rem 0.12rem 0; vertical-align: top; }
#catalog .name { white-space: normal; min-width: 16rem; }
.row-report { margin-left: 0.4rem; font-size: 0.85em; }
.site-footer { margin-top: 1rem; max-width: 46rem; }
.site-footer p { margin: 0.35rem 0; }
.prose { max-width: 42rem; }
.prose h1 { margin-top: 0; }
.prose h2 { font-size: 1rem; margin: 1.1rem 0 0.3rem; }
.prose p, .prose li { line-height: 1.4; }
@media (max-width: 800px) {
  #layout { flex-direction: column; }
  #filters-container { position: static; width: auto; max-height: none; }
}
