/* Kalibr design tokens: the overlap system.
 *
 * Each person is a shape cut from their own answers. The product is where two shapes overlap.
 * Light paper ground, flat bold colour, cut-paper shadows, no gradients and no glow. The values
 * live in the --c-* block below; DESIGN.md says what each one is for and measures its contrast.
 *
 * The --k-* names are the old system's. Screens written before the redesign still say them, so
 * each one now points at its overlap value: the markup keeps working and draws in the new palette.
 * New code uses --c-*, --f-* and --t-* directly.
 */
:root {
  --k-bg: var(--c-paper); --k-bg-2: var(--c-white); --k-bg-3: var(--c-paper-2);
  --k-surface: var(--c-white); --k-surface-sunk: var(--c-paper); --k-scrim: rgba(24,19,15,.62);
  --k-grid: var(--c-line); --k-grid-strong: var(--c-line-2); --k-grid-lift: var(--c-ink-2);
  --k-line: var(--c-line); --k-line-strong: var(--c-line-2);
  --k-ink: var(--c-ink); --k-ink-2: var(--c-ink-2); --k-ink-3: var(--c-ink-2); --k-ink-4: var(--c-ink-2);
  /* Person A, person B, fit that holds, fit that grinds. */
  --k-scion: var(--c-sun-ink); --k-scion-field: var(--c-sun-field);
  --k-rootstock: var(--c-plum); --k-rootstock-field: var(--c-plum-field);
  --k-union: var(--c-leaf-deep); --k-union-field: var(--c-leaf-field); --k-union-lift: var(--c-leaf-deep);
  --k-necrosis: var(--c-tomato); --k-necrosis-field: var(--c-tomato-field);

  /* The old type names: all of them are Work Sans now. Display type uses --f-display. */
  --k-serif: var(--f-body); --k-sans: var(--f-body); --k-narrow: var(--f-body); --k-mono: var(--f-body);

  /* Structure. A plate is trimmed and squared. */
  --r-1: 1px;
  --r-2: 2px;
  --r-3: 3px;
  --r-4: 4px;
  --r-5: 6px;
  --r-round: 999px;

  /* Depth: the old shadow names draw the cut-paper shadows. */
  --sh-1: var(--cut-1); --sh-2: var(--cut-2); --sh-3: var(--cut-3);
  --sh-inset: inset 0 0 0 1px var(--c-line);

  /* Spacing scale. Named so no screen has to invent a magic number again. */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
}

/* ── The overlap system (2026-11 redesign) ─────────────────────────────────────
 * Each person is a shape cut from their own answers. The product is where two shapes
 * overlap. Light paper ground, flat bold colour, cut-paper shadows, no gradients or glow.
 *
 * Measured against WCAG 2.1 before it was written here:
 *     white on --c-cobalt 7.28   white on --c-plum 5.90   white on --c-leaf 5.09
 *     white on --c-tomato 5.06   ink on --c-sun 10.79     ink-2 on --c-paper 8.58
 *     --c-sun on --c-cobalt 4.48: large type only (24px and up), never body text.
 * Rules: text on --c-sun is always --c-ink. --c-plum-light and --c-leaf-light are for
 * shapes and marks, never text on paper. No individual score is ever leaf or tomato:
 * those two belong to pair and team fit. Couples reports use neither.
 */
:root {
  --c-paper: #F4EFE4;
  --c-white: #FBF9F4;
  --c-ink: #18130F;
  --c-ink-2: #4A423B;
  --c-line: #D9CFBD;
  --c-cobalt: #2445C6;
  --c-cobalt-deep: #1A3399;
  --c-sun: #F2BF3A;
  --c-plum: #7A48B0;
  --c-plum-light: #B990E8;
  --c-leaf: #1B7A48;
  --c-leaf-light: #3FD07F;
  --c-tomato: #C8331D;
  --c-line-2: #B8AE9B;      /* ticks and scrollbars: a line that has to be seen */
  --c-quiet-on-ink: #D9D2C4; /* secondary text on --c-ink, 12.1:1 */
  --c-ok-field: #D9F0E2;     /* behind ink text only */
  --c-err-field: #F6DAD4;    /* behind ink text only */
  --c-paper-2: #ECE5D6;      /* a raised paper: hover rows, chips */
  --c-sun-ink: #7E5900;      /* person A's colour as text: 6.0:1 on white, 5.0:1 on --c-paper-2 */
  --c-sun-field: #FBEFC8;    /* behind --c-sun-ink */
  --c-plum-field: #EFE3FA;   /* behind --c-plum text, 5.0:1 */
  --c-leaf-field: #EAF5EE;   /* behind --c-leaf text, 4.8:1 */
  --c-leaf-deep: #176C40;    /* leaf as small text on any paper, 4.9:1 or better */
  --c-tomato-field: #FCEFEC; /* behind --c-tomato text, 4.7:1 */
  --c-hover: rgba(24,19,15,.06);        /* hover wash on paper and white */
  --c-rule-on-ink: rgba(251,249,244,.18); /* hairline on --c-ink */
  --c-shadow: rgba(24,19,15,.18);        /* a cut shadow drawn as a shape, in SVG */

  --f-display: "Rozha One", Georgia, "Times New Roman", serif;
  --f-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* text to copy: a system prompt, code in chat */
  /* The type scale. Every font size on the site is one of these. Seven fixed steps, then three
   * display steps that grow with the window. DESIGN.md says which step is for what. */
  --t-label: 13px;      /* uppercase labels, chips, small print */
  --t-small: 14px;      /* notes, captions, table cells, small buttons */
  --t-body: 16px;       /* reading text, buttons, inputs */
  --t-lead: 18px;       /* ledes and longer reading */
  --t-title: 24px;      /* card titles, handwritten notes */
  --t-heading: 32px;    /* headings inside cards and dialogs */
  --t-figure: 48px;     /* one big number: a score or a price */
  --t-display-3: clamp(24px, 2.6vw, 34px);   /* questions, sub-heads */
  --t-display-2: clamp(40px, 5vw, 70px);     /* page and section headings */
  --t-display-1: clamp(52px, 6.6vw, 100px);  /* the home and couples heroes */

  /* Cut paper sits on the page: a hard offset, no blur. */
  --cut-1: 3px 4px 0 rgba(24,19,15,.16);
  --cut-2: 5px 7px 0 rgba(24,19,15,.18);
  --cut-3: 8px 10px 0 rgba(24,19,15,.22);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--c-paper); color: var(--c-ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  font-synthesis-weight: none;
}
button, input, select, textarea { font-family: inherit; }

/* ── Browser surfaces. These ship with defaults belonging to no design system. ── */
::selection { background: var(--c-sun); color: var(--c-ink); }
::-moz-selection { background: var(--c-sun); color: var(--c-ink); }
:root { accent-color: var(--c-cobalt); caret-color: var(--c-cobalt); color-scheme: light; }
:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 3px; border-radius: var(--r-2); }

/* ── Overlap components ─────────────────────────────────────────────────────── */
/* Wide by design: 1680px at most, with gutters that grow with the window (3vw), so a 1920 screen uses
   about 80% of its width and a laptop about 94%. Running text keeps its own measure inside (see the
   p rules below), so the page widens and the lines do not. */
.kb-wrap { max-width: 1680px; margin: 0 auto; padding-left: max(20px, 3vw, env(safe-area-inset-left, 0px)); padding-right: max(20px, 3vw, env(safe-area-inset-right, 0px)); }
.kb-display { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.005em; text-wrap: balance; margin: 0; overflow-wrap: break-word; }
/* Only phones hyphenate a display word: a 40px "psychometrics," is wider than a 320px column. */
@media (max-width: 480px) { .kb-display { hyphens: auto; } }
.kb-label { font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .13em; text-transform: uppercase; }
.kb-hand { font-family: var(--f-hand); font-weight: 700; }
.kb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border: 0; border-radius: var(--r-3); cursor: pointer;
  font: 700 var(--t-body)/1.1 var(--f-body); text-decoration: none;
  background: var(--c-ink); color: var(--c-white);
  transition: transform .12s ease, box-shadow .12s ease;
}
.kb-btn:hover { transform: translate(-1px,-1px); box-shadow: var(--cut-1); }
.kb-btn:active { transform: none; box-shadow: none; }
.kb-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.kb-btn--sun { background: var(--c-sun); color: var(--c-ink); }
.kb-btn--white { background: var(--c-white); color: var(--c-ink); }
.kb-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.kb-btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor, var(--cut-1); }
.kb-btn--sm { padding: 9px 14px; font-size: var(--t-small); }
.kb-card { background: var(--c-white); box-shadow: var(--cut-2); }
.kb-chip { display: inline-block; padding: 4px 10px; border-radius: var(--r-3); font: 700 var(--t-label)/1.3 var(--f-body); }
@media (prefers-reduced-motion: reduce) { .kb-btn { transition: none; } }
* { scrollbar-color: var(--c-line-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--c-line-2); border: 2px solid var(--c-paper); }
::-webkit-scrollbar-thumb:hover { background: var(--c-ink-2); }
::-webkit-scrollbar-track { background: var(--c-paper); }
a { color: var(--c-cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── Shell: top bar, switcher, phone menu, footer ──────────────────────────── */
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kb-app { display: flex; flex-direction: column; min-height: 100vh; background: var(--c-paper); color: var(--c-ink); }
.kb-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.kb-legacy-island { flex: 1; min-width: 0; }
.kb-skip { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--c-ink); color: var(--c-white); padding: 10px 14px; font-weight: 700; }
.kb-skip:focus { top: 10px; }

.kb-top { position: sticky; top: 0; z-index: 200; background: var(--c-paper); border-bottom: 2px solid var(--c-ink); }
.kb-top__in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.kb-top__logo { display: inline-flex; align-items: center; color: var(--c-ink); text-decoration: none; flex: 0 0 auto; }
.kb-top__links { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.kb-top__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: none; cursor: pointer;
  font: 600 var(--t-body)/1.2 var(--f-body); color: var(--c-ink); text-decoration: none; border-radius: var(--r-2); white-space: nowrap;
}
.kb-top__link:hover { background: var(--c-hover); }
.kb-top__link[aria-current="page"], .kb-top__link.is-current { box-shadow: inset 0 -3px 0 var(--c-cobalt); border-radius: 0; }
.kb-top__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.kb-top__row2 { display: none; padding-bottom: 10px; }

/* The switcher: two halves of one control. The side you are on is filled. */
.kb-switch { display: inline-flex; padding: 3px; background: var(--c-white); box-shadow: inset 0 0 0 2px var(--c-ink); border-radius: 999px; flex: 0 0 auto; }
.kb-switch__opt {
  padding: 7px 14px; border-radius: 999px; font: 700 var(--t-small)/1.1 var(--f-body); color: var(--c-ink);
  text-decoration: none; white-space: nowrap; text-align: center;
}
.kb-switch__opt:hover { background: var(--c-hover); }
.kb-switch__opt[aria-current="true"] { background: var(--c-ink); color: var(--c-white); }

.kb-menu { position: relative; }
.kb-menu__btn svg { flex: 0 0 auto; }
.kb-menu__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.kb-menu__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 300; min-width: 240px; padding: 6px; display: grid; }
.kb-menu__panel.is-right { left: auto; right: 0; }
.kb-menu__item {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font: 500 var(--t-body)/1.3 var(--f-body); color: var(--c-ink); text-decoration: none; border-radius: var(--r-2);
}
.kb-menu__item:hover { background: var(--c-paper); }
.kb-menu__item[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--c-cobalt); border-radius: 0; }
.kb-menu__rule { border: 0; border-top: 1px solid var(--c-line); margin: 6px 0; }
.kb-menu__head { padding: 6px 12px 2px; font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .13em; text-transform: uppercase; color: var(--c-ink-2); }

.kb-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; color: var(--c-ink); }
.kb-burger span { display: block; height: 2.5px; background: currentColor; }

.kb-drawer { position: fixed; inset: 0; z-index: 500; background: var(--c-paper); overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 14px max(20px, env(safe-area-inset-left, 0px)) 28px; }
.kb-drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.kb-drawer__close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--c-ink); display: grid; place-items: center; }
.kb-drawer__list { display: grid; gap: 2px; }
.kb-drawer__list .kb-label { margin: 4px 0 6px; color: var(--c-ink-2); }
.kb-drawer__link { display: block; padding: 10px 0; font: 400 var(--t-heading)/1.15 var(--f-display); color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); }
.kb-drawer__link--small { font: 600 var(--t-lead)/1.3 var(--f-body); padding: 11px 0; }
.kb-drawer__link[aria-current="page"] { color: var(--c-cobalt); }
.kb-drawer__foot { display: grid; gap: 10px; margin-top: auto; }
.kb-switch--drawer { display: flex; }
.kb-switch--drawer .kb-switch__opt, .kb-switch--row .kb-switch__opt { flex: 1; padding: 10px 12px; }
.kb-switch--row { display: flex; }

.kb-foot { margin-top: auto; }
.kb-foot__band { background: var(--c-cobalt); color: var(--c-white); border-top: 3px solid var(--c-ink); }
.kb-foot__band.is-couples { background: var(--c-plum); }
.kb-foot__band :focus-visible { outline-color: var(--c-sun); }
.kb-foot__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 44px; }
.kb-foot__in h2 { font-size: var(--t-display-2); line-height: .95; margin: 0; }
.kb-foot__in p { margin: 14px 0 22px; font-size: var(--t-lead); max-width: 40ch; }
.kb-foot__strip { padding-block: 22px 26px; }
.kb-foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-weight: 600; font-size: var(--t-body); }
.kb-foot__links a { color: var(--c-ink); text-decoration: none; }
.kb-foot__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kb-foot__logo { margin-right: 10px; color: var(--c-ink); }
.kb-foot__base { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: var(--t-small); color: var(--c-ink-2); }
.kb-foot__base a { color: var(--c-ink-2); text-decoration: underline; text-underline-offset: 3px; }

.kb-admin { position: fixed; right: 20px; bottom: 20px; z-index: 900; }
.kb-admin__toggle { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--c-ink); color: var(--c-white); cursor: pointer; font-size: var(--t-lead); box-shadow: var(--cut-1); }
.kb-admin__panel { position: absolute; right: 0; bottom: 52px; width: 290px; padding: 16px; display: grid; gap: 10px; }
.kb-admin__panel input { width: 100%; padding: 10px; font: 500 var(--t-small) var(--f-body); border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); }
.kb-admin__status { font-size: var(--t-label); padding: 8px 10px; }
.kb-admin__status.is-ok { background: var(--c-ok-field); color: var(--c-ink); }
.kb-admin__status.is-err { background: var(--c-err-field); color: var(--c-ink); }

/* The bar holds logo, switcher, three or four links and two buttons down to about 1080px.
 * Below that the links move into the menu; below 640px the switcher takes its own row. */
@media (max-width: 1080px) {
  .kb-top__links, .kb-top__signin, .kb-top__end > .kb-menu { display: none; }
  .kb-burger { display: flex; }
}
@media (max-width: 640px) {
  .kb-switch--bar, .kb-top__cta { display: none; }
  .kb-top__row2 { display: block; }
  .kb-top__in { min-height: 56px; }
  .kb-foot__in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 36px 28px; }
  .kb-foot__in .kb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .kb-menu__btn svg { transition: none; } }
:where(td, th) { font-variant-numeric: tabular-nums; }

/* ── Type helpers ── */
.k-serif { font-family: var(--k-serif); font-weight: 400; letter-spacing: -0.015em; }
.k-mono {
  font-family: var(--k-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
}
.k-narrow { font-family: var(--k-narrow); }

/* A plate's specimen label: condensed, spaced, small.
 *
 * Amended, because the original rule here said "never stacked above a heading as an
 * eyebrow" and then the marketing screens did exactly that. The rule as written was too
 * broad: on a plate, naming the section above its heading is how a plate is labelled, and
 * that is legitimate. What is not legitimate is a label that only restates the heading
 * underneath it, which is decoration wearing a label's clothes. So: a label must add
 * information the heading does not carry. If you can delete it without losing anything,
 * delete it. */
.k-annot,
.k-label {
  font-family: var(--k-narrow);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--k-ink-3);
}

/* Latin binomial convention: the plate names its specimen in italic. */
.k-binomial { font-style: italic; letter-spacing: 0; }

.k-measure { max-width: 68ch; }   /* body measure, inside the 65-75ch floor */

/* Present to assistive technology, absent to the eye. Used for live regions that must
 * already exist in the DOM before their content changes: a region mounted at the same
 * moment as its text is announced unreliably. Not display:none, which removes it from the
 * accessibility tree entirely, and not width:0, which some engines collapse away. */
.k-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Components, in the plate's vocabulary ── */
.k-card {
  background: var(--k-bg-2);
  border: 1px solid var(--k-line);
  border-radius: var(--r-3);
  box-shadow: var(--sh-1);
}

/* A plate is mounted, not floated: a hairline mount inside the trim. */
.k-plate {
  background: var(--k-bg-2);
  border: 1px solid var(--k-grid-strong);
  box-shadow: var(--sh-2), inset 0 0 0 5px var(--k-bg-2), inset 0 0 0 6px var(--k-grid);
  border-radius: var(--r-2);
}

/* A ranked row in a report spine. It is a real <button> because it opens its own detail, so it
   has to read as pressable; it takes the same hover ground as a nav item. */
.k-spine-row { border-radius: var(--r-2); transition: background 180ms cubic-bezier(.16,1,.3,1); }
.k-spine-row:hover { background: var(--k-bg-3); }

.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--k-narrow); font-weight: 600; font-size: var(--t-body);
  letter-spacing: 0.07em; text-transform: uppercase;
  height: 42px; padding: 0 20px;
  border-radius: var(--r-2); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background-color .18s cubic-bezier(.16,1,.3,1),
              color .18s cubic-bezier(.16,1,.3,1),
              border-color .18s cubic-bezier(.16,1,.3,1),
              box-shadow .18s cubic-bezier(.16,1,.3,1);
}
.k-btn--primary,
.k-btn--accent { background: var(--k-union); color: var(--k-bg); box-shadow: var(--sh-1); }
.k-btn--primary:hover,
.k-btn--accent:hover { background: var(--k-union-lift); box-shadow: var(--sh-2); }
.k-btn--ghost { background: transparent; color: var(--k-ink); border-color: var(--k-grid-strong); }
.k-btn--ghost:hover { background: var(--k-bg-3); border-color: var(--k-ink-4); }
.k-btn--lg { height: 50px; padding: 0 26px; font-size: var(--t-body); }
.k-btn--sm { height: 32px; padding: 0 12px; font-size: var(--t-label); }
/* opacity:.45 faded the whole control, label included: the primary variant measured
   1.58:1 and the ghost 3.93:1. WCAG 1.4.3 exempts inactive components, but these buttons
   carry the status the user is waiting on -- "Waiting for scores...", "Regenerating...",
   "Send" -- so the label has to stay readable while the control reads as unavailable.
   Dropping the fill and keeping the dye as a hairline does both, and reuses the
   field/ink pairing .k-chip--union already defines. Measured: 6.52:1 and 5.50:1. */
.k-btn:disabled { cursor: not-allowed; box-shadow: none; }
.k-btn--primary:disabled,
.k-btn--accent:disabled {
  background: var(--k-union-field);
  color: var(--k-union);
  border-color: var(--k-union);
}
.k-btn--ghost:disabled {
  background: transparent;
  color: var(--k-ink-3);
  border-color: var(--k-grid);
}

