/* Help center (server-rendered, /help/<slug> and custom domains): the v1 help
   center design (helpcanvas-v1 templates/kb/layout.html.twig) on v2 data.
   docs/architecture/HELP-CENTER-PORT-PLAN-2026-10-23.md section 3 is the
   contract: tokens, base, the shell (header, drawers, footer), the shared
   components and the prose base. Page files (help-home.css, help-article.css,
   help-search.css) scope their rules under their page root or their own
   component classes.

   Colour: the server writes the brand and the contrast-checked brand inks for
   light (--l-*) and dark (--d-*) into the style attribute of .hc (HelpTokens).
   This file picks one set per data-mode: light, dark, or auto (follows the
   visitor's prefers-color-scheme). Neutrals are fixed here. */

/* ============ Tokens ============ */
.hc {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #0f172a;
  --body: #52525b;
  --faint: #6b7280;
  --brand-deep: var(--l-brand-deep, #3f38b7);
  --brand-ink: var(--l-brand-ink, #2b2780);
  --on-brand: var(--l-on-brand, #ffffff);
  --link: var(--l-link, var(--brand-deep));
  --muted: var(--l-muted, #5f6672);
  --mint: color-mix(in srgb, var(--brand) 10%, var(--bg));
  --mint-soft: color-mix(in srgb, var(--brand) 5%, var(--bg));
  --wash: color-mix(in srgb, var(--brand) 3%, var(--bg));
  --hero-bg: color-mix(in srgb, var(--brand) 8%, var(--bg));
  --line: color-mix(in srgb, var(--brand-ink) 12%, var(--bg));
  --line-soft: color-mix(in srgb, var(--brand-ink) 7%, var(--bg));
  --code-bg: #111827;
  --code-bar: #1f2937;
  --code-ink: #e5e7eb;
  --mark-bg: #fef9c3;
  --mark-ink: #713f12;
  --focus: var(--brand-deep);
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent);
  --shadow-md: 0 6px 24px -8px color-mix(in srgb, var(--ink) 12%, transparent);
  --kb-link: var(--kb-link-l);
  color-scheme: light;
}
.hc[data-mode="dark"] {
  /* Twin of the @media (prefers-color-scheme: dark) block below: change both together
     (HelpCenterShellTest checks that they match). */
  --bg: #151619;
  --card: #1d1f24;
  --ink: #f1f3f5;
  --body: #d2d7de;
  --faint: #8b929d;
  --brand-deep: var(--d-brand-deep, #a5b4fc);
  --brand-ink: var(--d-brand-ink, #c7d2fe);
  --on-brand: var(--d-on-brand, #111827);
  --link: var(--d-link, var(--brand-deep));
  --muted: var(--d-muted, #9ca3af);
  --mint: color-mix(in srgb, var(--brand) 18%, var(--bg));
  --mint-soft: color-mix(in srgb, var(--brand) 10%, var(--bg));
  --wash: color-mix(in srgb, var(--brand) 6%, var(--bg));
  --hero-bg: color-mix(in srgb, var(--brand) 14%, var(--bg));
  --line: color-mix(in srgb, var(--brand-ink) 22%, var(--bg));
  --line-soft: color-mix(in srgb, var(--brand-ink) 14%, var(--bg));
  --code-bg: #0b0c0f;
  --code-bar: #17181c;
  --mark-bg: #713f12;
  --mark-ink: #fef9c3;
  --focus: var(--brand-ink);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 6px 24px -8px rgb(0 0 0 / .4);
  --kb-link: var(--kb-link-d);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .hc[data-mode="auto"] {
    /* Twin of .hc[data-mode="dark"] above. */
    --bg: #151619;
    --card: #1d1f24;
    --ink: #f1f3f5;
    --body: #d2d7de;
    --faint: #8b929d;
    --brand-deep: var(--d-brand-deep, #a5b4fc);
    --brand-ink: var(--d-brand-ink, #c7d2fe);
    --on-brand: var(--d-on-brand, #111827);
    --link: var(--d-link, var(--brand-deep));
    --muted: var(--d-muted, #9ca3af);
    --mint: color-mix(in srgb, var(--brand) 18%, var(--bg));
    --mint-soft: color-mix(in srgb, var(--brand) 10%, var(--bg));
    --wash: color-mix(in srgb, var(--brand) 6%, var(--bg));
    --hero-bg: color-mix(in srgb, var(--brand) 14%, var(--bg));
    --line: color-mix(in srgb, var(--brand-ink) 22%, var(--bg));
    --line-soft: color-mix(in srgb, var(--brand-ink) 14%, var(--bg));
    --code-bg: #0b0c0f;
    --code-bar: #17181c;
    --mark-bg: #713f12;
    --mark-ink: #fef9c3;
    --focus: var(--brand-ink);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 6px 24px -8px rgb(0 0 0 / .4);
    --kb-link: var(--kb-link-d);
    color-scheme: dark;
  }
}
/* Formulas shared by both modes (they resolve against the mode's own values). */
.hc {
  --prose: color-mix(in srgb, var(--body) 88%, var(--ink));
  --hero-ink: var(--ink);
  --header-bg: var(--bg);
  --header-ink: var(--ink);
  --header-muted: var(--muted);
  --header-line: var(--line);
  --header-field: color-mix(in srgb, var(--ink) 10%, var(--bg));
  --footer-bg: var(--wash);
  --footer-ink: var(--muted);
  --footer-strong: var(--body);
  --radius: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --r-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============ Base ============ */
html, body { margin: 0; padding: 0; background: #ffffff; }
body:has(> .hc[data-mode="dark"]) { background: #151619; }
@media (prefers-color-scheme: dark) { body:has(> .hc[data-mode="auto"]) { background: #151619; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.hc {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: clip;
  background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
.hc ::selection { background: color-mix(in srgb, var(--brand) 25%, var(--bg)); color: var(--ink); }
.hc a { color: var(--brand-deep); text-decoration: none; }
/* Zero specificity: every component rule (.hc-art-action 13px, .hc-fb-btn 14px, ...) sets its own size over this. */
:where(.hc) :where(button, input, textarea, select) { font-family: inherit; font-size: inherit; }
.hc button { cursor: pointer; }
.hc svg { display: block; flex: none; }
.hc :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.hc .hc-btn-primary:focus-visible, .hc .hc-chip:focus-visible { outline-color: var(--ink); }
.hc [hidden] { display: none !important; }
.hc-main { flex: 1 0 auto; width: 100%; scroll-margin-top: 64px; } /* the skip link lands below the sticky header */
.hc-main:focus { outline: none; }
.hc-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 420px) { .hc-wrap { padding: 0 16px; } }
.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; }
.hc-skip {
  position: absolute; left: 12px; top: -64px; z-index: 300;
  background: var(--ink); color: var(--bg) !important; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 650; font-size: 14px;
}
.hc-skip:focus { top: 10px; outline: 2px solid var(--ink); outline-offset: 2px; }
.hc-status { min-height: 1px; }
.hc-print-source { display: none; }

/* ============ Header ============ */
.hc-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--header-bg); color: var(--header-ink);
  border-bottom: 1px solid var(--header-line);
}
.hc-header :focus-visible { outline-color: var(--header-ink); }
.hc-header-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.hc-logo { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; max-width: 45%; color: var(--header-ink) !important; }
/* The brand word is cut only when the bar has no room left (v1: "logo never truncates the brand word"). */
@media (max-width: 980px) { .hc-logo { max-width: none; } .hc-head-actions { flex: none; } }
.hc-logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-deep); color: var(--on-brand);
  font-weight: 800; font-size: 15px; line-height: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--header-ink) 14%, transparent);
}
.hc-logo-img { display: block; height: 32px; width: auto; max-width: 160px; object-fit: contain; }
.hc-brand-name { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-brand-name b { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(12px, 1vw, 14px); overflow: hidden; text-overflow: ellipsis; }
.hc-brand-suffix { font-style: normal; color: var(--header-muted); font-weight: 500; letter-spacing: .01em; margin-left: 8px; font-size: 14px; flex: none; }
.hc-nav { display: flex; align-items: center; gap: 20px; margin-left: 4px; }
/* "Contact us" is a button that opens the chat widget while the hosted page is hidden (kb/_reach.html.twig):
   it looks like the links next to it. */
:where(.hc-nav, .hc-drawer nav, .hc-rail-help) button { font: inherit; margin: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.hc-nav a, .hc-nav button {
  color: var(--header-muted); font-size: 14px; font-weight: 550; white-space: nowrap;
  padding: 8px 0; border-radius: 4px;
}
.hc-nav a:hover, .hc-nav button:hover, .hc-nav a[aria-current="page"] { color: var(--header-ink); }
.hc-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.hc-head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hc-head-search {
  display: flex; align-items: center; gap: 8px;
  width: 280px; flex: 0 1 280px; min-width: 140px; height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--header-line); border-radius: var(--r-md);
  background: var(--header-field); color: var(--header-muted); font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.hc-head-search:hover { border-color: var(--header-muted); }
.hc-head-search:focus-within { border-color: var(--header-ink); box-shadow: 0 0 0 1px var(--header-ink); }
.hc-head-search svg { color: var(--header-muted); }
.hc-head-search input, .hc-drawer-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  color: var(--header-ink);
}
.hc-head-search input { font-size: 14px; }
/* The field draws the focus ring (focus-within), not the bare input inside it. */
.hc .hc-head-search input:focus-visible, .hc .hc-drawer-field input:focus-visible { outline: none; }
.hc-head-search input::placeholder, .hc-drawer-field input::placeholder { color: var(--header-muted); opacity: 1; }
.hc-head-search input::-webkit-search-cancel-button, .hc-head-search input::-webkit-search-decoration,
.hc-drawer-field input::-webkit-search-cancel-button, .hc-drawer-field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.hc-kbd {
  margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  background: var(--card); border-radius: 5px; padding: 1px 6px; font-weight: 600; line-height: 1.5;
  box-shadow: 0 1px 0 var(--line); white-space: nowrap; font-family: var(--font);
}
.hc-header .hc-kbd { color: var(--header-muted); border-color: var(--header-line); background: transparent; box-shadow: none; }
.hc-lang { display: flex; align-items: center; }
.hc-icon-btn {
  display: none; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--header-ink);
}
.hc-icon-btn:hover, .hc-icon-btn[aria-expanded="true"] { background: var(--header-field); }
@media (pointer: coarse) { .hc-icon-btn { width: 44px; height: 44px; } }
@media (max-width: 1100px) { .hc-head-search .hc-kbd { display: none; } }
@media (max-width: 980px) {
  .hc-header-row { gap: 8px; }
  .hc-brand-suffix { display: none; }
  .hc-head-search { display: none; }
  .hc.hc-js .hc-nav { display: none; }
  .hc.hc-js .hc-icon-btn { display: grid; }
  /* Without JavaScript the drawers cannot open: the nav stays in the bar. */
  .hc:not(.hc-js) .hc-nav { gap: 14px; margin-left: auto; }
  .hc:not(.hc-js) .hc-head-actions { margin-left: 0; }
}
@media (max-width: 420px) { .hc:not(.hc-js) .hc-nav a + a, .hc:not(.hc-js) .hc-nav a + button { display: none; } }

/* Drawers (below 980px) */
.hc-drawer { border-top: 1px solid var(--header-line); background: var(--header-bg); }
@media (min-width: 981px) { .hc-drawer { display: none !important; } }
.hc-drawer form { padding: 12px 20px; }
.hc-drawer-field {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 1px solid var(--header-line); border-radius: var(--r-md); background: var(--header-field);
}
.hc-drawer-field:focus-within { border-color: var(--header-ink); box-shadow: 0 0 0 1px var(--header-ink); }
.hc-drawer-field svg { color: var(--header-muted); }
.hc-drawer-field input { font-size: 16px; }
.hc-drawer nav { display: flex; flex-direction: column; padding: 4px 20px 10px; }
.hc-drawer nav a, .hc-drawer nav button {
  display: flex; align-items: center; min-height: 44px; padding: 12px 2px;
  font-size: 15px; font-weight: 550; color: var(--header-ink);
  border-bottom: 1px solid var(--header-line);
}
.hc-drawer nav a:last-child, .hc-drawer nav button:last-child { border-bottom: 0; }
.hc-drawer nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 420px) { .hc-drawer form { padding: 12px 16px; } .hc-drawer nav { padding: 4px 16px 10px; } }

/* ============ Footer ============ */
.hc-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--footer-bg); }
.hc-footer-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--footer-ink);
}
.hc-footer-logo {
  display: flex; align-items: center; gap: 8px; color: var(--footer-strong);
  font-weight: 700; letter-spacing: .06em; font-size: 13px; text-transform: uppercase;
}
.hc-footer-logo .hc-logo-mark { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; box-shadow: none; }
.hc-footer-logo img { height: 22px; width: auto; max-width: 110px; object-fit: contain; }
.hc-footer-badge { margin-left: auto; }
.hc-footer-badge a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 0;
  color: var(--footer-strong); font-weight: 650;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
}
.hc-footer-badge a:hover { text-decoration-color: currentColor; }
.hc-footer-legal { display: inline-flex; flex-wrap: wrap; gap: 0 16px; }
.hc-footer-legal a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 0;
  color: var(--footer-ink); text-decoration: underline; text-underline-offset: 3px;
}
.hc-footer-legal a:hover { color: var(--footer-strong); }
@media (max-width: 700px) { .hc-footer-row { gap: 6px 16px; } .hc-footer-badge { margin-left: 0; } }

/* ============ Breadcrumbs ============ */
.hc-crumbs { padding: 22px 0 0; font-size: 14px; color: var(--muted); }
.hc-crumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hc-crumbs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hc-crumbs a { color: var(--muted); font-weight: 550; }
.hc-crumbs a:hover { color: var(--brand-deep); }
.hc-crumbs svg { color: var(--faint); }
.hc-crumbs-current { color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-crumbs li:last-child { min-width: 0; flex: 0 1 auto; }

/* ============ Shared components ============ */
.hc-btn, .hc-btn-primary, .hc-btn-dark, .hc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border: 0; border-radius: var(--r-md);
  font-weight: 650; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.hc-btn-primary, .hc a.hc-btn-primary { background: var(--brand-deep); color: var(--on-brand); }
.hc-btn-primary:hover, .hc a.hc-btn-primary:hover { background: var(--brand-ink); color: var(--on-brand); }
.hc-btn-dark, .hc a.hc-btn-dark { height: 38px; padding: 0 16px; background: var(--ink); color: var(--bg); }
.hc-btn-dark:hover, .hc a.hc-btn-dark:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); color: var(--bg); }
.hc-btn-ghost, .hc a.hc-btn-ghost { padding: 0 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.hc-btn-ghost:hover, .hc a.hc-btn-ghost:hover { border-color: color-mix(in srgb, var(--brand-ink) 24%, var(--bg)); color: var(--ink); }
.hc-btn svg, .hc-btn-primary svg, .hc-btn-dark svg, .hc-btn-ghost svg { width: 16px; height: 16px; }
/* A <button class="hc-btn"> (the widget actions, kb/_reach.html.twig) wraps like the link it replaces. */
.hc button.hc-btn { line-height: inherit; }
.hc-chip, .hc a.hc-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px;
  padding: 5px 13px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--brand-ink);
  font-weight: 600; font-size: 13px; line-height: 1.3; transition: border-color .15s, background .15s;
}
.hc-chip:hover, .hc a.hc-chip:hover { border-color: var(--brand); background: var(--card); color: var(--brand-ink); }
.hc-chip[aria-current], .hc-chip[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--on-brand); }
.hc-pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px;
  border-radius: var(--r-pill); background: var(--mint); color: var(--brand-deep);
  font-size: 12px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.hc-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 20px 22px; color: var(--body);
}
.hc-card-link, .hc a.hc-card-link { color: var(--ink); transition: border-color .16s, box-shadow .16s, transform .16s; }
.hc-card-link:hover, .hc a.hc-card-link:hover { border-color: color-mix(in srgb, var(--brand-ink) 24%, var(--bg)); box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--ink); }
.hc-icon-tile {
  width: 40px; height: 40px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; background: var(--mint); color: var(--brand-deep);
}
.hc-icon-tile svg { width: 20px; height: 20px; }
.hc-icon-tile--lg { width: 56px; height: 56px; border-radius: 14px; }
.hc-icon-tile--lg svg { width: 26px; height: 26px; }
.hc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* v1 .section-head: the h2 and its meta line share one baseline row. */
.hc-section-head { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hc-section-head h2 { flex: none; font-size: 21px; font-weight: 750; letter-spacing: -.4px; color: var(--ink); line-height: 1.25; }
.hc-section-head p { font-size: 13.5px; color: var(--muted); }
.hc-empty {
  padding: 28px 22px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--wash); color: var(--muted); font-size: 15px; text-align: center;
}

