/* Tenant docs (3H.1). Brand accent: --brand / --brand-ink, appended per tenant by lib/routes/docs.js,
   then one .hue-<section> rule per section (help/sections.json "hue"): every section wears its
   own color on icons, step numbers and page heads, so even a grey brand gets a lively site.
   System fonts, no web fonts, no images in the chrome, decoration in CSS gradients only: the
   first paint is the final paint. */
:root {
  --brand: #525252; --brand-ink: #fff; --brand-dark: #8a8a8a; --brand-dark-ink: #111;
  --header: #07151d; --header-ink: #e8eef2; --header-muted: #a9b9c3; --header-line: rgba(255,255,255,.1);
  --bg: #f6f7f9; --surface: #fff; --surface-2: #f0f2f5; --ink: #13202a; --muted: #56656f; --line: #e2e6ea;
  --accent: color-mix(in srgb, var(--brand) 82%, #0b5cad); --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --tip: #0f7b55; --note: #1c5fb8; --warn: #a65b00;
  --radius: 16px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.14);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  --header-h: 64px;
  --hue: 205;
  color-scheme: light;
}
/* Section tints. --tint-text keeps AA on the page surface; the others are decoration (3:1). */
:root, [class*="hue-"] {
  --tint: hsl(var(--hue) 72% 42%);
  --tint-text: hsl(var(--hue) 72% 27%);
  --tint-soft: hsl(var(--hue) 85% 50% / .1);
  --tint-line: hsl(var(--hue) 60% 45% / .28);
  --tint-a: hsl(var(--hue) 78% 36%);
  --tint-b: hsl(calc(var(--hue) + 28) 72% 30%);
  --tint-on: #fff;
  --tint-glow: hsl(var(--hue) 85% 45% / .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1319; --surface: #101c24; --surface-2: #16242e; --ink: #e6edf1; --muted: #9fb0bb; --line: #213440;
    --brand: var(--brand-dark); --brand-ink: var(--brand-dark-ink);
    --accent: color-mix(in srgb, var(--brand) 45%, #7cc0ff); --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
    --tip: #4fd1a0; --note: #7cb6ff; --warn: #f0b35a; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
  :root, [class*="hue-"] {
    --tint: hsl(var(--hue) 85% 68%);
    --tint-text: hsl(var(--hue) 90% 80%);
    --tint-soft: hsl(var(--hue) 85% 60% / .13);
    --tint-line: hsl(var(--hue) 70% 60% / .3);
    --tint-a: hsl(var(--hue) 85% 72%);
    --tint-b: hsl(calc(var(--hue) + 28) 80% 66%);
    --tint-on: #06121a;
    --tint-glow: hsl(var(--hue) 90% 60% / .3);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.small { width: 16px; height: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { top: 10px; }
main:focus { outline: none; }

/* Header: the panel's sidebar color (tenant logos are made for it), frosted over the page. */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--header) 90%, transparent); color: var(--header-ink); border-bottom: 1px solid var(--header-line); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.header-inner { max-width: 1320px; margin: 0 auto; height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.read-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, hsl(205 90% 60%), hsl(285 85% 68%), hsl(330 85% 66%)); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: none; }
.brand-logo { height: 40px; width: auto; max-width: 168px; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: -.01em; }
.brand-divider { width: 1px; height: 22px; background: var(--header-line); }
.brand-help { font-weight: 600; font-size: 15px; color: var(--header-muted); }
.header-search { position: relative; flex: 1; max-width: 480px; margin-left: auto; }
.header-search input { width: 100%; height: 40px; padding: 0 40px 0 40px; border-radius: 999px; border: 1px solid var(--header-line); background: rgba(255,255,255,.06); color: var(--header-ink); font: inherit; font-size: 15px; transition: background .15s, border-color .15s, box-shadow .15s; }
.header-search input::placeholder { color: var(--header-muted); }
.header-search input:focus { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--header-muted); pointer-events: none; }
kbd.search-hint { background: transparent; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 12px var(--mono); color: var(--header-muted); border: 1px solid var(--header-line); border-radius: 6px; padding: 1px 7px; }
.header-search input:focus ~ .search-hint { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-switch, .panel-link { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; color: var(--header-ink); text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--header-line); transition: background .15s; }
.lang-switch:hover, .panel-link:hover { background: rgba(255,255,255,.08); }
.panel-link { background: var(--brand-dark); color: var(--brand-dark-ink); border-color: transparent; }
.panel-link:hover { background: color-mix(in srgb, var(--brand-dark) 85%, #fff); }

/* Instant search results under the field. */
.search-popover { position: fixed; z-index: 40; top: calc(var(--header-h) - 6px); left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); padding: 6px; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(-4px); } }
.search-popover a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-popover a[aria-selected="true"], .search-popover a:hover { background: var(--accent-soft); }
.search-popover .hit-section { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.search-popover .hit-title { display: block; font-weight: 650; }
.search-popover .hit-snippet { font-size: 14px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-popover mark, .result-list mark { background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-popover .hit-empty { padding: 14px; color: var(--muted); }
.search-popover .hit-all { font-size: 14px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }

/* Home: a dark hero with slow colored light, a dot grid, the big search and shortcuts. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--header); color: var(--header-ink); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 30%, transparent 78%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); }
.hero-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-glow span { position: absolute; width: 56vmax; aspect-ratio: 1; border-radius: 50%; opacity: .5; will-change: transform; }
.hero-glow span:nth-child(1) { left: -18vmax; top: -30vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-dark) 45%, hsl(205 95% 52%)), transparent); animation: drift-a 26s ease-in-out infinite alternate; }
.hero-glow span:nth-child(2) { right: -20vmax; top: -24vmax; background: radial-gradient(closest-side, hsl(285 80% 55%), transparent); opacity: .38; animation: drift-b 30s ease-in-out infinite alternate; }
.hero-glow span:nth-child(3) { left: 22%; bottom: -44vmax; background: radial-gradient(closest-side, hsl(160 80% 42%), transparent); opacity: .3; animation: drift-a 34s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(8vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-7vmax, 6vmax, 0) scale(.94); } }
.hero-inner { max-width: 800px; margin: 0 auto; padding: 84px 20px 64px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--header-ink); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; color: #fff; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero h1 { background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, #fff 62%, hsl(205 90% 70%))); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-lead { margin: 16px auto 34px; font-size: 19px; color: var(--header-muted); max-width: 52ch; }
.hero-search { position: relative; display: flex; gap: 8px; background: var(--surface); border-radius: 18px; padding: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 70px -24px rgba(0,0,0,.75); transition: box-shadow .2s; }
.hero-search .search-icon { left: 22px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; padding: 0 12px 0 44px; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent), 0 30px 70px -24px rgba(0,0,0,.75); }
.hero-search button, .button { height: 52px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: filter .15s, transform .15s; }
.hero-search button { background: var(--brand-dark); color: var(--brand-dark-ink); }
.hero-search button:hover, .button:hover { filter: brightness(1.08); }
.hero-search button:active, .button:active { transform: scale(.98); }
.hero-search.compact { border: 1px solid var(--line); box-shadow: none; margin: 18px 0 8px; }
.hero-search.compact input, .hero-search.compact button { height: 46px; }
.hero-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 22px 0 0; }
.hero-popular-label { font-size: 13.5px; color: var(--header-muted); }
.hero-popular ul { display: contents; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--header-ink); text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .15s, border-color .15s, transform .15s; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--hue) 90% 66%); box-shadow: 0 0 10px hsl(var(--hue) 90% 60%); }
.chip:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; list-style: none; margin: 34px 0 0; padding: 0; font-size: 13.5px; color: var(--header-muted); }
.hero-stats li { display: inline-flex; align-items: center; gap: 7px; }
.hero-stats .icon { color: hsl(205 90% 70%); }

.home-body { max-width: 1160px; margin: 0 auto; padding: 8px 20px 80px; }
.home-heading { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 52px 0 16px; }
.home-heading::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.section-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.section-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 18px; background: radial-gradient(130% 90% at 0% 0%, var(--tint-soft), transparent 55%), var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.section-card:hover, .section-card:focus-within { transform: translateY(-3px); border-color: var(--tint-line); box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 22px 40px -22px var(--tint-glow); }
.section-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--tint-on); background: linear-gradient(135deg, var(--tint-a), var(--tint-b)); box-shadow: 0 8px 18px -8px var(--tint-glow), inset 0 1px 0 rgba(255,255,255,.25); margin-bottom: 8px; flex: none; }
.section-title { margin: 0; font-size: 17.5px; font-weight: 750; letter-spacing: -.012em; line-height: 1.3; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; }
.section-summary { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card-pages { position: relative; z-index: 1; list-style: none; margin: 10px 0 4px; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 2px; }
.card-pages a { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; color: var(--ink); text-decoration: none; opacity: .86; }
.card-pages a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tint); flex: none; }
.card-pages a:hover { opacity: 1; color: var(--tint-text); text-decoration: underline; }
.section-count { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--tint-text); }
.section-count .icon { transition: transform .2s; }
.section-card:hover .section-count .icon { transform: translateX(3px); }

.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.journey a { position: relative; height: 100%; display: grid; gap: 4px; align-content: start; padding: 20px 20px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.journey a:hover { border-color: var(--tint-line); transform: translateY(-2px); box-shadow: 0 18px 34px -22px var(--tint-glow); }
.journey-step { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; font-weight: 800; font-size: 14px; color: var(--tint-on); background: linear-gradient(135deg, var(--tint-a), var(--tint-b)); }
.journey strong { font-size: 16px; letter-spacing: -.01em; }
.journey span:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.ask-band { position: relative; isolation: isolate; overflow: hidden; margin-top: 60px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 30px 34px; border-radius: 24px; color: var(--header-ink); background: radial-gradient(60% 140% at 0% 0%, hsl(205 90% 50% / .35), transparent 60%), radial-gradient(50% 140% at 100% 100%, hsl(285 80% 55% / .3), transparent 60%), var(--header); box-shadow: 0 30px 60px -36px rgba(4,20,30,.8); }
.ask-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.3px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.ask-key kbd { display: grid; place-items: center; width: 64px; height: 64px; font: 800 30px var(--mono); color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-bottom-width: 5px; border-radius: 16px; }
.ask-text h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.015em; }
.ask-text p { margin: 0; color: var(--header-muted); max-width: 60ch; }
.ask-band .button { background: #fff; color: #0a1319; }

/* Section and article layout */
.with-nav { max-width: 1320px; margin: 0 auto; padding: 28px 20px 72px; display: grid; gap: 44px; grid-template-columns: 250px minmax(0, 1fr); }
.with-nav.with-toc { grid-template-columns: 250px minmax(0, 1fr) 210px; }
.side-nav { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; font-size: 14.5px; padding-right: 6px; scrollbar-width: thin; }
.side-nav details { margin-bottom: 8px; }
.side-nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; font-weight: 700; padding: 6px 8px; border-radius: 9px; color: var(--ink); }
.side-nav summary::-webkit-details-marker { display: none; }
.side-nav summary:hover { background: var(--surface-2); }
.side-nav summary .icon { color: var(--tint); }
.side-nav ul { list-style: none; margin: 2px 0 0 15px; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.side-nav li a { position: relative; display: block; padding: 5px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.4; transition: color .12s, background .12s; }
.side-nav li a:hover { color: var(--ink); background: var(--surface-2); }
.side-nav li a[aria-current="page"] { color: var(--tint-text); background: var(--tint-soft); font-weight: 650; }
.side-nav li a[aria-current="page"]::before { content: ""; position: absolute; left: -13px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--tint); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--tint-text); }

/* Page head: a tinted card with the section's icon drawn large behind the title. */
.page-head { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 34px; padding: 26px 30px 22px; border-radius: 22px; border: 1px solid var(--tint-line); background: radial-gradient(80% 140% at 100% 0%, var(--tint-soft), transparent 62%), linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg))); }
.head-art { position: absolute; right: -26px; top: -30px; z-index: -1; color: var(--tint); opacity: .1; }
.head-art .icon { width: 190px; height: 190px; stroke-width: 1.1; }
.page-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--tint-text); }
.page-eyebrow .section-icon { width: 30px; height: 30px; border-radius: 9px; margin: 0; }
.page-eyebrow .section-icon .icon { width: 16px; height: 16px; }
.page-head h1 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.12; letter-spacing: -.028em; margin: 0 0 10px; font-weight: 800; }
.page-head .lead { font-size: 19px; color: var(--muted); margin: 0 0 14px; max-width: 60ch; line-height: 1.55; }
.page-head .meta { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 11px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 999px; }
.page-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.page-list a { display: grid; grid-template-columns: auto 1fr auto; column-gap: 18px; row-gap: 2px; align-items: center; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.page-list a:hover { border-color: var(--tint-line); transform: translateX(3px); box-shadow: 0 14px 28px -22px var(--tint-glow); }
.page-number { grid-row: 1 / 3; font: 800 20px var(--mono); color: var(--tint-text); opacity: .7; }
.page-list strong { grid-column: 2; }
.page-list span:not(.page-number) { grid-column: 2; color: var(--muted); font-size: 14.5px; }
.page-list a .icon { grid-row: 1 / 3; grid-column: 3; color: var(--muted); transition: transform .15s, color .15s; }
.page-list a:hover .icon { color: var(--tint); transform: translateX(3px); }
.article { min-width: 0; max-width: 780px; }

/* Prose */
.prose { font-size: 16.5px; }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 24px; letter-spacing: -.018em; margin: 46px 0 12px; line-height: 1.25; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose h2, .prose h3 { position: relative; }
.prose .anchor { position: absolute; left: -1.1em; padding-right: .3em; color: var(--tint); text-decoration: none; opacity: 0; transition: opacity .15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: .8; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose ul li::marker { color: var(--tint); }
.prose strong { font-weight: 680; }
.prose code { font: .9em var(--mono); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: #0d1b24; color: #e6edf1; padding: 16px 18px; border-radius: 12px; overflow: auto; font: 14px/1.55 var(--mono); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose kbd, kbd { font: 600 .82em var(--mono); background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, var(--line), transparent); margin: 36px 0; }
.prose blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 3px solid var(--tint-line); color: var(--muted); }
.broken-link { color: var(--warn); }
.ext { font-size: .8em; margin-left: 2px; }

/* Steps: an ordered list becomes a numbered timeline in the section's colors. */
.prose ol.steps { list-style: none; padding: 0; margin: 10px 0 26px; counter-reset: step; }
.prose ol.steps > li { position: relative; padding: 0 0 22px 54px; margin: 0; counter-increment: step; }
.prose ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--tint-on); background: linear-gradient(135deg, var(--tint-a), var(--tint-b)); box-shadow: 0 0 0 4px var(--bg), 0 8px 16px -8px var(--tint-glow); }
.prose ol.steps > li::after { content: ""; position: absolute; left: 16.5px; top: 40px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--tint-line), transparent); }
.prose ol.steps > li:last-child { padding-bottom: 4px; }
.prose ol.steps > li:last-child::after { display: none; }
.step-body { padding-top: 5px; }
.step-body > :last-child { margin-bottom: 0; }