.k-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  border-radius: var(--r-2);
  font-family: var(--k-mono); font-size: var(--t-label); font-weight: 500;
  background: var(--k-bg-3); color: var(--k-ink-2);
  border: 1px solid var(--k-line);
}
/* Named for the dye, not for the legacy alias. --sage and --accent were the same
   declaration under two names; there is now one. */
/* The contrast table forbids --k-ink-3 on --k-bg-3: it measures 4.21:1, under AA at
   normal size. But ink-3 is the correct ink for a label everywhere else, so .k-label
   cannot simply be raised. A panel that grounds itself in bg-3 marks itself with this
   class instead, and every tertiary ink inside it steps up to ink-2 (7.12:1). */
.k-on-sunk,
.k-on-sunk .k-label { color: var(--k-ink-2); }

.k-chip--union    { background: var(--k-union-field);     color: var(--k-union);     border-color: transparent; }
.k-chip--scion    { background: var(--k-scion-field);     color: var(--k-scion);     border-color: transparent; }
.k-chip--rootstock{ background: var(--k-rootstock-field); color: var(--k-rootstock); border-color: transparent; }
.k-chip--necrosis { background: var(--k-necrosis-field);  color: var(--k-necrosis);  border-color: transparent; }

/* ── The hero ground ───────────────────────────────────────────────────────────
 * The stand itself. The artwork's own outer pixels were composited onto --k-bg when
 * it was cut, so the image has no edge against the ground and the section below it
 * has no seam. Anchored right because the copy occupies the left and the ground
 * there is uniform, so cropping it costs nothing at any viewport width.
 */
.k-hero {
  position: relative;
  background-color: var(--k-bg);
  background-image: url("/assets/hero-orchard-1440.webp");
  background-image: image-set(url("/assets/hero-orchard-1440.webp") 1x,
                              url("/assets/hero-orchard-2480.webp") 2x);
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Below the width where the copy still clears the canopy, the copy has to overlay
 * the artwork. Push the stand further right and lay the ground back over it, so the
 * measured ratios above still hold on what is now a much darker column. */
@media (max-width: 900px) {
  .k-hero { background-position: 78% center; }
  .k-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(100deg,
      var(--k-bg) 0%, var(--k-bg) 40%, rgba(20,33,28,0.78) 64%, rgba(20,33,28,0.34) 100%);
  }
  .k-hero > * { position: relative; }
}

/* Desktop-only chrome is removed below the phone breakpoint by class, not by the JS
   `isMobile` flag alone. The flag and this rule agree in normal operation; the class is
   the deterministic backstop, so a missed resize or a stale bundle cannot leave a desktop
   overlay floating over a phone layout. */
@media (max-width: 767px) {
  .k-hide-mobile { display: none; }
}

/* ── Motion ────────────────────────────────────────────────────────────────────
 * Every animated state is opt-in behind .js-motion, which scripting adds to <html>.
 * Nothing here can leave content invisible if the observer never fires or JS fails:
 * the resting state in the stylesheet is the visible one.
 *
 * Three authored moments, each carrying meaning rather than decorating:
 *   .k-reveal   a section arriving, so a long page reads as a sequence
 *   .k-grow     a bar drawn to its value, because the value is the point
 *   .k-graft-in the union closing, on the hero plate only
 */
.js-motion .k-reveal {
  opacity: 0;
  transform: translateY(14px);
}
.js-motion .k-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms cubic-bezier(.16,1,.3,1),
              transform 620ms cubic-bezier(.16,1,.3,1);
}

/* A measured bar draws from its own origin to its width. scaleX rather than width so it
 * runs on the compositor and cannot reflow the table around it. */
.js-motion .k-grow {
  transform: scaleX(0);
  transform-origin: left center;
}
.js-motion .k-grow.is-in {
  transform: scaleX(1);
  transition: transform 900ms cubic-bezier(.16,1,.3,1);
}

/* Staggering is capped: past a handful of steps a stagger stops reading as sequence and
 * starts reading as lag. */
.js-motion .k-reveal.is-in[data-step="1"] { transition-delay:  70ms; }
.js-motion .k-reveal.is-in[data-step="2"] { transition-delay: 140ms; }
.js-motion .k-reveal.is-in[data-step="3"] { transition-delay: 210ms; }
.js-motion .k-grow.is-in[data-step="1"] { transition-delay:  60ms; }
.js-motion .k-grow.is-in[data-step="2"] { transition-delay: 120ms; }
.js-motion .k-grow.is-in[data-step="3"] { transition-delay: 180ms; }
.js-motion .k-grow.is-in[data-step="4"] { transition-delay: 240ms; }
.js-motion .k-grow.is-in[data-step="5"] { transition-delay: 300ms; }
.js-motion .k-grow.is-in[data-step="6"] { transition-delay: 360ms; }
.js-motion .k-grow.is-in[data-step="7"] { transition-delay: 420ms; }
.js-motion .k-grow.is-in[data-step="8"] { transition-delay: 480ms; }
.js-motion .k-grow.is-in[data-step="9"] { transition-delay: 540ms; }

/* Someone who asked the operating system for less motion gets the finished state at once,
 * not a slower version of the same movement. */
@media (prefers-reduced-motion: reduce) {
  .js-motion .k-reveal,
  .js-motion .k-reveal.is-in,
  .js-motion .k-grow,
  .js-motion .k-grow.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Disclosure: a native <details> whose summary reads as a quiet link with a drawn chevron. The
 * text inside stays in the HTML, so a crawler reads a collapsed explanation like any other. */
.k-expand { list-style: none; cursor: pointer; display: inline-flex; align-items: center;
            gap: var(--s-2); color: var(--k-union); font-size: var(--t-body); line-height: 1.4; }
.k-expand::-webkit-details-marker { display: none; }
.k-expand:hover { color: var(--k-union-lift); }
.k-expand:focus-visible { outline: 2px solid var(--k-union); outline-offset: 3px; border-radius: var(--r-2); }
.k-expand svg { transition: transform 200ms cubic-bezier(.16,1,.3,1); }
details[open] > .k-expand svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .k-expand svg { transition: none; } }

/* Motion: one authored moment. Exponential ease-out from an already-visible default,
 * so nothing depends on JS to become readable. The union closes; it does not fade in. */
@media (prefers-reduced-motion: no-preference) {
  .k-graft-in { animation: k-graft 1000ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes k-graft {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ── Overlap pages: the two home pages, then the rest of the public pages ─────── */
.kb-page { color: var(--c-ink); font: 400 var(--t-lead)/1.55 var(--f-body); }
/* Zero specificity, so a heading class can set its own margin. */
:where(.kb-page) :where(h1, h2, h3) { margin: 0; }
.kb-sec { padding-block: 72px; }
.kb-sec[id] { scroll-margin-top: 72px; }
.kb-sec--cobalt { background: var(--c-cobalt); color: var(--c-white); }
.kb-sec--plum { background: var(--c-plum); color: var(--c-white); }
.kb-sec--sun { background: var(--c-sun); color: var(--c-ink); }
.kb-sec--cobalt a:not(.kb-btn), .kb-sec--plum a:not(.kb-btn) { color: inherit; }
.kb-sec--cobalt :focus-visible, .kb-sec--plum :focus-visible { outline-color: var(--c-sun); }
.kb-sec--sun a:not(.kb-btn) { color: var(--c-ink); }
.kb-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.kb-hero { padding-block: 40px 64px; }
.kb-hero h1 { font-size: var(--t-display-1); line-height: .92; margin-top: 10px; }
.kb-h2 { font-size: var(--t-display-2); line-height: .96; margin-top: 8px; }
.kb-h2--gap { margin-top: 72px; }
.kb-label--cobalt { color: var(--c-cobalt); }
.kb-label--plum { color: var(--c-plum); }
.kb-lede { font-size: var(--t-lead); line-height: 1.55; max-width: 42ch; margin: 18px 0 0; }
.kb-note { font-size: var(--t-body); line-height: 1.5; margin: 14px 0 0; max-width: 46ch; }
.kb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.kb-hero__under { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; font-size: var(--t-label); }
.kb-hint { font-size: var(--t-title); color: var(--c-sun); line-height: 1; }
.kb-card { color: var(--c-ink); }
.kb-invite { background: var(--c-white); color: var(--c-ink); padding: 16px 18px; margin-bottom: 26px; box-shadow: var(--cut-2); }
.kb-invite p { margin: 6px 0 0; font-size: var(--t-body); }
.kb-invite .kb-label { color: var(--c-plum); }
.kb-alert { background: var(--c-err-field); color: var(--c-ink); padding: 10px 14px; font-weight: 600; margin: 0 0 18px; }

.kb-cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.kb-cards4__body { padding: 12px 16px 18px; }
.kb-cards4__body h3 { font-size: var(--t-title); line-height: 1.05; margin-top: 4px; }
.kb-cards4__body p { margin: 6px 0 0; font-size: var(--t-body); color: var(--c-ink-2); }

.kb-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; counter-reset: kbstep; }
.kb-steps li { border-top: 3px solid var(--c-ink); padding-top: 12px; counter-increment: kbstep; }
.kb-steps li::before { content: counter(kbstep); display: block; font: 700 var(--t-label) var(--f-body); letter-spacing: .12em; color: var(--c-cobalt); margin-bottom: 4px; }
.kb-steps--plum li::before { color: var(--c-plum); }
.kb-steps h3 { font-size: var(--t-title); line-height: 1.08; }
.kb-steps p { margin: 6px 0 0; color: var(--c-ink-2); }

.kb-quote blockquote { margin: 0; font-size: var(--t-display-2); line-height: 1.04; max-width: 22ch; }
.kb-quote__cite { margin: 16px 0 0; font-weight: 600; font-size: var(--t-body); }

.kb-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.kb-price { padding: 20px 18px 22px; border-top: 8px solid var(--c-cobalt); }
.kb-price--plum { border-top-color: var(--c-plum); }
.kb-price__p { font: 400 var(--t-figure)/1 var(--f-display); margin: 10px 0; }
.kb-price__p span { font: 600 var(--t-body) var(--f-body); }
.kb-price p { margin: 0; font-size: var(--t-body); color: var(--c-ink-2); }

.kb-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
/* Each promise is its own cut card, so three short paragraphs read as three things, not one loose row. */
.kb-trust > div { padding: 22px 24px; background: var(--c-white); box-shadow: var(--cut-2); }
.kb-sec--white .kb-trust > div { background: var(--c-paper); }
.kb-trust h3 { font-size: var(--t-title); line-height: 1.1; margin-bottom: 6px; }
.kb-trust p { margin: 0; color: var(--c-ink-2); }
.kb-sec--sun .kb-trust p { color: var(--c-ink); }

.kb-covers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.kb-covers__c { padding: 20px 22px; }
.kb-covers__c h3 { font-size: var(--t-title); line-height: 1.1; }
.kb-covers__c p { margin: 8px 0 0; color: var(--c-ink-2); font-size: var(--t-body); }
.kb-lede--ink { color: var(--c-ink-2); }

.kb-sec--white { background: var(--c-white); }
.kb-hero--short { padding-block: 56px 64px; }
.kb-hero--short h1 { font-size: var(--t-display-2); line-height: .95; max-width: 18ch; }
.kb-two--top { align-items: start; }
.kb-small { font-size: var(--t-small); line-height: 1.55; color: var(--c-ink-2); margin: 18px 0 0; max-width: 70ch; }
.kb-page :where(p, li) a:not(.kb-btn) { color: var(--c-cobalt); }
.kb-sec--cobalt :where(p, li) a:not(.kb-btn), .kb-sec--plum :where(p, li) a:not(.kb-btn) { color: inherit; }
.kb-page .kb-sec--sun a:not(.kb-btn) { color: var(--c-ink); }

.kb-prices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kb-prices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kb-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.kb-tier { padding: 20px 22px 24px; border-top: 8px solid var(--c-ink); }
.kb-tier h3 { font-size: var(--t-title); line-height: 1.12; margin: 8px 0 10px; }
.kb-tier p { margin: 0; font-size: var(--t-body); color: var(--c-ink-2); }
.kb-tier.is-leaf { border-top-color: var(--c-leaf); } .kb-tier.is-leaf .kb-label { color: var(--c-leaf); }
.kb-tier.is-cobalt { border-top-color: var(--c-cobalt); } .kb-tier.is-cobalt .kb-label { color: var(--c-cobalt); }
.kb-tier.is-tomato { border-top-color: var(--c-tomato); } .kb-tier.is-tomato .kb-label { color: var(--c-tomato); }
/* The couples science page: no green and no red in the couples module, so its tiers are ink, cobalt and plum. */
.kb-tier.is-ink .kb-label { color: var(--c-ink); }
.kb-tier.is-plum { border-top-color: var(--c-plum); } .kb-tier.is-plum .kb-label { color: var(--c-plum); }

.kb-findings { list-style: none; padding: 0; margin: 30px 0 0; counter-reset: kbf; }
.kb-findings li { counter-increment: kbf; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-top: 1.5px solid var(--c-line); }
.kb-findings li::before { content: counter(kbf, decimal-leading-zero); grid-row: 1 / span 3; font: 400 var(--t-heading)/1 var(--f-display); color: var(--c-cobalt); }
.kb-findings h3 { font-size: var(--t-title); line-height: 1.15; max-width: 40ch; }
.kb-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kb-stats .kb-chip { background: var(--c-paper); color: var(--c-ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--c-line); }

.kb-details { margin-top: 10px; }
.kb-details summary { cursor: pointer; font-weight: 700; font-size: var(--t-body); color: var(--c-cobalt); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.kb-details summary::-webkit-details-marker { display: none; }
.kb-details summary::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s ease; }
.kb-details[open] summary::before { transform: rotate(90deg); }
.kb-details p { margin: 10px 0 0; max-width: 72ch; color: var(--c-ink-2); font-size: var(--t-body); line-height: 1.65; }

.kb-measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.kb-measure { padding: 20px 22px; }
.kb-measure h3 { font-size: var(--t-title); line-height: 1.12; }

.kb-refs { list-style: none; padding: 0; margin: 28px 0 0; max-width: 90ch; counter-reset: kbr; }
.kb-refs li { counter-increment: kbr; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--c-line); font-size: var(--t-body); }
.kb-refs li::before { content: counter(kbr, decimal-leading-zero); position: absolute; left: 0; top: 15px; font: 700 var(--t-label) var(--f-body); letter-spacing: .08em; color: var(--c-ink-2); }
.kb-refs__who { font-weight: 600; }
.kb-refs em { color: var(--c-ink-2); }
.kb-refs__where { display: block; margin-top: 4px; font-size: var(--t-body); color: var(--c-ink-2); }

.kb-list2 { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.kb-list2 li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--c-line); font-size: var(--t-body); }
.kb-list2 li::before { content: ""; position: absolute; left: 0; top: 19px; width: 12px; height: 12px; background: var(--c-cobalt); }

.kb-form { padding: 24px; display: grid; gap: 16px; }
.kb-form--sent { background: var(--c-ok-field); }
.kb-form--sent p { margin: 6px 0 0; }
.kb-field { display: grid; gap: 6px; }
.kb-field input, .kb-field select, .kb-field textarea {
  width: 100%; padding: 12px; border: 2px solid var(--c-ink); border-radius: 0; background: var(--c-white);
  color: var(--c-ink); font: 500 var(--t-body)/1.4 var(--f-body);
}
.kb-field textarea { resize: vertical; line-height: 1.55; }
.kb-form .kb-btn { justify-self: start; }
.kb-form .kb-small { margin-top: 0; }

.kb-h3 { font-size: var(--t-display-3); line-height: 1.05; }
.kb-sec--cobalt .kb-card :focus-visible, .kb-sec--plum .kb-card :focus-visible { outline-color: var(--c-cobalt); }
.kb-ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; max-width: 46ch; }
.kb-ticks li { position: relative; padding-left: 26px; font-size: var(--t-body); line-height: 1.5; }
.kb-ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; background: var(--c-sun); }

/* The agreement. Its own ground, ink and type, so it reads the same in any screen. */
.kb-consent { padding: 24px; max-width: 620px; font-family: var(--f-body); }
.kb-consent h2 { font-size: var(--t-heading); line-height: 1.05; margin: 0; }
.kb-consent__lede { margin: 10px 0 18px; color: var(--c-ink-2); font-size: var(--t-body); line-height: 1.55; }
.kb-consent__list { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.kb-consent a, .kb-consent a:not(.kb-btn) { color: var(--c-cobalt); }
.kb-consent .kb-actions { margin-top: 20px; }
.kb-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--c-paper); cursor: pointer; font-size: var(--t-body); line-height: 1.5; color: var(--c-ink); }
.kb-check.is-on { background: var(--c-white); box-shadow: inset 0 0 0 2px var(--c-cobalt); }
.kb-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 20px; accent-color: var(--c-cobalt); }

/* A test, one page of statements at a time. */
.kb-quiz { min-height: 72vh; padding-block: 32px 64px; }
.kb-quiz__in { max-width: 820px; }
.kb-progress { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: var(--t-small); }
.kb-progress__bar { flex: 1; height: 8px; background: var(--c-rule-on-ink); border-radius: var(--r-round); overflow: hidden; }
.kb-progress__bar i { display: block; height: 100%; width: 100%; background: var(--c-sun); transform-origin: left center; transition: transform .18s ease; }
.kb-quiz__ask { margin: 22px 0 6px; font-size: var(--t-body); }
.kb-q { border: 0; margin: 16px 0 0; padding: 22px; box-shadow: var(--cut-3); }
.kb-q legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-size: var(--t-display-3); line-height: 1.12; }
.kb-q__scale { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.kb-q__opt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 10px; border: 2px solid var(--c-ink); border-radius: var(--r-3); cursor: pointer; text-align: center; font: 600 var(--t-label)/1.2 var(--f-body); color: var(--c-ink); background: var(--c-white); }
.kb-q__opt:hover { background: var(--c-paper); }
.kb-q__opt.is-on { background: var(--c-sun); }
.kb-q__opt input { margin: 0; flex: 0 0 auto; accent-color: var(--c-ink); }
.kb-quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }

/* A score between two named ends. The marker is the person's colour; the rail is neutral. */
.kb-scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.kb-scale { padding: 22px 24px; }
.kb-scale__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.kb-scale__top h2 { font-size: var(--t-heading); line-height: 1; margin-top: 4px; }
.kb-scale__n { font: 400 var(--t-figure)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kb-rail { position: relative; height: 8px; background: var(--c-line); border-radius: var(--r-round); margin: 22px 0 8px; }
.kb-rail__tick { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--c-line-2); }
.kb-rail i { position: absolute; top: 50%; width: 24px; height: 24px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--c-cobalt); border: 4px solid var(--c-white); box-shadow: 0 1px 0 rgba(24,19,15,.3); }
.kb-rail__ends { display: flex; justify-content: space-between; font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-2); }
.kb-rail__ends .is-on { color: var(--c-ink); }
.kb-scale__sum { margin: 16px 0 0; font-size: var(--t-lead); }
.kb-scale__more { margin: 6px 0 0; font-size: var(--t-body); color: var(--c-ink-2); }

