/* ==========================================================================
   site.css — the only stylesheet. Every page of the site uses it.
   Tokens first (colour, type, spacing); then base, site chrome, article
   pages, the other page types, and print.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour — light theme */
  --paper: #F2F5F8;        /* page background */
  --surface: #FFFFFF;      /* panels, tables, figures */
  --ink: #13212E;          /* main text */
  --muted: #556575;        /* secondary text */
  --rule: #D6DEE6;         /* hairlines, borders */
  --accent: #0670A8;       /* links, active states, highlights */
  --accent-soft: #E3F2FA;  /* tinted panels (TL;DR) */
  --mark: #946517;         /* takeaways, status */
  --mark-soft: #F6EEDD;    /* key takeaways panel */

  /* Type */
  --font-body: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: 0.8125rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.2rem, 5vw, 3.3rem);

  /* Layout */
  --gutter: 16px;
  --site-max: 1180px;
  --measure: 46rem;        /* reading column */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1820; --surface: #15222D; --ink: #E4EBF1; --muted: #9FB0BF; --rule: #24384A;
    --accent: #3BB4E8; --accent-soft: #10283A; --mark: #D9A752; --mark-soft: #2A2416;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1820; --surface: #15222D; --ink: #E4EBF1; --muted: #9FB0BF; --rule: #24384A;
  --accent: #3BB4E8; --accent-soft: #10283A; --mark: #D9A752; --mark-soft: #2A2416;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }

.container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--paper);
  padding: 8px 12px; font-family: var(--font-ui); z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Small reusable labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- Site header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
}
.brand {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-ui);
}
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-role { font-size: var(--step--1); color: var(--muted); }
.site-nav { display: flex; gap: 4px; font-family: var(--font-ui); font-size: 0.92rem; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  padding: 6px 10px; border-radius: 4px;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 72px;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  color: var(--muted);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 24px 40px;
}
.site-footer a { color: var(--muted); }

/* ---------- Simple pages (home, about, article list) ---------- */
.page {
  max-width: var(--measure);
  padding-block: 56px 24px;
}
.page h1 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.page h2 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.2;
  margin: 48px 0 16px;
  text-wrap: balance;
}
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--muted); margin-bottom: 28px; text-wrap: balance; }

.placeholder {
  font-family: var(--font-ui); font-size: var(--step--1);
  border: 1px dashed var(--rule); border-radius: 6px;
  padding: 12px 16px; color: var(--muted); background: var(--surface);
}

.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--ink);
}
a.card:hover { border-color: var(--accent); }
.card .meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.card .title { font-family: var(--font-ui); font-weight: 600; font-size: var(--step-1); line-height: 1.3; margin: 0 0 6px; color: var(--ink); }
.card .summary { margin: 0; color: var(--muted); font-size: 1rem; }
.card.is-upcoming { opacity: 0.7; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  background: var(--accent); color: var(--paper);
  padding: 10px 18px; border-radius: 4px; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* ==========================================================================
   Article pages — contents rail on the left, reading column on the right.
   Below 960px the rail becomes a collapsible bar at the top of the article.
   ========================================================================== */

/* ---------- Reading progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 50;
}

/* ---------- Shell ---------- */
.article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  padding-block: 48px 24px;
}

/* ---------- Contents rail ---------- */
.toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 24px);
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  padding-right: 8px;
}
.toc-toggle { display: none; }
.toc-article {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  margin: 0 0 4px;
}
.toc-article:hover { color: var(--accent); }
.toc-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc .toc-part {
  margin: 20px 0 6px;
  font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.toc-link {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px;
  padding: 6px 8px 6px 10px;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.toc-link .n { font-family: var(--font-mono); font-size: 0.7rem; padding-top: 1px; }
.toc-link:hover { color: var(--ink); border-left-color: var(--muted); }
.toc-link[aria-current="page"] {
  color: var(--accent); border-left-color: var(--accent); font-weight: 600;
}
.toc-sub { padding: 2px 0 8px 36px !important; border-left: 2px solid var(--accent); }
.toc-sub a {
  display: block; padding: 3px 0; color: var(--muted); text-decoration: none; line-height: 1.35;
}
.toc-sub a:hover { color: var(--ink); }
.toc-sub a.is-active { color: var(--ink); font-weight: 600; }

/* ---------- Article column ---------- */
.article { min-width: 0; max-width: var(--measure); }

.article-header { margin-bottom: 8px; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }

.page-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.page-title .num {
  display: block;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px;
}
.dek { font-size: var(--step-1); line-height: 1.45; color: var(--muted); margin: 0 0 28px; max-width: 38rem; text-wrap: balance; }
.byline {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted);
  padding-block: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.byline strong { color: var(--ink); font-weight: 600; }
.status { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mark); }

/* Part introduction, shown on the first page of each part */
.part-intro {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 8px 0 36px;
}
.part-intro .part-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.part-intro .part-title { font-family: var(--font-ui); font-weight: 700; font-size: var(--step-1); margin: 0 0 8px; }
.part-intro p:last-child { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* Running text */
.article h2 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
  margin: 40px 0 12px;
  text-wrap: balance;
  scroll-margin-top: 24px;
}
.intro { font-size: 1.2rem; line-height: 1.55; }
.article ul.prose, .article ol.prose { margin: 0 0 1.2em; padding-left: 1.3em; }
.article .prose li { margin-bottom: 0.45em; }
.thesis {
  font-size: 1.45rem; line-height: 1.4; font-style: italic;
  margin: 32px 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  text-wrap: balance;
}

/* ---------- Boxes: TL;DR, section takeaways, key takeaways ---------- */
.box-label {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-weight: 500;
}
.tldr { background: var(--accent-soft); border-radius: 6px; padding: 28px 32px; margin-bottom: 40px; }
.tldr ul { margin: 0; padding-left: 1.2em; }
.tldr li { margin-bottom: 0.5em; }
.tldr li:last-child { margin-bottom: 0; }

.takeaways { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 20px; }
.takeaways .box-label { color: var(--mark); }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.takeaways li {
  display: grid; grid-template-columns: 18px 1fr; gap: 8px;
  font-family: var(--font-ui); font-size: 0.98rem; line-height: 1.5;
}
.takeaways li::before { content: "→"; color: var(--mark); font-weight: 600; }

.final { background: var(--mark-soft); border-radius: 6px; padding: 32px; margin-top: 40px; }
.final .box-label { color: var(--mark); }
.final ol { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; }
.final li { padding-left: 4px; }
.final li strong { font-family: var(--font-ui); }

/* Checklist */
.check { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.check li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-family: var(--font-ui); font-size: 0.98rem; line-height: 1.5; }
.check li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border: 1.5px solid var(--accent); border-radius: 3px; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto; margin: 24px 0 28px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface);
  scroll-margin-top: 24px;
}
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.45; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.table-wrap th { font-weight: 600; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; white-space: nowrap; }
.table-wrap td.ka { color: var(--accent); }
.caption { font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted); margin: -16px 0 28px; }

