/* SentrAI site styles: shared by the landing page and the doc layout.
   Colours come from the brand kit (assets/brand/tokens.css, loaded first in head.html).
   Black and white are the brand (violet, the logo's colour, is the only accent); green, amber and red only ever mean risk.
   Panels stand apart by shading (--card gradient + --card-shadow over a dotted page), not by outlines; outlines stay
   only on controls (ghost buttons, menu button, back-to-top) and on tables, where they carry meaning. */
:root {
  --bg: var(--sn-bg);
  --surface: var(--sn-surface);
  --surface-2: var(--sn-surface-2);
  --surface-3: var(--sn-surface-3);
  --ink: var(--sn-ink);
  --ink-soft: var(--sn-ink-soft);
  --ink-muted: var(--sn-ink-muted);
  --line: var(--sn-line);
  --brand: var(--sn-brand);
  --brand-2: var(--sn-brand-2);
  --brand-soft: var(--sn-brand-soft);
  --brand-line: var(--sn-brand-line);
  --on-brand: var(--sn-on-brand);
  --safe: var(--sn-safe);
  --warn: var(--sn-warn);
  --danger: var(--sn-danger);
  --code-bg: var(--sn-surface-2);
  --shadow: var(--sn-shadow);
  --card: var(--sn-card);
  --card-shadow: var(--sn-card-shadow);
  --card-shadow-hover: var(--sn-card-shadow-hover);
  --band: var(--sn-band);
  --dots: var(--sn-dots);
  --radius: var(--sn-radius);
  --max: 1120px;
  --font: var(--sn-font);
  --mono: var(--sn-mono);
  /* Night-watch panel: always black, in both themes. */
  --night: var(--sn-black-950);
  --night-2: var(--sn-black-900);
  --night-3: var(--sn-black-800);
  --night-line: #2e2e2e;
  --night-ink: #f5f5f5;
  --night-soft: #b3b3b3;
  --steel: #ffffff;
  --steel-2: #b3b3b3;
  /* Shield silhouette used for icon tiles and badges (same curve as the logo mark). */
  --shield: polygon(50% 0%, 100% 14%, 100% 46%, 97% 62%, 88% 78%, 70% 92%, 50% 100%, 30% 92%, 12% 78%, 3% 62%, 0% 46%, 0% 14%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: radial-gradient(var(--dots) 1px, transparent 1.4px) 0 0 / 22px 22px, var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .gh { border: 1px solid var(--line); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); color: var(--on-brand); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand-2); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: linear-gradient(180deg, var(--band), color-mix(in srgb, var(--band) 55%, var(--bg))); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: var(--brand); margin: 0 0 8px; }
