:root {
  --text: #1c2430;
  --muted: #55606e;
  --bg: #ffffff;
  --soft: #f3f6f9;
  --line: #d9e0e7;
  --accent: #0b5d7a;
  --accent-dark: #084459;
  --note: #fff7e0;
  --note-line: #e8c55a;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6ebf0;
    --muted: #a7b2bf;
    --bg: #11161c;
    --soft: #1a222b;
    --line: #2c3743;
    --accent: #6cc3e0;
    --accent-dark: #9bd8ec;
    --note: #2a2414;
    --note-line: #8a7230;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1.125rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
header.site { border-bottom: 1px solid var(--line); background: var(--soft); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: 1rem; }
nav.main a { text-decoration: none; }
nav.main a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
main { padding: 1.5rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.2rem 0 .7rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.breadcrumb { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 .45rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.facts li { background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; padding: .9rem 1rem; }
.facts strong { display: block; font-size: 1.35rem; color: var(--accent); }
.note { background: var(--note); border-left: 4px solid var(--note-line); padding: .8rem 1rem; border-radius: .25rem; margin: 1.5rem 0; }
.stand { font-size: .95rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 1rem; }
th, td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--soft); }
.ok { color: #1f7a3a; }
.no { color: #a32121; }
@media (prefers-color-scheme: dark) { .ok { color: #7fd69a; } .no { color: #f09a9a; } }
details { border: 1px solid var(--line); border-radius: .4rem; padding: .6rem 1rem; margin: .6rem 0; }
details[open] { background: var(--soft); }
summary { cursor: pointer; font-weight: 600; }
form.calc { background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem 1.2rem; }
form.calc label { display: block; font-weight: 600; margin-top: .8rem; }
form.calc input { font: inherit; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: .3rem; width: 100%; max-width: 16rem; background: var(--bg); color: var(--text); }
form.calc button { font: inherit; margin-top: 1rem; padding: .5rem 1.1rem; border: 0; border-radius: .3rem; background: var(--accent); color: #fff; cursor: pointer; }
@media (prefers-color-scheme: dark) { form.calc button { color: #0b1a20; } }
#result { margin-top: 1.2rem; }
#result:empty { display: none; }
.sources li { margin: .3rem 0; }
footer.site { border-top: 1px solid var(--line); background: var(--soft); font-size: .95rem; color: var(--muted); padding: 1.5rem 0 2rem; }
footer.site ul { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