.kb-writeup { margin-top: 44px; }
.kb-writeup__body { display: grid; gap: 18px; margin-top: 18px; }
/* Drive, Thinking style and Together read side by side; the try-this card and the AI note run under all three. */
.kb-writeup__body--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; }
.kb-writeup__body--cols > .kb-try, .kb-writeup__body--cols > .kb-small { grid-column: 1 / -1; }
.kb-writeup__body p { margin: 6px 0 0; font-size: var(--t-lead); line-height: 1.65; max-width: 64ch; }
.kb-writeup__wait { margin: 14px 0 0; color: var(--c-ink-2); }
.kb-try { padding: 18px 22px; border-top: 8px solid var(--c-sun); }
.kb-try ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.kb-unlock { margin-top: 18px; padding: 20px 22px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.kb-unlock p { margin: 0; max-width: 50ch; }
.kb-unlock .kb-btn { flex: 0 0 auto; }

/* A picture across the top of a card, edge to edge. */
.kb-card__pic { margin: -20px -18px 16px; }
.kb-tier .kb-card__pic { margin: -20px -22px 16px; }
.kb-price--plum .kb-card__pic { margin-bottom: 14px; }
.kb-contact__pic { margin-top: 28px; padding: 0 0 14px; overflow: hidden; }
.kb-contact__pic .kb-small { margin: 12px 16px 0; }
.kb-quiz__head { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 20px; align-items: center; }
.kb-two--result { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; }
/* A shape card beside a heading keeps the shape's size: a wide column would leave it floating in a
   stretched card. */
.kb-two > .kb-myshape { width: 100%; max-width: 460px; justify-self: end; }
.kb-myshape { padding: 0 0 12px; overflow: hidden; }
.kb-myshape .kb-small { margin: 10px 16px 0; }

/* Motion. Every hidden state needs .kb-rise, which only script adds, so nothing is ever invisible
 * without it. Reduced motion never gets the class. */
.kb-rise { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.kb-rise.is-in { opacity: 1; transform: none; }
.kb-cards4__c, .kb-price, .kb-tier, .kb-measure, .kb-covers__c { transition: transform .18s ease, box-shadow .18s ease; }
.kb-cards4__c:hover, .kb-price:hover, .kb-tier:hover, .kb-measure:hover, .kb-covers__c:hover { transform: translate(-3px, -4px); box-shadow: var(--cut-3); }

.kb-hero__pic { position: relative; }
.kb-sticker { position: absolute; left: 50%; margin-left: -59px; top: -22px; width: 118px; height: 118px; border-radius: 50%; background: var(--c-sun); color: var(--c-ink);
  display: grid; place-items: center; text-decoration: none; box-shadow: var(--cut-2); transform: rotate(-8deg); transition: transform .2s ease; }
.kb-sticker:hover { transform: rotate(-2deg) scale(1.06); }
.kb-sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: kb-spin 22s linear infinite; }
.kb-sticker text { font: 700 10.5px var(--f-body); letter-spacing: .14em; fill: var(--c-ink); }
.kb-sticker span { font: 700 var(--t-title)/1 var(--f-hand); }
@keyframes kb-spin { to { transform: rotate(360deg); } }
.kb-meet__hint { font-size: var(--t-title); color: var(--c-cobalt); margin: 18px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .kb-rise { opacity: 1; transform: none; transition: none; }
  .kb-sticker svg { animation: none; }
  .kb-cards4__c, .kb-price, .kb-tier, .kb-measure, .kb-covers__c, .kb-sticker { transition: none; }
}

/* The sign-in window. */
.kb-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(24,19,15,.62); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.kb-dialog { width: 100%; max-width: 440px; background: var(--c-white); color: var(--c-ink); font-family: var(--f-body); box-shadow: 10px 12px 0 rgba(24,19,15,.35); animation: kb-dialog-in .32s cubic-bezier(.16,1,.3,1); }
@keyframes kb-dialog-in { from { opacity: 0; transform: translateY(18px) rotate(-1deg); } to { opacity: 1; transform: none; } }
.kb-dialog__pic { position: relative; background: var(--c-cobalt); }
.kb-dialog__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--c-white); color: var(--c-ink); cursor: pointer; box-shadow: var(--cut-1); }
.kb-dialog__body { padding: 22px 26px 24px; }
.kb-dialog__body h2 { font-size: var(--t-heading); line-height: 1; margin: 8px 0 10px; }
.kb-dialog__step { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-label); color: var(--c-ink-2); }
.kb-dialog__lede { margin: 0 0 14px; font-size: var(--t-body); line-height: 1.55; color: var(--c-ink-2); }
.kb-dialog__lede strong { color: var(--c-ink); }
.kb-dialog__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.kb-dialog__body .kb-field { margin-bottom: 12px; }
.kb-dialog__opt { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--c-line-2); }
.kb-dialog__opt .kb-small { margin: 0 0 14px; }
.kb-dialog__go { width: 100%; margin-top: 4px; }
.kb-dialog__go.is-ok, .kb-dialog__go.is-ok[disabled] { background: var(--c-leaf); color: var(--c-white); opacity: 1; }
.kb-dialog__foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: var(--t-body); color: var(--c-ink-2); }
.kb-field__note { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--c-ink-2); }
.kb-field.is-error input { border-color: var(--c-tomato); }
.kb-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: 600 var(--t-body) var(--f-body); color: var(--c-cobalt); text-decoration: underline; text-underline-offset: 3px; }
.kb-devcode { margin: 14px 0 0; padding: 12px 14px; background: var(--c-sun); }
.kb-devcode__n { font: 400 var(--t-heading)/1 var(--f-display); letter-spacing: .14em; margin-top: 4px; }
.kb-otp__label { margin: 18px 0 8px; }
.kb-otp { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.kb-otp__gap { width: 10px; height: 3px; background: var(--c-ink); flex: 0 0 auto; }
.kb-otp__cell { flex: 1 1 0; min-width: 0; max-width: 52px; height: 60px; padding: 0; text-align: center; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); font: 400 var(--t-heading)/1 var(--f-display); font-variant-numeric: tabular-nums; transition: background .15s ease, transform .15s ease; }
.kb-otp__cell.is-filled { background: var(--c-sun); }
.kb-otp__cell.is-ok { background: var(--c-leaf); color: var(--c-white); border-color: var(--c-leaf); }
.kb-otp__cell.is-error { border-color: var(--c-tomato); background: var(--c-err-field); }
.kb-otp__cell:focus { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .kb-dialog { animation: none; } .kb-otp__cell { transition: none; } .kb-otp__cell:focus { transform: none; } }

/* The unlock card inside the report screens. */
.kb-paywall { display: grid; grid-template-columns: 220px minmax(0, 1fr); margin: 32px 0; font-family: var(--f-body); color: var(--c-ink); overflow: hidden; }
.kb-paywall__pic { position: relative; background: var(--c-cobalt); display: grid; align-content: center; }
.kb-paywall__hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: var(--t-title); color: var(--c-sun); }
.kb-paywall__body { padding: 22px 24px; }
.kb-paywall__body h3 { font-size: var(--t-heading); line-height: 1; margin: 6px 0 8px; }
.kb-paywall__body p { margin: 0; color: var(--c-ink-2); max-width: 52ch; }
.kb-paywall__body .kb-actions { margin-top: 18px; }
.kb-paywall__code { margin-top: 14px; max-width: 260px; }
.kb-paywall__more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.kb-paywall .kb-linkbtn { font-size: var(--t-small); }

/* The full assessment. */
:root { --kb-top-h: 66px; }
.kb-as-wait { min-height: 60vh; font-weight: 600; }
.kb-as-center { min-height: 72vh; display: grid; place-items: center; padding-inline: 16px; }
.kb-as-intro { width: 100%; max-width: 600px; overflow: hidden; }
.kb-as-intro__pic { background: var(--c-cobalt); border-bottom: 3px solid var(--c-ink); }
.kb-as-intro__body { padding: 22px 26px 24px; }
.kb-as-intro__body h2 { font-size: var(--t-heading); line-height: 1.02; margin: 6px 0 10px; }
.kb-as-intro__text { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--c-ink-2); }
.kb-as-intro__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.kb-as-steps { display: flex; gap: 6px; margin-bottom: 16px; }
.kb-as-steps span { flex: 1; height: 6px; background: var(--c-line); }
.kb-as-steps span.is-on { background: var(--c-sun); }
.kb-as-price { margin-top: 18px; padding: 16px 18px; background: var(--c-sun); color: var(--c-ink); }
.kb-as-price__top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: var(--t-small); }
.kb-as-price__n { font: 400 var(--t-figure)/1 var(--f-display); }
.kb-as-price p { margin: 10px 0 0; font-size: var(--t-small); line-height: 1.55; }
.kb-as-note { padding: 12px 14px; background: var(--c-paper); color: var(--c-ink); font-size: var(--t-small); line-height: 1.55; }
.kb-as-note strong { font-weight: 700; }
.kb-as-note a { color: var(--c-cobalt); }

.kb-as { padding-block: 0; min-height: 80vh; }
.kb-as__head { position: sticky; top: var(--kb-top-h); z-index: 50; background: var(--c-cobalt); border-bottom: 2px solid var(--c-cobalt-deep); }
.kb-as__head-in { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 18px; align-items: center; padding-block: 12px; }
.kb-as__where .kb-progress { margin-top: 8px; }
.kb-as__body { max-width: 820px; display: grid; gap: 16px; padding-block: 24px 32px; }
.kb-as-q { margin: 0; }
.kb-as-q__n { font: 700 var(--t-label) var(--f-body); letter-spacing: .12em; color: var(--c-cobalt); }
.kb-as-q__text { font-size: var(--t-display-3); line-height: 1.15; margin: 4px 0 16px; }
.kb-as-dot { display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--c-line-2); }
.kb-q__opt.is-on .kb-as-dot { background: var(--c-ink); }
.kb-q__opt { flex-direction: column; }
.kb-as-mc { display: grid; gap: 8px; }
.kb-as-mc__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--c-ink); border-radius: var(--r-3); background: var(--c-white); color: var(--c-ink); cursor: pointer; text-align: left; font: 500 var(--t-body)/1.4 var(--f-body); }
.kb-as-mc__opt:hover { background: var(--c-paper); }
.kb-as-mc__opt.is-on { background: var(--c-sun); font-weight: 600; }
.kb-as-mc__l { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ink); color: var(--c-white); font: 700 var(--t-label) var(--f-body); }
.kb-as__honest { margin: 6px 0 0; font-size: var(--t-small); line-height: 1.55; }
.kb-as__foot { position: sticky; bottom: 0; z-index: 50; background: var(--c-ink); color: var(--c-white); }
.kb-as__foot-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; font-size: var(--t-small); }
.kb-as__left { font-weight: 700; color: var(--c-sun); }
.kb-as__save { margin-right: auto; }
.kb-as__foot .kb-btn--ghost { color: var(--c-white); }

/* The quality check after submitting. Quality chips are cobalt and sun: this is one person's
 * result, and green and red belong to pair and team fit. */
.kb-done-shape { padding: 0 0 12px; }
.kb-done-shape__wait { height: 260px; display: grid; place-items: center; background: var(--c-cobalt); color: var(--c-white); font-weight: 600; }
.kb-checks { margin-top: 18px; padding: 4px 22px; }
.kb-check-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.kb-check-row:last-child { border-bottom: 0; }
.kb-check-row__label { font-weight: 700; font-size: var(--t-body); }
.kb-check-row__hint { margin-top: 4px; font-size: var(--t-small); line-height: 1.5; color: var(--c-ink-2); max-width: 60ch; }
.kb-check-row__value { margin-top: 6px; font-size: var(--t-small); font-weight: 600; color: var(--c-cobalt); font-variant-numeric: tabular-nums; }
.kb-chip--pass { background: var(--c-cobalt); color: var(--c-white); }
.kb-chip--review { background: var(--c-sun); color: var(--c-ink); }
.kb-chip--wait { background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-line-2); }
.kb-dims { margin-top: 44px; }
.kb-done-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 48px; align-items: start; }
.kb-done-grid > .kb-dims { margin-top: 0; }
.kb-done-grid > .kb-dims__wait { align-self: start; }
@media (max-width: 900px) { .kb-done-grid { grid-template-columns: minmax(0, 1fr); } .kb-done-grid > .kb-dims { margin-top: 20px; } }
.kb-dims__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kb-dims__wait { margin-top: 24px; text-align: center; }
.kb-dim { padding: 14px 16px 12px; }
.kb-dim.is-locked { filter: blur(7px); user-select: none; pointer-events: none; }
.kb-dim__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: var(--t-body); }
.kb-dim__top b { font: 400 var(--t-title)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kb-rail--sm { margin: 14px 0 8px; }
.kb-rail--sm i { width: 20px; height: 20px; border-width: 3.5px; }
.kb-dim__band { font-size: var(--t-label); color: var(--c-ink-2); }
.kb-done-next { margin-top: 32px; display: grid; justify-items: start; gap: 6px; }

/* Pair reports: the list, the flow and the report itself (.kb-prep). */
.kb-pair-sample-bar { background: var(--c-sun); color: var(--c-ink); font-weight: 700; font-size: var(--t-small); border-block: 2px solid var(--c-ink); }
.kb-pair-sample-bar .kb-wrap { padding-block: 10px; }
/* A link inside the sun bar is ink: cobalt on sun falls just short of 4.5:1. */
.kb-pair-sample-bar .kb-linkbtn { color: var(--c-ink); font-size: inherit; }
.kb-pair-report-wrap { max-width: 1680px; margin: 0 auto; padding: 32px max(20px, 3vw, env(safe-area-inset-right, 0px)) 40px max(20px, 3vw, env(safe-area-inset-left, 0px)); }
.kb-pair-dim { opacity: .4; filter: blur(1px); pointer-events: none; }
.kb-pair-start { padding-block: 40px 48px; }
/* A form, not a reading: it keeps a working width on a wide screen instead of stretching. */
.kb-pair-start .kb-pairflow__card { max-width: 1040px; }
/* A short message page: its lines keep a reading measure inside the full-width container. */
.kb-measure > p, .kb-measure > h1 { max-width: 72ch; }
.kb-pairflow__card { display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; }
.kb-pairflow__pic { background: var(--c-cobalt); display: grid; align-content: center; }
.kb-pairflow__body { padding: 22px 26px 26px; }
.kb-pairflow__body h2 { font-size: var(--t-heading); line-height: 1; margin: 6px 0 10px; }
.kb-pairflow__lede { margin: 0 0 18px; color: var(--c-ink-2); max-width: 52ch; }
.kb-pairflow__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.kb-pairflow__wait { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--c-ink-2); margin: 6px 0 0; }
.kb-pairflow__state h3 { font-size: var(--t-title); line-height: 1.08; margin: 4px 0 8px; }
.kb-pairflow__state p { margin: 0 0 12px; color: var(--c-ink-2); max-width: 60ch; }
.kb-pairflow__state p strong { color: var(--c-ink); }
.kb-pairflow__ok { display: inline-block; margin-bottom: 10px; padding: 4px 10px; background: var(--c-cobalt); color: var(--c-white); font-weight: 700; font-size: var(--t-label); }
.kb-pair-app { padding-block: 32px 56px; }
.kb-pair-app__in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.kb-pair-app__main { min-width: 0; }
.kb-pairlist { position: sticky; top: calc(var(--kb-top-h) + 16px); display: grid; gap: 8px; }
.kb-pairlist__title { margin-bottom: 4px; }
.kb-pairlist__item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: var(--c-white); color: var(--c-ink); text-align: left; cursor: pointer; box-shadow: var(--cut-1); font: inherit; transition: transform .15s ease; }
.kb-pairlist__item:hover { transform: translate(-2px, -2px); }
.kb-pairlist__item.is-on { box-shadow: inset 4px 0 0 var(--c-cobalt), var(--cut-2); }
.kb-pairlist__who { display: grid; gap: 2px; min-width: 0; }
.kb-pairlist__who b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-pairlist__who small { font-size: var(--t-label); color: var(--c-ink-2); }
.kb-pairlist__score { flex: 0 0 auto; min-width: 46px; text-align: center; padding: 6px 8px; font: 400 var(--t-title)/1 var(--f-display); background: var(--c-paper); color: var(--c-ink); }
.kb-pairlist__score.is-leaf { background: var(--c-leaf); color: var(--c-white); }
.kb-pairlist__score.is-tomato { background: var(--c-tomato); color: var(--c-white); }
.kb-pairlist__status { font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-cobalt); }
.kb-pairlist__new { margin-top: 6px; justify-self: start; }
.kb-pair-status { padding: 24px 26px; }
.kb-pair-status h2 { font-size: var(--t-heading); line-height: 1.05; margin: 6px 0 12px; }
.kb-pair-status p { margin: 0 0 12px; color: var(--c-ink-2); max-width: 62ch; }

/* A screen whose markup still speaks the old named colours, drawn in the overlap palette. Every
 * --k-* name it uses is pointed at its overlap value here, so the markup and copy stay exactly as
 * they are. Person A takes a dark sun that holds on white; person B takes plum. Fit stays leaf and
 * tomato, which on a pair report is correct. */
.kb-reskin {
  background: var(--c-paper); color: var(--c-ink); font-family: var(--f-body); color-scheme: light;
}
/* The old class names, drawn in the overlap design everywhere, not only inside .kb-reskin: a component
 * written before the redesign (the team tree, the pair report) looks right wherever it is placed. */
.kb-reskin h1 { font-family: var(--f-display); font-weight: 400; letter-spacing: 0; }
.k-serif { font-family: var(--f-display); font-weight: 400; letter-spacing: 0; }
.k-mono { font-family: var(--f-body); font-variant-numeric: tabular-nums; font-weight: 600; }
.k-card, .k-plate { border: 0; border-radius: 0; background: var(--c-white); box-shadow: var(--cut-2); }
.k-label, .k-annot { font-family: var(--f-body); font-size: var(--t-label); font-weight: 700; letter-spacing: .12em; color: var(--c-ink-2); }
h2.k-label { color: var(--c-cobalt); }
.k-btn { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 700; border-radius: var(--r-3); height: auto; padding: 10px 16px; }
.k-btn--sm { padding: 8px 12px; }
.k-btn--primary, .k-btn--accent { background: var(--c-ink); color: var(--c-white); box-shadow: none; }
.k-btn--ghost { background: transparent; color: var(--c-ink); border: 2px solid var(--c-ink); }
.k-btn--ghost:hover { background: var(--c-white); box-shadow: var(--cut-1); }
.k-chip { border-radius: var(--r-3); font-weight: 600; }
.k-expand { color: var(--c-cobalt); font-weight: 700; }
.kb-reskin a { color: var(--c-cobalt); }
.kb-reskin :focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 3px; }
.kb-pair-overlap { margin: 0 0 20px; box-shadow: var(--cut-2); }

/* Report screens: a cobalt head with the person's own shape beside their name. */
.kb-prof-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--c-cobalt); color: var(--c-white); padding: 28px 30px; margin-bottom: 32px; box-shadow: var(--cut-2); font-family: var(--f-body); }
.kb-prof-head .kb-label { color: var(--c-white); }
.kb-prof-head h1, .kb-prof-head .kb-prof-head__title { font-size: var(--t-display-2); line-height: .95; margin: 8px 0 6px; color: var(--c-white); }
.kb-prof-head__role { font-size: var(--t-body); }
.kb-prof-head__lede { margin: 6px 0 0; font-size: var(--t-lead); line-height: 1.55; max-width: 52ch; }
.kb-prof-head.is-plum { background: var(--c-plum); }
.kb-prof-head__sig { margin-top: 18px; }
.kb-prof-head__sigtext { font-size: var(--t-title); line-height: 1.15; margin-top: 4px; color: var(--c-sun); }
.kb-prof-head__skeleton { display: inline-block; width: 240px; height: 22px; background: var(--c-rule-on-ink); vertical-align: middle; }
.kb-prof-head .kb-btn--ghost { color: var(--c-white); }
.kb-prof-head :focus-visible { outline-color: var(--c-sun); }
.kb-prof-head__pic { position: relative; }
.kb-prof-head__note { display: block; text-align: center; font-size: var(--t-title); color: var(--c-sun); margin-top: 2px; }
/* KbScreenHead sits in a size container: it stacks when its own column is narrow, whatever the window. */
/* The bottom margin sits on the wrapper: a size container does not let a child's margin collapse
 * through it, so on the head itself the gap to the next block would double. */