.eyebrow::before { content: ""; width: 10px; height: 12px; background: currentColor; clip-path: var(--shield); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
h1, h2 { font-weight: 750; }
.section-title { font-size: clamp(26px, 4vw, 36px); max-width: 720px; }
.lede { color: var(--ink-soft); font-size: 18px; max-width: 680px; margin: 0 0 32px; }

/* Hero: the night watch. Always black, whatever the OS theme. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 0 80px; color: var(--night-ink);
  background:
    radial-gradient(700px 420px at 78% 38%, rgba(255, 255, 255, .08), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(128, 87, 240, .10), transparent 70%),
    var(--night);
  /* The gauge card and buttons inside the hero read these. */
  --bg: var(--night); --surface: var(--night-2); --surface-2: var(--night-3); --line: var(--night-line);
  --ink: var(--night-ink); --ink-soft: var(--night-soft); --brand: var(--steel); --brand-2: var(--steel-2);
  --on-brand: var(--night); --safe: #6fcf97; --warn: #e8b34a; --danger: #e5484d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .45);
}
.hero::before { /* faint perimeter grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 80%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 56px); }
.hero h1 em { font-style: normal; color: var(--steel); }
.hero .lede { font-size: 19px; }
.hero .eyebrow { color: var(--steel); }
.hero .btn-ghost { background: transparent; border-color: #4c4c4c; color: var(--night-ink); }
.hero .btn-ghost:hover { border-color: var(--steel); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.quote { margin: 28px 0 0; color: var(--ink-soft); font-style: italic; border-left: 3px solid var(--brand-2); padding-left: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Watch post: shield outline + radar sweep behind the gauge card */
.watch { position: relative; }
.watch .shield-art { position: absolute; z-index: -1; left: 50%; top: 50%; width: 132%; max-width: 620px; transform: translate(-50%, -52%); pointer-events: none; }
.watch .shield-art .ring { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.watch .shield-art .outline { fill: rgba(38, 38, 38, .45); stroke: rgba(255, 255, 255, .32); stroke-width: 1.5; }
.watch .shield-art .sweep { transform-origin: 200px 200px; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .watch .shield-art { width: 110%; } }

/* Gauge card */
.gauge-card { position: relative; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow); padding: 24px; }
.gauge-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.gauge-card .top .live { display: inline-flex; align-items: center; gap: 8px; }
.gauge-card .top .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 0 0 rgba(111, 207, 151, .6); animation: ping 2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(111, 207, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 207, 151, 0); } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--safe) 16%, transparent); color: var(--safe); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gauge { display: block; margin: 8px auto 0; width: 100%; max-width: 320px; overflow: visible; }
.gauge .track { stroke: var(--surface-2); }
.gauge .ticks { stroke: var(--ink-soft); opacity: .45; }
.gauge .fill { stroke: url(#gaugeGrad); stroke-dasharray: 100 100; stroke-dashoffset: 18; animation: fill 2.4s cubic-bezier(.2, .8, .2, 1) both; }
.gauge .limit { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.gauge .limit-lbl { fill: var(--ink-soft); font: 700 8px var(--mono); }
.gauge .needle { transform-origin: 100px 105px; transform: rotate(57.6deg); animation: needle 2.4s cubic-bezier(.2, .8, .2, 1) both; }
.gauge .needle line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.gauge .needle circle { fill: var(--ink); }
.gauge .num { fill: var(--ink); font: 800 34px var(--font); }
.gauge .cap { fill: var(--ink-soft); font: 600 8.5px var(--font); letter-spacing: .06em; }
@keyframes fill { from { stroke-dashoffset: 100; } }
@keyframes needle { from { transform: rotate(-90deg); } }
.events { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.events li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 14px; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; animation: rise .5s ease both; }
.events li:nth-child(2) { animation-delay: .5s; }
.events li:nth-child(3) { animation-delay: 1s; }
.events li:nth-child(4) { animation-delay: 1.6s; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 16%, var(--surface-2)), var(--surface-2)); box-shadow: inset 3px 0 0 var(--brand); }
.events time { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.events b { font-family: var(--mono); font-size: 13px; }
.events .up { color: var(--danger); }
.events .act { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); }
.events .act::before { content: ""; width: 10px; height: 12px; background: currentColor; clip-path: var(--shield); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .gauge .fill, .gauge .needle, .events li, .watch .shield-art .sweep, .gauge-card .top .live::before { animation: none; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { position: relative; background: var(--card); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 24px; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), transparent); }
.stat .big { font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1.1; }
.stat p { margin: 8px 0 10px; color: var(--ink-soft); }
.stat .src { font-size: 13px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* Steps: a patrol route, four posts on one line */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 43px; border-top: 2px dashed var(--brand-line); z-index: 0; }
.steps li { position: relative; z-index: 1; background: var(--card); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 22px 20px; counter-increment: step; }
.steps .post { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.steps .post::after { content: counter(step, decimal-leading-zero); font: 700 13px var(--mono); color: var(--ink-muted); }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Shield icon tile (feature cards, steps) */
.ico { width: 44px; height: 50px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); clip-path: var(--shield); padding-bottom: 4px; }
.ico svg { width: 22px; height: 22px; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.card:hover .ico { background: var(--brand); color: var(--on-brand); }
.card .ico { margin-bottom: 14px; transition: background .15s ease, color .15s ease; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

/* Sentry principle: your network | the line | outside */
.perimeter { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: stretch; }
.zone { border-radius: var(--radius); padding: 24px; background: var(--card); box-shadow: var(--card-shadow); }
.zone .tag { display: inline-block; font: 700 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; margin-bottom: 10px; }
.zone.inside { box-shadow: inset 0 4px 0 var(--brand), var(--card-shadow); }
.zone.inside .tag { background: var(--brand-soft); color: var(--brand); }
.zone.outside { box-shadow: inset 0 4px 0 var(--surface-3), var(--card-shadow); background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 10px, var(--surface-2) 10px, var(--surface-2) 11px); }
.zone.outside .tag { background: var(--surface-2); color: var(--ink-soft); }
.zone h3 { font-size: 18px; }
.zone ul { margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.zone li { position: relative; margin: 8px 0; padding-left: 26px; }
.zone li::before { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--font); }
.zone.inside li::before { content: "\2713"; background: var(--brand-soft); color: var(--brand); }
.zone.outside li::before { content: "\2715"; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.line { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.line::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 3px solid var(--brand); transform: translateX(-50%); }
.line .post-mark { position: relative; width: 56px; height: 64px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); clip-path: var(--shield); padding-bottom: 6px; }
.line .post-mark svg { width: 26px; height: 26px; }
.line span { position: relative; margin-top: 10px; background: var(--bg); padding: 4px 6px; font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); text-align: center; }
@media (max-width: 760px) {
  .perimeter { grid-template-columns: 1fr; }
  .line { flex-direction: row; gap: 12px; padding: 18px 0; }
  .line::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 3px solid var(--brand); transform: translateY(-50%); }
  .line .post-mark { width: 44px; height: 50px; }
  .line span { margin-top: 0; }
}