/* ---------- Figures (inline SVG diagrams) ---------- */
figure { margin: 28px 0 32px; scroll-margin-top: 24px; }
.fig-frame { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; overflow-x: auto; }
.fig-frame svg { display: block; width: 100%; min-width: 520px; height: auto; }
figcaption { font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted); margin-top: 10px; }

/* Diagram vocabulary: reuse these classes in every article */
.svg-frame { fill: none; stroke: var(--rule); stroke-width: 1.25; }
.svg-frame-mid { fill: none; stroke: var(--muted); stroke-width: 1; stroke-opacity: 0.5; }
.svg-box { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.25; }
.svg-daily { fill: var(--surface); stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 4 3; }
.svg-node { fill: var(--surface); stroke: var(--muted); stroke-width: 1.25; }
.svg-node-hot { fill: var(--mark-soft); stroke: var(--mark); stroke-width: 1.5; }
.svg-water { fill: var(--accent-soft); }
.svg-ice { fill: var(--surface); stroke: var(--accent); stroke-width: 1.25; }
.svg-tip { fill: var(--mark-soft); stroke: var(--mark); stroke-width: 1.5; }
.svg-waterline { stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 6 4; fill: none; }
.svg-axis { stroke: var(--muted); stroke-width: 1.25; fill: none; }
.svg-grid { stroke: var(--rule); stroke-width: 1; fill: none; }
.svg-curve-a { stroke: var(--accent); stroke-width: 2.25; fill: none; }
.svg-curve-b { stroke: var(--mark); stroke-width: 2.25; fill: none; stroke-dasharray: 6 4; }
.svg-arrow { stroke: var(--muted); stroke-width: 1.25; fill: none; }
.svg-arrowhead { fill: var(--muted); }
.svg-title { font-family: var(--font-ui); font-weight: 600; font-size: 14px; fill: var(--ink); }
.svg-label { font-family: var(--font-ui); font-weight: 600; font-size: 13px; fill: var(--ink); }
.svg-label-accent { font-family: var(--font-ui); font-weight: 600; font-size: 13px; fill: var(--accent); }
.svg-label-mark { font-family: var(--font-ui); font-weight: 600; font-size: 13px; fill: var(--mark); }
.svg-sub { font-family: var(--font-ui); font-size: 11.5px; fill: var(--muted); }
.svg-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; fill: var(--accent); }

/* ---------- Article overview (landing page contents) ---------- */
.overview { margin-top: 48px; }
.overview h2 { margin-top: 0; }
.overview-part { margin: 28px 0 10px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.overview ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.overview a {
  display: grid; grid-template-columns: 36px 1fr; gap: 8px;
  padding: 10px 12px; border-radius: 4px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-ui); font-size: 0.95rem; line-height: 1.45;
}
.overview a:hover { background: var(--surface); }
.overview .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); padding-top: 2px; }
.overview .t { display: block; font-weight: 600; }
.overview .d { display: block; color: var(--muted); }

