:root {
  --ink: #1f1d1a;
  --muted: #5d584f;
  --line: #d8d3c8;
  --soft: #f4f1ea;
  --panel: #f2efe8;
  --link: #1d4e89;
  --red: #c23b4b;
  --blue: #2e86ab;
  --paper: #ffffff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.62 "PT Serif", Georgia, "Times New Roman", serif;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.wrap { width: min(100% - 32px, 820px); margin-inline: auto; }
.wide { width: min(100% - 32px, 1040px); margin-inline: auto; }

header.site {
  border-bottom: 1px solid var(--line);
  font: 15px/1.4 "PT Sans", system-ui, sans-serif;
}
header.site .wrap, header.site .wide { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding: 16px 0 14px; }
header.site .brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; margin-right: 8px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--ink); }
header.site nav a:hover { color: var(--ink); }

main { padding: 36px 0 56px; }
h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.01em; }
h2 { font-size: 25px; line-height: 1.25; margin: 42px 0 12px; }
h3 { font: 700 18px/1.4 "PT Sans", system-ui, sans-serif; margin: 26px 0 8px; }
p { margin: 0 0 15px; }
.lead { font-size: 20px; color: #2b2925; }
.kicker { font: 600 13px/1.4 "PT Sans", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.meta { font: 14px/1.5 "PT Sans", system-ui, sans-serif; color: var(--muted); }
ul, ol { padding-left: 1.3em; margin: 0 0 15px; }
li { margin: 4px 0; }
code, .mono { font: 15px/1.5 "PT Mono", ui-monospace, Menlo, monospace; }
sub, sup { font-size: 70%; }

/* structure of a report: goal / setup / result / conclusion */
.block { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 34px; }
.block > .label { font: 700 13px/1.4 "PT Sans", system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
.conclusion { background: var(--panel); border-left: 4px solid var(--ink); padding: 14px 18px 4px; margin: 22px 0; }
.conclusion .label { font: 700 13px/1.4 "PT Sans", system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 6px; }
.note { font: 15px/1.55 "PT Sans", system-ui, sans-serif; color: var(--muted); }

/* key numbers */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 22px 0 26px; }
.facts div { padding: 12px 14px 12px 0; }
.facts b { display: block; font: 700 26px/1.15 "PT Serif", Georgia, serif; }
.facts span { font: 14px/1.4 "PT Sans", system-ui, sans-serif; color: var(--muted); }

/* sections list on the home page */
.sections { list-style: none; padding: 0; margin: 18px 0 0; }
.sections li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
.sections li:last-child { border-bottom: 1px solid var(--line); }
.sections img { width: 150px; height: 150px; object-fit: contain; }
.sections h2 { margin: 0 0 6px; font-size: 22px; }
.sections h2 a { color: var(--ink); text-decoration: none; }
.sections h2 a:hover { text-decoration: underline; }
.sections p { margin: 0 0 6px; }
@media (max-width: 560px) {
  .sections li { grid-template-columns: 1fr; gap: 8px; }
  .sections img { width: 120px; height: 120px; }
}

/* figures and tables */
figure { margin: 22px 0 26px; }
figure img, figure svg { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; }
figure.narrow img { width: auto; max-width: min(100%, 560px); }
figcaption { font: 15px/1.5 "PT Sans", system-ui, sans-serif; color: var(--muted); margin-top: 8px; }
figcaption b { color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 16px 0 22px; }
table { border-collapse: collapse; font: 15px/1.45 "PT Sans", system-ui, sans-serif; min-width: 100%; }
caption { caption-side: top; text-align: left; font: 15px/1.5 "PT Sans", system-ui, sans-serif; color: var(--muted); padding-bottom: 6px; }
thead th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-weight: 700; text-align: right; padding: 6px 10px; white-space: nowrap; }
tbody td { padding: 5px 10px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
td.good { color: #1e6b3a; font-weight: 700; }
td.bad { color: var(--red); }

/* legend chips */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 14px/1.4 "PT Sans", system-ui, sans-serif; color: var(--muted); }
.legend i { display: inline-block; width: 13px; height: 13px; border: 1px solid #8a8578; vertical-align: -2px; margin-right: 5px; }

/* atlas */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.atlas svg { width: 100%; height: auto; max-width: 620px; }
.atlas .panel { font: 15px/1.5 "PT Sans", system-ui, sans-serif; }
.atlas .panel label { display: block; font-weight: 700; margin-bottom: 4px; }
.atlas input[type=range] { width: 100%; }
.atlas .nbox { display: flex; gap: 8px; align-items: center; margin: 6px 0 14px; }
.atlas .nbox input[type=number] { width: 90px; font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 3px; }
.atlas .nbox button { font: inherit; border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 3px 10px; cursor: pointer; }
.atlas dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 12px; }
.atlas dt { color: var(--muted); }
.atlas dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .atlas { grid-template-columns: 1fr; } }

footer.site { border-top: 1px solid var(--line); font: 14px/1.6 "PT Sans", system-ui, sans-serif; color: var(--muted); }
footer.site .wrap { padding: 18px 0 30px; }
table.text td, table.text th { white-space: normal; text-align: left; vertical-align: top; }
table.text td:first-child { white-space: nowrap; padding-right: 14px; }