/* Callouts: a round badge with the kind's sign. */
.callout { --c: var(--note); display: flex; gap: 14px; margin: 22px 0; padding: 15px 18px; border-radius: 14px; background: color-mix(in srgb, var(--c) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.callout::before { content: "i"; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--font); color: var(--surface); background: var(--c); }
.callout-tip { --c: var(--tip); }
.callout-tip::before { content: "\2713"; }
.callout-warning { --c: var(--warn); }
.callout-warning::before { content: "!"; }
.callout-body > :last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }

/* Screenshots: framed like a window, click to zoom. */
.shot { margin: 24px 0 28px; max-width: none !important; }
.shot-frame { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 28px 50px -28px var(--tint-glow); cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.shot-frame:hover { transform: translateY(-2px); }
.shot-frame::before { content: ""; display: block; height: 24px; background: radial-gradient(circle at 15px 12px, #ff5f57 4px, transparent 4.5px), radial-gradient(circle at 29px 12px, #febc2e 4px, transparent 4.5px), radial-gradient(circle at 43px 12px, #28c840 4px, transparent 4.5px), var(--surface-2); border-bottom: 1px solid var(--line); }
.shot img { display: block; width: 100%; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.zoom { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(5,12,17,.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: zoom-out; border: 0; width: 100%; height: 100%; animation: fade .18s ease-out; }
.zoom img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: grow .22s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { transform: scale(.96); opacity: .6; } }

/* On this page */
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; font-size: 14px; }
.toc-title { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; transition: color .15s, border-color .15s; }
.toc .toc-3 a { padding-left: 26px; font-size: 13.5px; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--tint-text); border-left-color: var(--tint); font-weight: 650; }

/* Prev / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pager a:hover { border-color: var(--tint-line); box-shadow: 0 14px 28px -22px var(--tint-glow); }
.pager span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pager .icon { transition: transform .15s; }
.pager-next:hover .icon { transform: translateX(3px); }
.pager-prev:hover .icon { transform: translateX(-3px); }
.pager-next { text-align: right; justify-items: end; }

/* Search page, 404 */
.narrow { max-width: 780px; margin: 0 auto; padding: 44px 20px 80px; }
.narrow h1 { font-size: 36px; letter-spacing: -.025em; margin: 0; font-weight: 800; }
.result-count { color: var(--muted); font-size: 14px; }
.result-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.result-list a { display: grid; gap: 3px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.result-list a:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.result-section { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.result-snippet { color: var(--muted); font-size: 14.5px; }
.empty { color: var(--muted); }
.not-found { text-align: center; padding-top: 90px; }
.not-found .eyebrow { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.not-found .lead { color: var(--muted); font-size: 18px; margin: 12px auto 28px; max-width: 46ch; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 24px 20px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer-inner span { margin-right: auto; font-weight: 600; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--ink); }

/* Narrow screens: one column; the section nav folds into a menu above the page. */
@media (max-width: 1180px) { .with-nav.with-toc { grid-template-columns: 230px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) {
  .with-nav, .with-nav.with-toc { grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
  .side-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: var(--surface); }
  .side-nav details:not([open]) { margin-bottom: 0; }
  .brand-help, .brand-divider { display: none; }
  .header-inner { gap: 10px; padding: 0 12px; }
  .search-hint { display: none; }
  .panel-link { padding: 0 10px; }
  .panel-link .icon { display: none; }
  .hero-inner { padding: 56px 16px 48px; }
  .hero-lead { font-size: 17px; }
  .page-head { padding: 22px 20px 18px; border-radius: 18px; }
  .ask-band { grid-template-columns: 1fr; text-align: left; padding: 26px 22px; }
  .pager { grid-template-columns: 1fr; }
  .prose .anchor { display: none; }
}
@media (max-width: 520px) { .panel-link { display: none; } .hero-search button { padding: 0 16px; } .hero-stats { gap: 6px 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .side-nav, .toc, .pager, .site-footer, .skip-link, .hero-glow, .ask-band { display: none !important; } .with-nav { display: block; } body { background: #fff; } }

:root{--brand:#186c69;--brand-ink:#ffffff;--brand-dark:#247371;--brand-dark-ink:#ffffff}
.hue-start{--hue:205}.hue-conversations{--hue:152}.hue-contacts{--hue:262}.hue-broadcasts{--hue:22}.hue-campaigns{--hue:330}.hue-automations{--hue:40}.hue-assistants{--hue:285}.hue-data{--hue:188}.hue-sales{--hue:140}.hue-billing{--hue:215}.hue-apps{--hue:172}.hue-admin{--hue:235}
