:root {
  color-scheme: light;
  --ink: #0a251c;
  --muted: #50635c;
  --line: #dce7e2;
  --soft: #f3f8f5;
  --accent: #14745b;
  --accent-strong: #0d5945;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 231, 226, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; }

.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 650; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0%, rgba(20, 116, 91, .12), transparent 32%),
    linear-gradient(180deg, #f8fcfa 0%, #fff 100%);
}

.hero-inner, .layout, .related, .site-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner { padding: 72px 0 64px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.breadcrumbs { margin-bottom: 24px; color: #6b7f77; font-size: 13px; }
.breadcrumbs a { color: #536c63; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.03em; }
h1 { max-width: 840px; margin: 0; font-size: clamp(36px, 6vw, 64px); }
h2 { margin: 48px 0 16px; font-size: clamp(26px, 4vw, 36px); }
h3 { margin: 32px 0 10px; font-size: 21px; }

.lede { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); }
.updated { margin: 20px 0 0; color: #72857e; font-size: 13px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 68px;
  padding: 56px 0 80px;
}

article { min-width: 0; }
article p, article li { color: #293e36; font-size: 16px; }
article li + li { margin-top: 8px; }
article ul, article ol { padding-left: 24px; }

.answer-box, .note, .checklist {
  margin: 0 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.answer-box strong, .note strong { color: var(--ink); }
.answer-box p, .note p { margin: 0; }

.step {
  margin: 22px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #fbfdfc;
}
.step h3 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin: 24px 0 36px; font-size: 15px; }
th, td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }

.toc {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent); }

.related { padding: 0 0 80px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
}
.related-card:hover { border-color: #99bbae; box-shadow: 0 12px 30px rgba(10, 37, 28, .07); }
.related-card strong { display: block; margin-bottom: 8px; }
.related-card span { color: var(--muted); font-size: 14px; }

.cta { padding: 42px; border-radius: 24px; background: var(--ink); color: #fff; }
.cta h2 { margin-top: 0; color: #fff; }
.cta p { color: rgba(255,255,255,.78); }
.cta .button { background: #fff; color: var(--ink) !important; }

.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item h2 { margin: 0 0 10px; font-size: 21px; }
.faq-item p { margin: 0; }

.sources {
  padding: 20px 22px 20px 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdfc;
}

.sources a { font-weight: 650; }

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: radial-gradient(circle at 80% 10%, rgba(0, 205, 255, .15), transparent 34%), var(--soft);
}

.error-card {
  width: min(620px, 100%);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 37, 28, .1);
}

.error-code { margin: 44px 0 4px; color: var(--accent); font-size: 18px; font-weight: 800; letter-spacing: .18em; }
.error-card h1 { font-size: clamp(38px, 7vw, 64px); }
.error-card > p:not(.error-code) { color: var(--muted); }
.error-actions { margin-top: 28px; display: flex; align-items: center; gap: 20px; }

.site-footer { border-top: 1px solid var(--line); background: #f9fbfa; }
.site-footer-inner { padding: 30px 0; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .nav-links a:not(.button) { display: none; }
  .hero-inner { padding: 48px 0; }
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
  .toc { position: static; grid-row: 1; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer-inner { flex-direction: column; }
  .cta { padding: 28px 22px; }
}