.kb-prof-wrap { container-type: inline-size; margin-bottom: 32px; }
.kb-prof-wrap > .kb-prof-head { margin-bottom: 0; }
.kb-prof-wrap .kb-prof-head h1, .kb-prof-wrap .kb-prof-head .kb-prof-head__title { font-size: max(var(--t-heading), min(var(--t-display-2), 7.5cqi)); overflow-wrap: break-word; }
@container (max-width: 720px) {
  .kb-prof-wrap .kb-prof-head { grid-template-columns: minmax(0, 1fr); }
  .kb-prof-wrap .kb-prof-head__pic { max-width: 420px; }
}

@media (max-width: 900px) {
  .kb-two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kb-scales, .kb-writeup__body--cols { grid-template-columns: minmax(0, 1fr); }
  .kb-two > .kb-myshape { justify-self: start; }
  .kb-cards4, .kb-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-tiers, .kb-prices--3 { grid-template-columns: minmax(0, 1fr); }
  .kb-pairflow__card, .kb-pair-app__in, .kb-prof-head { grid-template-columns: minmax(0, 1fr); }
  .kb-pairlist { position: static; grid-auto-flow: column; grid-auto-columns: minmax(200px, max-content); overflow-x: auto; padding-bottom: 6px; }
  .kb-pairlist__title { display: none; }
}
@media (max-width: 640px) {
  .kb-sec { padding-block: 52px; }
  .kb-hero { padding-block: 28px 48px; }
  .kb-hero h1 { font-size: var(--t-figure); }
  .kb-cards4, .kb-prices, .kb-steps, .kb-trust, .kb-covers, .kb-measures, .kb-list2 { grid-template-columns: minmax(0, 1fr); }
  .kb-findings li { grid-template-columns: minmax(0, 1fr); }
  .kb-findings li::before { grid-row: auto; margin-bottom: 6px; }
  .kb-hero--short h1 { font-size: var(--t-figure); }
  .kb-sticker { width: 108px; height: 108px; margin-left: -54px; top: -18px; }
  .kb-sticker span { font-size: var(--t-title); }
  .kb-q__scale { grid-template-columns: minmax(0, 1fr); }
  .kb-pairflow__form { grid-template-columns: minmax(0, 1fr); }
  .kb-dims__grid { grid-template-columns: minmax(0, 1fr); }
  :root { --kb-top-h: 110px; }
  .kb-as__head-in { grid-template-columns: minmax(0, 1fr) 64px; }
  .kb-q__opt { flex-direction: row; }
  .kb-as__foot-in { font-size: var(--t-label); flex-wrap: wrap; }
  .kb-as__save { order: 3; flex-basis: 100%; }
  .kb-as-intro__nav .kb-btn { width: auto; }
  .kb-paywall { grid-template-columns: minmax(0, 1fr); }
  .kb-quiz__head { grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; }
  .kb-q__opt { justify-content: flex-start; text-align: left; }
  .kb-unlock { flex-direction: column; align-items: flex-start; }
  .kb-quiz__nav .kb-btn, .kb-unlock .kb-btn { width: auto; }
  .kb-actions .kb-btn { width: 100%; }
}

/* ── Couples app (phase 5). Partner A is sun, partner B is plum, the overlap is cobalt. No green or red. ── */
.kb-as--plum .kb-as__head { background: var(--c-plum); border-bottom-color: color-mix(in srgb, var(--c-plum) 70%, var(--c-ink)); }
.kb-as--plum .kb-as-q__n { color: var(--c-plum); }
.kb-as-q legend > span { display: block; }
fieldset.kb-as-q { min-inline-size: 0; min-width: 0; }
.kb-as-q .kb-as-mc { clear: both; }
.kb-as-mc__opt input { margin: 0; flex: 0 0 auto; accent-color: var(--c-ink); }
.kb-party { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c-ink); }
.kb-party--a { background: var(--c-sun); }
.kb-party--b { background: var(--c-plum); box-shadow: inset 0 0 0 2px var(--c-white), 0 0 0 1px var(--c-ink); }
.kb-who { display: inline-flex; align-items: center; gap: 8px; }
.kb-who-row { display: inline-flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }
.kb-who-row--ink { display: flex; margin-top: 18px; }
.kb-rail--two i.is-a { background: var(--c-sun); border-color: var(--c-ink); border-width: 3px; }
.kb-rail--two i.is-b { width: 16px; height: 16px; background: var(--c-plum); border-width: 3px; }
.kb-couple-map { margin-top: 22px; padding: 2px 24px; }
.kb-couple-map__row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.kb-couple-map__row:last-child { border-bottom: 0; }
.kb-couple-map__row h3 { font-size: var(--t-title); line-height: 1.1; }
.kb-couple-map__row p { margin: 4px 0 0; font-size: var(--t-small); line-height: 1.45; color: var(--c-ink-2); }
.kb-couple-map .kb-rail, .kb-couple-diff .kb-rail { margin-top: 14px; }
.kb-couple-diffs { display: grid; gap: 20px; margin-top: 32px; }
/* Two differences side by side once each card still has room for its own two columns. */
.kb-couple-diffs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); align-items: start; }

/* The couple report as one document: a summary someone can stop at, then the detail behind it. */
.kb-couple-doc { padding-top: 40px; }
.kb-couple-doc .kb-rdoc__main > section + section { margin-top: 72px; }
.kb-cglance h2 { margin-bottom: 20px; }
.kb-cglance__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.kb-cglance__c { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.kb-cglance__n { margin: 4px 0 0; font: 400 var(--t-heading)/1.05 var(--f-display); color: var(--c-ink); }
.kb-cglance__sub { margin: 4px 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--c-ink-2); }
.kb-cglance__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.kb-cglance__list li { display: grid; gap: 2px; font-size: var(--t-small); line-height: 1.4; color: var(--c-ink-2); }
.kb-cglance__list b { font-size: var(--t-body); color: var(--c-ink); }
.kb-cglance__plans { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.kb-cglance__plans li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--t-small); font-weight: 600; }
.kb-cglance__plans .kb-chip { flex: 0 0 auto; }
.kb-cglance__start { margin-top: 16px; padding: 22px 26px; border-top: 8px solid var(--c-plum); }
.kb-cglance__start h3 { font-size: var(--t-title); margin: 6px 0 0; }
.kb-cglance__start p { margin: 8px 0 0; font-size: var(--t-lead); line-height: 1.5; max-width: 70ch; }
.kb-couple-doc .kb-couple-map { margin-top: 18px; }
.kb-couple-diff__needs span { display: inline-block; margin-right: 4px; font: 700 var(--t-label)/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink); }
.kb-couple-diff__more { margin-top: 4px; }
.kb-couple-diff__more[open] > summary { margin-bottom: 12px; }
.kb-couple-plans__agreed { margin-top: 14px; }
.kb-couple-plans__agreed > summary { font-weight: 600; }
.kb-couple-plans__agreed .kb-couple-plans { margin-top: 12px; }
.kb-couple-agreebox { padding: 28px 30px; background: var(--c-sun); }
.kb-couple-agreebox .kb-couple-agree li { background: var(--c-white); }
@media (max-width: 1100px) { .kb-cglance__grid { grid-template-columns: minmax(0, 1fr); } }
.kb-couple-diff { padding: 26px 28px; }
.kb-couple-diff h3 { font-size: var(--t-heading); line-height: 1.05; margin: 4px 0 6px; }
.kb-couple-diff__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0; }
.kb-couple-diff__one { padding: 14px 16px; background: var(--c-sun-field); }
.kb-couple-diff__one.is-b { background: var(--c-plum-field); }
.kb-couple-diff__one p { margin: 8px 0 0; font-size: var(--t-body); line-height: 1.6; }
.kb-couple-diff__needs { color: var(--c-ink-2); }
.kb-couple-diff ul { margin: 8px 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: var(--t-body); line-height: 1.55; }
.kb-couple-diff ul:last-child { margin-bottom: 0; }
.kb-couple-diff__ask { color: var(--c-ink-2); }
.kb-couple-meet { margin-bottom: 64px; }
.kb-couple-meet__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.kb-couple-plans { position: relative; margin-top: 24px; padding: 4px 24px; overflow-x: auto; }
.kb-couple-plans table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--t-body); }
.kb-couple-plans th, .kb-couple-plans td { text-align: left; vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--c-line); }
.kb-couple-plans tbody tr:last-child > * { border-bottom: 0; }
.kb-couple-plans thead th { font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; border-bottom-color: var(--c-line-2); }
.kb-couple-plans tbody th { font-weight: 600; }
.kb-couple-plans td { color: var(--c-ink-2); }
.kb-couple-talk { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.kb-couple-talk li { padding: 18px 22px; }
.kb-couple-talk p { margin: 6px 0 0; font-size: var(--t-body); line-height: 1.55; }
.kb-couple-agree { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.kb-couple-agree li { padding: 16px 20px; font-size: var(--t-lead); line-height: 1.55; }
.kb-couple-firm { font-size: var(--t-heading); }
.kb-couple-app { padding-block: 32px 72px; }
.kb-couple-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.kb-couple-card { padding: 24px 26px; }
.kb-couple-card h2 { font-size: var(--t-heading); line-height: 1.05; }
.kb-couple-card p { margin: 10px 0 0; font-size: var(--t-body); line-height: 1.6; color: var(--c-ink-2); }
.kb-couple-card--sun { background: var(--c-sun); }
.kb-couple-card--sun p { color: var(--c-ink); }
.kb-couple-card__small { font-size: var(--t-small); }
.kb-couple-who h2 { margin-top: 6px; overflow-wrap: anywhere; }
.kb-couple-who__email { font-weight: 600; color: var(--c-ink) !important; overflow-wrap: anywhere; }
.kb-as__with { margin: 6px 0 0; font-size: var(--t-small); line-height: 1.4; overflow-wrap: anywhere; }
.kb-couple-invite { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kb-couple-invite input { flex: 1 1 260px; min-width: 0; padding: 12px 14px; font: 500 var(--t-small)/1.3 var(--f-body); color: var(--c-ink); background: var(--c-paper); border: 2px solid var(--c-ink); border-radius: var(--r-3); }
.kb-couple-wait { width: 100%; max-width: 640px; }
.kb-couples-app__err { margin-top: 20px; }
/* The footer band is a pitch: not under the couples test, the waiting screens or the report. */
.kb-app:has(.kb-couples-app) .kb-foot__band { display: none; }
@media (max-width: 767px) {
  .kb-couple-map { padding: 2px 16px; }
  .kb-couple-map__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .kb-couple-diff { padding: 20px 18px; }
  .kb-couple-diff h3 { font-size: var(--t-title); }
  .kb-couple-diff__two { grid-template-columns: minmax(0, 1fr); }
  .kb-couple-plans { padding: 4px 16px; }
}

/* ── Legal pages. The text is the agreement; the page only has to make it easy to read and to find
 * your place in. Links are cobalt and underlined, like every link in running text. ── */
.kb-legal__head { padding-block: 56px 48px; }
.kb-legal__head h1 { font-size: var(--t-display-2); line-height: .98; margin-top: 8px; }
.kb-legal__date { margin: 16px 0 0; font-size: var(--t-small); }
.kb-legal__main { padding-block: 48px 88px; }
.kb-legal__in { display: grid; grid-template-columns: 240px minmax(0, 72ch); gap: 56px; align-items: start; }
.kb-legal__toc { position: sticky; top: calc(var(--kb-top-h) + 24px); max-height: calc(100vh - var(--kb-top-h) - 48px); overflow-y: auto; padding: 4px 4px 4px 0; }
.kb-legal__toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.kb-legal__toc a { display: block; padding: 6px 0; font-size: var(--t-small); line-height: 1.35; color: var(--c-ink-2); text-decoration: none; }
.kb-legal__toc a:hover { color: var(--c-cobalt); text-decoration: underline; }
.kb-legal__body { font-size: var(--t-body); line-height: 1.7; color: var(--c-ink-2); }
.kb-legal__body h2 { font: 400 var(--t-title)/1.15 var(--f-display); color: var(--c-ink); margin: 48px 0 12px; scroll-margin-top: calc(var(--kb-top-h) + 20px); }
.kb-legal__body h2:first-child { margin-top: 0; }
.kb-legal__body h2:focus { outline: none; }
.kb-legal__body h3 { font: 700 var(--t-body)/1.35 var(--f-body); color: var(--c-ink); margin: 26px 0 6px; }
.kb-legal__body p { margin: 0 0 14px; }
.kb-legal__body ul { margin: 8px 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.kb-legal__body strong { color: var(--c-ink); }
.kb-legal__table { overflow-x: auto; margin: 16px 0 22px; background: var(--c-white); box-shadow: var(--cut-1); }
.kb-legal__table table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: 1.5; }
.kb-legal__table th { text-align: left; padding: 10px 12px; font-weight: 700; color: var(--c-ink); border-bottom: 2px solid var(--c-ink); white-space: nowrap; }
.kb-legal__table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.kb-legal__table tr:last-child td { border-bottom: 0; }
.kb-legal__foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: var(--t-small); line-height: 1.7; }
@media (max-width: 960px) {
  .kb-legal__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kb-legal__toc { display: none; }
}

/* ── Settings. One column of cards under the screen head. Deleting the account is the one place a
 * button is tomato: it is the only action on the site that cannot be taken back. ── */
.kb-settings { padding-block: 32px 80px; }
.kb-settings__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kb-settings__grid > .kb-settings__card { margin-bottom: 0; }
@media (max-width: 900px) { .kb-settings__grid { grid-template-columns: minmax(0, 1fr); } }
.kb-settings__admin { display: flex; align-items: center; gap: 14px; padding: 16px 22px; margin-bottom: 16px; }
.kb-settings__admin p { margin: 0; font-size: var(--t-small); }
.kb-settings__card { padding: 26px 28px; margin-bottom: 16px; display: grid; gap: 16px; }
.kb-settings__card h2 { font-size: var(--t-heading); line-height: 1.05; }
.kb-settings__card p { margin: 0; color: var(--c-ink-2); }
.kb-settings__card .kb-actions { margin-top: 4px; }
.kb-settings__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kb-field input:disabled { background: var(--c-paper-2); color: var(--c-ink-2); cursor: not-allowed; }
.kb-field__hint { font-size: var(--t-small); color: var(--c-ink-2); }
.kb-settings__saved { min-height: 0; font-weight: 600; color: var(--c-ink); }
.kb-settings__saved:empty { display: none; }
.kb-settings__danger .kb-chip { justify-self: start; }
.kb-settings__confirm { align-items: center; }
.kb-settings__confirm span { font-weight: 600; }
.kb-chip--danger { background: var(--c-tomato-field); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-tomato); }
.kb-btn--danger { background: var(--c-tomato); color: var(--c-white); }
@media (max-width: 767px) {
  .kb-settings__two { grid-template-columns: minmax(0, 1fr); }
  .kb-settings__card { padding: 20px 18px; }
}

/* ── Blog. Each post is a card with its own cut picture; a post reads in one narrow column. ── */
.kb-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kb-post { display: flex; flex-direction: column; color: var(--c-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.kb-post:hover { transform: translate(-2px, -2px); box-shadow: var(--cut-3); }
.kb-post:focus-visible { outline-offset: 4px; }
.kb-post__pic { background: var(--c-cobalt); padding: 10px 0; }
.kb-post__body { display: grid; gap: 10px; padding: 20px 22px 22px; flex: 1; align-content: start; }
.kb-post__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--c-cobalt); }
.kb-post h2 { font-size: var(--t-title); line-height: 1.15; }
.kb-post p { margin: 0; font-size: var(--t-small); line-height: 1.6; color: var(--c-ink-2); }
.kb-post__more { margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--c-cobalt); }
.kb-article__head { padding-block: 40px 64px; }
.kb-article__head h1 { font-size: var(--t-display-2); line-height: .98; margin-top: 10px; max-width: 18ch; }
.kb-article__head .kb-post__meta { margin-top: 28px; color: var(--c-white); }
.kb-article__back { display: inline-block; font-weight: 700; color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }
.kb-article__back::before { content: "\2190\00a0"; }
.kb-article__pic { align-self: center; }
.kb-article__body { max-width: 68ch; margin: 0 auto; font-size: var(--t-lead); line-height: 1.7; color: var(--c-ink-2); }
.kb-article__sec + .kb-article__sec { margin-top: 36px; }
.kb-article__body h2 { font-size: var(--t-heading); line-height: 1.05; color: var(--c-ink); margin-bottom: 14px; }
.kb-article__body p { margin: 0 0 16px; }
.kb-article__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.kb-article__cta .kb-lede { max-width: 52ch; }
@media (max-width: 960px) {
  .kb-posts { grid-template-columns: minmax(0, 1fr); }
  .kb-article__cta { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .kb-post { transition: none; } .kb-post:hover { transform: none; } }

/* ── Design system specimen page (/#design-system). ── */
.kb-ds__group { margin-top: 36px; }
.kb-ds__group h3 { font-size: var(--t-title); margin-bottom: 14px; }
.kb-ds__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kb-ds__swatch { display: flex; flex-direction: column; }
.kb-ds__chip { height: 88px; box-shadow: inset 0 -1px 0 var(--c-line); }
.kb-ds__swatch-body { display: grid; gap: 2px; padding: 12px 14px 14px; }
.kb-ds__swatch-body p { margin: 4px 0 0; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-ds code { font: 600 var(--t-small)/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--c-ink); }
.kb-ds__value { font-size: var(--t-label); color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.kb-ds__type { margin-top: 28px; display: grid; }
.kb-ds__type-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.kb-ds__type-meta { display: grid; gap: 2px; }
.kb-ds__type-sample { line-height: 1.1; overflow-wrap: break-word; min-width: 0; }
.kb-ds__shapes { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kb-ds__shape { margin: 0; display: flex; flex-direction: column; }
.kb-ds__shape-pic { background: var(--c-cobalt); padding: 8px 0; }
.kb-ds__shape-pic.is-plum { background: var(--c-plum); }
.kb-ds__shape figcaption { display: grid; gap: 10px; padding: 14px 18px 18px; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-ds__shape figcaption code { margin-right: 6px; }
.kb-ds__range { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--c-ink); }
.kb-ds__range input { flex: 1; accent-color: var(--c-cobalt); }
.kb-ds__parts { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kb-ds__part { padding: 22px 24px; }
.kb-ds__part h3 { font-size: var(--t-title); }
.kb-ds__part .kb-actions { margin-top: 16px; }
.kb-ds__part .kb-field { margin-top: 16px; }
.kb-ds__head { margin-top: 32px; }
.kb-ds__depth { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.kb-ds__depth-card { display: grid; gap: 4px; padding: 26px 22px; background: var(--c-white); }
@media (max-width: 900px) {
  .kb-ds__shapes, .kb-ds__parts, .kb-ds__depth { grid-template-columns: minmax(0, 1fr); }
  .kb-ds__type-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ── Report parts shared by the Work screens: loading, disclosure, evidence, the dimension list. ── */
.kb-locked { filter: blur(7px); user-select: none; pointer-events: none; }
.kb-loading { padding: 26px 28px; max-width: 720px; margin-bottom: 32px; }
.kb-loading.is-compact { padding: 20px 22px; }
.kb-loading__top { display: flex; align-items: center; gap: 16px; }
.kb-loading__top h2 { font-size: var(--t-title); line-height: 1.1; }
.kb-loading__dots { display: inline-flex; gap: 6px; }
.kb-loading__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-cobalt); animation: kb-pulse 1.6s ease-in-out infinite; }
.kb-loading__dots i:nth-child(2) { animation-delay: .2s; background: var(--c-sun); }
.kb-loading__dots i:nth-child(3) { animation-delay: .4s; }
.kb-loading.is-couple .kb-loading__dots i { background: var(--c-sun); }
.kb-loading.is-couple .kb-loading__dots i:nth-child(2) { background: var(--c-plum); }
@keyframes kb-pulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.kb-loading__sub { margin: 12px 0 0; color: var(--c-ink-2); }
.kb-loading__steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.kb-loading__steps li { display: flex; gap: 12px; align-items: baseline; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-loading__steps li span:first-child { width: 16px; flex: 0 0 auto; font-weight: 700; color: var(--c-cobalt); }
.kb-loading__steps li.is-now { color: var(--c-ink); font-weight: 600; }
.kb-loading__time { margin-top: 16px; font-size: var(--t-label); color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .kb-loading__dots i { animation: none; opacity: .8; } }

.kb-disclose { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border: 0; background: var(--c-white); box-shadow: var(--cut-1); color: var(--c-ink); font: 700 var(--t-body)/1.3 var(--f-body); text-align: left; cursor: pointer; }
.kb-disclose:hover { background: var(--c-paper-2); }
.kb-disclose__mark { font: 400 var(--t-title)/1 var(--f-body); color: var(--c-cobalt); }
.kb-evidence { margin-top: 32px; }
.kb-evidence__body { margin-top: 8px; }
.kb-evidence__key { padding: 18px 22px; border-bottom: 1px solid var(--c-line); display: grid; gap: 8px; }
.kb-evidence__key p { margin: 0; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-evidence__row { padding: 16px 22px; border-bottom: 1px solid var(--c-line); display: grid; gap: 6px; }
.kb-evidence__row:last-child { border-bottom: 0; }
.kb-evidence__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kb-evidence__row p { margin: 0; font-size: var(--t-small); line-height: 1.55; max-width: 72ch; }
.kb-evidence__src { color: var(--c-ink-2); }

.kb-rail--me i { background: var(--c-sun); border: 3px solid var(--c-ink); width: 20px; height: 20px; box-shadow: none; }
.kb-spine { margin-top: 48px; }
.kb-spine__title { font-size: var(--t-heading); }
.kb-spine__intro { margin: 10px 0 0; color: var(--c-ink-2); max-width: 72ch; }
.kb-spine__list { margin-top: 20px; padding: 4px 22px; }
.kb-spine__head, .kb-spine__line { display: grid; grid-template-columns: 32px minmax(0, 1fr) 56px minmax(140px, 220px) 120px; gap: 18px; align-items: center; }
.kb-spine__head { padding: 14px 0 10px; border-bottom: 2px solid var(--c-ink); font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-2); }
.kb-spine__head .is-num { text-align: right; }
.kb-spine__row { border-bottom: 1px solid var(--c-line); }
.kb-spine__row:last-child { border-bottom: 0; }
.kb-spine__line { padding: 14px 0; }
.kb-spine__btn { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.kb-spine__btn:hover { background: var(--c-hover); }
.kb-spine__rank { font-weight: 700; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.kb-spine__name { display: grid; gap: 2px; min-width: 0; }
.kb-spine__label { font: 400 var(--t-title)/1.1 var(--f-display); }
.kb-spine__band { font-size: var(--t-small); color: var(--c-ink-2); }
.kb-spine__score { font: 400 var(--t-title)/1 var(--f-display); text-align: right; font-variant-numeric: tabular-nums; }
.kb-spine__line .kb-rail { margin: 0; }
.kb-spine__note { font-size: var(--t-label); color: var(--c-ink-2); text-align: right; }
.kb-spine__row.is-open { background: var(--c-paper); margin-inline: -22px; padding-inline: 22px; }
.kb-spine__detail { padding: 0 0 20px 50px; }
.kb-spine__more { display: grid; gap: 10px; max-width: 72ch; }
.kb-spine__more p { margin: 0; color: var(--c-ink-2); }
.kb-spine__more .kb-spine__day { color: var(--c-ink); font-size: var(--t-lead); }
.kb-spine__more .kb-label { margin-right: 6px; color: var(--c-cobalt); }
.kb-spine__edge { font-size: var(--t-small); }
.kb-spine__flex { margin-top: 24px; }
.kb-spine__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 767px) {
  .kb-spine__list { padding: 4px 14px; }
  .kb-spine__head, .kb-spine__line { grid-template-columns: 22px minmax(0, 1fr) 40px; gap: 10px; }
  .kb-spine__head span:nth-child(4), .kb-spine__note { display: none; }
  .kb-spine__line .kb-rail { grid-column: 2 / -1; }
  .kb-spine__label, .kb-spine__score { font-size: var(--t-body); font-family: var(--f-body); font-weight: 700; }
  .kb-spine__row.is-open { margin-inline: -14px; padding-inline: 14px; }
  .kb-spine__detail { padding-left: 0; }
}

/* ── Individual report screens: profile and blind spots. One column of cards under the screen head.
 * Locked parts blur (.kb-locked); one person's results are never green or red. ── */
.kb-preview { position: sticky; top: var(--kb-top-h); z-index: 60; background: var(--c-sun); color: var(--c-ink); }
.kb-preview__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 10px; font-size: var(--t-small); font-weight: 600; }
.kb-report__sec { padding-block: 32px 88px; }
.kb-report__fail { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 24px; background: var(--c-err-field); }
.kb-report__fail p { margin: 0; flex: 1 1 260px; }
.kb-skeleton { height: 72px; background: var(--c-paper-2); }
.kb-skeleton + .kb-skeleton { margin-top: 12px; height: 40px; }
.kb-report__lead { padding: 26px 30px; margin-bottom: 20px; }
.kb-report__lead p { margin: 10px 0 0; font-size: var(--t-lead); line-height: 1.6; max-width: 70ch; }
.kb-report__quote { font-size: var(--t-title); line-height: 1.25; }
.kb-report__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kb-report__four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.kb-report__card { padding: 20px 22px; }
.kb-report__card p { margin: 8px 0 0; color: var(--c-ink-2); line-height: 1.6; }
.kb-report__block { margin-top: 48px; }
.kb-report__h2 { font-size: var(--t-heading); line-height: 1.05; }
.kb-report__list { margin: 16px 0 0; padding-left: 0; list-style: none; display: grid; gap: 12px; counter-reset: kbpat; }
.kb-report__list li { position: relative; padding: 18px 22px 18px 58px; line-height: 1.6; counter-increment: kbpat; }
.kb-report__list li::before { content: counter(kbpat); position: absolute; left: 20px; top: 14px; font: 400 var(--t-title)/1 var(--f-display); color: var(--c-cobalt); }
.kb-report__doubt { margin-top: 48px; padding: 26px 30px; }
.kb-report__note { margin: 10px 0 0; color: var(--c-ink-2); font-size: var(--t-small); max-width: 72ch; }
.kb-report__doubts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-top: 20px; }
.kb-report__doubts p { margin: 6px 0 0; line-height: 1.6; color: var(--c-ink-2); }
.kb-report__fig { font: 400 var(--t-figure)/1 var(--f-display); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.kb-report__fig span { font-size: var(--t-title); color: var(--c-ink-2); }
.kb-report__pair { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 48px; padding: 0 26px 0 0; overflow: hidden; }
.kb-report__pair-pic { background: var(--c-cobalt); align-self: stretch; display: grid; align-items: center; }
.kb-report__pair p { margin: 10px 0 0; color: var(--c-ink-2); max-width: 56ch; }
.kb-report__pair > div:last-child { padding-block: 22px; }
.kb-report__foot { margin: 32px 0 0; font-size: var(--t-small); color: var(--c-ink-2); max-width: 80ch; }
.kb-dict { margin-top: 48px; }
.kb-dict__body { margin-top: 8px; }
.kb-dict__row { display: grid; grid-template-columns: 220px repeat(2, minmax(0, 1fr)); gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--c-line); }
.kb-dict__row:last-child { border-bottom: 0; }
.kb-dict__name { font: 700 var(--t-body)/1.3 var(--f-body); margin: 0; }
.kb-dict__q { margin: 2px 0 0; font-size: var(--t-small); color: var(--c-ink-2); font-style: italic; }
.kb-dict__row p { margin: 4px 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--c-ink-2); }
.kb-bs-list { display: grid; gap: 18px; }
.kb-bs { padding: 26px 30px; }
.kb-bs--empty p { margin: 0; text-align: center; color: var(--c-ink-2); }
.kb-bs__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.kb-bs__id { font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; color: var(--c-cobalt); }
.kb-bs__top h2 { font-size: var(--t-heading); line-height: 1.05; margin-top: 4px; }
.kb-bs__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.kb-bs__two p, .kb-bs__deal p { margin: 6px 0 0; line-height: 1.6; color: var(--c-ink-2); }
.kb-bs__miss { margin-top: 18px; padding: 16px 18px; background: var(--c-paper); }
.kb-bs__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
.kb-bs__three h3 { margin: 0; font: 700 var(--t-small)/1.3 var(--f-body); }
.kb-bs__three p { margin: 4px 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--c-ink-2); }
.kb-bs__deal { margin-top: 14px; padding: 16px 18px; background: var(--c-sun-field); }
.kb-bs__deal p { color: var(--c-ink); }
@media (max-width: 767px) {
  .kb-report__two, .kb-report__four, .kb-report__doubts, .kb-dict__row, .kb-bs__two, .kb-bs__three { grid-template-columns: minmax(0, 1fr); }
  .kb-report__lead, .kb-report__doubt, .kb-bs { padding: 20px 18px; }
  .kb-report__pair { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .kb-report__pair > div:last-child { padding: 0 18px 20px; }
}

/* ── Constitution and download. A segmented switch, the rules card, the prompt as code. ── */
.kb-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--c-white); box-shadow: var(--cut-1); margin-bottom: 20px; }
.kb-seg button { padding: 8px 16px; border: 0; background: transparent; color: var(--c-ink-2); font: 700 var(--t-small)/1.2 var(--f-body); cursor: pointer; }
.kb-seg button:hover { background: var(--c-paper-2); }
.kb-seg button.is-on { background: var(--c-ink); color: var(--c-white); }
.kb-seg--sm { margin: 0; box-shadow: none; background: var(--c-paper); }
.kb-con__rules { padding: 24px 26px; }
.kb-con__rules h2 { font-size: var(--t-title); line-height: 1.15; margin: 8px 0 16px; }
.kb-con__rules ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kb-con__rules li { display: grid; gap: 2px; padding: 12px 14px; background: var(--c-plum-field); }
.kb-con__rules li span { font-size: var(--t-label); color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.kb-con__bs { margin-top: 18px; }
.kb-con__bs ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kb-con__bs li { padding: 6px 10px; background: var(--c-paper); font-size: var(--t-small); font-weight: 600; }
.kb-con__dims { padding: 24px 26px; }
.kb-con__dims ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.kb-con__dim { display: flex; justify-content: space-between; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-con__dim b { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.kb-con__dims .kb-rail { margin: 6px 0 0; }
.kb-con__prompt { overflow: hidden; }
.kb-con__mcp { display: grid; gap: 16px; }
.kb-con__mcp h2 { font-size: var(--t-display-3); }
.kb-con__mcp p { margin: 0; line-height: 1.55; max-width: 72ch; }
.kb-con__url { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; background: var(--c-paper); }
.kb-con__url code { font: 600 var(--t-body)/1.4 var(--f-mono); overflow-wrap: anywhere; }
.kb-con__apps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.kb-con__apps > div { display: grid; gap: 8px; align-content: start; padding-top: 12px; border-top: 2px solid var(--c-ink); }
.kb-con__apps .kb-code { padding: 12px; max-height: none; }
.kb-con__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--c-line); }
.kb-con__copy { display: flex; align-items: center; gap: 12px; font-size: var(--t-label); color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.kb-con__fallback { margin: 0; padding: 10px 18px; background: var(--c-sun-field); font-size: var(--t-small); border-bottom: 1px solid var(--c-line); }
.kb-con__wait { padding: 22px; }
/* Text the reader copies into another tool is code: monospace, wrapped, on paper. */
.kb-code { margin: 0; padding: 22px; font: 400 var(--t-small)/1.65 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--c-ink); background: var(--c-paper); max-height: 70vh; overflow: auto; }
.kb-dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 24px 26px; align-items: start; }
.kb-dl__icon { width: 96px; height: 96px; display: grid; place-items: center; background: var(--c-cobalt); color: var(--c-white); }
.kb-dl h2 { font-size: var(--t-heading); line-height: 1.05; }
.kb-dl p { margin: 8px 0 0; color: var(--c-ink-2); }
.kb-dl__hint { font-size: var(--t-small); }
.kb-steps-sm { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--c-ink-2); line-height: 1.55; }
@media (max-width: 767px) { .kb-dl { grid-template-columns: minmax(0, 1fr); } }

