:root {
  color-scheme: light;
  --ink: #18251e;
  --muted: #718078;
  --green: #397550;
  --green-dark: #285e3c;
  --mint: #a8ddb6;
  --pale: #f1f7f2;
  --line: #e4ece6;
  --page: #f8faf8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -15%, #e8f3eb 0, transparent 39rem), var(--page);
  color: var(--ink);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.document { width: min(100% - 48px, 820px); margin: 0 auto; padding: 34px 0 76px; }
.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
  padding: 0 0 19px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 13px; font-weight: 850; letter-spacing: .14em; text-decoration: none; }
.brand::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #e8f4eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M4 16h4v16H4zM10 10h5v28h-5zM15 21h18v6H15zM33 10h5v28h-5zM40 16h4v16h-4z' fill='%23397550'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.doc-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e8eee9;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 24px rgba(28, 55, 38, .04);
}
.doc-nav a { padding: 9px 15px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease; }
.doc-nav a:hover { color: var(--green-dark); transform: translateY(-1px); }
.doc-nav a[aria-current="page"] { background: #eaf4ec; color: var(--green-dark); }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 740px; margin: 0; font-size: clamp(34px, 6vw, 50px); line-height: 1.08; letter-spacing: -.045em; }
.lead { max-width: 710px; margin: 18px 0 32px; color: var(--muted); font-size: 18px; line-height: 1.6; }
section {
  position: relative;
  margin: 13px 0;
  padding: 23px 27px 24px;
  overflow: hidden;
  border: 1px solid rgba(222, 234, 225, .95);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 9px 28px rgba(24, 48, 33, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
section:hover { border-color: #d2e4d7; box-shadow: 0 14px 34px rgba(24, 48, 33, .065); transform: translateY(-1px); }
section::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, var(--mint), #dff0e3); content: ""; }
h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.4; letter-spacing: -.025em; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
ul { margin: 9px 0 13px; padding-left: 22px; }
li { margin: 6px 0; padding-left: 3px; }
li::marker { color: #77a486; }
a { color: var(--green-dark); font-weight: 700; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #a8ddb6; outline-offset: 3px; border-radius: 5px; }
.doc-nav a { color: var(--muted); }
.doc-nav a[aria-current="page"] { color: var(--green-dark); }
.back { margin: 25px 4px; font-weight: 700; }
footer { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .document { width: min(100% - 32px, 820px); padding: 22px 0 48px; }
  .doc-top { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 34px; }
  .doc-nav { width: 100%; }
  .doc-nav a { flex: 1; padding: 9px 10px; text-align: center; }
  h1 { font-size: clamp(32px, 10vw, 43px); }
  .lead { margin: 15px 0 25px; font-size: 16px; }
  section { margin: 10px 0; padding: 19px 19px 20px; border-radius: 16px; }
  h2 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
