/* Todisteliite (evidence file) — hosted at /r/<token>/aineisto.html.
   Same palette family as report.css, lighter chrome: this is a records page. */
:root {
  color-scheme: light;
  --page: #f6f8f7; --surface: #fcfcfa; --ink: #14262e; --ink-soft: #435a64;
  --muted: #6c8088; --line: #d8e1df; --accent: #1f6b7d; --accent-soft: #e3edeb;
  --hit: #2f7d43; --hit-bg: #e8f3ec; --mark: #f5e5bd;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0e181d; --surface: #142127; --ink: #e6eef0; --ink-soft: #a7bcc3;
  --muted: #7f959d; --line: #24343b; --accent: #6fb3c2; --accent-soft: #1b3038;
  --hit: #7ec695; --hit-bg: #17301f; --mark: #5d4d1e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --page: #0e181d; --surface: #142127; --ink: #e6eef0; --ink-soft: #a7bcc3;
    --muted: #7f959d; --line: #24343b; --accent: #6fb3c2; --accent-soft: #1b3038;
    --hit: #7ec695; --hit-bg: #17301f; --mark: #5d4d1e;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--page); }
body { font-family: var(--sans); color: var(--ink); line-height: 1.55; font-size: .95rem; }
a { color: var(--accent); }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  justify-content: space-between; padding: .7rem 1.2rem; background: var(--surface);
  border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: .04em; font-size: .9rem; color: var(--ink);
  text-decoration: none; white-space: nowrap; }
.brand span { color: #b98a2e; }
.bar-meta { font-size: .78rem; color: var(--muted); text-align: right; }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.6rem;
  max-width: 1200px; margin: 0 auto; padding: 1.4rem 1.2rem 3rem; }
.toc { position: sticky; top: 3.4rem; align-self: start; max-height: calc(100vh - 4.4rem);
  overflow-y: auto; font-size: .82rem; padding-right: .4rem; }
.toc strong { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem; }
.toc > a { display: block; padding: .22rem 0; text-decoration: none; color: var(--ink-soft); }
.toc > a:hover { color: var(--accent); }
.toc ol { list-style: none; margin: .2rem 0 .6rem; border-left: 2px solid var(--line); }
.toc ol a { display: inline-block; padding: .16rem 0 .16rem .6rem; color: var(--muted);
  text-decoration: none; max-width: 22ch; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle; }
.toc ol a:hover { color: var(--accent); }
.hit-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--hit); vertical-align: middle; }
.backlink { margin-top: .8rem; font-weight: 600; }
main h1 { font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: .4rem; }
main h2 { font-size: 1.05rem; margin: 2rem 0 .7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
main h3 { font-size: .92rem; margin: 1.2rem 0 .5rem; }
.soft { color: var(--muted); font-size: .85rem; max-width: 72ch; }
.cards { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.cards div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem 1rem; min-width: 7.5rem; }
.cards b { display: block; font-size: 1.3rem; }
.cards span { font-size: .75rem; color: var(--muted); }
.proto { font-size: .82rem; color: var(--ink-soft); background: var(--accent-soft);
  border-radius: 8px; padding: .6rem .8rem; margin: .8rem 0; max-width: 80ch; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .6rem 0 1rem; }
.filter-bar button { font: inherit; font-size: .78rem; padding: .32rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.filter-bar button.active, .filter-bar button[aria-pressed="true"] { background: var(--accent);
  border-color: var(--accent); color: #fff; }
.query-block { margin: 1rem 0 1.3rem; }
.query-block h3 { display: flex; gap: .5rem; align-items: baseline; }
.qno { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.query-block[hidden] { display: none; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  margin: .4rem 0; overflow: hidden; }
details[hidden] { display: none; }
details summary { cursor: pointer; padding: .55rem .8rem; font-size: .82rem; color: var(--ink-soft); }
details[data-mentioned="1"] summary { background: var(--hit-bg); }
details[open] summary { border-bottom: 1px solid var(--line); }
pre { white-space: pre-wrap; word-wrap: break-word; font-family: var(--mono); font-size: .78rem; }
#jsonld pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; }
details pre { padding: .8rem; max-height: 30rem; overflow-y: auto; }
.copy-answer { font: inherit; font-size: .74rem; margin: 0 .8rem .7rem; padding: .28rem .7rem;
  border-radius: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); cursor: pointer; }
.copy-answer:hover { border-color: var(--accent); color: var(--accent); }
.table-wrap { overflow-x: auto; margin: .5rem 0 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th { text-align: left; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: .4rem .5rem; border-bottom: 1.5px solid var(--line); }
td { padding: .35rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td a { text-decoration: none; word-break: break-all; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
mark { background: var(--mark); }
footer { margin-top: 2.5rem; font-size: .78rem; color: var(--muted); }
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); padding-top: 1rem; }
  .toc ol a { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
