:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #1d2a24;
  --muted: #55645c;
  --line: #dfe4dc;
  --brand: #1f5c3f;
  --brand-soft: #e7efe9;
  --accent: #9a6a16;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.68 var(--sans); }
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; }

header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { max-width: 68rem; margin: 0 auto; padding: 14px 20px; }
header.site .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.28rem/1.2 var(--serif); }
.brand svg { width: 32px; height: 32px; flex: none; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; }
nav.main a { display: inline-block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .95rem; border-bottom: 2px solid transparent; }
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

main { padding: 38px 0 60px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 20px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.22; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); margin: 0 0 18px; }
h2 { font-size: 1.55rem; margin: 48px 0 14px; }
h2::before { content: ""; display: block; width: 38px; height: 3px; background: var(--accent); margin-bottom: 14px; }
h3 { font-size: 1.2rem; margin: 30px 0 8px; }
.lead { font-size: 1.17rem; color: #2e3e35; margin: 0 0 10px; }
.updated { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 7px; }
li::marker { color: var(--accent); }
strong { color: #13201a; }

.table-wrap { overflow-x: auto; margin: 18px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
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); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.source { font-size: .85rem; color: var(--muted); }

figure { margin: 26px 0; }
figure svg { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.d-box { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; }
.d-dark { fill: var(--brand); }
.d-out { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.5; }
.d-t { font: 600 15px var(--sans); fill: var(--ink); }
.d-s { font: 13px var(--sans); fill: var(--muted); }
.d-on-dark { fill: #f3f8f4; }
.d-arrow { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-plus { font: 700 22px var(--sans); fill: var(--accent); }

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

.cta { margin: 52px 0 0; padding: 26px 26px 24px; border-radius: 14px; background: var(--brand); color: #e6f0e9; }
.cta h2 { color: #fff; margin: 0 0 8px; font-size: 1.35rem; }
.cta h2::before { display: none; }
.cta p { margin: 0 0 18px; }
.cta .btn { display: inline-block; background: #fff; color: var(--brand); font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 999px; }
.cta .btn:hover { background: #f4ecdb; color: var(--brand); }

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

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding-top: 24px; }
  h2 { font-size: 1.35rem; margin-top: 40px; }
  .cta { padding: 22px 20px; }
}
