/* Intrepid Rhino. Tokens, base, and the kit every page other than home is built from.
   site/pages/_kit.html shows each part once with its markup. Build it with
   node tools/site-build/build.mjs --styleguide and open public/_kit.html.

   House rules this file keeps, and tools/site-check enforces:
   Corners are drawn. Put .sq on a surface (paint with --sq-fill, never background) or .sqi on a picture.
   No corner radius property, no gradient, anywhere.
   The five step colors are fills on a small square or a bar, one per engagement step. They never touch a
   border, outline, ring, stroke, shadow or underline. Selection is a brighter neutral surface, heavier type or
   a check glyph. Every hairline is --rule.
   Kit classes start with k-. The only others styled here are .wrap .btn .kicker .visually-hidden .skip-link,
   because the home page has its own stylesheet with short names. */

:root {
  /* Grounds and type. Equal to docs/redesign/creative and to home.css. */
  --paper: #F5F5F7; --white: #FFFFFF; --ink: #1D1D1F; --stone: #6E6E73; --fog: #D2D2D7; --surface: #FFFFFF; --line: transparent;
  --table: #E9E3DF;
  --marker: #FFCC00; --signal: #0071E3; --ember: #FF5F1F; --dusk: #5E5CE6; --field: #30B15C;
  --sans: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --m: clamp(18px, 4vw, 64px);
  --lift: drop-shadow(0 2px 5px rgba(0,0,0,0.08)) drop-shadow(0 16px 30px rgba(0,0,0,0.16));
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.5, 1.8, 0.3, 0.8);

  /* Greys the board uses for running text, and two fills. */
  --text: #3A3A3C; --soft: #515154; --faint: #8E8E93; --tint: rgba(29, 29, 31, 0.07); --todo: #E8E8ED;

  /* What a part reads from the band it sits in. .is-card and .is-ink change them, and a white sheet resets them. */
  --raise: var(--white);   /* the brighter surface a chosen or hovered row gets */
  --rule: var(--fog);      /* every hairline */
  --body: var(--text);     /* running text */
  --label: var(--stone);   /* mono labels, dates, sources */
  --dim: var(--faint);     /* what is not chosen */
  --on: var(--ink);        /* the fill of a chosen chip or a filled bar */
  --on-fg: var(--white);

  /* Page measure. */
  --k-max: 1680px;
  --k-top: clamp(104px, 9.6vw, 150px);   /* clears the menu bar on a first screen */
  --k-gap: clamp(56px, 7vw, 112px);      /* above and below a section */
  color-scheme: light;
}

/* One attribute names the step. Every chip and filled bar inside takes its color. */
[data-step="assess"] { --step: var(--marker); }
[data-step="setup"] { --step: var(--signal); }
[data-step="train"] { --step: var(--ember); }
[data-step="build"] { --step: var(--dusk); }
[data-step="run"] { --step: var(--field); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { background: var(--paper); overflow-x: clip; }
ol, ul { list-style: none; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
::selection { background: var(--fog); color: var(--ink); }

.visually-hidden:where(:not(:focus-within, :active)) { position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important; }
.skip-link { position: fixed; top: 10px; left: var(--m); z-index: 400; }
.skip-link:not(:focus-visible) { clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; min-height: 0; padding: 0; white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--m), var(--k-max)); margin-inline: auto; }