/* ── The constitution trial: two chats side by side, the same AI with two briefs. ── */
.kb-trial__intro { margin: 0 0 24px; color: var(--c-ink-2); max-width: 64ch; }
.kb-trial__state { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 24px; }
.kb-trial__state h2 { font-size: var(--t-title); }
.kb-trial__state p { margin: 6px 0 0; color: var(--c-ink-2); }
.kb-trial__prompts { margin-bottom: 20px; }
.kb-trial__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kb-trial__chip { padding: 9px 14px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); font: 600 var(--t-small)/1.2 var(--f-body); cursor: pointer; }
.kb-trial__chip:hover { background: var(--c-paper-2); }
.kb-trial__chip.is-featured { background: var(--c-plum-field); border-color: var(--c-plum); }
.kb-trial__chip.is-on { background: var(--c-sun); border-color: var(--c-ink); }
.kb-trial__picked { margin-top: 12px; padding: 14px 18px; background: var(--c-white); box-shadow: var(--cut-1); }
.kb-trial__picked q { font-style: italic; color: var(--c-ink-2); line-height: 1.6; }
.kb-trial__picked .kb-actions { margin-top: 12px; }
.kb-trial__chats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kb-trial__own { margin: 24px 0 0; padding: 22px 26px; }
.kb-trial__own p { max-width: 80ch; }
.kb-trial__own h2 { font-size: var(--t-title); }
.kb-trial__own p { margin: 10px 0 0; color: var(--c-ink-2); line-height: 1.65; }
.kb-chat { display: flex; flex-direction: column; height: 560px; overflow: hidden; }
.kb-chat__head { padding: 14px 18px; border-bottom: 1px solid var(--c-line); background: var(--c-paper); }
.kb-chat.is-kalibr .kb-chat__head { background: var(--c-plum); color: var(--c-white); }
.kb-chat__head h2 { margin: 0; font: 700 var(--t-body)/1.3 var(--f-body); }
.kb-chat__head p { margin: 2px 0 0; font-size: var(--t-label); opacity: .9; }
.kb-chat__log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.kb-chat__empty { margin: 40px 0 0; text-align: center; color: var(--c-ink-2); font-size: var(--t-small); }
.kb-chat__msg { max-width: 88%; padding: 10px 14px; font-size: var(--t-small); line-height: 1.65; overflow-wrap: anywhere; }
.kb-chat__msg.is-user { align-self: flex-end; background: var(--c-cobalt); color: var(--c-white); white-space: pre-wrap; }
.kb-chat__msg.is-model { align-self: flex-start; background: var(--c-paper); color: var(--c-ink); }
.kb-chat__msg.is-error { align-self: flex-start; background: var(--c-err-field); color: var(--c-ink); }
.kb-chat__msg.is-wait { color: var(--c-ink-2); font-style: italic; }
.kb-chat__h { display: block; margin: 8px 0 2px; }
.kb-chat__li { margin-left: 18px; list-style: disc; }
.kb-chat__li.is-num { list-style: decimal; }
.kb-chat__code { font-family: var(--f-mono); background: var(--c-white); padding: 1px 4px; }
.kb-chat__pre { margin: 6px 0; padding: 10px 12px; background: var(--c-white); overflow-x: auto; white-space: pre; font: 400 var(--t-label)/1.5 var(--f-mono); }
.kb-chat__limit { padding: 14px 18px; border-top: 1px solid var(--c-line); background: var(--c-sun-field); }
.kb-chat__limit p { margin: 4px 0 10px; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-chat__input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--c-line); }
.kb-chat__input input { flex: 1; min-width: 0; padding: 10px 12px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); font: 500 var(--t-small)/1.3 var(--f-body); }
@media (max-width: 900px) { .kb-trial__chats { grid-template-columns: minmax(0, 1fr); } .kb-chat { height: 480px; } }

/* ── What next: the tab's blocks on the left, its picture held beside them. ── */
.kb-wn__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.kb-wn__panel { display: grid; gap: 14px; }
/* On a wide screen the three blocks sit side by side under the lede, so the page reads across, not down. */
@media (min-width: 1200px) {
  .kb-wn__panel { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .kb-wn__panel > .kb-wn__lede { grid-column: 1 / -1; }
}
.kb-wn__lede { margin: 0; font-size: var(--t-lead); line-height: 1.6; max-width: 62ch; }
.kb-wn__block { padding: 20px 24px; }
.kb-wn__block h3 { margin: 0; color: var(--c-cobalt); }
.kb-wn__block.is-limit { background: var(--c-paper-2); box-shadow: none; }
.kb-wn__block.is-limit h3 { color: var(--c-ink); }
.kb-wn__list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 9px; line-height: 1.62; color: var(--c-ink-2); }
.kb-wn__list strong { color: var(--c-ink); }
.kb-wn__pic { position: sticky; top: calc(var(--kb-top-h) + 24px); display: grid; gap: 8px; justify-items: center; }
.kb-wn__picbox { width: 100%; background: var(--c-cobalt); padding: 10px 0; box-shadow: var(--cut-2); }
.kb-wn__pic .kb-hand { font-size: var(--t-title); color: var(--c-cobalt); text-align: center; }
@media (max-width: 900px) {
  .kb-wn__grid { grid-template-columns: minmax(0, 1fr); }
  .kb-wn__pic { position: static; order: -1; }
}