/* 404 card (v1 not_found) */
.hc-notfound-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 220px); padding: 48px 28px; }
.hc-notfound {
  width: 100%; max-width: 480px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  padding: 32px 28px; box-shadow: var(--shadow-md);
}
.hc-notfound .hc-eyebrow { margin-bottom: 8px; }
.hc-notfound h1 { font-size: 22px; letter-spacing: -.4px; color: var(--ink); font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.hc-notfound-intro { font-size: 15px; color: var(--muted); line-height: 1.55; margin-bottom: 22px !important; }
.hc-notfound-search { display: flex; gap: 8px; }
.hc-notfound-search input {
  flex: 1; min-width: 0; min-height: 42px; padding: 10px 12px; outline: 0;
  border: 1px solid color-mix(in srgb, var(--body) 65%, var(--bg)); border-radius: var(--r-md);
  background: var(--card); color: var(--ink); font-size: 16px;
}
.hc-notfound-search input:focus { border-color: var(--brand-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.hc-notfound-search input::placeholder { color: var(--muted); opacity: 1; }
.hc a.hc-notfound-home { display: inline-flex; align-items: center; min-height: 32px; margin-top: 14px; font-size: 14px; color: var(--brand-deep); font-weight: 600; }
@media (max-width: 420px) {
  .hc-notfound-wrap { padding: 32px 16px; }
  .hc-notfound { padding: 28px 20px; }
  .hc-notfound-search { flex-direction: column; }
}

/* ============ Prose base (.kb-prose is shared with the widget's _blocks) ============ */
.hc .kb-prose { color: var(--prose); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.hc .kb-prose > * { margin: 0 0 18px; }
.hc .kb-prose > :last-child { margin-bottom: 0; }
.hc .kb-prose h2, .hc .kb-prose h3 { color: var(--ink); line-height: 1.3; scroll-margin-top: 96px; }
.hc .kb-prose h2 { font-size: 23px; font-weight: 750; letter-spacing: -.4px; margin: 42px 0 10px; }
.hc .kb-prose h3 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; margin: 30px 0 8px; }
.hc .kb-prose > h2:first-child, .hc .kb-prose > h3:first-child { margin-top: 0; }
.hc .kb-prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hc .kb-prose a:hover { text-decoration-thickness: 2px; }
.hc .kb-prose ul { list-style: disc; padding-left: 1.4em; }
.hc .kb-prose ol { list-style: decimal; padding-left: 1.4em; }
.hc .kb-prose li { margin-bottom: .4em; }
.hc .kb-prose strong { font-weight: 650; color: var(--ink); }
.hc .kb-prose code { background: var(--mint); color: var(--brand-ink); padding: .12em .4em; border-radius: 5px; font-size: .86em; font-family: var(--mono); }
.hc .kb-prose pre {
  background: var(--code-bg); color: var(--code-ink);
  padding: 1em 1.25em; border-radius: var(--r-md); overflow-x: auto;
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
}
.hc .kb-prose pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.hc .kb-prose blockquote { border-left: 3px solid color-mix(in srgb, var(--brand) 50%, var(--bg)); padding-left: 1em; color: var(--muted); }
.hc .kb-prose figure { margin: 4px 0 18px; }
.hc .kb-prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line-soft); }
.hc .kb-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.hc .kb-prose .kb-figure-missing figcaption { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); text-align: left; }
.hc .kb-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.hc .kb-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.hc .kb-table th, .hc .kb-table td { padding: .55em .75em; text-align: left; vertical-align: top; border-top: 1px solid var(--line); min-width: 128px; }
.hc .kb-table thead th { border-top: 0; background: var(--wash); color: var(--ink); font-weight: 600; }
.hc .kb-table tbody tr:first-child td { border-top: 0; }
.hc .kb-table thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
/* v1 .callout: a 4px left bar in the tone colour, no outer border, the background tinted 8% with
   that colour; info is the info blue, not the brand. Dark mode uses lighter tones of the same hues. */
