/* Company Knowledge Panels: site styles. No framework, no web fonts. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #ffffff;
  --bg-subtle: #f6f6f8;
  --surface: #ffffff;
  --border: #e3e3ea;
  --border-strong: #c8c8d4;
  --text: #17171c;
  --text-muted: #555566;
  --text-faint: #6b6b7e;
  --accent: #4338ca;
  --accent-strong: #3730a3;
  --accent-soft: #eef0fd;
  --accent-line: #c7cbf6;
  --on-accent: #ffffff;
  --link: #3730a3;
  --link-hover: #1e1b6b;
  --tip: #2f7a55;
  --tip-soft: #edf7f1;
  --warn: #8a4b00;
  --warn-line: #d79a3c;
  --warn-soft: #fdf5e6;
  --mark: #fff3c4;
  --shadow: 0 1px 2px rgb(20 20 40 / 0.05), 0 6px 24px rgb(20 20 40 / 0.06);

  --measure: 60ch;
  --container: 68rem;
  --gutter: 1rem;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;

  --step--2: 0.8125rem;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.25rem + 0.6vw, 1.625rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.3vw, 2.375rem);
  --step-4: clamp(2rem, 1.55rem + 2vw, 2.875rem);
}

/* Larger body text on wide screens keeps lines near 80 characters at the 60ch measure. */
@media (min-width: 64rem) {
  :root { --step-0: 1.125rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1014;
    --bg-subtle: #16171d;
    --surface: #1a1b22;
    --border: #2b2d37;
    --border-strong: #3d404d;
    --text: #e8e8ef;
    --text-muted: #a8a9ba;
    --text-faint: #8d8ea1;
    --accent: #a5b4fc;
    --accent-strong: #c7d0fe;
    --accent-soft: #1b1d33;
    --accent-line: #3b3f75;
    --on-accent: #12132a;
    --link: #b4c0fd;
    --link-hover: #dfe4ff;
    --tip: #7fd3a6;
    --tip-soft: #13221b;
    --warn: #f2c27a;
    --warn-line: #a8742a;
    --warn-soft: #251c0f;
    --mark: #4a3f12;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 24px rgb(0 0 0 / 0.3);
  }
}

