:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5b6876;
  --line: #e4dccd;
  --brand: #0f6b63;
  --brand-soft: #dcefeb;
  --hero: #0f3d3a;
  --accent: #b03f17;
  --font: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", Candara, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.62 var(--font); }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; }
.in { max-width: 72rem; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--hero); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
nav.pills ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
nav.pills a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
nav.pills a:hover { background: var(--brand-soft); color: var(--hero); }
nav.pills a[aria-current="page"] { background: var(--brand); color: #fff; }

.hero { background: var(--hero); color: #d3e8e3; }
.hero .in { padding-top: 40px; padding-bottom: 44px; }
.hero h1 { color: #fff; font-size: clamp(1.85rem, 4.3vw, 2.75rem); line-height: 1.15; margin: 0 0 14px; max-width: 30ch; }
.hero .lead { font-size: 1.14rem; margin: 0 0 12px; max-width: 62ch; color: #d3e8e3; }
.hero .updated { font-size: .85rem; color: #9cc5bd; margin: 0; }
.hero .crumbs { font-size: .85rem; color: #9cc5bd; margin-bottom: 14px; }
.hero .crumbs a { color: #cfe6e0; }

main.content { max-width: 72rem; margin: 0 auto; padding: 36px 20px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
main.content.single { grid-template-columns: minmax(0, 46rem); }
article { min-width: 0; }
article > h2:first-child { margin-top: 0; }
h2 { font-size: 1.48rem; line-height: 1.25; color: var(--hero); margin: 42px 0 12px; }
h3 { font-size: 1.12rem; color: var(--hero); margin: 26px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 7px; }

.criteria { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: c; }
.criteria li { counter-increment: c; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; }
.criteria li::before { content: counter(c); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--hero); font-weight: 800; margin-bottom: 8px; }
.criteria strong { display: block; color: var(--hero); margin-bottom: 4px; }

ol.questions { list-style: none; padding: 0; counter-reset: q; }
ol.questions > li { counter-increment: q; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px 6px; margin-bottom: 12px; }
ol.questions h2 { font-size: 1.12rem; margin: 14px 0 6px; }
ol.questions h2::before { content: counter(q) ". "; color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 16px 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand-soft); color: var(--hero); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.source { font-size: .85rem; color: var(--muted); }
.note { background: #fff8ea; border: 1px solid #ecd9b0; border-radius: 12px; padding: 12px 16px; font-size: .94rem; }

figure { margin: 22px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px 14px; }
figure svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.c-bar { fill: var(--brand); }
.c-hi { fill: var(--accent); }
.c-label { font: 600 12px var(--font); fill: var(--ink); }
.c-val { font: 700 12px var(--font); fill: var(--hero); }
.c-axis { stroke: #b9ae9b; stroke-width: 1; }
.c-tick { font: 11px var(--font); fill: var(--muted); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--hero); padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 11px; font-size: 1.3rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 6px; }

aside.side .box { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.box-title { font-weight: 800; color: var(--hero); margin: 0 0 8px; }
ul.key { padding-left: 1.1em; font-size: .94rem; margin: 0 0 18px; }
ul.key li::marker { color: var(--accent); }
.cta { border-top: 1px solid var(--line); padding-top: 16px; }
.cta-title { font-weight: 800; color: var(--hero); margin: 0 0 6px; }
.cta p { font-size: .94rem; margin: 0 0 14px; }
.cta .btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px; }
.cta .btn:hover { background: #8f3212; color: #fff; }

footer.site { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
footer.site .in { padding-top: 24px; padding-bottom: 28px; }
footer.site p { margin: 0 0 8px; max-width: 50rem; }
footer.site a { color: var(--muted); }

@media (max-width: 900px) {
  main.content, main.content.single { grid-template-columns: minmax(0, 1fr); padding-top: 26px; }
  aside.side .box { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .in { padding-top: 28px; padding-bottom: 32px; }
  h2 { font-size: 1.3rem; }
}