/* ── Case study: a public article with three figures. ── */
.kb-case__body { max-width: 720px; margin: 0 auto; font-size: var(--t-lead); line-height: 1.7; color: var(--c-ink-2); }
.kb-case__body > p { margin: 16px 0 0; }
.kb-case__body h2 { font-size: var(--t-heading); line-height: 1.05; color: var(--c-ink); margin-top: 56px; }
.kb-case__lead { color: var(--c-ink); }
.kb-case__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; }
.kb-case__stats div { padding: 16px; background: var(--c-white); box-shadow: var(--cut-1); }
.kb-case__stats dt { font: 400 var(--t-figure)/1 var(--f-display); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.kb-case__stats dd { margin: 6px 0 0; font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.kb-case__fig { margin: 24px 0 0; }
.kb-case__fig figcaption { margin-top: 10px; font-size: var(--t-small); line-height: 1.55; color: var(--c-ink-2); }
.kb-case__chain { padding: 40px 36px 28px; }
.kb-case__line { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.kb-case__node { position: relative; display: grid; justify-items: center; gap: 10px; flex: 0 0 auto; font: 700 var(--t-label)/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); }
.kb-case__node i { width: 22px; height: 22px; border-radius: 50%; background: var(--c-sun); border: 3px solid var(--c-ink); }
.kb-case__joint { flex: 1; position: relative; height: 6px; background: var(--c-leaf); margin: 0 6px 26px; }
.kb-case__joint span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 var(--t-label)/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-leaf-deep); }
.kb-case__solo { display: flex; justify-content: center; gap: 96px; margin-top: 28px; padding-top: 24px; border-top: 2px dashed var(--c-line); }
.kb-case__solo .kb-case__node i { background: var(--c-white); }
.kb-case__quote { margin: 20px 0 0; padding: 24px 28px; background: var(--c-cobalt); color: var(--c-white); box-shadow: var(--cut-2); }
.kb-case__quote p { margin: 0; font-size: var(--t-display-3); line-height: 1.2; }
.kb-case__quote footer { margin-top: 12px; color: var(--c-white); }
.kb-case__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kb-case__card { padding: 20px 22px; }
.kb-case__card .kb-label { margin-top: 14px; }
.kb-case__card p { margin: 6px 0 0; color: var(--c-ink); font-size: var(--t-body); }
.kb-case__graft { display: block; max-width: 100%; }
.kb-case__cost { padding: 24px 26px; font-size: var(--t-body); }
.kb-case__salary-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kb-case__salary-row input { width: 130px; font-variant-numeric: tabular-nums; }
.kb-case__track { position: relative; height: 12px; margin: 28px 0 8px; background: var(--c-paper-2); }
.kb-case__track i { position: absolute; top: 0; bottom: 0; left: 12.5%; width: 37.5%; background: var(--c-sun); }
.kb-case__ticks { position: relative; height: 18px; font-size: var(--t-label); color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.kb-case__ticks span { position: absolute; transform: translateX(-50%); }
.kb-case__ticks span:first-child { transform: none; }
.kb-case__ticks span:last-child { transform: none; }
.kb-case__ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.kb-case__ends .is-right { text-align: right; }
.kb-case__fig-n { margin-top: 4px; font: 400 var(--t-heading)/1 var(--f-display); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.kb-case__small { max-width: 720px; margin: 0 auto; font-size: var(--t-small); color: var(--c-ink-2); }
@media (max-width: 767px) {
  .kb-case__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-case__two { grid-template-columns: minmax(0, 1fr); }
  .kb-case__chain { padding: 22px 18px; }
  .kb-case__line { flex-direction: column; align-items: flex-start; }
  .kb-case__node { grid-auto-flow: column; justify-items: start; align-items: center; }
  .kb-case__joint { width: 6px; height: 40px; flex: 0 0 auto; margin: 4px 0 4px 8px; }
  .kb-case__joint span { bottom: auto; left: 20px; top: 50%; transform: translateY(-50%); }
  .kb-case__solo { justify-content: flex-start; gap: 32px; }
}

/* ── Resources: a sticky topic list beside a filterable grid of cards. ── */
.kb-res__gatebar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; background: var(--c-white); color: var(--c-ink); box-shadow: var(--cut-2); max-width: 560px; }
.kb-res__gatebar p { margin: 0; flex: 1 1 240px; font-size: var(--t-small); }
.kb-res__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.kb-res__topics { position: sticky; top: calc(var(--kb-top-h) + 24px); display: grid; gap: 2px; max-height: calc(100vh - var(--kb-top-h) - 48px); overflow-y: auto; }
.kb-res__topics > .kb-label { padding: 0 12px 10px; }
.kb-res__filter { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); font: 600 var(--t-small)/1.25 var(--f-body); cursor: pointer; text-align: left; white-space: nowrap; flex-shrink: 0; }
.kb-res__filter:hover { background: var(--c-paper-2); }
.kb-res__filter.is-block { display: flex; width: 100%; border-color: transparent; background: transparent; white-space: normal; padding: 8px 12px; }
.kb-res__filter.is-block:hover { background: var(--c-white); }
.kb-res__filter.is-on, .kb-res__filter.is-block.is-on { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.kb-res__count { font-size: var(--t-label); font-variant-numeric: tabular-nums; color: var(--c-ink-2); }
.kb-res__filter.is-on .kb-res__count { color: var(--c-quiet-on-ink); }
.kb-res__tools { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.kb-res__search { flex: 1 1 260px; max-width: 360px; }
.kb-res__types { display: grid; gap: 6px; min-width: 0; }
.kb-res__typerow { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-res__status { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 28px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.kb-res__status p { margin: 0; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-res__status b { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.kb-res__sec { margin-top: 40px; }
.kb-res__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kb-res__head h2 { font-size: var(--t-heading); line-height: 1.05; }
.kb-res__head span { color: var(--c-ink-2); }
.kb-res__grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kb-res__card { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; }
.kb-res__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kb-res__card h3 { font-size: var(--t-title); line-height: 1.15; }
.kb-res__card p { margin: 0; flex: 1; color: var(--c-ink-2); font-size: var(--t-small); line-height: 1.6; }
.kb-res__link { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--c-line); }
.kb-res__open { font-weight: 700; color: var(--c-cobalt); }
.kb-res__open::after { content: " \2197"; }
.kb-res__wait { font-size: var(--t-small); color: var(--c-ink-2); }
.kb-res__gate { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--c-ink); font: 600 var(--t-small)/1.3 var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kb-res__lock { flex: 0 0 auto; }
.kb-res__none { margin-top: 24px; padding: 24px 26px; max-width: 560px; }
.kb-res__none h2 { font-size: var(--t-title); }
.kb-res__none p { margin: 8px 0 14px; color: var(--c-ink-2); }
.kb-res__foot { margin: 56px 0 0; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: var(--t-small); color: var(--c-ink-2); max-width: 72ch; }
@media (max-width: 900px) {
  .kb-res__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .kb-res__topics { position: static; display: flex; overflow-x: auto; max-height: none; gap: 8px; padding-bottom: 6px; }
  .kb-res__topics > .kb-label { display: none; }
  .kb-res__typerow { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .kb-res__search { max-width: none; }
}

/* ── Team: the sample constellation and the tree. The chart is a white card; people are flat discs
 * with an ink edge, joined in leaf (holds), ink-2 (between) or tomato (grinds). ── */
.kb-preview.is-warn { background: var(--c-tomato-field); }
.kb-team__loading { display: flex; align-items: flex-start; gap: 18px; padding: 24px 26px; max-width: 720px; }
.kb-team__loading h1 { font-size: var(--t-heading); margin-top: 4px; }
.kb-team__loading p { margin: 8px 0 0; color: var(--c-ink-2); }
.kb-team__controls { margin-bottom: 24px; }
.kb-team__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.kb-team__bar .kb-seg { margin: 0; }
.kb-team__count { font-size: var(--t-label); color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.kb-team__view { margin-top: 4px; }
.kb-team__view > [role="region"] { box-shadow: var(--cut-2); background: var(--c-white); }
.kb-team__svg { display: block; }
.kb-team__group { position: absolute; transform: translate(-50%, -190%); text-align: center; pointer-events: none; transition: opacity 240ms ease; font-size: var(--t-label); color: var(--c-ink-2); }
.kb-team__group .kb-label { color: var(--c-cobalt); }
.kb-team__name { font-size: var(--t-label); color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--c-white); padding: 0 3px; }
.kb-team__name.is-lead { font-weight: 700; }
.kb-team__role { font-size: var(--t-label); color: var(--c-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--c-white); padding: 0 3px; }
.kb-team__below { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; align-items: flex-start; }
.kb-team__legend { display: flex; flex-wrap: wrap; gap: 16px; flex: 1 1 340px; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-team__legend-note { flex-basis: 100%; font-size: var(--t-small); color: var(--c-ink-2); margin: 0; }
.kb-team__view > .kb-team__legend-note { margin-top: 14px; }
.kb-team__hint { flex: 0 1 300px; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-legend { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-ink); }
.kb-legend i { width: 20px; height: 4px; background: var(--c-ink-2); }
.kb-legend.is-union i { background: var(--c-leaf); }
.kb-legend.is-necrosis i { background: var(--c-tomato); }
.kb-legend.is-dashed i { height: 0; background: none; border-top: 4px dashed var(--c-ink-2); }
.kb-dimf { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 100%; }
.kb-dimf__btn { display: flex; align-items: center; gap: 10px; min-width: min(220px, 100%); padding: 8px 12px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); font: 600 var(--t-small)/1.3 var(--f-body); text-align: left; cursor: pointer; }
.kb-dimf__btn > span:first-child { flex: 1; }
.kb-dimf__btn.is-open { background: var(--c-paper-2); }
.kb-dimf__caret { flex: 0 0 auto; transition: transform 200ms ease; }
.kb-dimf__btn.is-open .kb-dimf__caret { transform: rotate(180deg); }
.kb-dimf__menu { position: absolute; top: 100%; left: 0; margin-top: 6px; z-index: 300; width: min(340px, 90vw); max-height: 380px; overflow-y: auto; background: var(--c-white); box-shadow: var(--cut-3); padding: 6px 0; border: 2px solid var(--c-ink); }
.kb-dimf__menu-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 10px; border-bottom: 1px solid var(--c-line); }
.kb-dimf__menu-top .kb-linkbtn { font-size: var(--t-small); }
.kb-dimf__opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: transparent; color: var(--c-ink); text-align: left; cursor: pointer; font: inherit; }
.kb-dimf__opt:hover { background: var(--c-paper); }
.kb-dimf__opt.is-on { background: var(--c-sun-field); }
.kb-dimf__box { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; display: grid; place-items: center; border: 2px solid var(--c-ink); background: var(--c-white); font: 700 var(--t-label)/1 var(--f-body); }
.kb-dimf__opt.is-on .kb-dimf__box { background: var(--c-ink); color: var(--c-white); }
.kb-dimf__name { display: block; font-weight: 600; font-size: var(--t-small); }
.kb-dimf__blurb { display: block; font-size: var(--t-label); color: var(--c-ink-2); line-height: 1.4; margin-top: 2px; }
.kb-tip { position: absolute; transform: translate(-50%, -100%); margin-top: -18px; pointer-events: none; z-index: 20; min-width: 170px; max-width: 260px; padding: 10px 13px; background: var(--c-white); border: 2px solid var(--c-ink); box-shadow: var(--cut-2); }
.kb-tip.is-below { transform: translate(-50%, 0); margin-top: 18px; }
.kb-tip__title { font-weight: 700; font-size: var(--t-small); }
.kb-tip__sub { font-size: var(--t-label); color: var(--c-ink-2); margin-top: 2px; }
.kb-tip__score { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-line); }
.kb-tip__score b { font: 400 var(--t-title)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kb-tip__score span, .kb-tip__hint { font-size: var(--t-label); color: var(--c-ink-2); }
.kb-tip__rows { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--c-line); display: grid; gap: 3px; font-size: var(--t-label); }
.kb-tip__row { display: flex; justify-content: space-between; gap: 10px; }
.kb-tip__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-tip__row b { font-variant-numeric: tabular-nums; }
.kb-pin { flex: 0 1 340px; min-width: 280px; padding: 16px 18px 18px; }
.kb-pin__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kb-pin__title { margin: 0; font: 700 var(--t-body)/1.3 var(--f-body); }
.kb-pin__sub { font-size: var(--t-label); color: var(--c-ink-2); margin-top: 2px; line-height: 1.4; }
.kb-pin__score { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 4px; }
.kb-pin__score b { font: 400 var(--t-heading)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kb-pin__score span { font-size: var(--t-label); color: var(--c-ink-2); }
.kb-pin__rows { margin-top: 10px; display: grid; gap: 6px; }
.kb-pin__rows .is-muted { opacity: .42; }
.kb-pin__row { display: grid; grid-template-columns: minmax(0, 1fr) 60px 30px; align-items: center; gap: 8px; }
.kb-pin__label { font-size: var(--t-label); color: var(--c-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-pin__bar { height: 6px; background: var(--c-paper-2); overflow: hidden; }
.kb-pin__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transition: transform 300ms ease; }
.kb-pin__val { font-size: var(--t-label); text-align: right; font-variant-numeric: tabular-nums; }
.kb-pin__hint { font-size: var(--t-label); color: var(--c-ink-2); margin-top: 2px; }
.kb-strip { margin-top: 20px; padding: 18px 20px; }
.kb-strip h2 { margin: 0 0 8px; }
.kb-strip__group { margin-bottom: 10px; }
.kb-strip__group h3 { margin: 6px 0 2px; font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-cobalt); }
.kb-strip__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--c-ink); text-align: left; cursor: pointer; font: inherit; font-size: var(--t-small); }
.kb-strip__row:hover { background: var(--c-paper); }
.kb-strip__row span:last-child { font-size: var(--t-label); color: var(--c-ink-2); text-align: right; }
.kb-strip__row span.is-none { color: var(--c-tomato); font-weight: 700; }
.kb-strip__foot { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: var(--t-label); color: var(--c-ink-2); }

/* ── The live team reading and its empty and error states. ── */
.kb-tr__block { padding: 22px 26px; margin-top: 18px; }
.kb-tr__block > .kb-label:first-child, .kb-tr__block > h2.kb-label { margin: 0 0 12px; }
.kb-tr__block .kb-seg { margin: 14px 0; }
.kb-tr__overall { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--c-ink-2); font-size: var(--t-small); }
.kb-tr__fig { font: 400 var(--t-figure)/1 var(--f-display); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.kb-tr__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.kb-tr__pair { padding: 16px 18px; }
.kb-tr__pair.is-weak { background: var(--c-tomato-field); }
.kb-tr__pair.is-strong { background: var(--c-leaf-field); }
.kb-tr__pairfig { margin-top: 6px; font: 400 var(--t-heading)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kb-tr__text { margin: 10px 0 0; color: var(--c-ink-2); max-width: 70ch; }
.kb-tr__note { margin: 12px 0 0; font-size: var(--t-small); color: var(--c-ink-2); max-width: 72ch; }
.kb-tr__self { margin: 12px 0; padding: 12px 14px; background: var(--c-tomato-field); color: var(--c-ink); font-size: var(--t-small); max-width: 72ch; }
.kb-tr__gaps { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.kb-tr__gaps th, .kb-tr__gaps td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--c-line); vertical-align: baseline; }
.kb-tr__gaps thead th { font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-2); border-bottom: 2px solid var(--c-ink); }
.kb-tr__gaps tbody th { font: 400 var(--t-title)/1.1 var(--f-display); }
.kb-tr__gaps .is-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.kb-tr__gaps .is-blind { color: var(--c-tomato); }
.kb-tr__gaps .is-who { color: var(--c-ink-2); }
.kb-tr__sub { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.kb-tr__sub h3 { margin: 0 0 8px; }
.kb-tr__pending { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kb-tr__pending li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.kb-tr__role { font-size: var(--t-label); color: var(--c-ink-2); }
.kb-tr__counts { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--c-ink-2); }
.kb-tr__block code { font: 600 var(--t-small) ui-monospace, "SF Mono", Menlo, monospace; }
@media (max-width: 767px) {
  .kb-tr__two { grid-template-columns: minmax(0, 1fr); }
  .kb-tr__block { padding: 18px 16px; }
  .kb-tr__gaps .is-who { display: none; }
}

/* The pair report. Pair fit may be leaf or tomato (it is about two people); person A is sun ink,
 * person B is plum, the same colours the plate and the overlap use. */
.kb-pair-report { padding-block: 8px 40px; }
.kb-prep { color: var(--c-ink); }
.kb-prep i.is-a { background: var(--k-scion); }
.kb-prep i.is-b { background: var(--k-rootstock); }
.kb-prep__confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; margin-bottom: 18px; background: var(--c-err-field); }
.kb-prep__confirm p { margin: 0; flex: 1 1 260px; font-weight: 600; }
.kb-prep__confirm .kb-actions { margin: 0; }
.kb-prep__status { padding: 12px 16px; margin-bottom: 18px; background: var(--c-sun-field); font-size: var(--t-small); font-weight: 600; }
.kb-prep__muted { color: var(--c-ink-2); }
.kb-prep__muted b { color: var(--c-ink); }

.kb-prep__cohesion { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 22px; margin-bottom: 18px; align-items: center; }
.kb-prep__cohesion p { margin: 0 0 10px; line-height: 1.6; color: var(--c-ink-2); max-width: 68ch; }
.kb-prep__cohesion p:last-child { margin-bottom: 0; }

.kb-prep__exec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; }
.kb-prep__cell { padding: 18px 22px; border-bottom: 1px solid var(--c-line); }
.kb-prep__cell:nth-child(odd) { border-right: 1px solid var(--c-line); }
.kb-prep__cell:nth-last-child(-n+2) { border-bottom: 0; }
.kb-prep__cell h3 { margin: 0 0 10px; }
.kb-prep__cell p { margin: 8px 0 0; font-size: var(--t-small); line-height: 1.55; }
.kb-prep__cell b.is-tomato { color: var(--c-tomato); }
.kb-prep__band { margin: 0 !important; font: 400 var(--t-title)/1.1 var(--f-display) !important; }
.kb-prep__band.is-leaf { color: var(--c-leaf-deep); }
.kb-prep__band.is-tomato { color: var(--c-tomato); }
.kb-prep__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kb-prep__tag { display: inline-block; padding: 4px 10px; font: 700 var(--t-label)/1.3 var(--f-body); background: var(--c-paper); }
.kb-prep__tag.is-leaf { background: var(--c-leaf-field); color: var(--c-leaf-deep); }
.kb-prep__tag.is-tomato { background: var(--c-tomato-field); color: var(--c-tomato); }

.kb-prep__fit { padding: 18px 20px; }
.kb-prep__fit p { margin: 8px 0 0; line-height: 1.6; }
.kb-prep__fit.is-leaf { background: var(--c-leaf-field); }
.kb-prep__fit.is-leaf .kb-label { color: var(--c-leaf-deep); }
.kb-prep__fit.is-tomato { background: var(--c-tomato-field); }
.kb-prep__fit.is-tomato .kb-label { color: var(--c-tomato); }
.kb-prep__fit.is-paper { background: var(--c-paper-2); }
.kb-prep__fit.is-white { background: var(--c-white); box-shadow: var(--cut-1); }


.kb-prep__sec { margin-top: 48px; scroll-margin-top: calc(var(--kb-top-h) + 16px); }
.kb-prep__gloss { margin: 8px 0 16px; color: var(--c-ink-2); max-width: 72ch; line-height: 1.55; }
.kb-prep__sec > h2 + :not(.kb-prep__gloss) { margin-top: 16px; }
.kb-prep__text { margin: 16px 0 0; line-height: 1.65; max-width: 72ch; }