/* ---------- Previous / next ---------- */
.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.pager a {
  display: block; padding: 16px 18px;
  border: 1px solid var(--rule); border-radius: 6px; background: var(--surface);
  text-decoration: none; color: var(--ink); min-width: 0;
}
.pager a:hover { border-color: var(--accent); }
.pager .dir { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .label { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.pager .next { grid-column: 2; text-align: right; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0 24px; }
  .toc {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    max-height: none;
    overflow: visible;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .toc-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 14px var(--gutter); border: 0; background: transparent; color: var(--ink);
    font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: left;
  }
  .toc-toggle .current { font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .toc-body { display: none; padding: 4px var(--gutter) 16px; max-height: 65vh; overflow-y: auto; }
  .toc.open .toc-body { display: block; }
  .article { padding-top: 32px; }
  .tldr, .final { padding: 22px 20px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}

/* Closing link group at the end of the contents rail */
.toc .toc-end { margin-top: 20px; }

/* Inline code and code blocks (added with "Drawing the Lines") */
.article code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--accent-soft); border-radius: 3px; padding: 0.08em 0.32em;
}
.article pre {
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 16px 20px; margin: 0 0 1.4em;
  overflow-x: auto; line-height: 1.55;
}
.article pre code { background: none; padding: 0; font-size: 0.82rem; white-space: pre; }

/* ==========================================================================
   Site chrome added for the full site: Jouleco identity, language switch,
   corporate footer
   ========================================================================== */

.brand { align-items: center; }
.brand-mark { width: 28px; height: auto; flex: none; align-self: center; }
.site-nav { align-items: center; flex-wrap: wrap; }
.lang-switch {
  margin-left: 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.85rem;
}
.site-nav a.lang-switch:hover { border-color: var(--accent); background: transparent; }

.site-footer .container { align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.footer-brand img { width: 56px; height: auto; flex: none; }
.footer-lines { display: flex; flex-direction: column; gap: 4px; text-align: right; margin-left: auto; }
.footer-corp { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .footer-lines { text-align: left; margin-left: 0; }
}

/* ==========================================================================
   Page shells for the non-article pages (home, CV, expertise, legal …)
   They reuse the article vocabulary: same tokens, same type scale.
   ========================================================================== */

.page-shell { max-width: var(--site-max); margin: 0 auto; padding: 56px var(--gutter) 24px; }
.page-shell > main { max-width: var(--measure); }
.page-shell h1, .home-shell h1, .cv-shell h1 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.page-shell h2, .home-shell h2, .cv-shell h2 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.2;
  margin: 48px 0 16px;
  text-wrap: balance;
}
.page-shell h3, .cv-shell h3 { font-family: var(--font-ui); font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
.page-shell ul, .page-shell ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.page-shell li { margin-bottom: 0.45em; }

/* Generic tables outside articles */
.page-shell .table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.page-shell table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: 0.92rem; line-height: 1.45; }
.page-shell th, .page-shell td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.page-shell th { font-weight: 600; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.page-shell tr:last-child td { border-bottom: 0; }

/* Key–value lists (legal notice, contact) */
.kv { margin: 0 0 1.2em; border-top: 1px solid var(--rule); }
.kv > div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.kv dt { font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600; }
.kv dd { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 600px) { .kv > div { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Home — narrative with the series as a left rail
   -------------------------------------------------------------------------- */

.home-shell, .cv-shell {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.home-shell > main, .cv-shell > main { min-width: 0; max-width: var(--measure); }

.series-rail, .cv-rail {
  position: sticky;
  top: 24px;
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.series-rail .toc__eyebrow, .cv-rail .toc__eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.series-list, .cv-rail ol { list-style: none; margin: 0; padding: 0; }
.series-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 4px;
  padding: 6px 8px 6px 10px;
  border-left: 2px solid var(--rule);
  color: var(--muted); line-height: 1.35;
}
.series-list li a { display: contents; color: inherit; text-decoration: none; }
.series-list li.is-live { border-left-color: var(--accent); }
.series-list li.is-live .t { color: var(--accent); font-weight: 600; }
.series-list li.is-live:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.series-list .n { font-family: var(--font-mono); font-size: 0.7rem; padding-top: 1px; }
.series-rail__all { display: inline-block; margin-top: 16px; font-size: var(--step--1); }

.cv-rail a {
  display: block;
  padding: 6px 8px 6px 10px;
  border-left: 2px solid var(--rule);
  color: var(--muted); text-decoration: none; line-height: 1.35;
}
.cv-rail a:hover { color: var(--ink); border-left-color: var(--muted); }
.cv-rail a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.hero { margin-bottom: 40px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.1rem); }
.hero-kicker {
  font-size: var(--step-1); line-height: 1.45; color: var(--muted);
  border-left: 3px solid var(--accent); padding-left: 20px; margin: 0;
  text-wrap: balance;
}
.narrative p:first-of-type { font-size: 1.2rem; line-height: 1.55; }

.era {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 48px 0 0;
  scroll-margin-top: 24px;
}
.era h2 { margin-top: 0 !important; }
.era p:last-child { margin-bottom: 0; }

/* Concrete results — value + consequence */
.record { margin: 0 0 40px; border-top: 1px solid var(--rule); }
.record > div {
  display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
  gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.record dt { font-family: var(--font-ui); font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.record dd { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 640px) { .record > div { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   CV
   -------------------------------------------------------------------------- */

.cv-meta {
  font-family: var(--font-ui); font-size: 0.95rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 40px;
  padding-block: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cv-section { margin-bottom: 56px; scroll-margin-top: 24px; }
.cv-section > h2 { margin-top: 0 !important; padding-bottom: 8px; border-bottom: 2px solid var(--rule); }
.role { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.role:last-child { border-bottom: 0; }
.role__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; }
.role__head h3 { margin: 0; }
.role__dates { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.role__org { font-family: var(--font-ui); font-weight: 600; color: var(--accent); margin: 4px 0 6px; font-size: 0.98rem; }
.role__ctx { color: var(--muted); font-size: 1rem; margin: 0 0 8px; }
.role__mandate {
  font-size: 1rem; margin: 0 0 10px; padding: 10px 14px;
  background: var(--accent-soft); border-radius: 4px;
}
.role__mandate strong {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-right: 8px; font-weight: 500;
}
.role__points { margin: 0; padding-left: 1.2em; }
.role__points li { margin-bottom: 0.45em; }
.earlier { margin-top: 16px; border-top: 1px solid var(--rule); }
.earlier > summary {
  cursor: pointer; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem;
  color: var(--accent); padding: 16px 0; list-style: none;
}
.earlier > summary::-webkit-details-marker { display: none; }
.earlier > summary::before { content: "+"; margin-right: 8px; color: var(--muted); }
.earlier[open] > summary::before { content: "\2212"; }
.earlier .lbl-hide { display: none; }
.earlier[open] .lbl-show { display: none; }
.earlier[open] .lbl-hide { display: inline; }

@media (max-width: 960px) {
  .home-shell, .cv-shell { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .series-rail { position: static; order: 2; border-top: 1px solid var(--rule); padding-top: 20px; }
  .home-shell > main { order: 1; }
  .cv-rail { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
}

/* --------------------------------------------------------------------------
   Article extras: back-matter sources list, formula
   -------------------------------------------------------------------------- */

.sources { list-style: none; margin: 0 0 1.2em; padding: 0; border-top: 1px solid var(--rule); }
.sources li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }

.formula {
  font-style: italic; font-size: 1.2rem; text-align: center;
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 18px 20px; margin: 0 0 1.4em;
}
.formula-root { border-top: 1px solid currentColor; padding: 0 0.15em; }

.article blockquote, .page-shell blockquote {
  margin: 24px 0; padding: 16px 20px;
  background: var(--accent-soft); border-radius: 6px;
  font-size: 1.02rem;
}
.article blockquote p:last-child { margin-bottom: 0; }

/* Draft marker — delete with the content it flags */
.placeholder {
  font-family: var(--font-ui); font-size: var(--step--1);
  background: var(--mark-soft); color: var(--ink);
  border: 1px dashed var(--mark); border-radius: 6px;
  padding: 12px 16px; margin: 0 0 28px;
}

/* ==========================================================================
   Print — drop navigation chrome, single column
   ========================================================================== */

@media print {
  .site-header, .site-footer, .toc, .pager, .progress, .skip-link,
  .placeholder, .cv-rail, .series-rail { display: none !important; }
  .article-shell, .home-shell, .cv-shell { display: block; padding: 0; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .article, .page-shell > main { max-width: none; }
  h1, h2, h3 { break-after: avoid; }
  figure, table, .tldr, .takeaways, .final { break-inside: avoid; }
  details > summary { display: none !important; }
  details > *:not(summary) { display: block !important; }
  a { color: #000; }
}

/* A single headline figure inside an article */
.stat {
  margin: 28px 0 32px;
  padding: 24px 28px;
  background: var(--accent-soft);
  border-radius: 6px;
}
.stat-figure {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 8px;
}
.stat-arrow { font-weight: 400; color: var(--muted); }
.stat-unit { font-size: 0.45em; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.stat figcaption { font-size: 1rem; color: var(--ink); margin: 0; }
.page-shell .card-list, .page-shell .kv, .page-shell .check { padding-left: 0; }

/* The three questions in "How I stayed connected to AI" */
.questions { list-style: none; padding-left: 0 !important; margin: 0 0 1.4em; }
.questions li {
  font-style: italic; font-size: 1.12rem;
  padding: 6px 0 6px 20px; border-left: 3px solid var(--accent); margin-bottom: 10px;
}

/* Home: section headings and the two "conviction" panels */
.home-shell main > h2 { margin-top: 56px; }
.era + .era { margin-top: 20px; }
.era h3 { font-family: var(--font-ui); font-weight: 600; font-size: var(--step-1); line-height: 1.3; margin: 0 0 12px; }
.era .eyebrow { margin-bottom: 8px; }
.home-shell .card-list { padding-left: 0; }

/* Home as a teaser: one paragraph, four figures, two hooks */
.teaser-lede { font-size: 1.15rem; line-height: 1.6; margin: 0 0 32px; }

.stat-row {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.stat-row li {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 16px 16px 14px;
}
.stat-row .stat-figure { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 6px; }
.stat-row li p:last-child { margin: 0; font-family: var(--font-ui); font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.teaser-more { font-family: var(--font-ui); font-size: 0.95rem; margin: 0 0 8px; }

.teasers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.teaser {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent);
  border-radius: 6px; padding: 20px 22px; text-decoration: none; color: var(--ink);
}
.teaser:hover { border-color: var(--accent); }
.teaser .eyebrow { margin-bottom: 10px; }
.teaser-hook { font-size: 1.2rem; line-height: 1.4; font-style: italic; margin: 0 0 12px; }
.teaser-body { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.teaser-link { margin-top: auto; font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; color: var(--accent); }

.next-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teasers, .next-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Home rail: the two series */
.series-group {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  margin: 0 0 8px;
}
.series-list + .series-group { margin-top: 24px; }

/* Home: the two traits — technology and career — as short timelines */
.trait { margin: 0 0 56px; }
.trait h2 { margin-top: 0 !important; }
.trait > .eyebrow { margin-bottom: 8px; }
.timeline { list-style: none; margin: 20px 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px;
  position: relative; padding: 8px 0 8px 18px; margin: 0;
}
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline li:last-child::before { background: var(--accent); }
.timeline .when { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding-top: 4px; }
.timeline .what { font-size: 1.02rem; line-height: 1.5; }
.timeline .what strong { font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--font-ui); font-size: 0.82rem; color: var(--ink);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 12px; margin: 0;
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Home: transitions and entrepreneur, side by side */
.trait-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 56px; }
.trait-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px; }
.trait-card h2 { font-size: var(--step-1) !important; margin: 0 0 12px !important; }
.trait-card .eyebrow { margin-bottom: 8px; }
.trait-card p { font-size: 1rem; }
.trait-card ul { list-style: none; padding: 0; margin: 0; }
.trait-card li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 1rem; line-height: 1.5; }
.trait-card li::before { content: "\2192"; position: absolute; left: 0; color: var(--accent); }
.trait-card li strong { font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 760px) { .trait-pair { grid-template-columns: minmax(0, 1fr); } }

.trait-card .eyebrow { font-size: 0.75rem; }

/* ==========================================================================
   Components introduced by "GenAI Beyond the Hype"
   ========================================================================== */

/* Timeline nodes in chapter 01 */
.svg-node-winter { fill: var(--rule); stroke: var(--muted); stroke-width: 1.25; }
.svg-node-key    { fill: var(--mark); stroke: var(--mark); }
.svg-label-muted { font-family: var(--font-ui); font-weight: 600; font-size: 13px; fill: var(--muted); }
.svg-frame-dashed { fill: none; stroke: var(--rule); stroke-width: 1.25; stroke-dasharray: 4 4; }

/* Wall of quoted headlines: teal pushes toward investment, gold pushes back */
.headline-wall {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 8px 0 36px;
}
.headline-wall .hc {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 10px;
}
.headline-wall .hc.pro { border-left: 3px solid var(--accent); }
.headline-wall .hc.con { border-left: 3px solid var(--mark); }
.headline-wall .hc.mix { border-left: 3px solid var(--muted); }
.headline-wall .hc blockquote {
  margin: 0; padding: 0; background: none;
  font-family: var(--font-body); font-size: 1.05rem; line-height: 1.4; color: var(--ink);
}
.headline-wall .hc cite {
  font-family: var(--font-ui); font-size: 0.78rem; font-style: normal;
  color: var(--muted); line-height: 1.35;
}

/* Two figures side by side: what gets quoted against what does not */
.stat-contrast {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 24px 0 28px;
}
.stat-contrast > figure { margin: 0; padding: 22px 24px; border-radius: 6px; scroll-margin-top: 24px; }
.stat-contrast .quoted { background: var(--accent-soft); }
.stat-contrast .quiet  { background: var(--mark-soft); }
.stat-contrast .label-row {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.stat-contrast .stat-figure { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 10px; line-height: 1.05; }
.stat-contrast .quoted .stat-figure { color: var(--accent); }
.stat-contrast .quiet  .stat-figure { color: var(--mark); }
.stat-contrast figcaption { font-size: 0.95rem; color: var(--ink); line-height: 1.45; margin: 0; }

/* Numbered card grid: principles, variables, governance pillars */
.principles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 20px 0 28px; padding: 0; list-style: none;
}
.principles li {
  background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent);
  border-radius: 6px; padding: 18px 20px; margin: 0;
}
.principles .n {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 6px;
}
.principles .t {
  display: block; font-family: var(--font-ui); font-weight: 600; font-size: 1.02rem;
  line-height: 1.3; color: var(--ink); margin: 0 0 6px;
}
.principles .d { display: block; font-size: 0.95rem; line-height: 1.5; color: var(--muted); margin: 0; }
.principles .q {
  display: block; font-family: var(--font-ui); font-size: 0.85rem; line-height: 1.45;
  color: var(--ink); margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--rule);
}
.principles .q::before {
  content: "Test: "; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mark);
}

/* Three outcomes and three horizons: a strip of three cards */
.outcome-strip, .horizons {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin: 20px 0 28px;
}
.outcome-strip .ob, .horizons .hz {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px;
}
.outcome-strip .ob.nothing { border-top: 3px solid var(--muted); }
.outcome-strip .ob.damage  { border-top: 3px solid var(--mark); }
.outcome-strip .ob.success { border-top: 3px solid var(--accent); }
.horizons .hz { border-top: 3px solid var(--accent); }
.outcome-strip .ob .figure, .horizons .hz .figure {
  font-family: var(--font-ui); font-weight: 700; line-height: 1.05; margin: 0 0 10px;
}
.outcome-strip .ob .figure { font-size: clamp(1.8rem, 4vw, 2.3rem); line-height: 1; margin-bottom: 8px; }
.horizons .hz .figure { font-size: clamp(1.5rem, 3.4vw, 1.9rem); color: var(--accent); }
.outcome-strip .nothing .figure { color: var(--muted); }
.outcome-strip .damage  .figure { color: var(--mark); }
.outcome-strip .success .figure { color: var(--accent); }
.outcome-strip .ob .label, .horizons .hz .label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.outcome-strip .ob .note, .horizons .hz .note {
  font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.45; color: var(--ink); margin: 0;
}

/* Numbered action list, and its counterpart: things to refuse */
.discipline, .disqualify { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; gap: 10px; }
.discipline li {
  background: var(--accent-soft); border-radius: 6px; padding: 12px 18px; margin: 0;
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: baseline;
}
.discipline li .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); font-weight: 500; }
.discipline li .t { font-family: var(--font-ui); font-size: 1rem; line-height: 1.5; color: var(--ink); }
.discipline li .t strong, .disqualify li strong { font-weight: 600; }
.disqualify li {
  background: var(--mark-soft); border-radius: 6px; padding: 12px 18px; margin: 0;
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-family: var(--font-ui); font-size: 0.98rem; line-height: 1.5;
}
.disqualify li::before { content: "\00D7"; color: var(--mark); font-weight: 700; }

/* Wider tables where every cell is prose */
.table-wrap td.stage-cell { font-weight: 400; white-space: normal; }

@media (max-width: 760px) {
  .outcome-strip, .horizons { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .headline-wall, .stat-contrast, .principles { grid-template-columns: minmax(0, 1fr); }
}

/* In-page jumps land the heading at the top, below the contents bar on small
   screens. article.js sets --anchor-offset to the bar's height plus a margin. */
.article [id] { scroll-margin-top: var(--anchor-offset, 24px); }

/* Sources pages: title, publication line, what the source supports */
.sources .src-title { margin: 0 0 2px; font-weight: 600; }
.sources .src-title a { text-decoration-thickness: 1px; }
.sources .src-meta { margin: 0 0 4px; font-family: var(--font-ui); font-size: 0.85rem; color: var(--muted); }
.sources .src-note { margin: 0; font-size: 0.98rem; }

/* ==========================================================================
   Slim header, pinned on laptop and tablet widths; compact footer.
   On phones the header scrolls away, so it does not stack on top of the
   article's sticky Contents bar. --header-h is the pinned header's height,
   used by every sticky rail so nothing slides under the header.
   ========================================================================== */

:root { --header-h: 0px; }

.site-header .container { padding-block: 8px; gap: 4px 16px; min-height: 48px; }
.brand { gap: 10px; }
.brand-mark { width: 24px; }
.brand-name { font-size: 0.98rem; }
.site-nav { font-size: 0.88rem; line-height: 1.4; }
.site-nav a { padding: 4px 8px; }
.site-nav a.lang-switch { padding: 3px 8px; margin-left: 6px; }

@media (min-width: 761px) {
  :root { --header-h: 49px; }
  .site-header { position: sticky; top: 0; z-index: 40; }
}
@media (max-width: 1023px) {
  .brand-role { display: none; }
}

.toc { top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); }
.series-rail, .cv-rail { top: calc(var(--header-h) + 20px); }
.cv-section, .era, figure, .table-wrap, .article h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) {
  .toc { top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); max-height: none; }
}

/* Footer: one compact band */
.site-footer { margin-top: 48px; font-size: 0.78rem; }
.site-footer .container { padding-block: 12px; align-items: center; gap: 4px 20px; }
.footer-brand { gap: 8px; }
.footer-brand img { width: 20px; }
.footer-lines {
  flex-direction: row; flex-wrap: wrap; justify-content: flex-end;
  gap: 2px 8px; text-align: right;
}
.footer-lines span:not(:first-child)::before { content: "·"; margin-right: 8px; color: var(--muted); }
.footer-corp { font-weight: 600; }
@media (max-width: 640px) {
  .footer-lines { justify-content: flex-start; text-align: left; }
}

/* ---- Beyond the Demo: "In the real world" boxes, subtitle, figure palette ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-title .subtitle { display: block; margin-top: 6px; font-size: 0.55em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.real-world { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 20px 24px 6px; margin: 28px 0; font-size: 0.97em; }
.real-world .box-label { color: var(--accent); }
.real-world .rw-src { font-family: var(--font-ui); font-size: var(--step--1); color: var(--muted); }

:root {
  --fig-red: #A33A26; --fig-red-soft: #FBEAE6;
  --fig-green: #2A7048; --fig-green-soft: #E6F2EA;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --fig-red: #E08A76; --fig-red-soft: #2E1C18; --fig-green: #7CC59A; --fig-green-soft: #17291F; }
}
:root[data-theme="dark"] { --fig-red: #E08A76; --fig-red-soft: #2E1C18; --fig-green: #7CC59A; --fig-green-soft: #17291F; }

.fig-btd { display: block; width: 100%; height: auto; min-width: 560px; }
.fig-btd text { font-family: var(--font-ui); }
.fig-btd .f-ink { fill: var(--ink); }
.fig-btd .f-muted { fill: var(--muted); }
.fig-btd .f-surface { fill: var(--surface); }
.fig-btd .f-paper { fill: var(--paper); }
.fig-btd .f-accent { fill: var(--accent); }
.fig-btd .f-acc90 { fill: var(--accent); fill-opacity: 0.9; }
.fig-btd .f-acc70 { fill: var(--accent); fill-opacity: 0.7; }
.fig-btd .f-acc45 { fill: var(--accent); fill-opacity: 0.45; }
.fig-btd .f-acc25 { fill: var(--accent); fill-opacity: 0.25; }
.fig-btd .f-accent-soft { fill: var(--accent-soft); }
.fig-btd .f-mark { fill: var(--mark); }
.fig-btd .f-mark-soft { fill: var(--mark-soft); }
.fig-btd .f-red { fill: var(--fig-red); }
.fig-btd .f-red-soft { fill: var(--fig-red-soft); }
.fig-btd .f-green { fill: var(--fig-green); }
.fig-btd .f-green-soft { fill: var(--fig-green-soft); }
.fig-btd .s-muted { stroke: var(--muted); }
.fig-btd .s-soft { stroke: var(--muted); stroke-opacity: 0.6; }
.fig-btd .s-rule { stroke: var(--rule); }
.fig-btd .s-accent { stroke: var(--accent); }
.fig-btd .s-mark { stroke: var(--mark); }
.fig-btd .s-green { stroke: var(--fig-green); }
.fig-btd .s-red { stroke: var(--fig-red); }
.fig-btd marker path { fill: var(--muted); }

/* ---- Transformers article: its own components, scoped under .tf ---- */
.tf{
 --tf-text:var(--ink);--tf-muted:var(--muted);--tf-line:var(--muted);--tf-border:var(--rule);--tf-surface:var(--surface);
 --tf-accent:var(--mark);--tf-accent-bg:var(--mark-soft);--tf-nn-bg:var(--accent-soft);--tf-nn:var(--accent)}
.tf aside.nn{background:var(--tf-nn-bg);border-radius:12px;padding:16px 22px;margin:28px 0;font-size:16px}
.tf aside.nn h4{margin:0 0 6px;color:var(--tf-nn);font-size:15px}
.tf .formula{font-family:Georgia,serif;white-space:nowrap}
.tf p.key{font-size:21px;font-weight:600;border-left:3px solid var(--tf-accent);padding-left:16px;margin:24px 0}
.tf figure{margin:28px 0}
.tf figure svg{width:100%;height:auto;display:block}
.tf figure.pipeline{margin:8px 0 24px;max-width:560px}
.tf figcaption{font-size:14px;color:var(--tf-muted);margin-top:8px}
.tf a.ref{font-size:13px;vertical-align:super;text-decoration:none;color:var(--tf-accent);margin-left:1px}
.tf ol.refs{font-size:15px;line-height:1.5}
.tf ol.refs li{margin-bottom:8px}
.tf ol.refs a{color:var(--tf-accent);word-break:break-all}
.tf svg text{font-family:var(--font-ui)}
.tf svg .t{font-size:14px;fill:var(--tf-text)}
.tf svg .ts{font-size:12px;fill:var(--tf-muted)}
.tf svg .th{font-size:14px;font-weight:600;fill:var(--tf-text)}
.tf svg .arr{stroke:var(--tf-line);stroke-width:1.5;fill:none}
.tf svg .leader{stroke:var(--tf-line);stroke-width:.5;stroke-dasharray:3 3;fill:none}

.tf .c-gray>rect,.tf .c-gray>circle,.tf rect.c-gray,.tf circle.c-gray{fill:#F1EFE8;stroke:#5F5E5A}
.tf .c-gray>.t,.tf .c-gray>.th{fill:#444441}
.tf .c-gray>.ts{fill:#5F5E5A}
.tf .c-amber>rect,.tf .c-amber>circle,.tf rect.c-amber,.tf circle.c-amber{fill:#FAEEDA;stroke:#854F0B}
.tf .c-amber>.t,.tf .c-amber>.th{fill:#633806}
.tf .c-amber>.ts{fill:#854F0B}
.tf .c-teal>rect,.tf .c-teal>circle,.tf rect.c-teal,.tf circle.c-teal{fill:#E1F5EE;stroke:#0F6E56}
.tf .c-teal>.t,.tf .c-teal>.th{fill:#085041}
.tf .c-teal>.ts{fill:#0F6E56}
.tf .c-purple>rect,.tf .c-purple>circle,.tf rect.c-purple,.tf circle.c-purple{fill:#EEEDFE;stroke:#534AB7}
.tf .c-purple>.t,.tf .c-purple>.th{fill:#3C3489}
.tf .c-purple>.ts{fill:#534AB7}
.tf .c-coral>rect,.tf .c-coral>circle,.tf rect.c-coral,.tf circle.c-coral{fill:#FAECE7;stroke:#993C1D}
.tf .c-coral>.t,.tf .c-coral>.th{fill:#712B13}
.tf .c-coral>.ts{fill:#993C1D}
@media (prefers-color-scheme:dark){
 .tf .c-gray>rect,.tf .c-gray>circle,.tf rect.c-gray,.tf circle.c-gray{fill:#444441;stroke:#B4B2A9}
 .tf .c-gray>.t,.tf .c-gray>.th{fill:#D3D1C7}
 .tf .c-gray>.ts{fill:#B4B2A9}
 .tf .c-amber>rect,.tf .c-amber>circle,.tf rect.c-amber,.tf circle.c-amber{fill:#633806;stroke:#EF9F27}
 .tf .c-amber>.t,.tf .c-amber>.th{fill:#FAC775}
 .tf .c-amber>.ts{fill:#EF9F27}
 .tf .c-teal>rect,.tf .c-teal>circle,.tf rect.c-teal,.tf circle.c-teal{fill:#085041;stroke:#5DCAA5}
 .tf .c-teal>.t,.tf .c-teal>.th{fill:#9FE1CB}
 .tf .c-teal>.ts{fill:#5DCAA5}
 .tf .c-purple>rect,.tf .c-purple>circle,.tf rect.c-purple,.tf circle.c-purple{fill:#3C3489;stroke:#AFA9EC}
 .tf .c-purple>.t,.tf .c-purple>.th{fill:#CECBF6}
 .tf .c-purple>.ts{fill:#AFA9EC}
 .tf .c-coral>rect,.tf .c-coral>circle,.tf rect.c-coral,.tf circle.c-coral{fill:#712B13;stroke:#F0997B}
 .tf .c-coral>.t,.tf .c-coral>.th{fill:#F5C4B3}
 .tf .c-coral>.ts{fill:#F0997B}
}

.tf .demo{border:1px solid var(--tf-border);border-radius:12px;padding:16px;margin:24px 0}
.tf .demo svg{width:100%;height:auto;display:block}
.tf .demo .fade,.tf .demo .col{transition:opacity .6s ease}
.tf .demo .hide{opacity:0}.tf .demo .dim{opacity:.3}
.tf .demo .cell,.tf .demo .bar{transition:fill .6s ease,stroke .6s ease,width .9s ease}
.tf .demo .net rect{transition:stroke-width .4s ease,stroke .4s ease}
.tf .demo .net.pulse rect{stroke:#EF9F27;stroke-width:2.5}
.tf .demo-panel{min-height:110px;margin-top:8px}
.tf .demo-count{font-size:13px;color:var(--tf-muted)}
.tf .demo-title{font-weight:600;font-size:18px}
.tf .demo-text{margin:4px 0 0;font-size:16px}
.tf .demo-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.tf .demo-controls button{font:inherit;font-size:15px;padding:6px 14px;border-radius:8px;border:1px solid var(--tf-border);background:var(--tf-surface);color:var(--tf-text);cursor:pointer}
.tf .demo-controls button.primary{background:var(--tf-accent-bg);color:var(--tf-accent);border-color:var(--tf-accent)}
.tf .demo-controls button:disabled{opacity:.4;cursor:default}
@media (prefers-reduced-motion:reduce){.tf .demo *{transition:none!important}}

.tf aside.nn h4{font-family:var(--font-ui)}
.tf p.key{font-family:var(--font-ui)}
.tf .demo-panel,.tf .demo-controls{font-family:var(--font-ui)}
.tf ol.refs{padding-left:1.4em}
.tf ol.refs li{padding-left:4px}
.tf ol.refs li:target{background:var(--mark-soft)}
.tf [id^="ref-"]{scroll-margin-top:calc(var(--header-h) + 24px)}

/* ---- Home: hero with portrait, calls to action, engagement steps, closing band ---- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 32px; align-items: start; }
.hero-grid .teaser-lede { margin: 24px 0 0; }
.portrait {
  width: 168px; aspect-ratio: 4 / 5; border-radius: 6px; margin-top: 30px;
  background: var(--accent-soft); border: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.portrait-initials { font-family: var(--font-ui); font-weight: 600; font-size: 2.4rem; letter-spacing: 0.04em; color: var(--accent); }
.portrait-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.button-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 9px 17px; }
.button-ghost:hover { background: var(--accent-soft); filter: none; }
.steps { list-style: none; margin: 24px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: none; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; border-top: 1px solid var(--rule); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.step-t { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; margin-top: 4px; }
.step-d { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.do-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.do-grid li { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s ease; }
.do-grid li:hover { border-color: var(--accent); }
.do-n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); }
.do-t { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.do-d { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 1100px) { .do-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .do-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .steps::before { top: 20px; bottom: 20px; left: 19px; right: auto; border-top: 0; border-left: 1px solid var(--rule); }
  .steps li { padding-left: 56px; min-height: 40px; }
  .step-n { position: absolute; left: 0; top: 0; }
}
.formats { font-size: 0.98rem; color: var(--muted); }
.cta-band { background: var(--accent-soft); border-radius: 6px; padding: 28px 32px; margin: 8px 0 24px; }
.cta-band h2 { margin-top: 0 !important; }
.cta-band p:last-child { margin-bottom: 0; }
.series-note { font-family: var(--font-ui); font-size: 0.78rem; color: var(--muted); margin: 0 0 16px; line-height: 1.4; }
@media (max-width: 640px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { order: -1; width: 112px; margin-top: 0; }
  .portrait-initials { font-size: 1.7rem; }
  .cta-band { padding: 22px 20px; }
}

/* ---- Landing page proposal (.lp): Jouleco blue, navy hero, cards ---- */
.lp {
  --lp-navy: #0B2540; --lp-navy-2: #12355A; --lp-blue: #0284C2; --lp-blue-bright: #009AD6;
  --lp-blue-soft: #E3F2FA; --lp-bg: #F2F5F8; --lp-card: #FFFFFF; --lp-line: #D6DEE6; --lp-ink: #13212E; --lp-muted: #556575;
  background: var(--lp-bg); color: var(--lp-ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp { --lp-blue: #3BB4E8; --lp-blue-soft: #10283A; --lp-bg: #0E1820; --lp-card: #15222D; --lp-line: #24384A; --lp-ink: #E4EBF1; --lp-muted: #9FB0BF; --lp-navy: #08182A; --lp-navy-2: #0F2A44; }
}
:root[data-theme="dark"] .lp { --lp-blue: #3BB4E8; --lp-blue-soft: #10283A; --lp-bg: #0E1820; --lp-card: #15222D; --lp-line: #24384A; --lp-ink: #E4EBF1; --lp-muted: #9FB0BF; --lp-navy: #08182A; --lp-navy-2: #0F2A44; }
.lp .container { max-width: 1080px; }
.lp a { color: var(--lp-blue); }
.lp .button { background: var(--lp-blue-bright); color: #fff; }
.lp .button-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.lp .button-ghost:hover { background: rgba(255,255,255,.08); }
.lp-heroband { background: linear-gradient(180deg, var(--lp-navy) 0%, var(--lp-navy-2) 100%); color: #fff; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lp-hero h1 { color: #fff; font-family: var(--font-body); font-weight: 500; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 24px; max-width: 19ch; text-wrap: balance; }
.lp-hero-sub { font-family: var(--font-ui); font-size: 1.1rem; line-height: 1.5; color: #C9D8E6; max-width: 34rem; margin: 0; }
.lp-portrait { width: 240px; margin: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }
.lp-portrait .portrait-initials { color: var(--lp-blue-bright); }
.lp-portrait .portrait-note { color: #9FB6CA; }
.lp-band { padding-top: 64px; padding-bottom: 8px; }
.lp-band h2 { font-family: var(--font-ui); font-weight: 600; font-size: 1.55rem; margin: 0 0 24px; color: var(--lp-ink); }
.lp-tint { background: transparent; }
.lp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-card { background: var(--lp-card); border: 1px solid var(--lp-line); border-top: 3px solid var(--lp-blue-bright); border-radius: 8px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.lp-card-t { font-family: var(--font-body); font-size: 1.3rem; line-height: 1.25; margin: 0; color: var(--lp-ink); }
.lp-card-d { font-size: 0.98rem; line-height: 1.55; color: var(--lp-muted); margin: 0; }
.lp-card-cta { background: var(--lp-navy); border-color: var(--lp-navy); border-top-color: var(--lp-blue-bright); }
.lp-card-cta .lp-card-t { color: #fff; }
.lp-card-cta .lp-card-d { color: #C9D8E6; }
.lp-card-link { margin-top: auto; font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; color: var(--lp-blue-bright) !important; }
.lp-card-res { background: var(--lp-blue-soft); border-color: transparent; border-top-color: var(--lp-blue); }
.lp-res-t { font-family: var(--font-body); font-size: 1.6rem; line-height: 1.2; margin: 0; color: var(--lp-blue); }
.lp-res-d { font-size: 1rem; line-height: 1.55; margin: 0; color: var(--lp-ink); }
.lp-panel { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 8px; padding: 28px 28px 8px; margin-bottom: 16px; }
.lp-lead { font-size: 1.12rem; line-height: 1.65; max-width: 46rem; margin: 0 0 36px; }
.lp-ms { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; border-top: 2px solid var(--lp-blue-bright); }
.lp-ms li { padding-top: 14px; position: relative; }
.lp-ms li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lp-card); border: 2px solid var(--lp-blue-bright); }
.lp-ms-y { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.lp-ms-t { display: block; color: var(--lp-muted); font-size: 0.95rem; line-height: 1.45; }
.lp-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--lp-blue-bright); color: #fff; font-family: var(--font-ui); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.lp-art a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border: 1px solid var(--lp-line); border-top: 3px solid var(--lp-navy-2); border-radius: 8px; background: var(--lp-card); color: var(--lp-ink); text-decoration: none; }
.lp-art a:hover { border-color: var(--lp-blue-bright); }
.lp-art-t { font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; }
.lp-art-d { color: var(--lp-muted); font-size: 0.98rem; line-height: 1.5; }
.lp-more { font-family: var(--font-ui); font-size: 0.95rem; margin: 16px 0 0; }
.lp-note { color: var(--lp-muted); margin: -8px 0 20px; max-width: 46rem; }
.lp-cta { background: var(--lp-navy); color: #fff; border-radius: 8px; padding: 36px 40px; margin: 8px 0 64px; }
.lp-cta h2 { color: #fff; }
.lp-cta p { color: #C9D8E6; }
@media (max-width: 960px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 48px; }
  .lp-portrait { width: 120px; order: -1; }
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-ms { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; row-gap: 20px; }
  .lp-ms li { border-top: 2px solid var(--lp-blue-bright); }
  .lp-panel { padding: 22px 20px 4px; }
  .lp-cta { padding: 26px 22px; }
  .lp-band { padding-top: 44px; }
}
.lp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-two .lp-card { padding: 24px 24px 12px; }
.lp-tl { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--lp-blue-bright); }
.lp-tl li { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 0 0 14px 18px; }
.lp-tl li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-card); border: 2px solid var(--lp-blue-bright); }
.lp-tl-y { font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; color: var(--lp-blue); }
.lp-tl-t { font-size: 0.98rem; line-height: 1.45; color: var(--lp-ink); }
@media (max-width: 860px) { .lp-two { grid-template-columns: minmax(0, 1fr); } }
/* Landing page rail */
.lp-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.lp-content { min-width: 0; }
.lp-rail { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 64px; font-family: var(--font-ui); font-size: 0.86rem; max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; }
.lp-rail-h { font-weight: 600; color: var(--lp-ink); margin: 0 0 8px; }
.lp-rail-h:not(:first-child) { margin-top: 28px; }
.lp-rail-note { font-weight: 400; color: var(--lp-muted); }
.lp-rail-g { color: var(--lp-muted); margin: 12px 0 4px; font-size: 0.8rem; }
.lp-rail-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--lp-line); }
.lp-rail-list a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--lp-muted); text-decoration: none; line-height: 1.35; }
.lp-rail-list a:hover { color: var(--lp-ink); }
.lp-rail-list a[aria-current="true"] { color: var(--lp-blue); border-left-color: var(--lp-blue-bright); font-weight: 600; }
.lp-rail-art a { padding-top: 3px; padding-bottom: 3px; }
.lp-rail-all { display: inline-block; margin-top: 16px; color: var(--lp-blue); }
@media (max-width: 1100px) { .lp-content .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .lp-shell { grid-template-columns: minmax(0, 1fr); }
  .lp-rail { display: none; }
}
/* Landing proposal, round 3: hero beside the rail, articles page */
.lp-shell { padding-top: 32px; }
.lp-rail { padding-top: 0; }
.lp-heroband { border-radius: 10px; }
.lp-content .lp-hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; padding: 48px 44px; }
.lp-content .lp-portrait { width: 200px; }
.lp-content .lp-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.lp-content .lp-band:first-of-type { padding-top: 0; }
.lp-content .lp-heroband + .lp-band { padding-top: 56px; }
.lp-rail-out, .lp-rail-home { display: inline-block; margin-top: 20px; font-weight: 600; color: var(--lp-blue); text-decoration: none; }
.lp-rail-home { margin: 0 0 8px; }
.lp-rail-home::before { content: "\2190\00a0"; }
.lp-rail-out::after { content: "\00a0\2192"; }
.lp-rail-soon { display: block; padding: 3px 0 3px 12px; color: var(--lp-muted); opacity: .75; line-height: 1.35; }
.lp-rail-soon em { font-style: normal; font-size: 0.78rem; }
.lp-page-title { font-family: var(--font-body); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3rem); margin: 0 0 16px; color: var(--lp-ink); }
.lp-first { padding-top: 0 !important; }
.lp-series { list-style: none; margin: 0; padding: 0; }
.lp-series .lp-card { padding: 26px 26px 22px; }
.lp-series .lp-card-t { font-size: 1.6rem; }
.lp-series-meta { margin: 0; font-family: var(--font-ui); font-size: 0.85rem; color: var(--lp-blue); font-weight: 600; }
@media (max-width: 960px) {
  .lp-content .lp-hero { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; gap: 20px; }
  .lp-content .lp-portrait { width: 120px; order: -1; }
}
.lp { padding-bottom: 64px; }
.lp-series h2.lp-card-t { margin: 0; }
.lp-first + .lp-band { padding-top: 16px; }
.lp-first .lp-note { margin-top: -16px; }
.tf .demo .vec-hl{font-weight:600;fill:var(--tf-accent)}
/* Transformers article: toy model download and hints */
.tf-try { font-family: var(--font-ui); font-size: 0.95rem; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 12px 16px; margin: -8px 0 28px; }
.tf-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 8px 0 32px; }
.tf-download span { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); }
.tf-hints li { margin-bottom: 12px; }
.lp-intro { font-size: 1.1rem; line-height: 1.6; max-width: 46rem; margin: -8px 0 24px; color: var(--lp-ink); }
.lp-forms { font-family: var(--font-ui); font-weight: 600; font-size: 1.15rem; color: var(--lp-blue); margin: 0 0 20px; padding-left: 12px; border-left: 3px solid var(--lp-blue-bright); }
.lp-offers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.lp-offers li { display: grid; align-content: start; grid-template-columns: 2.4rem 1fr; column-gap: 8px; padding: 16px 0; border-top: 1px solid var(--lp-line); }
.lp-offer-n { grid-row: span 2; font-family: var(--font-mono); font-size: 0.85rem; color: var(--lp-blue); padding-top: 3px; }
.lp-offer-t { font-family: var(--font-ui); font-weight: 600; color: var(--lp-ink); font-size: 1.02rem; }
.lp-offer-d { font-size: 0.98rem; line-height: 1.55; color: var(--lp-muted); margin-top: 4px; }
.lp-formats { margin: 20px 0 0; font-size: 0.95rem; color: var(--lp-muted); font-style: italic; max-width: 46rem; }
@media (max-width: 760px) { .lp-offers { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lp-content .lp-grid { grid-template-columns: minmax(0, 1fr); } }
.table-prose td:first-child { white-space: normal; width: 45%; }
.related { margin-top: 48px; } .more-articles { margin-top: 16px; font-family: var(--font-ui); font-size: 0.95rem; }