.hc .kb-callout {
  --callout: #1d4ed8;
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  border: 0; border-left: 4px solid var(--callout);
  background: color-mix(in srgb, var(--callout) 8%, var(--bg)); color: var(--ink); font-size: 16px;
}
.hc .kb-callout svg { width: 18px; height: 18px; margin-top: 4px; color: var(--callout); }
.hc .kb-callout.warning { --callout: #d97706; }
.hc .kb-callout.success { --callout: #16a34a; }
.hc .kb-callout.danger { --callout: #dc2626; }
.hc[data-mode="dark"] .kb-callout { --callout: #60a5fa; }
.hc[data-mode="dark"] .kb-callout.warning { --callout: #fbbf24; }
.hc[data-mode="dark"] .kb-callout.success { --callout: #4ade80; }
.hc[data-mode="dark"] .kb-callout.danger { --callout: #f87171; }
@media (prefers-color-scheme: dark) {
  .hc[data-mode="auto"] .kb-callout { --callout: #60a5fa; }
  .hc[data-mode="auto"] .kb-callout.warning { --callout: #fbbf24; }
  .hc[data-mode="auto"] .kb-callout.success { --callout: #4ade80; }
  .hc[data-mode="auto"] .kb-callout.danger { --callout: #f87171; }
}

/* ============ Accessibility ============ */
@media (pointer: coarse) {
  .hc-crumbs a, .hc-footer-badge a, .hc-footer-legal a { min-height: 44px; display: inline-flex; align-items: center; }
  .hc-chip { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc *, .hc *::before, .hc *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* ============ Print (base; the article page adds its own rules) ============
   Prints the content, not the chrome: header, drawers, footer, skip link,
   search forms and buttons are hidden; code wraps; the page address prints
   at the end ("Source: URL"). */
@media print {
  @page { margin: 18mm 16mm; }
  html, body { background: #ffffff !important; }
  .hc { display: block; min-height: 0; overflow: visible; font-size: 11pt; line-height: 1.55; --bg: #ffffff; --card: #ffffff; --ink: #0f172a; --body: #1f2937; --muted: #4b5563; color: #111827; background: #ffffff; }
  .hc-skip, .hc-header, .hc-drawer, .hc-footer, .hc form[role="search"], .hc button, .hc [data-print-hide], .hc .no-print, .hc [role="listbox"] { display: none !important; }
  .hc-wrap { max-width: none; padding: 0; }
  .hc-crumbs { padding: 0 0 8pt; font-size: 9pt; }
  .hc .kb-prose { font-size: 11pt; line-height: 1.55; color: #111827; }
  .hc .kb-prose h2, .hc .kb-prose h3 { color: #030712; break-after: avoid; page-break-after: avoid; }
  .hc .kb-prose h2 { font-size: 16pt; margin-top: 18pt; }
  .hc .kb-prose h3 { font-size: 13pt; }
  .hc .kb-prose p, .hc .kb-prose li { orphans: 3; widows: 3; }
  .hc .kb-prose pre, .hc .kb-prose blockquote, .hc .kb-prose table, .hc .kb-prose figure { break-inside: avoid; page-break-inside: avoid; }
  .hc .kb-prose pre { white-space: pre-wrap !important; overflow: visible !important; background: #f3f4f6 !important; color: #111827 !important; border: 1px solid #d1d5db; }
  .hc .kb-prose pre code { white-space: inherit !important; background: transparent !important; color: inherit !important; }
  .hc .kb-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #4b5563; word-break: break-all; }
  .hc .kb-table { overflow: visible !important; }
  .hc details > *:not(summary) { display: block !important; }
  .hc-print-source { display: block !important; margin-top: 18pt; padding-top: 8pt; border-top: 1px solid #d1d5db; font-size: 9pt; color: #4b5563; word-break: break-all; }
}

/* ============ Preview bar (KB-13) ============ */
/* The signed preview of the dashboard: one fixed amber band in both colour modes (not the brand,
   so it never blends into the page), above the sticky header. The Contact and Ask buttons lead to
   #hc-preview in the preview and look disabled. */
.hc-preview { background: #fef3c7; color: #78350f; border-bottom: 1px solid #f59e0b; font-size: 14px; line-height: 1.45; }
.hc-preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.hc-preview-tag { background: #78350f; color: #fffbeb; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.hc-preview-modes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hc-preview-modes a { color: #78350f; text-decoration: underline; text-underline-offset: 2px; }
.hc-preview-modes a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.hc-preview-note { margin: 0; flex: 1 1 320px; min-width: 0; }
.hc-preview-warn { font-weight: 650; flex-basis: 100%; }
.hc-preview :focus-visible { outline: 2px solid #78350f; outline-offset: 2px; }
.hc[data-preview] a[href="#hc-preview"] { opacity: .55; cursor: not-allowed; }
@media print { .hc-preview { display: none; } }