.kb-prep__plate { padding: 22px; }
.kb-prep__detail { padding: 18px 20px; border-top: 1px solid var(--c-line); background: var(--c-paper); }
.kb-prep__detail-top { margin: 0 0 12px; font-size: var(--t-small); font-weight: 600; color: var(--c-ink-2); }
.kb-prep__detail-figs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 12px; }
.kb-prep__detail-figs > div { display: grid; gap: 4px; }
.kb-prep__detail-figs b { font: 400 var(--t-title)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.kb-prep__detail-figs b.is-a { color: var(--k-scion); }
.kb-prep__detail-figs b.is-b { color: var(--k-rootstock); }
.kb-prep__detail-figs b.is-fit.is-leaf { color: var(--c-leaf-deep); }
.kb-prep__detail-figs b.is-fit.is-tomato { color: var(--c-tomato); }
.kb-prep__detail-figs b.is-flag { font: 700 var(--t-body)/1.3 var(--f-body); }
.kb-prep__detail-text { margin: 0; line-height: 1.65; max-width: 72ch; }
.kb-prep__holds { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.kb-prep__holds ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kb-prep__holds li { padding: 4px 10px; background: var(--c-leaf-field); color: var(--c-leaf-deep); font-size: var(--t-small); font-weight: 600; }
.kb-prep__holds li b { font-variant-numeric: tabular-nums; }
.kb-prep__key { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--t-label); color: var(--c-ink-2); }
.kb-prep__key li { display: inline-flex; align-items: center; gap: 8px; }
.kb-prep__key i.is-union { width: 18px; height: 4px; border-radius: 0; background: var(--k-union); }
.kb-prep__key i.is-tick { width: 1.5px; height: 12px; border-radius: 0; background: var(--c-line-2); }

.kb-prep__rows { list-style: none; margin: 0; padding: 0; }
.kb-prep__rows li { padding: 18px 22px; border-bottom: 1px solid var(--c-line); }
.kb-prep__rows li:last-child { border-bottom: 0; }
.kb-prep__rows p { margin: 6px 0 0; line-height: 1.6; max-width: 72ch; }
.kb-prep__row-name { margin: 0; font: 400 var(--t-title)/1.1 var(--f-display); }
.kb-prep__row-name.is-tomato { color: var(--c-tomato); }

.kb-prep__bs .kb-bs__top h3 { margin: 0; font: 400 var(--t-heading)/1.05 var(--f-display); }
.kb-prep__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kb-prep__bs .kb-bs__three h4 { margin: 0; font: 700 var(--t-small)/1.3 var(--f-body); }
.kb-prep__agree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.kb-prep__agree-card { padding: 14px 16px; }
.kb-prep__agree-card p { margin: 6px 0 0; line-height: 1.55; }
.kb-prep__agree-card.is-a { background: var(--c-sun-field); }
.kb-prep__agree-card.is-a .kb-label { color: var(--k-scion); }
.kb-prep__agree-card.is-b { background: var(--c-plum-field); }
.kb-prep__agree-card.is-b .kb-label { color: var(--k-rootstock); }

.kb-prep__grit { padding: 8px 22px 4px; overflow-x: auto; }
.kb-prep__grit th small { margin-left: 8px; font: 600 var(--t-label)/1 var(--f-body); color: var(--c-ink-2); }
.kb-prep__grit thead .is-a { color: var(--k-scion); }
.kb-prep__grit thead .is-b { color: var(--k-rootstock); }
.kb-prep__grit tbody tr:last-child th, .kb-prep__grit tbody tr:last-child td { border-bottom: 0; }

.kb-prep__seg { flex-wrap: wrap; }
.kb-prep__ctx { margin: 0; padding: 0; }
.kb-prep__ctx > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 20px; padding: 14px 22px; border-bottom: 1px solid var(--c-line); }
.kb-prep__ctx > div:last-child { border-bottom: 0; }
/* Pair report, summary first: a short card per blind spot, the longer analysis behind a toggle. */
.kb-bs__first { margin-top: 16px; }
.kb-bs__first p { margin: 6px 0 0; line-height: 1.6; color: var(--c-ink-2); max-width: 75ch; }
.kb-bs__more { margin-top: 16px; }
.kb-bs__more-in { margin-top: 12px; }
.kb-bs__more-in > div:first-child p { margin: 6px 0 0; line-height: 1.6; color: var(--c-ink-2); max-width: 75ch; }
.kb-prep__start { margin-top: 16px; padding: 20px 24px; border-top: 8px solid var(--c-cobalt); }
.kb-prep__start p { margin: 6px 0 0; font-size: var(--t-lead); line-height: 1.5; max-width: 75ch; }
@media (min-width: 1200px) {
  .kb-prep__ctx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-prep__ctx > div { grid-template-columns: 170px minmax(0, 1fr); }
  .kb-prep__ctx > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .kb-prep .kb-report__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kb-prep__ctx dt { font: 700 var(--t-label)/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); }
.kb-prep__ctx dd { margin: 0; line-height: 1.6; max-width: 70ch; }

.kb-prep__recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.kb-prep__foot { margin-top: 56px; padding-top: 20px; border-top: 2px solid var(--c-ink); font-size: var(--t-small); color: var(--c-ink-2); }
.kb-prep__foot p { margin: 0 0 10px; max-width: 72ch; line-height: 1.6; }
.kb-prep__foot p b { color: var(--c-ink); }
.kb-prep__terms { margin-top: 16px; }
.kb-prep__terms summary { cursor: pointer; font-weight: 700; color: var(--c-cobalt); min-height: 24px; }
.kb-prep__terms dl { margin: 12px 0 0; display: grid; gap: 10px; max-width: 72ch; }
.kb-prep__terms dt { font-weight: 700; color: var(--c-ink); }
.kb-prep__terms dd { margin: 2px 0 0; line-height: 1.6; }
.kb-prep__date { margin-top: 16px !important; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .kb-prep__cohesion { padding: 18px; }
  .kb-prep__exec, .kb-prep__recs, .kb-prep__agree { grid-template-columns: 1fr; }
  .kb-prep__cell:nth-child(odd) { border-right: 0; }
  .kb-prep__cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--c-line); }
  .kb-prep__cell:last-child { border-bottom: 0; }
  .kb-prep__ctx > div { grid-template-columns: 1fr; padding: 14px 16px; }
  .kb-prep__plate { padding: 14px; }
  .kb-prep__rows li { padding: 16px; }
  .kb-prep .kb-report__two { grid-template-columns: 1fr; }
}


/* Crosswalk import. */
.kb-xw__card { padding: 24px 26px; display: grid; gap: 14px; }
.kb-xw__card h2 { margin: 0; }
.kb-xw__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.kb-xw__grid button { padding: 12px 10px; border: 0; background: var(--c-paper); color: var(--c-ink); font: 700 var(--t-small)/1.2 var(--f-body); cursor: pointer; }
.kb-xw__grid button:hover { background: var(--c-paper-2); }
.kb-xw__grid button.is-on { background: var(--c-ink); color: var(--c-white); }
.kb-xw__drop { padding: 32px 20px; border: 2px dashed var(--c-line-2); text-align: center; background: var(--c-paper); }
.kb-xw__drop p { margin: 0 0 4px; }
.kb-xw__hint { font-size: var(--t-small); color: var(--c-ink-2); }
.kb-xw__drop .kb-btn { margin-top: 12px; }
@media (max-width: 640px) { .kb-xw__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kb-xw__card { padding: 18px; } }

/* Reports as documents: a sticky contents rail beside one reading column (KbReportDoc in Shell.jsx). */
.kb-rdoc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.kb-rdoc__rail { position: sticky; top: calc(var(--kb-top-h) + 24px); max-height: calc(100vh - var(--kb-top-h) - 48px); overflow-y: auto; display: grid; gap: 22px; align-content: start; padding: 2px 4px 4px 2px; }
.kb-rdoc__rail .kb-pairlist { position: static; }
.kb-rdoc__toggle { display: none; }
.kb-rdoc__toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; border-left: 2px solid var(--c-line); }
.kb-rdoc__toc a { display: block; min-height: 24px; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font: 600 var(--t-small)/1.35 var(--f-body); color: var(--c-ink-2); text-decoration: none; }
.kb-rdoc__toc a:hover { color: var(--c-ink); border-left-color: var(--c-line-2); }
.kb-rdoc__toc a[aria-current] { color: var(--c-ink); border-left-color: var(--c-cobalt); }
.kb-rdoc__main { min-width: 0; }
.kb-rdoc__main [data-report-section] { scroll-margin-top: calc(var(--kb-top-h) + 20px); }
.kb-rdoc__main [data-report-section]:focus { outline: none; }
/* A second part of one report (the blind spots after the profile) opens on its own head. */
.kb-rdoc__chapter { margin-top: 72px; }
@media (max-width: 960px) {
  .kb-rdoc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kb-rdoc__rail { display: contents; }
  .kb-rdoc__rail > .kb-pairlist { margin-bottom: 20px; }
  .kb-rdoc__toc { position: sticky; top: var(--kb-top-h); z-index: 40; padding: 8px 0 12px; background: var(--c-paper); }
  .kb-rdoc__title { display: none; }
  .kb-rdoc__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 16px; border: 0; background: var(--c-white); box-shadow: var(--cut-1); font: 700 var(--t-small)/1.2 var(--f-body); color: var(--c-ink); cursor: pointer; }
  .kb-rdoc__toc ol { display: none; margin: 0; padding: 6px 16px 10px; border-left: 0; background: var(--c-white); box-shadow: var(--cut-1); max-height: 60vh; overflow-y: auto; }
  .kb-rdoc__toc.is-open ol { display: grid; }
  .kb-rdoc__toc a { padding: 8px 0 8px 10px; margin-left: 0; border-left: 0; }
  .kb-rdoc__toc a[aria-current] { box-shadow: inset 3px 0 0 var(--c-cobalt); }
}
.kb-pair-app__in.is-doc { grid-template-columns: minmax(0, 1fr); }
.kb-prep__cohesion.is-text { grid-template-columns: minmax(0, 1fr); }
.kb-prep__cohesion-label.is-leaf { color: var(--c-leaf-deep); }
.kb-prep__cohesion-label.is-tomato { color: var(--c-tomato); }
.kb-prep__cohesion-label { margin-bottom: 8px; }

/* ── Kalibr for Teams: My skills (screens/Skills.jsx) ─────────────────────────────────────────────── */
.kb-skills { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: start; margin-top: 24px; }
.kb-skills__add, .kb-skills__mine { display: grid; gap: 16px; padding: 24px; }
.kb-skills__add .kb-seg { margin-bottom: 0; flex-wrap: wrap; }
.kb-skills__notice { margin: 16px 0 0; padding: 12px 14px; background: var(--c-sun-field); color: var(--c-ink); }
.kb-skills__msg { margin: 0; padding: 10px 12px; background: var(--c-err-field); color: var(--c-ink); font-size: var(--t-small); }
.kb-skills__sugg { display: grid; gap: 12px; padding-top: 16px; border-top: 2px solid var(--c-ink); }
.kb-skills__sugg ul, .kb-skills__mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kb-skills__bar { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.kb-skills__bar h2 { font-size: var(--t-heading); }
.kb-skills__mine p { margin: 0; line-height: 1.55; }
.kb-skill { display: flex; gap: 10px; align-items: baseline; }
.kb-skill--mine { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.kb-skill__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kb-skill__name { font-weight: 600; flex: 1 1 auto; }
.kb-skill__name em { font-weight: 400; font-style: normal; font-size: var(--t-small); color: var(--c-ink-2); margin-left: 6px; }
.kb-skill__row select { font: 500 var(--t-small) var(--f-body); padding: 6px 8px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); }
.kb-skill__ev { list-style: none; margin: 0 0 0 26px; padding: 0; display: grid; gap: 2px; font-size: var(--t-small); color: var(--c-ink-2); line-height: 1.45; }
.kb-skill--mine .kb-skill__ev { margin-left: 0; }
.kb-skill__ev b { color: var(--c-ink); font-weight: 600; margin-right: 4px; }
.kb-skills__saved { font-weight: 700; font-size: var(--t-small); color: var(--c-leaf-deep); }

/* ── Kalibr for Teams: invites and team totals (components/TeamData.jsx TeamHub) ─────────────────── */
.kb-thub { display: grid; gap: 20px; margin-bottom: 24px; }
.kb-thub .kb-display { font-size: var(--t-heading); margin: 4px 0 0; }
.kb-thub__terms { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.kb-thub__start { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.kb-thub__start .kb-tr__text { margin: 4px 0 0; }
.kb-thub__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.kb-thub__invites { display: grid; gap: 14px; }
.kb-thub__invites textarea { width: 100%; box-sizing: border-box; font: 400 var(--t-body) var(--f-body); padding: 10px 12px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); }
.kb-thub__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
.kb-thub__list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.kb-thub__email { flex: 1 1 200px; font-weight: 600; overflow-wrap: anywhere; }
.kb-thub__acts { display: flex; gap: 14px; }
.kb-thub__ok { margin: 0; padding: 10px 12px; background: var(--c-leaf-field); color: var(--c-ink); font-size: var(--t-small); }
.kb-thub__err { margin: 0; padding: 10px 12px; background: var(--c-err-field); color: var(--c-ink); font-size: var(--t-small); }
.kb-thub__totals { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.kb-thub__stage { font-size: var(--t-heading); }
.kb-thub__join { background: var(--c-sun-field); }

/* ── Kalibr for Teams: reorg simulator prototype (screens/TeamsLab.jsx) ──────────────────────────── */
.kb-lab__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 24px 0 16px; font-weight: 600; }
.kb-lab__teams { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.kb-lab__team { display: grid; gap: 16px; padding: 20px; }
.kb-lab__head { display: grid; gap: 4px; }
.kb-lab__head h2 { font-size: var(--t-heading); }
.kb-lab__head span { font-size: var(--t-small); color: var(--c-ink-2); }
.kb-lab__stat { display: grid; gap: 8px; padding-top: 12px; border-top: 2px solid var(--c-ink); }
.kb-lab__stat p { margin: 0; }
.kb-lab__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-lab__mix { display: grid; gap: 4px; font-size: var(--t-small); }
.kb-lab__mix small { color: var(--c-ink-2); font-size: var(--t-label); }
.kb-lab__mixbar { display: flex; height: 10px; background: var(--c-paper-2); }
.kb-lab__mixbar i { display: block; height: 100%; }
.kb-lab__mixbar .is-low { background: var(--c-cobalt); }
.kb-lab__mixbar .is-mid { background: var(--c-line-2); }
.kb-lab__mixbar .is-high { background: var(--c-plum); }
.kb-lab__fric { font-size: var(--t-small); font-weight: 600; }
.kb-lab__ai { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: var(--t-small); line-height: 1.45; color: var(--c-ink-2); }
.kb-lab__people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; border-top: 2px solid var(--c-ink); padding-top: 12px; }
.kb-lab__person { width: 100%; display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 0; background: var(--c-paper); color: var(--c-ink); font: 400 var(--t-small)/1.35 var(--f-body); cursor: pointer; }
.kb-lab__person:hover { background: var(--c-paper-2); }
.kb-lab__person b { font-weight: 600; font-size: var(--t-body); }
.kb-lab__person span { color: var(--c-ink-2); }
.kb-lab__person.is-moved { background: var(--c-sun-field); }
.kb-lab__open { display: grid; gap: 8px; padding: 10px; background: var(--c-white); box-shadow: inset 0 0 0 2px var(--c-ink); }
.kb-lab__open p { margin: 0; }
.kb-lab__moveto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kb-lab__out { display: grid; gap: 20px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.kb-lab__diff, .kb-lab__decide { display: grid; gap: 14px; padding: 24px; }
.kb-lab__diff p, .kb-lab__decide p { margin: 0; line-height: 1.55; }
.kb-lab__delta { display: grid; gap: 8px; padding-top: 12px; border-top: 2px solid var(--c-ink); }
.kb-lab__delta h3 { font-size: var(--t-title); }
.kb-lab__delta ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kb-lab__delta li { padding: 6px 10px; font-size: var(--t-small); line-height: 1.45; }
.kb-lab__delta .is-gain li { background: var(--c-leaf-field); color: var(--c-ink); }
.kb-lab__delta .is-loss li { background: var(--c-tomato-field); color: var(--c-ink); }
.kb-lab__delta .is-change li { background: var(--c-paper-2); color: var(--c-ink); }
.kb-lab__delta b { font-weight: 700; margin-right: 6px; }
.kb-lab__log { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: var(--t-small); line-height: 1.5; }
.kb-lab__log small { display: block; color: var(--c-ink-2); }
.kb-lab__rules { margin: 24px 0 0; max-width: 80ch; font-size: var(--t-small); color: var(--c-ink-2); line-height: 1.55; }
.kb-skills__proof { display: grid; gap: 8px; padding: 12px 14px; background: var(--c-sun-field); color: var(--c-ink); }
.kb-skills__proof p { margin: 0; font-size: var(--t-small); line-height: 1.5; }
.kb-skills__proof code { font: 700 var(--t-body)/1.3 var(--f-mono); user-select: all; }
.kb-skills__dates { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); }
.kb-skills__dates input { min-width: 0; width: 100%; box-sizing: border-box; }
.kb-skill__ev a { color: var(--c-cobalt); font-weight: 600; }
.kb-skill__tier { white-space: nowrap; }
.kb-skill__ask { display: grid; gap: 6px; justify-items: start; }
.kb-skill__asked { font-size: var(--t-small); color: var(--c-ink-2); }
.kb-skill__askform { display: grid; gap: 6px; width: 100%; padding: 12px; background: var(--c-paper); }
.kb-skill__askform input { font: 400 var(--t-body) var(--f-body); padding: 8px 10px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); }
.kb-skills__vouch { display: grid; gap: 12px; padding: 24px; margin-top: 24px; }
.kb-skills__vouch p { margin: 0; line-height: 1.55; }
.kb-skills__vouch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.kb-skills__vouch li { display: grid; gap: 8px; padding-top: 12px; border-top: 2px solid var(--c-ink); }
.kb-skills__vouch h3 { font-size: var(--t-title); }
.kb-skills__vouch textarea, .kb-skills__vouch select, .kb-skills__vouch input { font: 400 var(--t-body) var(--f-body); padding: 8px 10px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); }
.kb-skills__vouchtitle { font-size: var(--t-heading); }
.kb-skills__ai { display: grid; gap: 12px; padding: 24px; align-content: start; }
.kb-skills__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; line-height: 1.5; }
.kb-skills__facts b { display: inline-block; min-width: 2.2em; margin-right: 6px; }

/* ── Home page: the team product (screens/Landing.jsx) ─────────────────────────────────────────── */
.kb-hpic { height: 200px; background: var(--c-cobalt); display: grid; place-items: center; padding: 18px; box-sizing: border-box; }
.kb-hpic__card { width: 100%; max-width: 280px; background: var(--c-white); box-shadow: var(--cut-1); padding: 10px 12px; display: grid; gap: 6px; }
.kb-hpic__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: var(--t-small); }
.kb-hpic__name { font-weight: 600; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-hpic__dots { display: inline-flex; gap: 3px; }
.kb-hpic__dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--c-ink); box-sizing: border-box; }
.kb-hpic__dots i.is-on { background: var(--c-cobalt); border-color: var(--c-cobalt); }
.kb-hpic__row .kb-chip { font-size: var(--t-label); padding: 2px 6px; }
.kb-hpic__ladder { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 240px; display: grid; gap: 6px; }
.kb-hpic__ladder li { padding: 6px 10px; border: 2px solid var(--c-white); color: var(--c-white); font-weight: 600; font-size: var(--t-small); display: flex; justify-content: space-between; align-items: baseline; }
.kb-hpic__ladder li.is-here { background: var(--c-sun); border-color: var(--c-sun); color: var(--c-ink); }
.kb-hpic__ladder em { font-family: var(--f-hand); font-style: normal; font-size: 18px; font-weight: 700; }
.kb-home__incl { display: grid; gap: 10px; align-self: center; }
.kb-home__incl ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.kb-price__list { margin: 4px 0 12px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.45; }
.kb-price--lead { border-top-color: var(--c-sun); }
.kb-price .kb-btn { margin-top: 14px; }

/* ── Team reading (components/TeamData.jsx: TeamGlance, TeamLeans, TeamBuiltFor, TeamPairGrid) ──────── */
.kb-tg__lede { margin: 0 0 18px; font: 400 var(--t-title)/1.35 var(--f-display); color: var(--c-ink); max-width: 60ch; text-wrap: pretty; }
.kb-tg__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kb-tg__tile { padding: 14px 16px; background: var(--c-paper); display: grid; gap: 4px; align-content: start; }
.kb-tg__fig { font: 400 var(--t-figure)/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--c-ink); }
.kb-tg__tile.is-union .kb-tg__fig { color: var(--c-leaf-deep); }
.kb-tg__tile.is-necrosis .kb-tg__fig { color: var(--c-tomato); }
.kb-tg__sub { font-size: var(--t-small); color: var(--c-ink-2); }

