:root {
  --ink: #102322;
  --ink-soft: #385250;
  --muted: #6b7d7b;
  --brand: #0d9488;
  --brand-dark: #08766d;
  --brand-deep: #071d1c;
  --brand-pale: #e8f7f4;
  --line: #dce7e5;
  --line-strong: #bfd1ce;
  --surface: #ffffff;
  --surface-soft: #f5f9f8;
  --surface-warm: #fbfcfa;
  --code: #0b201f;
  --shadow-sm: 0 1px 2px rgba(7, 29, 28, .05), 0 4px 16px rgba(7, 29, 28, .04);
  --shadow-lg: 0 24px 80px rgba(7, 29, 28, .18);
  --radius: 14px;
  --topbar: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 24px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font: 16px/1.68 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #2dd4bf; outline-offset: 3px; border-radius: 4px; }
.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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; color: #fff; background: var(--brand-deep); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(191, 209, 206, .8);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--brand); font-size: 15px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.brand__word { font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.brand__word span { color: var(--brand); }
.brand__docs { margin-left: 2px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; font-weight: 650; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a, .top-link { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.topnav a:hover, .top-link:hover { color: var(--brand-dark); }
.top-search {
  margin-left: auto;
  width: min(270px, 26vw);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.top-search:hover { border-color: var(--line-strong); background: #fff; }
.top-search kbd, .hero-search kbd { margin-left: auto; padding: 2px 7px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; box-shadow: 0 1px 0 var(--line); }
.top-link { margin-left: 2px; }
.menu-button, .sidebar__header { display: none; }

.site-layout {
  width: min(100%, 1510px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px minmax(540px, 780px) 230px;
  justify-content: center;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: var(--topbar);
  height: calc(100vh - var(--topbar));
  overflow-y: auto;
  padding: 28px 22px 48px 28px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.side-overview { padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.nav-group { margin-top: 22px; }
.nav-group__label { margin: 0 10px 8px; color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.nav-link { display: block; min-height: 40px; padding: 9px 10px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: 14px; line-height: 22px; }
.nav-link:hover { color: var(--ink); background: var(--surface-soft); }
.nav-link--active { color: var(--brand-dark); background: var(--brand-pale); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.nav-scrim { display: none; }

.article-main { min-width: 0; padding: 44px 56px 88px; }
.article-breadcrumb { display: flex; gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
.article-breadcrumb a { color: var(--brand-dark); text-decoration: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 34px; color: var(--muted); font-size: 12px; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta span + span::before { content: "·"; margin-right: 3px; color: var(--line-strong); }
.doc-content { min-width: 0; }
.doc-content > h1:first-child { margin: 0 0 18px; max-width: 680px; font-size: clamp(2.25rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.048em; }
.doc-content > h1:first-child + p { margin-top: 0; color: var(--ink-soft); font-size: 19px; line-height: 1.62; }
.doc-content h2 { margin: 54px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
.doc-content h3 { margin: 36px 0 12px; font-size: 19px; line-height: 1.35; letter-spacing: -.012em; }
.doc-content h4 { margin: 26px 0 10px; font-size: 16px; }
.doc-content p, .doc-content ul, .doc-content ol { margin: 0 0 20px; }
.doc-content li { margin: 7px 0; padding-left: 3px; }
.doc-content li::marker { color: var(--brand); font-weight: 700; }
.doc-content strong { color: var(--ink); }
.doc-content img { display: block; max-width: 100%; height: auto; margin: 30px 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.doc-content code { padding: .15em .38em; color: #075f59; background: #eef8f6; border: 1px solid #d6eeea; border-radius: 5px; font: .88em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.doc-content pre { position: relative; margin: 26px 0; padding: 22px; overflow-x: auto; color: #d8efeb; background: var(--code); border: 1px solid #173b38; border-radius: 12px; box-shadow: var(--shadow-sm); }
.doc-content pre code { padding: 0; color: inherit; background: transparent; border: 0; overflow-wrap: normal; }
.copy-code { position: absolute; top: 10px; right: 10px; min-height: 34px; padding: 5px 9px; color: #bad4d0; background: #163532; border: 1px solid #2b504c; border-radius: 7px; font-size: 11px; cursor: pointer; }
.copy-code:hover { color: #fff; }
.doc-content blockquote { margin: 28px 0; padding: 18px 20px; color: var(--ink-soft); background: var(--brand-pale); border: 1px solid #cceae5; border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; }
.doc-content blockquote p:last-child { margin-bottom: 0; }
.doc-content table { display: block; width: 100%; margin: 26px 0; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.doc-content th, .doc-content td { min-width: 130px; padding: 12px 14px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.doc-content th { color: var(--ink); background: var(--surface-soft); font-size: 12px; letter-spacing: .02em; }
.doc-content hr { margin: 54px 0 28px; border: 0; border-top: 1px solid var(--line); }

.toc { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); padding: 42px 24px 40px; overflow-y: auto; border-left: 1px solid var(--line); }
.toc__inner > h2 { margin: 0 0 13px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.toc nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link { padding: 6px 0 6px 11px; color: var(--muted); border-left: 1px solid var(--line); text-decoration: none; font-size: 12px; line-height: 1.45; }
.toc-link:hover, .toc-link--active { color: var(--brand-dark); border-left-color: var(--brand); }
.toc-link--active { font-weight: 700; }
.toc-link--nested { padding-left: 21px; }
.toc-empty { color: var(--muted); font-size: 12px; }
.support-card { display: flex; flex-direction: column; gap: 7px; margin-top: 28px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.support-card span { color: var(--muted); }
.support-card a { text-decoration: none; font-weight: 700; }

.article-feedback { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding: 22px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; }
.article-feedback div { display: flex; flex-direction: column; }
.article-feedback span { color: var(--muted); font-size: 13px; }
.article-feedback a { padding: 8px 12px; white-space: nowrap; text-decoration: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; font-weight: 700; }
.feedback-actions { display: flex; align-items: center; flex-direction: row !important; flex-wrap: wrap; gap: 8px; }
.feedback-actions button { min-height: 38px; padding: 8px 12px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.feedback-actions button:hover, .feedback-actions button:focus-visible, .article-feedback a:hover, .article-feedback a:focus-visible { color: var(--brand-dark); border-color: var(--brand); }
.feedback-actions button:disabled { cursor: default; opacity: .55; }
.feedback-thanks { flex-basis: 100%; margin-top: 4px; color: var(--muted); font-size: 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.pager-card { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 11px; }
.pager-card:hover { border-color: #a9d8d2; background: var(--surface-soft); }
.pager-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pager-card strong { margin-top: 5px; font-size: 14px; }

.home-page { background: var(--surface-warm); }
.home-page .site-layout { display: block; width: 100%; max-width: none; }
.home-main { min-width: 0; }
.home-hero { position: relative; overflow: hidden; padding: 100px max(28px, calc((100vw - 1180px) / 2)) 88px; color: #fff; background: var(--brand-deep); }
.home-hero::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(45,212,191,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(45,212,191,.06) 1px, transparent 1px), radial-gradient(circle at 78% 20%, rgba(13,148,136,.5), transparent 36%); background-size: 56px 56px, 56px 56px, auto; }
.home-hero > * { position: relative; }
.eyebrow { margin: 0 0 10px !important; color: var(--brand); font-size: 12px !important; line-height: 1.4 !important; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.home-hero .eyebrow { color: #5eead4; }
.home-hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.4rem, 7vw, 6.7rem); line-height: .96; letter-spacing: -.07em; }
.home-hero h1 span { color: #5eead4; }
.home-hero__lead { max-width: 690px; margin: 30px 0 36px; color: #bad0cd; font-size: 20px; line-height: 1.6; }
.hero-search { width: min(610px, 100%); min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 0 15px 0 18px; color: #718a87; background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; text-align: left; cursor: pointer; box-shadow: 0 16px 50px rgba(0,0,0,.18); }
.hero-search:hover { box-shadow: 0 18px 60px rgba(0,0,0,.26); transform: translateY(-1px); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; color: #9eb9b5; font-size: 12px; font-weight: 650; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: #5eead4; }
.home-section { padding: 96px max(28px, calc((100vw - 1180px) / 2)); background: #fff; }
.home-section--soft { background: var(--surface-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading h2, .trust-band h2 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p { max-width: 330px; margin: 0; color: var(--muted); }
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.path-card { position: relative; min-height: 410px; padding: 34px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.path-card:hover { border-color: #acd9d3; transform: translateY(-2px); transition: .18s ease; }
.path-card__number { position: absolute; top: 18px; right: 24px; color: #d9e6e4; font-size: 54px; line-height: 1; font-weight: 850; letter-spacing: -.07em; }
.path-card h3 { max-width: 390px; margin: 0 0 13px; font-size: 25px; line-height: 1.2; letter-spacing: -.03em; }
.path-card > p:not(.eyebrow) { max-width: 470px; min-height: 54px; color: var(--muted); }
.path-card ol { margin: 24px 0 28px; padding: 19px 0 15px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-card li { padding: 3px 0 3px 5px; color: var(--muted); }
.path-card li::marker { color: var(--brand); font-size: 12px; font-weight: 800; }
.path-card li a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 650; }
.text-link { color: var(--brand-dark); text-decoration: none; font-size: 13px; font-weight: 800; }
.text-link span { display: inline-block; transition: transform .16s ease; }
.text-link:hover span { transform: translateX(4px); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { min-height: 245px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.category-card h3 { margin: 0 0 5px; font-size: 20px; letter-spacing: -.02em; }
.category-card > p:not(.eyebrow) { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.category-card__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.category-card__links a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.category-card__links a:hover { color: var(--brand-dark); }
.trust-band { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 70px; align-items: end; padding: 82px max(28px, calc((100vw - 1180px) / 2)); color: #fff; background: var(--brand-deep); }
.trust-band .eyebrow { color: #5eead4; }
.trust-band > p { margin: 0; color: #a9c1be; }
.trust-band__links { display: flex; flex-direction: column; gap: 9px; }
.trust-band__links a { padding-bottom: 9px; color: #d9eeeb; border-bottom: 1px solid #244441; text-decoration: none; font-size: 13px; font-weight: 700; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 35px max(28px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); background: #fff; }
.site-footer p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; font-size: 12px; font-weight: 650; }
.brand--footer .brand__mark { width: 26px; height: 26px; }

.search-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(680px, calc(100vh - 70px)); padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgba(4, 20, 19, .62); backdrop-filter: blur(4px); }
.search-dialog__header { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.search-dialog__icon { color: var(--brand); font-size: 22px; }
.search-dialog input { min-width: 0; flex: 1; padding: 7px 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 18px; }
.icon-button { min-width: 38px; min-height: 38px; padding: 5px 8px; color: var(--muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 11px; }
.search-dialog__results { max-height: 540px; padding: 10px; overflow-y: auto; }
.search-hint, .search-empty { padding: 36px 24px; color: var(--muted); text-align: center; }
.search-result { display: block; padding: 15px 16px; color: var(--ink); border-radius: 9px; text-decoration: none; }
.search-result:hover, .search-result:focus { background: var(--surface-soft); }
.search-result__meta { display: flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.search-result strong { display: block; margin: 3px 0; }
.search-result p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 1180px) {
  .site-layout { grid-template-columns: 260px minmax(0, 790px); }
  .toc { display: none; }
  .top-link { display: none; }
  .trust-band { gap: 38px; }
}

@media (max-width: 900px) {
  :root { --topbar: 62px; }
  .topbar { gap: 12px; padding: 0 18px; }
  .topnav { display: none; }
  .top-search { width: 42px; min-height: 42px; margin-left: auto; justify-content: center; padding: 0; }
  .top-search span:not(:first-child), .top-search kbd { display: none; }
  .menu-button { width: 42px; height: 42px; display: grid; place-content: center; gap: 4px; padding: 0; background: transparent; border: 0; cursor: pointer; }
  .menu-button span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; }
  .home-page .menu-button { visibility: hidden; }
  .site-layout { display: block; width: 100%; }
  .sidebar { position: fixed; z-index: 70; top: 0; left: 0; width: min(340px, 88vw); height: 100vh; padding: 0 18px 44px; background: #fff; border-right: 1px solid var(--line); transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .nav-open .sidebar { transform: translateX(0); }
  .sidebar__header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 64px; margin: 0 -18px 18px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
  .nav-scrim { position: fixed; z-index: 60; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(7,29,28,.5); border: 0; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .nav-open .nav-scrim { display: block; opacity: 1; pointer-events: auto; }
  .nav-link { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
  .article-main { width: min(100%, 780px); margin: 0 auto; padding: 34px 28px 72px; }
  .home-hero { padding-top: 76px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .trust-band__links { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .brand__word { font-size: 16px; }
  .brand__docs { display: none; }
  .article-main { padding: 28px 21px 64px; }
  .article-breadcrumb { margin-bottom: 20px; }
  .doc-content > h1:first-child { font-size: 2.35rem; }
  .doc-content > h1:first-child + p { font-size: 17px; }
  .doc-content h2 { margin-top: 44px; font-size: 22px; }
  .article-feedback { align-items: flex-start; flex-direction: column; }
  .pager { grid-template-columns: 1fr; }
  .pager-spacer { display: none; }
  .home-hero { padding: 64px 21px 62px; }
  .home-hero h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .home-hero__lead { margin-top: 24px; font-size: 17px; }
  .hero-search { min-height: 56px; }
  .hero-search kbd { display: none; }
  .home-section { padding: 68px 21px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .path-grid, .category-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 0; padding: 26px; }
  .path-card > p:not(.eyebrow) { min-height: 0; }
  .category-card { min-height: 0; }
  .trust-band { grid-template-columns: 1fr; padding: 64px 21px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 30px 21px; }
}

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