:root {
  color-scheme: light dark;
  --text: #1b1f24;
  --muted: #4d5661;
  --line: #c9d0d8;
  --band: #f3f5f7;
  --note: #fff6d6;
  --note-line: #b98a00;
  --bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e9ed;
    --muted: #a9b2bd;
    --line: #3b434d;
    --band: #1c2128;
    --note: #332a0a;
    --note-line: #d9a514;
    --bg: #12161b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

header,
main,
footer {
  max-width: 60rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.35rem;
}

.checked {
  color: var(--muted);
  font-weight: 600;
}

.answer {
  padding: 1rem 1.1rem;
  border-left: 0.3rem solid var(--text);
  background: var(--band);
}

.note {
  padding: 0.85rem 1.1rem;
  border-left: 0.3rem solid var(--note-line);
  background: var(--note);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}

.own-product {
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--band);
}

.own-product p {
  margin: 0;
}

.own-product a {
  color: inherit;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  padding-bottom: 0.5rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  vertical-align: top;
}

thead th {
  background: var(--band);
  text-align: center;
}

tbody th {
  text-align: left;
  font-weight: 600;
  min-width: 13rem;
}

tbody th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

td {
  text-align: right;
  white-space: nowrap;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.sources {
  list-style: none;
  padding-left: 0;
}

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