/* ---------- sections ---------- */
/* A section is one band of the page. data-tone on it tells the menu bar what it is sitting on. */
.k-section, .k-hero, .k-band, .k-foot { position: relative; font-size: 17px; line-height: 1.4; color: var(--ink); }
:where(.k-section, .k-hero, .k-band, .k-foot, .k-pop) img { max-width: 100%; height: auto; }
.k-section { padding-block: var(--k-gap); background: var(--paper); }
.k-section.is-first { padding-top: var(--k-top); }
.k-section.is-tight { padding-block: calc(var(--k-gap) / 2); }
.k-section.is-card { --raise: var(--paper); background: var(--white); }
/* The dark sheet. It slides over the band above it, so its top corners are drawn. */
.k-section.is-ink { --raise: rgba(255, 255, 255, 0.1); --rule: rgba(255, 255, 255, 0.22); --body: #C7C7CC; --label: #A1A1A6; --dim: #8E8E93; --on: var(--white); --on-fg: var(--ink); --sq-focus: #fff;
  background: var(--ink); color: #fff; }
.k-section.is-ink:not(.is-first) { --kc: clamp(24px, 3vw, 48px); margin-top: calc(var(--kc) * -1);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-image: var(--sq-tile-tl), var(--sq-tile-tr), var(--sq-solid), var(--sq-solid); mask-image: var(--sq-tile-tl), var(--sq-tile-tr), var(--sq-solid), var(--sq-solid);
  -webkit-mask-position: left top, right top, center top, left bottom; mask-position: left top, right top, center top, left bottom;
  -webkit-mask-size: var(--kc) var(--kc), var(--kc) var(--kc), calc(100% - 2 * var(--kc) + 2px) var(--kc), 100% calc(100% - var(--kc) + 1px); mask-size: var(--kc) var(--kc), var(--kc) var(--kc), calc(100% - 2 * var(--kc) + 2px) var(--kc), 100% calc(100% - var(--kc) + 1px); }

/* Two columns that become one. --split sets the widths. .is-rule draws one hairline between them. */
.k-split { display: grid; grid-template-columns: var(--split, minmax(0, 5fr) minmax(0, 7fr)); gap: clamp(24px, 4vw, 72px); align-items: start; }
.k-split.is-end { align-items: end; }
.k-split.is-rule > * + * { padding-left: clamp(24px, 4vw, 72px); border-left: 1px solid var(--rule); }
/* A column of parts with one gap. --gap changes it. */
.k-stack { display: grid; gap: var(--gap, 18px); align-content: start; justify-items: start; }
.k-stack > * { --gap: initial; min-width: 0; }

/* A long page with a short list that stays put on the left and marks where you are. */
.k-indexed { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 9.6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.k-index { position: sticky; top: 96px; display: grid; gap: 14px; }
.k-toc { display: grid; border-bottom: 1px solid var(--rule); }
.k-toc a { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding: 7px 0; border-top: 1px solid var(--rule); font: 400 12px/1.4 var(--mono); color: var(--label); text-decoration: none; }
.k-toc a:hover, .k-toc a[aria-current] { color: inherit; }
.k-toc a[aria-current] { font-weight: 500; }

/* ---------- type ---------- */
.k-display { font-size: clamp(36px, 4.6vw, 84px); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.k-display.is-xl { font-size: clamp(42px, 6.2vw, 112px); line-height: 0.94; letter-spacing: -0.045em; }
.k-h2 { font-size: clamp(28px, 3.4vw, 62px); font-weight: 500; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.k-h3 { font-size: clamp(22px, 2.3vw, 40px); font-weight: 500; line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
.k-h4 { font-size: clamp(19px, 1.62vw, 27px); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 1.4em; font: 500 12px/1.3 var(--mono); letter-spacing: 0; color: var(--label); }
.k-lede { max-width: 34em; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.38; color: var(--body); text-wrap: pretty; }
.k-text { font-size: clamp(15px, 1.08vw, 17px); line-height: 1.4; color: var(--body); text-wrap: pretty; }
.k-text b, .k-lede b { font-weight: 600; color: var(--ink); }
.is-ink :is(.k-text, .k-lede) b { color: #fff; }
/* What a document, a regulator or a machine says: dates, sources, statuses, captions. */
.k-note { font: 400 12px/1.45 var(--mono); color: var(--label); }

/* A reading column, for a post or a policy. */
.k-prose { max-width: 40em; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.5; color: var(--body); }
.k-prose > * + * { margin-top: 1em; }
.k-prose :is(h2, h3) { margin-top: 1.8em; font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.k-prose h2 { font-size: clamp(24px, 2.3vw, 36px); }
.k-prose h3 { font-size: clamp(19px, 1.6vw, 24px); }
.k-prose ul { list-style: disc; padding-left: 1.2em; }
.k-prose ol { list-style: decimal; padding-left: 1.4em; }
.k-prose li + li { margin-top: 0.4em; }
.k-prose a { text-decoration-color: var(--faint); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.k-prose a:hover { text-decoration-color: currentColor; }
.k-prose strong { font-weight: 600; color: var(--ink); }
/* A footnote number in running text. It points at a row of .k-sources. */
.k-ref { font: 500 0.7em/1 var(--mono); vertical-align: super; text-decoration: none; padding: 0 2px; }

/* ---------- buttons and links ---------- */
.btn { --sq-r: 12px; --sq-fill: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; font: 600 16px/1.1 var(--sans); color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer; transition: --sq-fill 0.25s, color 0.25s, scale 0.4s var(--bounce); }
.btn:hover { scale: 1.03; }
.btn.is-quiet { --sq-fill: var(--tint); color: var(--ink); }
.btn.is-white { --sq-fill: #fff; color: var(--ink); }
.btn.is-small { --sq-r: 10px; min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: default; scale: 1; }
.is-ink .btn.is-quiet { --sq-fill: rgba(255, 255, 255, 0.16); color: #fff; }
/* A text link with an arrow that moves. Write the arrow as <i aria-hidden="true">&rarr;</i>. */
.k-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; }
.k-link i { font-style: normal; transition: translate 0.4s var(--out); }
.k-link:hover i { translate: 4px 0; }
.k-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }

/* ---------- small parts ---------- */
/* The step square. Add .sqi for its corner. Its color comes from data-step on it or on anything around it. */
.k-chip { --sq-r: 3px; display: inline-block; flex: none; width: 11px; height: 11px; background: var(--step, currentColor); }
/* A small mono tag. As a link or a button it fills with ink under the pointer. */
.k-tag { --sq-r: 7px; --sq-fill: var(--raise); display: inline-flex; align-items: center; min-height: 26px; padding: 0 8px; font: 500 12px/1 var(--mono); color: var(--body); white-space: nowrap; text-decoration: none; transition: --sq-fill 0.2s, color 0.2s; }
:is(a, button).k-tag:hover, .k-tag[aria-expanded="true"] { --sq-fill: var(--on); color: var(--on-fg); }
.k-tags { display: flex; flex-wrap: wrap; gap: 6px; }
/* A white mono label that sits on a picture. */
.k-pin { --sq-r: 7px; --sq-fill: #fff; display: inline-flex; padding: 6px 9px; font: 500 12px/1 var(--mono); color: var(--ink); white-space: nowrap; }

/* A row of choices: tabs, filters, the rooms of a picture. The chosen one is filled and set heavier. */
.k-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.k-chips > :is(a, button, label) { --sq-r: 10px; --sq-fill: var(--raise); position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: 500 15px/1.1 var(--sans); color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; transition: --sq-fill 0.25s, color 0.25s; }
.k-chips > :is([aria-selected="true"], [aria-pressed="true"], [aria-current], [aria-expanded="true"], :has(> input:checked)) { --sq-fill: var(--on); color: var(--on-fg); font-weight: 600; }
.k-chips > [aria-disabled="true"], .k-chips > :disabled { color: var(--dim); cursor: default; }

/* ---------- ledger ---------- */
/* Rows with one hairline between them. --cols sets the columns of every row. A row is a div, an li, a link,
   or a <details> whose <summary> is the row and whose .k-row-more opens under it. */
.k-ledger { display: grid; border-bottom: 1px solid var(--rule); }
.k-row { border-top: 1px solid var(--rule); font-size: clamp(15px, 1.08vw, 17px); line-height: 1.35; color: var(--body); text-decoration: none; transition: background-color 0.2s; }
.k-row:not(details), .k-row > summary { display: grid; grid-template-columns: var(--cols, minmax(7em, 1fr) minmax(0, 3fr)); column-gap: clamp(14px, 1.4vw, 24px); align-items: baseline; padding-block: 12px; }
.k-row > summary { position: relative; padding-right: 28px; list-style: none; cursor: pointer; }
.k-row > summary::-webkit-details-marker { display: none; }
/* The plus that says a row opens. Two bars, one turns. */
.k-row > summary::before, .k-row > summary::after { content: ''; position: absolute; right: 2px; top: calc(12px + 0.65em); width: 12px; height: 2px; background: currentColor; opacity: 0.45; transition: rotate 0.4s var(--out), opacity 0.2s; }
.k-row > summary::after { rotate: 90deg; }
.k-row[open] > summary::after { rotate: 0deg; }
.k-row > summary:hover::before, .k-row > summary:hover::after, .k-row[open] > summary::before, .k-row[open] > summary::after { opacity: 1; }
.k-row b { font-weight: 600; color: var(--ink); }
.is-ink .k-row b { color: #fff; }
.k-row small { font: 400 12px/1.4 var(--mono); color: var(--label); }
/* The mono face goes on the cells, so a column set in em stays as wide as in the rows below. */
.k-row.is-head { padding-block: 8px; }
.k-row.is-head > * { font: 500 12px/1.2 var(--mono); color: var(--label); }
.k-row.is-dim, .k-row.is-dim b { color: var(--dim); }
/* The chosen, open or hovered row sits on the brighter surface, which runs 12px past the text on each side. */
:is(a, details).k-row:hover, .k-row.is-on, .k-row[open], .k-row:has(> [aria-expanded="true"]) { background: var(--raise); margin-inline: -12px; padding-inline: 12px; }
.k-row-more { display: grid; grid-template-columns: var(--cols, minmax(7em, 1fr) minmax(0, 3fr)); column-gap: clamp(14px, 1.4vw, 24px); row-gap: 10px; padding: 2px 28px 16px 0; }
.k-row-more > * { grid-column: 2 / -1; }
/* Names in large type, for a list of products. */
.k-ledger.is-big .k-row:not(details), .k-ledger.is-big .k-row > summary { padding-block: 18px; }
.k-ledger.is-big .k-row b { font-size: clamp(24px, 2.3vw, 38px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.k-ledger.is-big .k-row > summary::before, .k-ledger.is-big .k-row > summary::after { top: calc(18px + 1em); }

/* Sources, numbered, in mono. A footnote link lights its row. */
.k-sources { display: grid; counter-reset: k-src; border-bottom: 1px solid var(--rule); font: 400 12px/1.5 var(--mono); color: var(--label); }
.k-sources > li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding: 8px 0; border-top: 1px solid var(--rule); counter-increment: k-src; scroll-margin-top: 110px; }
.k-sources > li::before { content: counter(k-src); font-weight: 500; color: var(--ink); }
.is-ink .k-sources > li::before { color: #fff; }
.k-sources > li:target { background: var(--raise); margin-inline: -12px; padding-inline: 12px; color: var(--ink); }
.k-sources a { text-decoration-color: var(--faint); text-underline-offset: 0.2em; }

/* A real table for vendors and tools. On a phone each row becomes a block and each cell shows its column name
   from data-label. */
.k-table { width: calc(100% + 24px); margin-inline: -12px; border-collapse: collapse; text-align: left; font-size: clamp(15px, 1.08vw, 17px); line-height: 1.35; color: var(--body); }
.k-table :is(th, td) { padding: 12px 12px; vertical-align: top; border-top: 1px solid var(--rule); }
.k-table thead th { padding-block: 8px; font: 500 12px/1.2 var(--mono); color: var(--label); }
.k-table thead th button { font: inherit; color: inherit; }
.k-table thead th[aria-sort] { color: var(--ink); }
.k-table thead th[aria-sort="ascending"] button::after { content: ' \2191'; content: ' \2191' / ''; }
.k-table thead th[aria-sort="descending"] button::after { content: ' \2193'; content: ' \2193' / ''; }
.k-table tbody th { font-weight: 600; color: var(--ink); }
.k-table tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.k-table tbody tr { transition: background-color 0.2s; }
.k-table tbody tr:hover, .k-table tbody tr.is-on, .k-table tbody tr:has([aria-expanded="true"]) { background: var(--raise); }
.k-table small, .k-table .is-mono { font: 400 12px/1.4 var(--mono); color: var(--label); }
.k-table a { text-decoration-color: var(--faint); text-underline-offset: 0.2em; }
/* A block that a [data-toggle] button opens, in a table cell or anywhere else. */
.k-more { margin-top: 10px; }
.k-more[hidden] { display: none; }
[data-toggle] { text-align: left; }
/* Controls that only script can work are not offered when script is off. */
html:not(.js) :is([data-copy], [data-copy-text], [data-print], [data-pop-step], .k-chips > button[data-pop]) { display: none; }

/* ---------- the document ---------- */
/* Anything a client keeps is drawn as the document itself: mono on a white sheet, tilted a degree or two.
   --tilt sets the angle. .is-flat is the same sheet lying square, for a form or a message. */
.k-doc { --sq-r: 22px; --sq-fill: var(--white); --sq-shadow: drop-shadow(0 3px 7px rgba(0,0,0,0.06)) drop-shadow(0 14px 28px rgba(0,0,0,0.12)); --sq-focus: var(--ink);
  rotate: var(--tilt, -1.2deg); display: grid; gap: 7px; align-content: start; padding: clamp(16px, 1.6vw, 26px); font: 400 13px/1.45 var(--mono); color: var(--text); }
.k-doc > *, .k-pop > *, .k-plate > * { --sq-focus: var(--ink); --raise: var(--paper); --rule: var(--fog); --body: var(--text); --label: var(--stone); --dim: var(--faint); --on: var(--ink); --on-fg: var(--white); }
.k-doc.is-flat { --sq-fill: var(--raise); --sq-shadow: none; rotate: none; }
.k-doc-head { display: flex; justify-content: space-between; gap: 14px; font: 500 12px/1.2 var(--mono); color: var(--stone); }
.k-doc-title { margin-bottom: 4px; font: 500 clamp(19px, 1.7vw, 27px)/1.04 var(--sans); letter-spacing: -0.025em; color: var(--ink); }
.k-doc-rows { display: grid; }
.k-doc-rows > li { display: grid; grid-template-columns: var(--cols, 8.5em minmax(0, 1fr)); column-gap: 13px; padding: 8px 0; border-top: 1px solid var(--fog); }
.k-doc-rows b { font-weight: 500; color: var(--ink); }
/* A checklist. The done row is in ink and carries the check glyph. */
.k-doc-rows.is-check > li { position: relative; padding-left: 24px; }
.k-doc-rows.is-check > li::before { content: '\00B7'; content: '\00B7' / ''; position: absolute; left: 4px; top: 8px; color: var(--stone); }
.k-doc-rows.is-check > li.is-on { color: var(--ink); }
.k-doc-rows.is-check > li.is-on::before { content: '\2713'; content: '\2713' / 'Done. '; color: var(--ink); }
.k-doc-foot { padding-top: 8px; border-top: 1px solid var(--fog); font-size: 12px; color: var(--stone); }

/* ---------- steps ---------- */
/* The five steps as a list. Put data-step on each li. When one is current the rest step back. */
.k-steps { display: grid; border-bottom: 1px solid var(--rule); }
.k-steps > li { border-top: 1px solid var(--rule); }
.k-steps > li > :is(a, button, div) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; width: 100%; padding: 9px 0; text-align: left; text-decoration: none; font-size: clamp(18px, 1.45vw, 24px); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; transition: color 0.3s, font-size 0.4s var(--out); }
.k-steps .k-chip { align-self: center; }
.k-steps small { font: 400 12px/1 var(--mono); letter-spacing: 0; color: var(--label); }
.k-steps:has([aria-current]) > li > :not([aria-current]) { color: var(--dim); }
.k-steps [aria-current] { font-size: clamp(24px, 2.3vw, 38px); letter-spacing: -0.03em; }

/* Steps as columns under one flat track. A bar is bright for .is-on and dim for the rest.
   .is-step fills each bar with its own step color instead. */
.k-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(8px, 0.9vw, 14px); }
.k-track > li { position: relative; display: grid; gap: 6px; align-content: start; padding-top: 16px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.35; color: var(--dim); }
.k-track > li::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--rule); }
.k-track > li:is(.is-on, [aria-current]) { color: var(--body); }
.k-track > li:is(.is-on, [aria-current])::before { background: var(--on); }
.k-track.is-step > li[data-step]::before { background: var(--step); }
.k-track b { display: flex; align-items: center; gap: 8px; font-size: clamp(18px, 1.6vw, 26px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.k-track > li:is(.is-on, [aria-current]) b { color: var(--ink); }
.is-ink .k-track > li:is(.is-on, [aria-current]) b { color: #fff; }
.k-track small { font: 400 12px/1.3 var(--mono); color: var(--label); }
.k-track :is(a, button) { text-align: left; text-decoration: none; }

/* A proportion, not a score: a flat neutral track with flat segments and a legend. --v is a segment's share. */
.k-meter { display: flex; gap: 2px; height: 10px; }
.k-meter > i { flex: var(--v, 1) 1 0; background: var(--rule); }
.k-meter > i.is-on { background: var(--on); }
.k-meter-legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font: 400 12px/1.3 var(--mono); color: var(--label); }

/* A counted number with what it counts. */
.k-figures { display: flex; flex-wrap: wrap; gap: 24px clamp(24px, 4vw, 64px); }
.k-figure { flex: 0 1 12em; display: grid; gap: 12px; align-content: start; }
.k-figure b { font-size: clamp(56px, 7.4vw, 128px); font-weight: 500; line-height: 0.9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.k-figure span { font-size: clamp(15px, 1.1vw, 18px); line-height: 1.35; color: var(--body); }
.k-figure.is-dim b { color: var(--dim); }

/* ---------- pictures ---------- */
/* A picture cut to the corner. Add .sqi. --ar is its shape, --at the part to keep in view. */
.k-pic { --sq-r: 22px; position: relative; display: block; aspect-ratio: var(--ar, 16 / 9); overflow: hidden; background: var(--fog); }
.k-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--at, 50% 50%); }
/* Where a real screen capture or a photograph goes. It says what is missing, in mono. */
.k-pic.is-todo { display: grid; place-items: center; padding: 16px; background: var(--todo); text-align: center; font: 500 12px/1.4 var(--mono); color: var(--stone); }
.k-caption { margin-top: 9px; font: 400 12px/1.4 var(--mono); color: var(--label); }

/* A picture you can click into. .k-cam keeps the picture's own shape and covers the frame, so a mark placed by
   percent stays on its spot at any frame shape. --ar is the frame's shape, as on .k-pic. --pic is the picture's
   own width over height as a plain number (every model picture is 1672 by 941), and --fx and --fy the point of
   it that stays in view. With data-zoom on the scene, kit.js moves the camera in on a pinned mark. */
.k-scene { --pic: 1.7768; position: relative; aspect-ratio: var(--ar, 16 / 9); overflow: hidden; container-type: size; background: var(--table); }
.k-cam { --w: max(100cqw, 100cqh * var(--pic)); --h: max(100cqh, 100cqw / var(--pic)); position: absolute; left: calc((100cqw - var(--w)) * var(--fx, 0.5)); top: calc((100cqh - var(--h)) * var(--fy, 0.5)); width: var(--w); height: var(--h); transform-origin: 0 0; transition: transform 0.7s var(--out); }
.k-cam > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.k-cam > .k-pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; scale: calc(1 / var(--z, 1)); pointer-events: none; }
/* A click mark: a button at --x and --y, 44px to the finger, an ink square to the eye. Its <b> is its name. */
.k-mark { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 44px; height: 44px; translate: -50% -50%; scale: calc(1 / var(--z, 1)); transition: scale 0.7s var(--out); }
.k-mark > i { --sq-r: 7px; display: grid; place-items: center; width: 24px; height: 24px; background: var(--ink); transition: scale 0.4s var(--bounce); }
.k-mark > i > i { --sq-r: 3.5px; display: block; width: 12px; height: 12px; background: #fff; }
.k-mark:hover > i, .k-mark:focus-visible > i, .k-mark[aria-expanded="true"] > i { scale: 1.3; }
.k-mark:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
.k-mark > b { --sq-r: 6px; --sq-fill: #fff; position: absolute; left: 50%; top: 100%; translate: -50% -4px; padding: 4px 7px; font: 500 11px/1 var(--mono); color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.25s, translate 0.4s var(--out); }
.k-mark:hover > b, .k-mark:focus-visible > b { opacity: 1; translate: -50% 0; }

/* ---------- first screens ---------- */
/* Words on the left, a picture that runs off the right and bottom edges. .is-flip puts the picture left. */
.k-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100svh; padding-left: max(var(--m), (100% - var(--k-max)) / 2); background: var(--paper); overflow: clip; }
.k-hero-words { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: var(--k-top) clamp(20px, 3vw, 48px) clamp(40px, 4.4vw, 68px) 0; }
.k-hero-pic { --sq-r: clamp(18px, 1.6vw, 26px); position: relative; margin: clamp(86px, 6.6vw, 104px) -4vw -4vw 0; overflow: hidden; background: var(--table); }
.k-hero-pic > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--at, 50% 50%); }
.k-hero-pic > .k-scene { position: absolute; inset: 0; }
.k-hero.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-left: 0; padding-right: max(var(--m), (100% - var(--k-max)) / 2); }
.k-hero.is-flip .k-hero-pic { order: -1; margin: clamp(86px, 6.6vw, 104px) 0 -4vw -4vw; }
.k-hero.is-flip .k-hero-words { padding: var(--k-top) 0 clamp(40px, 4.4vw, 68px) clamp(20px, 3vw, 48px); }

/* A picture that fills the screen with words over it. Place each block of words with .k-at-tl, -tr, -bl, -br
   or -l. On a phone the picture is a band at the top and the words sit under it on paper, never on it. */
.k-band { display: grid; min-height: 100svh; background: var(--table); overflow: clip; }
.k-band-pic { position: absolute; inset: 0; }
.k-band-pic > img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--at, 50% 50%); }
.k-band-pic > .k-scene { position: absolute; inset: 0; }
.k-band-over { position: relative; display: grid; grid-template: "tl tr" 1fr "bl br" auto / minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: var(--k-top) max(var(--m), (100% - var(--k-max)) / 2) clamp(40px, 4.4vw, 68px); pointer-events: none; }
.k-band-over > * { max-width: 34em; pointer-events: auto; }
.k-at-tl { grid-area: tl; place-self: start; }
.k-at-tr { grid-area: tr; place-self: start end; }
.k-at-bl { grid-area: bl; place-self: end start; }
.k-at-br { grid-area: br; place-self: end; }
.k-at-l { grid-area: 1 / 1 / -1 / 2; place-self: center start; }
.k-band.is-light { color: #fff; --body: #fff; --label: #fff; }
/* A white plate for words on a photograph. */
.k-plate { --sq-r: 20px; --sq-fill: #fff; --sq-shadow: var(--lift); --sq-focus: var(--ink); display: grid; gap: 12px; padding: clamp(18px, 1.9vw, 30px); color: var(--ink); }

/* ---------- the pop-up ---------- */
/* One small card of context. With script off it is a plain block where it sits in the page, so everything in it
   can be read. kit.js opens it from a [data-pop] trigger: beside the trigger on a wide screen, as a sheet from
   the bottom on a phone or an upright tablet. .k-pop-more shows only once the card is pinned. */
.k-pop { --sq-r: 18px; --sq-fill: var(--white); --sq-shadow: var(--lift); --sq-focus: var(--ink); width: min(346px, 86vw); padding: 14px 16px 16px; font-size: 15px; line-height: 1.35; text-align: left; color: var(--ink); }
.k-pop, .k-pop-body { display: grid; gap: 9px; align-content: start; }
.k-pop header { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 20px; font: 500 12px/1.2 var(--mono); color: var(--soft); }
.k-pop header em { margin-left: auto; font-style: normal; }
.k-pop-pic { --sq-r: 10px; display: block; width: calc(100% + 12px); max-width: none; margin: 0 -6px 2px; aspect-ratio: 16 / 9; object-fit: cover; }
.k-pop-title { font-size: 22px; font-weight: 500; line-height: 1.08; letter-spacing: -0.022em; }
.k-pop-title span { color: var(--faint); }
.k-pop-text { color: var(--text); }
.k-pop-text b { font-weight: 600; color: var(--ink); }
.k-pop-src { font: 400 12px/1.4 var(--mono); color: var(--stone); }
.k-pop dl { display: grid; }
.k-pop dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--fog); }
.k-pop dd { font-weight: 600; text-align: right; }
.k-pop footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.k-pop footer .k-link { min-height: 32px; font-size: 15px; }
.k-pop-x { --sq-r: 9px; --sq-fill: var(--paper); display: none; place-items: center; flex: none; width: 32px; height: 32px; margin: -6px -6px -6px 0; font: 500 18px/1 var(--sans); color: var(--ink); }
.k-pop.is-pinned .k-pop-x { display: grid; }
.k-pop-grab, .k-pop-dim { display: none; }
/* A card takes focus when it is pinned, so a screen reader reads it. It shows no ring of its own. */
.k-pop:focus-visible { --sq-focus: transparent; outline: 0; }

/* With script off, or wherever a card is left in the page, cards read as a list with hairlines. */
html:not(.js) .k-pop { --sq-fill: transparent; --sq-shadow: none; width: auto; max-width: 46em; padding: 16px 0; border-top-color: var(--rule); }
.k-pops { display: grid; }

.js .k-pop { position: fixed; z-index: 300; left: 0; top: 0; opacity: 0; visibility: hidden; pointer-events: none; scale: 0.94; transform-origin: 0 100%; transition: opacity 0.2s, scale 0.42s var(--bounce), visibility 0s 0.2s; }
.js .k-pop.is-on { opacity: 1; visibility: visible; pointer-events: auto; scale: 1; transition: opacity 0.2s, scale 0.42s var(--bounce), visibility 0s; }
.js .k-pop:not(.is-pinned) .k-pop-more { display: none; }
.js .k-pop-body { max-height: min(72svh, 600px); overflow-y: auto; overscroll-behavior: contain; }
/* A picture in a card clips its corners, so a grid row would let it shrink to nothing and the picture would then sit
   over the title in a short window. Rows keep their full height and the card scrolls instead. */
.k-pop-body { grid-auto-rows: max-content; }

/* ---------- tabs ---------- */
/* A .k-chips row with role="tablist" above its .k-panel blocks. With script off every panel shows, one after
   another. Put no padding or ground on a panel itself. */
/* The space under the tabs is a margin, not a grid gap, so a panel that is hidden but still findable adds none. */
.k-tabs > .k-chips { margin-bottom: 18px; }
.js .k-tabs:not(.is-ready) > .k-panel ~ .k-panel { display: none; }

/* ---------- forms ---------- */
.k-form { display: grid; gap: 22px; }
.k-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.k-field { display: grid; gap: 6px; align-content: start; min-width: 0; border: 0; }
.k-label { display: flex; justify-content: space-between; gap: 12px; width: 100%; font: 500 12px/1.3 var(--mono); color: var(--label); }
.k-hint { font: 400 12px/1.4 var(--mono); color: var(--label); }
/* The surface around a field. The input inside has no box of its own. */
.k-input { --sq-r: 12px; --sq-fill: var(--raise); display: block; min-width: 0; }
.k-input > :is(input, textarea) { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; background: none; font: inherit; font-size: max(16px, 1em); line-height: 1.3; color: var(--ink); outline: 0; appearance: none; }
.k-input > textarea { min-height: 7.5em; resize: vertical; }
.k-input > ::placeholder { color: var(--faint); opacity: 1; }
.k-input:has(> :user-invalid) { --sq-line: var(--ink); }
/* An error is a glyph and a sentence that says how to fix it. It shows once the person has left the field. */
.k-error { display: none; font: 500 12px/1.4 var(--mono); color: var(--ink); }
.k-error::before { content: '!'; content: '!' / ''; margin-right: 8px; font-weight: 600; }
.k-field:has(:user-invalid) .k-error { display: block; }
/* A choice is a real radio or checkbox inside a chip. A checkbox shows its <i>, the check glyph, when ticked. */
.k-choice > input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.k-choice > i { display: none; font-style: normal; }
.k-choice:has(> input:checked) > i { display: inline; }

/* ---------- footer ---------- */
.k-foot { padding-block: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 40px); background: var(--paper); border-top: 1px solid var(--rule); }
.k-foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.k-news { display: grid; gap: 12px; max-width: 26em; }
.k-news-label { font-size: clamp(22px, 2.3vw, 36px); font-weight: 500; line-height: 1.04; letter-spacing: -0.028em; }
.k-news-row { display: flex; gap: 8px; }
.k-news-row > .k-input { flex: 1; }
.k-news:has(:user-invalid) .k-error { display: block; }
.k-news-status { font: 400 12px/1.45 var(--mono); color: var(--label); }
.k-news-status:empty { display: none; }
.k-news.is-done .k-news-row { display: none; }
.k-news.is-done .k-news-status { font-weight: 500; color: var(--ink); }
.k-news.is-done .k-news-status::before { content: '\2713'; content: '\2713' / ''; margin-right: 8px; }
.k-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(16px, 2vw, 32px); }
.k-foot-head { padding-bottom: 10px; font: 500 12px/1.3 var(--mono); color: var(--label); }
.k-foot-col li { border-top: 1px solid var(--rule); }
.k-foot-col a { display: block; padding: 9px 0; font-size: 15px; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; transition: translate 0.36s var(--out); }
.k-foot-col a:hover { translate: 4px 0; }
.k-foot-legal { margin-top: clamp(32px, 5vw, 72px); font: 400 12px/1.4 var(--mono); color: var(--label); }

/* ---------- narrower ---------- */
@media (max-width: 899px) {
  .k-split, .k-indexed { grid-template-columns: minmax(0, 1fr); }
  .k-split.is-rule > * + * { padding: clamp(24px, 4vw, 40px) 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .k-index { position: static; }
  .k-foot-top { grid-template-columns: minmax(0, 1fr); }
  .k-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-track { grid-auto-flow: row; gap: 18px; }
}

/* A phone. Rows stack, tables turn into blocks, buttons go full width. --cols-s sets a row's columns here. */
@media (max-width: 699px) {
  .k-actions { width: 100%; }
  .k-actions > .btn { flex: 1 1 100%; --sq-r: 14px; min-height: 56px; font-size: 17px; }
  .k-fields { grid-template-columns: minmax(0, 1fr); }
  .k-row:not(details), .k-row > summary, .k-row-more { grid-template-columns: var(--cols-s, minmax(0, 1fr)); row-gap: 4px; }
  .k-row-more > * { grid-column: auto; }
  .k-row.is-head { display: none; }
  /* A big ledger keeps the name and its status on one line and puts the sentence under them. */
  .k-ledger.is-big .k-row:not(details), .k-ledger.is-big .k-row > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .k-ledger.is-big .k-row span { grid-area: 2 / 1 / 3 / -1; }
  .k-ledger.is-big .k-row small { text-align: right; }
  .k-doc-rows > li { grid-template-columns: var(--cols-s, minmax(0, 1fr)); row-gap: 2px; }
  /* A row of chips that runs off the right edge and scrolls sideways, in thumb reach. */
  .k-chips.is-rail { flex-wrap: nowrap; margin-inline: calc(var(--m) * -1); padding: 4px var(--m); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .k-chips.is-rail::-webkit-scrollbar { display: none; }
  .k-chips.is-rail > * { flex: none; scroll-snap-align: start; }
  :is(a, button).k-tag { min-height: 44px; padding: 0 14px; font-size: 13px; }

  .k-table, .k-table tbody, .k-table tr, .k-table :is(th, td) { display: block; }
  .k-table { width: 100%; margin-inline: 0; }
  .k-table thead { display: none; }
  .k-table tbody tr { padding: 14px 0; border-top: 1px solid var(--rule); }
  .k-table tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .k-table tbody tr:hover, .k-table tbody tr.is-on, .k-table tbody tr:has([aria-expanded="true"]) { margin-inline: -12px; padding-inline: 12px; }
  .k-table tbody :is(th, td), .k-table tbody tr:last-child > * { padding-block: 0; padding-right: 0; border: 0; }
  .k-table tbody th, .k-table tbody td:not([data-label]) { padding-left: 0; }
  .k-table tbody th { font-size: 19px; }
  .k-table td { position: relative; margin-top: 8px; }
  .k-table td[data-label] { padding-left: 126px; }
  .k-table td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 0; width: 114px; font: 500 12px/1.6 var(--mono); color: var(--label); }
}

/* Tall screens: phones and upright tablets, the same test the home page uses. The picture is a band at the top
   and behaves like a camera, the words sit under it, and a pop-up is a sheet from the bottom. */
@media (max-width: 699px), (max-aspect-ratio: 41/50) {
  .k-hero, .k-hero.is-flip { display: flex; flex-direction: column; min-height: 0; padding: 0; }
  .k-hero-pic, .k-hero.is-flip .k-hero-pic { order: -1; height: 46svh; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .k-hero-words, .k-hero.is-flip .k-hero-words { gap: 22px; padding: 22px var(--m) 36px; }
  .k-band { display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
  .k-band-pic { position: relative; inset: auto; height: 46svh; }
  .k-band-over { display: grid; grid-template: none; gap: 18px; padding: 22px var(--m) 36px; }
  .k-band-over > * { grid-area: auto; place-self: auto; max-width: none; }
  .k-band.is-light { color: var(--ink); --body: var(--text); --label: var(--stone); }
  .k-plate { --sq-fill: transparent; --sq-shadow: none; padding: 0; }
  .k-mark > b { translate: -50% -4px; opacity: 0; }

  .js .k-pop { left: 0 !important; right: 0; top: auto !important; bottom: -40px; width: auto; --sq-r: 26px; padding: 0 0 40px; scale: 1; translate: 0 104%; transform-origin: 50% 100%; transition: translate 0.55s var(--out), opacity 0.2s, visibility 0s 0.55s; }
  .js .k-pop.is-on { translate: 0 0; transition: translate 0.55s var(--out), opacity 0.2s, visibility 0s; }
  .js .k-pop-body { max-height: 62svh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; gap: 11px; padding: 6px 18px max(24px, calc(env(safe-area-inset-bottom) + 14px)); }
  .js .k-pop-grab { display: block; justify-self: center; width: 44px; height: 24px; touch-action: none; cursor: grab; }
  .js .k-pop-grab::before { content: ''; display: block; width: 40px; height: 4px; margin: 10px auto 0; background: var(--fog); }
  .js .k-pop .k-pop-x { display: grid; width: 44px; height: 44px; margin: -8px -8px -8px 0; }
  .js .k-pop .k-pop-more { display: revert; }
  .js .k-pop-title { font-size: 24px; }
  .js .k-pop footer .k-link { min-height: 44px; font-size: 16px; }
  .js .k-pop-dim { display: block; position: fixed; inset: 0; z-index: 299; background: rgba(29, 29, 31, 0.24); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
  .js .k-pop-dim.is-on { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .k-link i, .k-cam, .k-mark > i, .k-mark > b, .k-pop, .k-pop-dim, .k-row, .k-row > summary::after, .k-steps > li > *, .k-foot-col a { transition-duration: 0.01s !important; }
}

/* Where colors are forced, a fill no longer shows what is chosen, so the chosen chip gets a system-color edge. */
@media (forced-colors: active) {
  .k-chips > :is([aria-selected="true"], [aria-pressed="true"], [aria-current], [aria-expanded="true"], :has(> input:checked)) { outline: 2px solid CanvasText; outline-offset: -2px; }
  .k-chip, .k-meter > i, .k-track > li::before, .k-mark > i { forced-color-adjust: none; }
}

@media print {
  .nv, .nv-sheet, .skip-link, .k-foot, .k-pop-dim, [data-print], [data-copy] { display: none !important; }
  .k-section.is-ink { background: none; color: #000; -webkit-mask-image: none; mask-image: none; }
  .js .k-pop { position: static; opacity: 1; visibility: visible; scale: 1; translate: none; }
  .k-doc { rotate: none; }
}
