/* The library and the legal pages. Loaded after chrome.css, which holds the bar and the footer.
   Light only, like the rest of the site. */
:root {
  --ground: #F5F6F3; --surface: #FFFFFF; --sunk: #ECEEEA;
  --ink: #16202B; --ink-2: #4A5563; --ink-3: #7D8794; --rule: #D9DEDF; --edge: #C3C7DA;
  --accent: #2447C9; --accent-ink: #FFFFFF; --accent-soft: #E4E9FA;
  --system: #0C857A; --person: #D6246E; --agent: #7B3FC4; --handoff: #CC6A14;
  --ok: #1D7C3A; --ok-soft: #E3F2E7; --warn: #9A5B00; --warn-soft: #FBEFD9;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cond: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
h1, h2, h3 { font-family: var(--font-cond); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { font: 600 12px/1.3 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.lede { color: var(--ink-2); font-size: 20px; max-width: 58ch; }
.pill { display: inline-flex; align-items: center; font: 500 16px/1 var(--font-sans); padding: 14px 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.pill:hover { filter: brightness(1.1); }
.pill.small { padding: 9px 16px; font-size: 14px; }
.chip { display: inline-block; font: 600 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; background: var(--accent-soft); color: var(--accent); }
.chip.round { border-radius: 999px; padding: 6px 10px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; flex: none; }

/* The library: a catalogue, not a blog (19 Oct 2026). The index down the left, what it is, what
   it is about and the series, each with a count; everything listed A to Z on the right; a search
   over every word above both. Below 860px the index wraps as chips above the list. */
.kb { padding-block: clamp(28px, 5vw, 56px) 0; }
.kb-head { max-width: 860px; }
.kb-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; margin-top: 14px; }
.kb-head .lede { margin-top: 14px; font-size: 18px; }
.kb-search { margin-top: 24px; }
.kb-search input, .kb-mini input { width: 100%; font: 17px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; }
.kb-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: clamp(24px, 4vw, 40px); align-items: start; }
.kb-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; display: grid; gap: 22px; padding-right: 6px; }
.kb-index > summary { display: none; }
.kb-index > div { display: grid; gap: 22px; }
.kb-group ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 1px; }
.kb-group a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 10px; border-radius: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.kb-group a b { font: 500 12px/1.9 var(--font-mono); color: var(--ink-3); }
.kb-group a:hover { background: var(--sunk); color: var(--ink); }
.kb-group a[aria-current] { background: var(--accent); color: var(--accent-ink); }
.kb-group a[aria-current] b { color: inherit; }
.kb-group a.empty { opacity: .45; }
.kb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); scroll-margin-top: 80px; }
.kb-count { font: 13px var(--font-mono); color: var(--ink-3); }
.kb-on { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-on button { display: inline-flex; gap: 8px; align-items: center; font: 14px var(--font-sans); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); cursor: pointer; }
.kb-series { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.kb-series a { color: var(--accent); }
.kb-list { display: grid; }
.kb-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.kb-row:hover .kb-t { color: var(--accent); }
.kb-row.here .kb-t { color: var(--accent); }
.kb-type { justify-self: start; align-self: start; font: 600 11px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); margin-top: 4px; white-space: nowrap; }
.t-folder { background: var(--ink); color: var(--ground); }
.kb-dir .kb-t { font-size: 22px; }
.t-video, .t-podcast { background: var(--accent-soft); color: var(--accent); }
.t-note { background: var(--warn-soft); color: var(--warn); }
.kb-main { display: grid; gap: 4px; min-width: 0; }
.kb-t { font: 600 20px/1.25 var(--font-cond); }
.kb-s { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.kb-f { font: 12px var(--font-mono); color: var(--ink-3); }
.kb-hit { font-size: 14px; line-height: 1.5; color: var(--ink-2); background: var(--surface); border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 0 8px 8px 0; }
.kb-hit b { font-weight: 600; color: var(--ink); }
mark { background: color-mix(in srgb, var(--accent) 26%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 860px) {
  .kb-body { grid-template-columns: minmax(0, 1fr); }
  .kb-side { position: static; max-height: none; overflow: visible; gap: 14px; padding: 0; }
  .kb-index > summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font: 600 13px/1 var(--font-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
  .kb-index > summary::-webkit-details-marker { display: none; }
  .kb-index > summary::after { content: "+"; font-size: 16px; }
  .kb-index[open] > summary::after { content: "2"; }
  .kb-index > div { gap: 14px; margin-top: 14px; }
  .kb-group ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .kb-group a { border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: 14px; background: var(--surface); }
  .kb-row { grid-template-columns: minmax(0, 1fr); }
}
/* The folders, as deep as they go: the way to the open folder unfolded, a line down each level. */
.kb-tree ul { list-style: none; margin: 2px 0 2px 14px; padding: 0 0 0 8px; border-left: 1px solid var(--rule); display: grid; gap: 1px; }
.kb-tree > ul { margin-top: 2px; }
.kb-node { display: flex; align-items: baseline; gap: 8px; padding: 5px 10px; border-radius: 8px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.kb-node span { flex: 1; }
.kb-node b { font: 500 12px/1.9 var(--font-mono); color: var(--ink-3); }
.kb-node::before { content: ""; flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(-45deg) translateY(-2px); opacity: 0; }
.kb-node.has::before { opacity: 1; }
.kb-node.open::before { transform: rotate(45deg) translate(-2px, -1px); }
.kb-node.root { font-weight: 600; color: var(--ink); }
.kb-node.root::before { display: none; }
.kb-node:hover { background: var(--sunk); color: var(--ink); }
.kb-node.on { background: var(--accent); color: var(--accent-ink); }
.kb-node.on b, .kb-node.on::before { color: inherit; border-color: currentColor; }
.kb-head .crumb { margin-bottom: 4px; }
.crumb i { font-style: normal; color: var(--ink-3); margin: 0 2px; }
.kb-head .source { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .kb-tree ul { display: grid; } .kb-tree .kb-node { border: 0; background: none; border-radius: 8px; padding: 5px 10px; } .kb-tree .kb-node.on { background: var(--accent); } }
/* Above every item and series page: where it sits, and a search that opens the catalogue. */
.crumbbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.kb-mini { flex: 0 1 280px; }
.kb-mini input { padding: 8px 12px; font-size: 15px; border-color: var(--rule); border-radius: 10px; }
.filed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; font-size: 14px; }
.filed .kb-type { margin-top: 0; }
.filed a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.filed a:hover { color: var(--accent); border-color: var(--accent); }
.filed-m { font: 13px var(--font-mono); color: var(--ink-3); }
.source { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.source a { color: var(--accent); overflow-wrap: anywhere; }

/* Case studies: company tiles, the hub and company pages (18 Oct 2026). */
.co-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.co-tile { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); }
.co-tile:hover { border-color: var(--accent); }
.co-n { font: 600 11px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); }
.co-name { font: 600 22px/1.2 var(--font-cond); }
.co-blurb { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.co-go { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.co-latest { font: 600 12px/1 var(--font-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 10px; }
.co-all { margin-top: 12px; }
.co-all a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cs-page { max-width: 1100px; padding-top: 40px; padding-bottom: 60px; }
.cs-page h1 { font: 700 44px/1.08 var(--font-cond); margin: 10px 0 12px; }
.cs-page > .lede { font-size: 19px; color: var(--ink-2); max-width: 760px; margin-bottom: 28px; }
.cs-page > .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.co-section { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.co-section .shelf-h h2 a { color: var(--ink); text-decoration: none; }
.co-section .shelf-h h2 a:hover { color: var(--accent); }
@media (max-width: 760px) { .co-section { grid-template-columns: minmax(0, 1fr); } .cs-page h1 { font-size: 34px; } }

/* An article */
.article { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(28px, 5vw, 56px) 0; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.crumb a { text-decoration: none; display: inline-flex; align-items: center; }
.crumb a:hover { color: var(--ink); }
.article h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; margin-top: 18px; }
.article .lede { margin-top: 16px; }
.meta { font: 13px var(--font-mono); color: var(--ink-3); margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.toc { position: sticky; top: 84px; align-self: start; display: grid; gap: 10px; padding-top: 8px; font-size: 15px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.prose { font-size: 18px; line-height: 1.7; padding-top: 28px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; line-height: 1.15; margin-top: 1.8em; scroll-margin-top: 84px; }
.prose h3 { font-size: 22px; line-height: 1.25; margin-top: 1.5em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); font-weight: 600; }
.prose strong { font-weight: 600; }
.prose code { font: .88em var(--font-mono); background: var(--sunk); padding: 2px 6px; border-radius: 4px; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--accent); font-size: 21px; line-height: 1.5; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 600 13px var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
figure { margin: 1.8em 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); box-shadow: 0 14px 40px rgba(22, 32, 43, .08); }
figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; margin-block: 1.8em; border-radius: 12px; overflow: hidden; background: var(--ink); border: 1px solid var(--rule); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .poster { color: #fff; font: 600 22px var(--font-cond); padding: 0 24px 96px; text-align: center; }
.video .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.video .poster + .play { position: absolute; }
.video .play::after { content: ""; position: absolute; left: 30px; top: 23px; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.video button:focus-visible .play { outline: 3px solid #fff; outline-offset: 3px; }
.listen { position: relative; height: 152px; margin-block: 1.8em; border-radius: 12px; overflow: hidden; background: var(--ink); border: 1px solid var(--rule); }
.listen button { all: unset; cursor: pointer; position: absolute; inset: 0; display: flex; align-items: center; gap: 20px; padding: 0 24px; }
.listen .poster { color: #fff; font: 600 20px var(--font-cond); order: 2; }
.listen .play { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); }
.listen .play::after { content: ""; position: absolute; left: 25px; top: 19px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.listen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio audio { width: 100%; }
.audio figcaption { margin: 0 0 8px; }
.filecard { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); text-decoration: none; }
.filecard:hover { border-color: var(--accent); }
.filecard-k { font: 600 11px/1 var(--font-cond); letter-spacing: .1em; padding: 6px 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); }
.filecard-go { margin-left: auto; color: var(--accent); font-weight: 600; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.callout { border-radius: 12px; padding: 16px 20px; background: var(--accent-soft); font-size: 17px; }
.callout > * + * { margin-top: .5em; }
.callout-h { font: 600 12px/1.3 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.callout.tip { background: var(--ok-soft); } .callout.tip .callout-h { color: var(--ok); }
.callout.warning { background: var(--warn-soft); } .callout.warning .callout-h { color: var(--warn); }

.related { margin-top: 56px; padding-top: 22px; border-top: 2px solid var(--ink); }
.cta { margin-top: 48px; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cta h2 { font-size: 28px; }
.cta p { color: var(--ink-2); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
