:root {
  --blue: oklch(0.545 0.248 262);
  --blue-dark: oklch(0.48 0.225 262);
  --blue-soft: oklch(0.965 0.028 262);
  --ink: oklch(0.145 0.032 265);
  --ink-soft: oklch(0.5 0.036 265);
  --muted: oklch(0.565 0.052 265);
  --paper: oklch(0.995 0.002 265);
  --band: oklch(0.977 0.005 265);
  --line: oklch(0.945 0.008 265);
  --font-heading: 'Plus Jakarta Sans', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 41, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .nav { background: rgba(11, 16, 41, 0.98); }
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.brand-text { line-height: 1; display: block; }
.brand-top { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: #fff; }
.brand-sub {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: oklch(0.865 0.095 262); margin-top: 3px;
}

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.nav-cta {
  margin-left: 8px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 16px !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 18px 16px 40px; }

.crumbs { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--blue); }
.crumbs span[aria-current] { color: var(--ink-soft); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

article { min-width: 0; max-width: 800px; }

h1 { font-size: 30px; font-weight: 800; color: var(--ink); }
.lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: oklch(0.4 0.046 265);
}

.meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-soft);
  color: oklch(0.415 0.195 262);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
}

figure { margin: 20px 0 0; }
figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
figcaption { margin-top: 6px; font-size: 11.5px; color: var(--muted); }

h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

h3 { font-size: 15.5px; font-weight: 800; margin: 18px 0 6px; }

p { margin: 10px 0; font-size: 14.5px; }
ul, ol { margin: 10px 0; padding-left: 20px; font-size: 14.5px; }
li { margin: 5px 0; }
strong { font-weight: 800; }

.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--paper); }
th, td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
th { background: var(--band); font-family: var(--font-heading); font-weight: 800; font-size: 12px; }

.callout {
  margin: 16px 0;
  border: 1px solid oklch(0.865 0.095 262);
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13.5px;
}
.callout p { margin: 4px 0; font-size: 13.5px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 8px; padding: 11px 18px;
  font-size: 13.5px; font-weight: 700; font-family: var(--font-body);
  white-space: nowrap; text-decoration: none;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; border-color: oklch(0.9 0.012 265); color: var(--ink); }
.btn-ghost:hover { border-color: oklch(0.785 0.145 262); color: var(--blue); }

.related {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--band);
  border-radius: 10px;
  padding: 14px 16px;
}
.related h2 { border: 0; margin: 0 0 8px; font-size: 15px; padding: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 6px 0; font-size: 13.5px; }
.related a { font-weight: 600; }

.pager {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pager a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
}
.pager a:hover { border-color: oklch(0.785 0.145 262); color: var(--blue); text-decoration: none; }
.pager .dir { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.pager .next { text-align: right; }

.toc {
  position: sticky;
  top: 84px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
}
.toc h2 { border: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; padding: 0; }
.toc ol { margin: 0; padding-left: 16px; }
.toc li { margin: 5px 0; font-size: 12.5px; line-height: 1.45; }
.toc a { color: oklch(0.4 0.046 265); }
.toc a:hover { color: var(--blue); }
.toc .home-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; }

.foot {
  border-top: 1px solid var(--line);
  background: var(--band);
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.foot-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.foot-inner a { color: oklch(0.4 0.046 265); font-weight: 600; }

.home-cta {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 18px; }
  .toc { position: static; order: 2; }
  h1 { font-size: 23px; }
  h2 { font-size: 18px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  figure img { height: 220px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}