:root {
  --ink: #1c2333;
  --muted: #5b6475;
  --line: #e2e0da;
  --bg: #faf8f4;
  --card: #ffffff;
  --accent: #c8402a;
  --accent-ink: #ffffff;
  --good: #1f7a4d;
  --warn: #9a5b00;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--accent); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 18px; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }

main { padding: 36px 0 56px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 36px 0 10px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; max-width: 62ch; }

.disclosure {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding: 2px 0 2px 12px;
  margin: 0 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
a.tile { display: block; text-decoration: none; color: inherit; }
a.tile:hover { border-color: var(--accent); }
a.tile p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tag { display: inline-block; font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin-bottom: 8px; }

label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0 0 6px; }
select, input[type="number"] {
  width: 100%;
  font: inherit;
  padding: 9px 10px;
  border: 1px solid #c9c6bd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.check input { width: 18px; height: 18px; }

button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
button.ghost { background: transparent; color: var(--muted); padding: 4px 8px; font-weight: 400; }
button.ghost:hover { color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #f0b3a6; outline-offset: 2px; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); font-style: italic; }

.verdict { border-left: 5px solid var(--muted); }
.verdict.yes { border-left-color: var(--good); }
.verdict.no { border-left-color: var(--warn); }
.verdict .headline { font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; }
.verdict.yes .headline { color: var(--good); }
.verdict.no .headline { color: var(--warn); }
.figures { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 14px 0; }
.figure { background: var(--bg); border-radius: 8px; padding: 12px; }
.figure .k { font-size: 0.8rem; color: var(--muted); }
.figure .v { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.figure .s { font-size: 0.85rem; color: var(--muted); }

.note { font-size: 0.88rem; color: var(--muted); }
.note li { margin-bottom: 4px; }

fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.opts { display: grid; gap: 8px; }
.opts label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; cursor: pointer; margin: 0; }
.opts label:has(input:checked) { border-color: var(--accent); background: #fdf3f0; }
.opts input { margin-top: 4px; }

.pill { display: inline-block; font-size: 0.78rem; border-radius: 999px; padding: 1px 9px; background: var(--bg); border: 1px solid var(--line); margin: 0 6px 6px 0; }
.rank { font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 0.88rem; }
footer.site a { color: var(--muted); }