@media (min-width: 48rem) { :root { --gutter: 1.5rem; } }
@media (min-width: 64rem) { :root { --gutter: 2rem; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0) / 1.65 var(--font-sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
main { flex: 1 0 auto; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; color: var(--text); }
h1 { font-size: var(--step-4); font-weight: 720; letter-spacing: -0.022em; margin: 0 0 0.5rem; }
h2 { font-size: var(--step-2); font-weight: 680; letter-spacing: -0.012em; margin: 2.75rem 0 0.85rem; }
h3 { font-size: var(--step-1); font-weight: 650; margin: 2rem 0 0.6rem; }
h4 { font-size: var(--step-0); font-weight: 650; margin: 1.5rem 0 0.5rem; }
h2, h3, h4, dt, [id] { scroll-margin-top: 1.5rem; }
p, ul, ol, dl, blockquote, pre, table { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.35em; }
li::marker { color: var(--text-faint); }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
code, kbd { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 4px; padding: 0.08em 0.35em; }
pre { font-family: var(--font-mono); font-size: var(--step--1); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.1rem; border-left: 3px solid var(--accent-line); color: var(--text-muted); }
mark { background: var(--mark); color: inherit; padding: 0 0.2em; border-radius: 3px; }
abbr[title] { text-decoration: underline dotted; }
.muted { color: var(--text-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: 0.75rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: var(--radius-s);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ------------------------------------------------------------------ header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 680; letter-spacing: -0.01em; font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.0625rem); }
.wordmark:hover { color: var(--text); text-decoration: none; }
.wordmark__mark { flex: none; width: 28px; height: 28px; color: var(--accent); }
@media (prefers-color-scheme: dark) { .wordmark__mark { color: #6d72e8; } }
.site-nav { display: none; }
.site-nav__list, .nav-toggle__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list { display: flex; gap: 0.25rem; }
.site-nav__list li + li, .nav-toggle__list li + li { margin: 0; }
.site-nav a { display: block; padding: 0.45rem 0.75rem; border-radius: var(--radius-s); color: var(--text-muted); text-decoration: none; font-size: var(--step--1); font-weight: 520; }
.site-nav a:hover { color: var(--text); background: var(--bg-subtle); }
.site-nav a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.nav-toggle { position: relative; }
.nav-toggle__button {
  list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  padding: 0.45rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-s);
  font-size: var(--step--1); font-weight: 560; color: var(--text); user-select: none;
}
.nav-toggle__button::-webkit-details-marker { display: none; }
.nav-toggle[open] .nav-toggle__button { background: var(--bg-subtle); }
.nav-toggle__panel {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 15rem; padding: 0.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav-toggle__list a { display: block; padding: 0.65rem 0.8rem; border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-weight: 520; }
.nav-toggle__list a:hover { background: var(--bg-subtle); }
.nav-toggle__list a[aria-current] { color: var(--link); background: var(--accent-soft); }
@media (min-width: 48rem) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
}

/* ------------------------------------------------------------------ layout */
.layout { padding-block: 1.75rem 4rem; }
@media (min-width: 64rem) {
  .layout--toc { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(12rem, 15.5rem); justify-content: space-between; column-gap: 3rem; align-items: start; }
}
.article { min-width: 0; max-width: var(--measure); }
.article--wide { max-width: none; }
.article--wide .page-header { max-width: var(--measure); }

.breadcrumbs { font-size: var(--step--2); color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-faint); }

.page-header { margin-bottom: 1.75rem; }
.eyebrow { margin: 0 0 0.6rem; font-size: var(--step--2); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.dek { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--text-muted); margin: 0.5rem 0 1rem; max-width: 62ch; }
.byline { font-size: var(--step--2); color: var(--text-faint); margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--border); }
.byline a { color: var(--text-muted); }
.disclosure { font-size: var(--step--2); color: var(--text-faint); margin: 0.35rem 0 0; max-width: 72ch; }
.disclosure a { color: var(--text-muted); }

.prose > :first-child { margin-top: 0; }
.prose--wide > :is(p, ul, ol, dl, blockquote, h2, h3, h4, .callout) { max-width: var(--measure); }

/* ------------------------------------------------------------------ table of contents */
.toc-inline { margin: 0 0 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); }
.toc-inline summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 620; font-size: var(--step--1); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg) translateY(-25%); transition: transform 0.15s; }
.toc-inline[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.toc-inline ol { margin: 0; padding: 0 1rem 1rem 2.2rem; font-size: var(--step--1); }
.toc-inline a { color: var(--text); text-decoration: none; }
.toc-inline a:hover { color: var(--link); text-decoration: underline; }
.toc-side { display: none; }
@media (min-width: 64rem) {
  .toc-inline { display: none; }
  .toc-side { display: block; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; padding-top: 0.25rem; }
}
.toc-side__title { margin: 0 0 0.6rem; font-size: var(--step--2); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); font-size: var(--step--1); line-height: 1.4; }
.toc-side li { margin: 0; }
.toc-side a { display: block; padding: 0.38rem 0 0.38rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; }
.toc-side a:hover { color: var(--text); }
.toc-side a[aria-current] { color: var(--link); border-left-color: var(--accent); font-weight: 560; }

/* ------------------------------------------------------------------ components */
/* Key takeaways */
.takeaways { margin: 0 0 2rem; padding: 1.1rem 1.25rem 0.6rem; border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius); }
.takeaways__title { margin: 0 0 0.6rem; font-size: var(--step--1); font-weight: 680; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.takeaways ul { list-style: none; padding: 0; }
.takeaways li { position: relative; padding-left: 1.6rem; }
.takeaways li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Snapshot facts on example pages */
.snapshot { margin: 0 0 2rem; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.snapshot dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.snapshot dl > div { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); margin: 0 -1px -1px 0; }
.snapshot dt { font-size: var(--step--2); color: var(--text-faint); font-weight: 560; }
.snapshot dd { margin: 0.1rem 0 0; font-size: var(--step--1); font-weight: 560; }

/* Callouts: <div class="callout callout--note|tip|warning" role="note"> */
.callout { margin: 1.75rem 0; padding: 0.95rem 1.15rem 0.2rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-s); }
.callout > :last-child { margin-bottom: 0.8rem; }
.callout__title { margin: 0 0 0.3rem; font-size: var(--step--2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.callout--tip { border-left-color: var(--tip); background: var(--tip-soft); }
.callout--tip .callout__title { color: var(--tip); }
.callout--warning { border-left-color: var(--warn-line); background: var(--warn-soft); }
.callout--warning .callout__title { color: var(--warn); }

/* Tables (build wraps every table in .table-wrap) */
.table-wrap { margin: 1.75rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.5; margin: 0; }
caption { caption-side: bottom; text-align: left; padding: 0.6rem 0.9rem; font-size: var(--step--2); color: var(--text-faint); border-top: 1px solid var(--border); }
th, td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-subtle); font-weight: 650; }
@media (max-width: 30rem) { th, td { padding: 0.55rem 0.65rem; } table { font-size: var(--step--2); } }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
td:not(:last-child), th:not(:last-child) { border-right: 1px solid var(--border); }