/* Compare table */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); box-shadow: var(--card-shadow); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.compare thead th:last-child { color: var(--brand); }
.compare td:last-child { font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* Architecture figure: a blueprint frame on the night panel */
.figure { position: relative; background: var(--night); border-radius: var(--radius); padding: 44px 18px 18px; box-shadow: var(--shadow);
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px; }
.figure::before { content: "SYSTEM MAP"; position: absolute; top: 14px; left: 18px; font: 700 11px var(--mono); letter-spacing: .14em; color: var(--steel); }
.figure::after { content: ""; position: absolute; top: 16px; right: 18px; width: 44px; height: 8px; background: radial-gradient(circle, #e5484d 3px, transparent 3.5px) 0 0 / 14px 8px, radial-gradient(circle, #e8b34a 3px, transparent 3.5px) 14px 0 / 14px 8px no-repeat, radial-gradient(circle, #6fcf97 3px, transparent 3.5px) 28px 0 / 14px 8px no-repeat; background-repeat: no-repeat; }
.figure img { display: block; width: 100%; border-radius: 8px; }
.figcap { color: var(--ink-soft); font-size: 14px; margin-top: 12px; text-align: center; }

/* Roadmap timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.timeline li { background: var(--card); box-shadow: var(--card-shadow); border-radius: 12px; padding: 14px 12px; font-size: 14px; position: relative; }
.timeline li.now { box-shadow: inset 0 3px 0 var(--brand), 0 0 0 3px var(--brand-soft), var(--card-shadow); }
.timeline li.crit::after { content: "critical path"; position: absolute; top: -9px; right: 8px; font-size: 10.5px; font-weight: 700; background: var(--warn); color: var(--on-brand); padding: 1px 6px; border-radius: 999px; }
.timeline .ph { font: 700 12px var(--mono); color: var(--brand); }
.timeline b { display: block; margin: 4px 0; line-height: 1.3; }
.timeline span { color: var(--ink-soft); font-size: 12.5px; }
@media (max-width: 1060px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { display: flex; gap: 14px; align-items: center; background: var(--card); box-shadow: var(--card-shadow); border-radius: var(--radius); padding: 18px; }
.avatar { flex: none; width: 46px; height: 52px; clip-path: var(--shield); padding-bottom: 4px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(160deg, #404040, var(--sn-black-950)); }
.member b { display: block; }
.member span { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }

/* CTA band: the night panel again */
.band { position: relative; overflow: hidden; background: radial-gradient(500px 240px at 100% 0%, rgba(255, 255, 255, .10), transparent 70%), var(--night); color: var(--night-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow); border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.band p { margin: 0; color: var(--night-soft); }
.band .btn-ghost { background: var(--steel); color: var(--night); border-color: var(--steel); }
.band .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--night); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-soft); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer .foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .foot-brand img { width: 22px; height: 22px; }
.site-footer a { color: var(--ink-soft); }

/* Doc pages (plan, roadmap) */
.doc-hero { padding: 40px 0 8px; }
.doc-hero .crumbs { font-size: 14px; color: var(--ink-soft); }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 24px 0 64px; }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; padding-right: 8px; }
.toc p { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); border-left-color: var(--brand-2); font-weight: 600; }
@media (max-width: 960px) { .doc { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { min-width: 0; max-width: 820px; }
.prose h1 { font-size: clamp(30px, 4.5vw, 42px); font-weight: 800; }
.prose h2 { font-size: 26px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.prose h3 { font-size: 19px; margin-top: 28px; scroll-margin-top: 80px; }
.prose p, .prose li { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose blockquote { margin: 20px 0; padding: 12px 18px; border-left: 4px solid var(--brand-2); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--ink); }
.prose blockquote p { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--code-bg); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 20px 0; font-size: 14.5px; max-width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--surface-2); }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.prose img { border-radius: 10px; background: #fff; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; text-decoration: none; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; }
.prose hr + h2 { border-top: 0; margin-top: 0; padding-top: 0; }

/* Install guide: page list above the on-page contents, and next/previous links */
.docs-nav { margin-bottom: 24px; }
.docs-nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--brand-2); font-weight: 600; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 14px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--card-shadow); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease; }
.pager a:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.pager span { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.pager .next { grid-column: 2; text-align: right; }
@media (max-width: 960px) {
  .doc:has(.docs-nav) .toc { display: block; position: static; max-height: none; }
  .doc .toc .toc-here { display: none; }
}
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }
