:root {
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #526277;
  --line: #e2e8f0;
  --paper: #f4f7fb;
  --white: #ffffff;
  --teal: #0f766e;
  --grad: linear-gradient(100deg, #0f766e 0%, #16a34a 46%, #2563eb 100%);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 2000;
}
.skip:focus { top: 12px; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.brand-stripe { height: 4px; background: var(--grad); }

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.menu a:hover { color: var(--teal); }
.menu a.btn-primary,
.menu a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle > span,
.nav-toggle > span::before,
.nav-toggle > span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.nav-toggle > span::before,
.nav-toggle > span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle > span::before { top: -6px; }
.nav-toggle > span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #fff; }

.doc {
  padding: 48px 0 72px;
}
.doc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.kicker {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.updated { color: var(--muted); margin-bottom: 22px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.related a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 6px 12px;
}
.related a[aria-current="page"] { background: #ccfbf1; color: #115e59; }

.doc h2 {
  color: var(--ink);
  font-size: 1.25rem;
  margin: 28px 0 8px;
}
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul.bullets { margin: 10px 0 0 1.2rem; }
.doc ul.bullets { list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc a { font-weight: 600; }

footer {
  background: #020617;
  color: #cbd5e1;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
footer h3 { color: #fff; margin: 0 0 12px; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: #fff; }
footer li + li { margin-top: 8px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 14px; }
.copyright { margin-top: 28px; font-size: 14px; color: #94a3b8; }

:focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 10px 8px; }
  .brand img { height: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