/* Figures */
figure { margin: 2rem 0; }
figure img { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); width: 100%; }
figure.figure--bare img { border: 0; background: none; }
/* Tall diagrams: cap the width on large screens so they don't dominate the column. */
.figure--narrow picture, .figure--narrow > img { display: block; max-width: 34rem; }
.figure--narrow figcaption { max-width: 34rem; }
figcaption { margin-top: 0.65rem; font-size: var(--step--1); color: var(--text-muted); line-height: 1.5; }
figcaption > p { margin: 0 0 0.4rem; }
.credit { display: block; margin-top: 0.35rem; font-size: var(--step--2); color: var(--text-faint); }
.credit a { color: inherit; }

/* Annotated screenshot: figure.annotated > .annotated__media (img + span.pin[data-x][data-y]) + figcaption > ol.annotated__legend */
.annotated { display: grid; gap: 1rem 1.75rem; align-items: start; }
@media (min-width: 40rem) {
  .annotated:not(.annotated--stacked) { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.annotated__media { position: relative; margin: 0; }
.annotated__media img { width: 100%; }
.pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: #4338ca; color: #fff; font: 700 0.78rem/1 var(--font-sans); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgb(0 0 0 / 0.35); pointer-events: none;
}
.annotated figcaption { margin-top: 0; }
.annotated__legend { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.annotated__legend li { position: relative; padding-left: 2.2rem; margin: 0 0 0.7rem; color: var(--text); font-size: var(--step--1); line-height: 1.5; }
.annotated__legend li::before {
  content: counter(list-item); position: absolute; left: 0; top: 0.05rem;
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: #4338ca; color: #fff; font: 700 0.75rem/1 var(--font-sans); font-variant-numeric: tabular-nums;
}
.annotated__legend strong { font-weight: 650; }
.annotated .credit { margin-top: 0.25rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.card:focus-within { border-color: var(--accent); }
.card__media { aspect-ratio: 4 / 3; background: var(--bg-subtle); border-bottom: 1px solid var(--border); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border: 0; border-radius: 0; }
.card__media--empty { display: grid; place-items: center; color: var(--accent); font-size: 2.5rem; font-weight: 700; }
.card__body { padding: 1rem 1.1rem 1.15rem; }
.card__eyebrow { margin: 0 0 0.3rem; font-size: var(--step--2); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.card__title { margin: 0 0 0.4rem; font-size: var(--step-1); line-height: 1.3; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title a:hover { color: var(--link); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.card__desc { margin: 0; font-size: var(--step--1); color: var(--text-muted); line-height: 1.5; }
.card-grid--text .card__body { padding-top: 1.15rem; }

/* Glossary: <dl class="glossary"><div><dt>Term</dt><dd>Definition</dd></div></dl> */
.glossary { margin: 1.5rem 0 2rem; }
.glossary > div { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.glossary > div:first-child { border-top: 1px solid var(--border); }
.glossary dt { font-weight: 680; font-size: var(--step-0); }
.glossary dd { margin: 0.3rem 0 0; color: var(--text-muted); }
.glossary dt:target, .glossary div:target { background: var(--accent-soft); }

/* FAQ */
.faq { margin-top: 3rem; }
.faq__list { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { cursor: pointer; list-style: none; position: relative; padding: 1rem 2.25rem 1rem 0; font-weight: 620; line-height: 1.45; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.35rem; font-weight: 400; line-height: 1; color: var(--text-faint); }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__q:hover { color: var(--link); }
.faq__a { padding: 0 0 0.6rem; color: var(--text-muted); }

/* Sources and citations */
.sources { margin-top: 3rem; }
.sources__list { font-size: var(--step--1); padding-left: 1.6em; }
.sources__list li { padding: 0.15rem 0.3rem; border-radius: 4px; }
.sources__list li:target { background: var(--accent-soft); }
.sources__host, .sources__note { color: var(--text-faint); font-size: var(--step--2); }
.sources__host::before { content: "· "; }
sup.ref { font-size: 0.68em; line-height: 0; margin-left: 0.1em; }
sup.ref a { text-decoration: none; font-weight: 600; padding: 0 0.1em; }
sup.ref::before { content: "["; color: var(--text-faint); }
sup.ref::after { content: "]"; color: var(--text-faint); }

/* Related reading */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.related h2 { margin-top: 0; font-size: var(--step-1); }
.related__list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 40rem) { .related__list { grid-template-columns: 1fr 1fr; } }
.related__list li { margin: 0; }
.related__link { display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.related__link:hover { border-color: var(--accent-line); color: var(--text); background: var(--bg-subtle); }
.related__eyebrow { font-size: var(--step--2); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.related__title { font-weight: 650; color: var(--link); }
.related__desc { font-size: var(--step--1); color: var(--text-muted); line-height: 1.45; }

/* TODO markers (should not ship) */
mark.todo { background: var(--warn-soft); color: var(--warn); outline: 1px dashed var(--warn-line); }

/* ------------------------------------------------------------------ home */
.hero { border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-subtle), var(--bg)); }
.hero__inner { padding-block: 3rem 3.25rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero--media .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding-block: 4rem; } }
.hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 16ch; }
.hero__lede { font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.3125rem); color: var(--text-muted); line-height: 1.55; max-width: 52ch; margin: 1rem 0 0; }
.hero__media { margin: 0; }
.hero__media img { border-radius: var(--radius-l); aspect-ratio: 4 / 3; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
@media (min-width: 56rem) { .hero__media img { aspect-ratio: 5 / 6; } }
.home { padding-block: 1rem 4rem; }
.hero__byline { margin-top: 1.5rem; max-width: 52ch; }
.article--home { padding-top: 2.25rem; }
.section { margin-top: 3.5rem; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; max-width: none !important; }
.section__head h2 { margin: 0 0 0.25rem; }
.section__intro { color: var(--text-muted); }
.more-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more-link::after { content: " →"; }
.split { display: grid; gap: 1.5rem 3rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split > * { max-width: none; } }
.split figure { margin: 0; }
.notice { max-width: var(--measure); padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-subtle); color: var(--text-muted); font-size: var(--step--1); }
.notice p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); padding-block: 2.75rem 2rem; font-size: var(--step--1); color: var(--text-muted); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .site-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); } }
.site-footer__tagline { margin: 0.75rem 0 0; max-width: 36ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.5rem; }
.site-footer__heading { margin: 0 0 0.6rem; font-size: var(--step--2); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer__legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: var(--step--2); color: var(--text-faint); }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: var(--text-faint); text-decoration: underline; }

/* ------------------------------------------------------------------ print */
@media print {
  :root { --text: #000; --text-muted: #222; --text-faint: #444; --bg: #fff; --bg-subtle: #fff; --border: #bbb; --link: #000; }
  body { font-size: 11pt; line-height: 1.45; background: #fff; color: #000; }
  .site-header nav, .nav-toggle, .skip-link, .toc-inline, .toc-side, .related, .site-footer__nav, .breadcrumbs { display: none !important; }
  .site-header { border: 0; }
  .layout, .layout--toc { display: block; padding: 0; }
  .article { max-width: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  figure, table, .callout, .takeaways, .faq__item, .snapshot { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  details::details-content { content-visibility: visible; display: block; }
  .faq__q::after { content: none; }
  .hero { background: none; }
  .site-footer { background: none; }
}