.kb-tl { display: grid; margin-top: 14px; border-top: 2px solid var(--c-ink); }
.kb-tl__row { border-bottom: 1px solid var(--c-line); }
.kb-tl__row > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 170px) 92px; gap: 16px; align-items: center; padding: 12px 4px; }
.kb-tl__row > summary::-webkit-details-marker { display: none; }
.kb-tl__row > summary:hover { background: var(--c-hover); }
.kb-tl__row > summary:focus-visible { outline: 2px solid var(--c-cobalt); outline-offset: 2px; }
.kb-tl__name { display: grid; gap: 2px; min-width: 0; }
.kb-tl__name b { font: 400 var(--t-title)/1.1 var(--f-display); }
.kb-tl__name em { font-style: normal; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-tl__rail { display: grid; grid-template-columns: 104px minmax(0, 1fr) 104px; gap: 10px; align-items: center; min-width: 0; }
.kb-tl__rail .kb-tl__pole:first-child { text-align: right; }
.kb-tl__pole { font-size: var(--t-label); font-weight: 600; color: var(--c-ink-2); line-height: 1.2; overflow-wrap: anywhere; }
.kb-tl__bar { position: relative; display: grid; grid-template-columns: 35fr 30fr 35fr; height: 30px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line-2); }
.kb-tl__zone { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 3px; padding: 0 4px; }
.kb-tl__zone.is-mid { background: var(--c-paper-2); }
.kb-tl__zone i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-ink); }
.kb-tl__zone.is-mid i { background: var(--c-ink-2); }
.kb-tl__zone small { font-size: var(--t-label); font-weight: 700; }
.kb-tl__mean { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--c-cobalt); border-radius: 2px; }
.kb-tl__band { font-size: var(--t-small); font-weight: 600; color: var(--c-ink); }
.kb-tl__tag { justify-self: start; padding: 3px 8px; font: 700 var(--t-label)/1.3 var(--f-body); background: var(--c-paper-2); color: var(--c-ink); }
.kb-tl__tag.is-lean { background: var(--c-cobalt); color: var(--c-white); }
.kb-tl__tag.is-split { background: var(--c-sun-field); box-shadow: inset 0 0 0 1.5px var(--c-sun-ink); }
.kb-tl__tag.is-gap { background: var(--c-tomato-field); box-shadow: inset 0 0 0 1.5px var(--c-tomato); }
.kb-tl__more { padding: 4px 4px 16px 236px; display: grid; gap: 8px; }
.kb-tl__more p { margin: 0; color: var(--c-ink-2); max-width: 72ch; line-height: 1.55; }
.kb-tl__more b { color: var(--c-ink); }

.kb-tb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 0; }
.kb-tb__col { padding: 22px 26px; }
.kb-tb__col ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; color: var(--c-ink-2); }
.kb-tb__col b { color: var(--c-ink); }
.kb-tb__col.is-for { border-top: 6px solid var(--c-cobalt); }
.kb-tb__col.is-watch { border-top: 6px solid var(--c-sun); }

.kb-pg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 24px; align-items: start; margin-top: 8px; }
.kb-pg__wrap { overflow-x: auto; }
.kb-pg__grid { border-collapse: separate; border-spacing: 3px; font-variant-numeric: tabular-nums; }
.kb-pg__grid th { font: 700 var(--t-label)/1.2 var(--f-body); color: var(--c-ink-2); padding: 4px 6px; text-align: center; }
.kb-pg__grid tbody th { text-align: left; white-space: nowrap; color: var(--c-ink); }
.kb-pg__grid tbody th span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-paper-2); margin-right: 6px; }
.kb-pg__grid td { width: 46px; height: 40px; text-align: center; font: 700 var(--t-small)/1 var(--f-body); }
.kb-pg__grid td.is-union { background: var(--c-leaf-field); color: var(--c-leaf-deep); box-shadow: inset 0 0 0 1.5px var(--c-leaf); }
.kb-pg__grid td.is-ink-2 { background: var(--c-paper-2); color: var(--c-ink); }
.kb-pg__grid td.is-necrosis { background: var(--c-tomato-field); color: var(--c-tomato); box-shadow: inset 0 0 0 1.5px var(--c-tomato); }
.kb-pg__grid td.is-self { background: repeating-linear-gradient(45deg, var(--c-paper), var(--c-paper) 4px, var(--c-paper-2) 4px, var(--c-paper-2) 8px); }
.kb-pg__grid td.is-none { color: var(--c-ink-2); font-weight: 400; }
.kb-pg__lists { display: grid; gap: 16px; }
.kb-pg__lists ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.kb-pg__lists li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--c-paper); }
.kb-pg__lists b { font-variant-numeric: tabular-nums; }
.kb-pg__lists b.is-union { color: var(--c-leaf-deep); }
.kb-pg__lists b.is-necrosis { color: var(--c-tomato); }

@media (max-width: 860px) {
  .kb-tg__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-tl__row > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .kb-tl__rail { grid-column: 1 / -1; grid-row: 2; }
  .kb-tl__band { grid-column: 1; grid-row: 3; }
  .kb-tl__tag { grid-column: 2; grid-row: 1; }
  .kb-tl__more { padding-left: 4px; }
  .kb-tl__rail { grid-template-columns: 76px minmax(0, 1fr) 76px; }
  .kb-tb, .kb-pg { grid-template-columns: minmax(0, 1fr); }
}

/* ── Team constellation (components/TeamData.jsx TeamConstellation) ───────────────────────────────── */
.kb-tc { display: grid; gap: 14px; margin-top: 10px; }
.kb-tc__canvas { display: block; width: 100%; background: var(--c-paper); cursor: pointer; }
.kb-tc__people { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-tc__people button { font: 600 var(--t-small)/1 var(--f-body); padding: 7px 12px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); cursor: pointer; }
.kb-tc__people button.is-on { background: var(--c-sun); }
.kb-tc__people button:focus-visible { outline: 2px solid var(--c-cobalt); outline-offset: 2px; }
.kb-tc__detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 18px; padding: 16px 18px; background: var(--c-paper); }
.kb-tc__detail h3 { font-size: var(--t-heading); margin: 4px 0 0; }
.kb-tc__detail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kb-tc__detail li { display: flex; justify-content: space-between; padding: 6px 10px; background: var(--c-white); font-variant-numeric: tabular-nums; }
.kb-tc__detail b.is-union { color: var(--c-leaf-deep); }
.kb-tc__detail b.is-necrosis { color: var(--c-tomato); }
.kb-tc__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--t-small); color: var(--c-ink-2); }
.kb-tc__legend span { display: inline-flex; align-items: center; gap: 6px; }
.kb-tc__legend i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.kb-tc__legend i.is-leaf { background: var(--c-leaf); }
.kb-tc__legend i.is-mid { background: var(--c-ink-2); }
.kb-tc__legend i.is-tomato { background: var(--c-tomato); }
.kb-tc__legend i.is-dash { background: repeating-linear-gradient(90deg, var(--c-ink-2) 0 6px, transparent 6px 10px); }
.kb-tc__legend i.is-root { width: 14px; height: 14px; border-radius: 50%; background: var(--c-plum-light); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
@media (max-width: 860px) { .kb-tc__detail { grid-template-columns: minmax(0, 1fr); } }

/* ── Reorg simulator (screens/TeamsLab.jsx), in the team-report language ─────────────────────────── */
.kb-lab2__bar { position: sticky; top: var(--kb-top-h, 64px); z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; background: var(--c-ink); color: var(--c-white); }
.kb-lab2__bar b { color: var(--c-sun); }
.kb-lab2__bar-acts { display: flex; gap: 8px; }
.kb-lab2__bar .kb-btn--ghost { color: var(--c-white); border-color: var(--c-white); }
.kb-lab2__mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 18px; align-items: start; }
.kb-lab2__map { display: block; width: 100%; background: var(--c-paper); cursor: pointer; margin-top: 8px; }
.kb-lab2__pick { position: sticky; top: calc(var(--kb-top-h, 64px) + 70px); display: grid; gap: 10px; }
.kb-lab2__pick h2 { font-size: var(--t-heading); margin: 0; }
.kb-lab2__skills, .kb-lab2__moveto { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-tc__legend i.is-moved { width: 14px; height: 14px; border-radius: 50%; background: var(--c-sun); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.kb-lab2__teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kb-lab2__team { display: grid; gap: 12px; align-content: start; margin-top: 18px; }
.kb-lab2__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 2px solid var(--c-ink); }
.kb-lab2__head h2 { font-size: var(--t-heading); margin: 0; }
.kb-lab2__head span { font-size: var(--t-small); color: var(--c-ink-2); }
.kb-lab2__needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.kb-lab2__needs li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; background: var(--c-paper); font-size: var(--t-small); }
.kb-lab2__needs b { font-size: var(--t-label); font-weight: 700; }
.kb-lab2__needs li.is-ok b { color: var(--c-leaf-deep); }
.kb-lab2__needs li.is-one { background: var(--c-sun-field); }
.kb-lab2__needs li.is-claim { background: var(--c-paper-2); }
.kb-lab2__needs li.is-gap { background: var(--c-tomato-field); }
.kb-lab2__needs li.is-gap b { color: var(--c-tomato); }
.kb-lab2__styles { display: grid; gap: 8px; }
.kb-lab2__style { display: grid; gap: 4px; }
.kb-lab2__q { font-size: var(--t-small); font-weight: 600; }
.kb-lab2__style .kb-tl__bar { height: 24px; }
.kb-lab2__ai p { margin: 4px 0 0; }
.kb-lab2__people { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--c-line); }
.kb-lab2__chip { display: grid; text-align: left; gap: 1px; padding: 6px 10px; border: 1.5px solid var(--c-line-2); background: var(--c-white); color: var(--c-ink); cursor: pointer; font: inherit; }
.kb-lab2__chip b { font-size: var(--t-small); }
.kb-lab2__chip span { font-size: var(--t-label); color: var(--c-ink-2); }
.kb-lab2__chip.is-lead { background: var(--c-plum-field); }
.kb-lab2__chip.is-moved { background: var(--c-sun-field); border-color: var(--c-sun-ink); }
.kb-lab2__chip.is-on { border: 2px solid var(--c-ink); box-shadow: var(--cut-1); }
.kb-lab2__chip:focus-visible { outline: 2px solid var(--c-cobalt); outline-offset: 2px; }
.kb-lab2__diffs { display: grid; gap: 22px; margin-top: 10px; }
.kb-lab2__diff h3 { font-size: var(--t-title); margin: 0 0 10px; }
.kb-lab2__diff .kb-tb__col { padding: 14px 18px; background: var(--c-paper); }
.kb-lab2__decide { display: grid; gap: 12px; }
.kb-lab2__form { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; }
.kb-lab2__form input, .kb-lab2__form textarea { width: 100%; box-sizing: border-box; font: 400 var(--t-body) var(--f-body); padding: 10px 12px; border: 2px solid var(--c-ink); background: var(--c-white); color: var(--c-ink); }
.kb-lab2__decide .kb-btn { justify-self: start; }
.kb-lab2__log { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--t-small); }
.kb-lab2__log small { color: var(--c-ink-2); }
.kb-lab2__rules { margin-top: 22px; }
@media (max-width: 860px) {
  .kb-lab2__mapwrap, .kb-lab2__teams, .kb-lab2__form { grid-template-columns: minmax(0, 1fr); }
  .kb-lab2__pick { position: static; }
  .kb-lab2__needs { grid-template-columns: minmax(0, 1fr); }
}

/* /aryan: a personal page in the site's own look, two screens at most. The work comes first as six
 * tiles beside the intro, then life sciences, then the rest of him as cards to flip on cobalt; turning
 * them all throws a burst of shapes. On load the headline arrives word by word, a sun marker sweeps
 * under "explorer" and the tiles are dealt in. Reduced motion gets none of the movement. */
.kb-me h1, .kb-me .kb-h3 { hyphens: manual; }
.kb-me__top { padding-block: 44px 52px; }
.kb-me__hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 52px; align-items: center; }
.kb-me__hero h1 { font-size: var(--t-display-2); line-height: .95; margin-top: 12px; max-width: 12ch; }
.kb-me__word { display: inline-block; }
.kb-me__mark { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.kb-me__mark::after { content: ''; position: absolute; left: -4px; right: -6px; bottom: .06em; height: .32em; background: var(--c-sun); z-index: -1;
  transform-origin: left center; }
.kb-me__glyph { display: block; width: 26px; height: 26px; flex: none; border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%;
  box-shadow: 3px 4px 0 var(--c-shadow); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.kb-me__glyph.is-cobalt, .kb-me__pips i.is-cobalt { background: var(--c-cobalt); }
.kb-me__glyph.is-sun, .kb-me__pips i.is-sun { background: var(--c-sun); }
.kb-me__glyph.is-plum, .kb-me__pips i.is-plum { background: var(--c-plum); }
.kb-me__glyph.is-ink, .kb-me__pips i.is-ink { background: var(--c-ink); }

/* The work: six tiles, each a link to its source. */
.kb-me__work h2.kb-label { margin: 0 0 12px; }
.kb-me__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kb-me__tile { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 6px; padding: 16px 16px 30px; color: var(--c-ink);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.kb-me__tile:hover { transform: translate(-3px, -5px) rotate(-.6deg); box-shadow: var(--cut-3); }
.kb-me__tile:hover .kb-me__glyph { transform: rotate(-24deg) scale(1.12); }
.kb-me__tile:focus-visible { outline: 3px solid var(--c-cobalt); outline-offset: 4px; }
.kb-me__tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kb-me__tag { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
  font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); text-align: right; }
.kb-me__tag em { font-style: normal; padding: 2px 7px; background: var(--c-sun); color: var(--c-ink); letter-spacing: .04em; }
.kb-me__tag em.is-live { background: var(--c-cobalt); color: var(--c-white); }
.kb-me__tile b { font: 400 var(--t-title)/1.1 var(--f-display); margin-top: 6px; }
.kb-me__tile-text { font-size: var(--t-small); line-height: 1.45; color: var(--c-ink-2); text-wrap: pretty; }
.kb-me__arrow { position: absolute; right: 14px; bottom: 8px; font-weight: 700; color: var(--c-cobalt); transition: transform .2s ease; }
.kb-me__tile:hover .kb-me__arrow, .kb-me__tile:focus-visible .kb-me__arrow { transform: translateX(4px); }

/* Life sciences: three short columns. */
.kb-me__life { padding-block: 36px 40px; }
.kb-me__life h2.kb-label { margin: 0; }
.kb-me__life-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 14px; }
.kb-me__life-c { position: relative; padding-top: 12px; }
.kb-me__life-c::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c-ink); transform-origin: left center; }
.kb-me__life-c.kb-rise::before { transform: scaleX(0); transition: transform .9s cubic-bezier(.16,1,.3,1) .15s; }
.kb-me__life-c.kb-rise.is-in::before { transform: scaleX(1); }
.kb-me__life-c h3 { margin: 0; font: 400 var(--t-title)/1.15 var(--f-display); color: var(--c-ink); }
.kb-me__life-c p { margin: 6px 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--c-ink-2); max-width: 52ch; text-wrap: pretty; }

/* The rest of me: four cards to flip on cobalt, pips that fill as each is found, and the burst. */
.kb-me__rest { padding-block: 40px 44px; }
.kb-me__rest-in { position: relative; }
.kb-me__rest h2.kb-label { margin: 0 0 14px; color: var(--c-white); }
.kb-me__sticker { left: auto; right: max(20px, 3vw); margin-left: 0; top: -92px; width: 100px; height: 100px; z-index: 2; transform: rotate(10deg); }
.kb-me__sticker:hover { transform: rotate(2deg) scale(1.06); }
.kb-me__game { position: relative; display: grid; gap: 16px; }
.kb-me__deck { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kb-me__flip { position: relative; display: grid; min-height: 132px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px;
  font: inherit; color: inherit; text-align: left; }
.kb-me__face { grid-area: 1 / 1; display: grid; gap: 6px; padding: 16px 16px 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.kb-me__front { background: var(--c-white); box-shadow: var(--cut-2); align-content: space-between; }
.kb-me__front b { font: 400 var(--t-title)/1.1 var(--f-display); color: var(--c-ink); }
.kb-me__front small { font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-2); }
.kb-me__back { background: var(--c-ink); box-shadow: var(--cut-2); transform: rotateY(180deg); align-content: start; }
.kb-me__back b { font: 700 var(--t-label)/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--c-sun); }
.kb-me__back span { font-size: var(--t-small); line-height: 1.45; color: var(--c-white); text-wrap: pretty; }
.kb-me__flip.is-open .kb-me__front { transform: rotateY(-180deg); }
.kb-me__flip.is-open .kb-me__back { transform: none; }
.kb-me__flip:not(.is-open):hover .kb-me__front { transform: translate(-3px, -4px) rotate(-1deg); box-shadow: var(--cut-3); }
.kb-me__flip:hover .kb-me__glyph { transform: rotate(-24deg) scale(1.12); }
.kb-me__flip:focus-visible { outline: 3px solid var(--c-sun); outline-offset: 4px; }
.kb-me__score { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 40px; }
.kb-me__pips { display: inline-flex; gap: 6px; }
.kb-me__pips i { width: 14px; height: 14px; border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%; background: transparent;
  box-shadow: inset 0 0 0 2px var(--c-white); transition: background .25s ease, box-shadow .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.kb-me__pips i.is-on { box-shadow: inset 0 0 0 2px var(--c-white); transform: scale(1.15); }
.kb-me__pips i.is-on.is-cobalt { background: var(--c-white); }
.kb-me__status-line { font-weight: 700; color: var(--c-white); }
.kb-me__burst { position: absolute; left: 30%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.kb-me__burst i { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%; opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .kb-me__in, .kb-me__word { animation: kb-me-up .75s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0ms); }
  .kb-me__mark::after { animation: kb-me-sweep .6s cubic-bezier(.65,0,.35,1) .4s both; }
  .kb-me__deal { animation: kb-me-deal .6s cubic-bezier(.34,1.4,.64,1) both; animation-delay: var(--d, 0ms); }
  .kb-me__burst i { animation: kb-me-burst .9s cubic-bezier(.16,1,.3,1) both; }
  .kb-me__hello { animation: kb-me-pop .45s cubic-bezier(.34,1.56,.64,1) both; }
}
@keyframes kb-me-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes kb-me-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kb-me-deal { from { opacity: 0; transform: translateY(-30px) rotate(-6deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes kb-me-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes kb-me-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(200deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .kb-me__face, .kb-me__tile, .kb-me__glyph, .kb-me__arrow, .kb-me__pips i { transition: none; }
  .kb-me__flip:not(.is-open):hover .kb-me__front, .kb-me__tile:hover { transform: none; }
  .kb-me__life-c.kb-rise::before { transform: none; transition: none; }
  .kb-me__burst { display: none; }
}

@media (max-width: 1100px) {
  .kb-me__hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kb-me__deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .kb-me__tiles, .kb-me__life-grid { grid-template-columns: minmax(0, 1fr); }
  .kb-me__life-grid { gap: 18px; }
  .kb-me__deck { gap: 12px; }
  .kb-me__sticker { width: 80px; height: 80px; top: -70px; }
  .kb-me__sticker span { font-size: var(--t-body); }
  .kb-me .kb-actions .kb-btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}
