:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2421;
  --muted: #5f665f;
  --line: #e6e3dc;
  --accent: var(--site-accent);
  --accent-soft: color-mix(in srgb, var(--site-accent) 9%, transparent);
  --radius: 14px;
  --measure: 42rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141615;
    --surface: #1b1e1c;
    --text: #e9ebe8;
    --muted: #a3aaa4;
    --line: #2c302d;
    --accent: var(--site-accent-dark);
    --accent-soft: color-mix(in srgb, var(--site-accent-dark) 12%, transparent);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--measure); margin: 0 auto; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand span { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.2; }
nav.main { display: flex; gap: 18px; font-size: 0.95rem; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 64px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 14px; }
h2 { font-size: 1.45rem; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
p, ul, ol { margin: 0 0 1.05em; }
li { margin: 0.25em 0; }
img { max-width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.95rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
blockquote { margin: 1.2em 0; padding: 0.2em 1em; border-left: 3px solid var(--accent); color: var(--muted); }

.hero { padding: 8px 0 28px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 40rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card h2 { font-size: 1.12rem; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card time { font-size: 0.82rem; color: var(--muted); }

.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 26px; }
.answer { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 28px; }
.answer strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.answer p { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 30px; background: var(--surface); font-size: 0.95rem; }
.toc strong { font-size: 0.85rem; color: var(--muted); }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.products { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 34px 0; background: var(--surface); }
.products .label { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.products ul { margin: 6px 0 4px; padding-left: 1.1em; }
.products small { color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; }
.sources { font-size: 0.9rem; color: var(--muted); }
.sources ol { padding-left: 1.2em; }
.related { margin-top: 44px; }
.related .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

footer.site { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0 34px; font-size: 0.9rem; color: var(--muted); }
footer.site p { margin: 0 0 8px; max-width: 46rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding-top: 28px; }
  nav.main { gap: 14px; }
}
