/* Hallmark · shape: hero split, three steps, forest strip, real capture, developer door · genre: modern-minimal · theme: brand · redesign: full (home), restyle (inner pages, whitepapers) · copy: verbatim · koa-design: 2026.11.14
 * paper: oklch(97% 0.02 85) · accent: oklch(48% 0.13 40) · display: DM Serif Display · body: Instrument Sans · label: JetBrains Mono · hero: text left, the green ceiba tile verbatim, its roots running out, three plain levels · nav: kept (logo, wordmark, links, ES/EN, toggle) · footer: kept links, one tagline · signature: today's green ceiba tile with roots that run into the other communities
 * axes: light/roman-serif/warm · posture: split · contrast: pass · fold: pass · approved: Miguel 14-nov "A. Arbol" · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a big logo can read as decoration; each level carries one plain job line so the tree explains the product */
/* Hallmark · waive 80 · the drawing is the ceiba logo tile itself with verbatim geometry, plus root lines and labelled levels · Miguel asked for tree and connection with no stock or AI images */
/* Hallmark · dismissed 23 · the green field is the ceiba logo tile kept verbatim from the old hero; the tile is the brand mark, not a colour field */
/* Hallmark · dropped /#montessori · Montessori MX was retired by Miguel on 8-nov and the network never shows it */
/* Patterns (07_tools/koa-base/patterns): site-header, mobile-bottom-nav, mobile-safe-area-insets, search-bar-suggest (role=search filter), legal-footer-canonical, _theme, motion-tokens.
 * Fonts: DM Serif Display, Instrument Sans, JetBrains Mono, all SIL OFL 1.1, self-hosted in /fonts (no Google Fonts request).
 * Loaded AFTER each page's own <style>: the page keeps its layout, this file owns the system (tokens, type, chrome). */

@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/DMSerifDisplay-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/InstrumentSans-400_700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/JetBrainsMono-400.woff2") format("woff2"); }

/* ---- tokens (values from the ceiba brand already on the site; :root:root beats each page's own token block) ---- */
:root:root {
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-2xl: 1.953rem;
  --text-display: clamp(2.5rem, 5vw + 1rem, 5rem); --text-section: clamp(1.875rem, 2.4vw + 1rem, 3.25rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.0625rem, 0.35vw + 1rem, 1.3125rem);
  --container: 1240px; --gutter: clamp(20px, 5vw, 64px); --header-h: 68px;
  --motion-short: 150ms; --motion-medium: 280ms; --motion-long: 450ms; --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --radius-card: 14px; --radius-pill: 999px; --rule-hair: 1px;
  --color-leaf: #16a34a; --color-leaf-deep: #0f7a32; --color-leaf-ink: #ffffff;
  --font-display: "DM Serif Display", ui-serif, Georgia, serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: var(--ease-emphasized); --ease-spring: var(--ease-emphasized);
}
:root:root, :root:root[data-theme="light"] {
  color-scheme: light;
  --color-paper: #fbf5ea; --color-paper-2: #f0e8d8; --color-paper-3: #ffffff;
  --color-ink: #1a1820; --color-ink-2: #3a3644; --color-muted: #625f70;
  --color-rule: #e9dfc8; --color-rule-strong: #cec0a0;
  --color-accent: #a04a28; --color-accent-ink: #ffffff; --color-focus: #a04a28;
  --color-mark: #a04a28; --color-root: #16a34a; --color-root-ink: #0f6e30;
}
:root:root[data-theme="dark"] {
  color-scheme: dark;
  --color-paper: #0c0a0e; --color-paper-2: #13111a; --color-paper-3: #16141f;
  --color-ink: #f0eef8; --color-ink-2: #c9c6d6; --color-muted: #9f9cb0;
  --color-rule: #1e1c2a; --color-rule-strong: #2e2c3a;
  --color-accent: #e08a66; --color-accent-ink: #0c0a0e; --color-focus: #e08a66;
  --color-mark: #c2603e; --color-root: #22c55e; --color-root-ink: #4ade80;
}
/* every page's legacy names, pointed at the one system (no second palette) */
:root:root, :root:root[data-theme="light"], :root:root[data-theme="dark"] {
  --bg: var(--color-paper); --bg2: var(--color-paper-3); --bg-elevated: var(--color-paper-2); --bg-card: var(--color-paper-3);
  --bg-soft: var(--color-paper-2); --bg-hover: var(--color-paper-2); --bg-graph: var(--color-paper-2);
  --bg-code: var(--color-paper-2); --code-bg: var(--color-paper-2); --card: var(--color-paper-3);
  --border: var(--color-rule); --border2: var(--color-rule-strong); --border-hover: var(--color-rule-strong);
  --text: var(--color-ink); --fg: var(--color-ink); --text-primary: var(--color-ink);
  --text2: var(--color-ink-2); --text-secondary: var(--color-muted); --muted: var(--color-muted);
  --text3: var(--color-muted); --text-tertiary: var(--color-muted);
  --text-code: var(--color-ink); --text-code-accent: var(--color-accent); --text-code-key: var(--color-root-ink); --text-code-string: var(--color-ink-2);
  --green: var(--color-accent); --accent: var(--color-accent); --terracotta: var(--color-accent);
  --green-dim: color-mix(in oklab, var(--color-accent) 16%, transparent); --green-glow: color-mix(in oklab, var(--color-accent) 6%, transparent);
  --terracotta-soft: color-mix(in oklab, var(--color-accent) 18%, var(--color-paper));
  --blue: var(--color-root-ink); --blue-dim: color-mix(in oklab, var(--color-root) 16%, transparent); --blue-glow: color-mix(in oklab, var(--color-root) 6%, transparent);
  --gold: var(--color-accent); --bark: var(--color-ink-2); --cream: var(--color-paper); --cream-deep: var(--color-paper-2);
  --leaf-shadow: transparent; --surface-overlay: transparent;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--color-accent); }
p { text-wrap: pretty; }
code, pre, kbd, samp { font-family: var(--font-mono); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
/* no glow, no eyebrow, no tracked capitals (Floor 9) */
.hero-glow { display: none !important; }
.section-eyebrow, .hero-overline > span, .audience-pill, .breadcrumb { letter-spacing: 0 !important; text-transform: none !important; font-family: var(--font-mono); }

/* ---- header (site-header pattern on the page's own <nav>: links, ids and handlers untouched) ---- */
body > nav:not(.bottom-nav):not(.ceiba-wp-select) {
  min-height: var(--header-h); padding: env(safe-area-inset-top) max(var(--gutter), calc((100vw - var(--container)) / 2)) 0;
  background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--rule-hair) solid var(--color-rule); box-shadow: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
}
body > nav .nav-logo { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; letter-spacing: 0; color: var(--color-ink); text-decoration: none; }
body > nav .nav-logo span { color: var(--color-accent); }
body > nav .nav-logo svg { flex-shrink: 0; }
body > nav .nav-links { gap: var(--space-lg); }
body > nav .nav-links a { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; text-transform: none; text-decoration: none; }
body > nav .nav-links a:hover { color: var(--color-ink); }
.lang-switch { display: inline-flex; border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-pill); padding: 2px; }
.lang-switch button { min-width: 40px; min-height: 40px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); font: 500 var(--text-xs)/1 var(--font-mono); cursor: pointer; }
.lang-switch button.active, .lang-switch button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }
body > nav .theme-toggle, .ceiba-wp-select__theme { inline-size: 44px; block-size: 44px; border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule-strong); background: transparent; color: var(--color-ink); }
body > nav .theme-toggle svg { stroke: currentColor; fill: none; }
.ceiba-wp-select { background: color-mix(in oklab, var(--color-paper) 92%, transparent) !important; border-bottom-color: var(--color-rule) !important; font-family: var(--font-body) !important; }
.ceiba-wp-select__home { font-family: var(--font-display) !important; font-weight: 400 !important; font-size: 1.25rem !important; color: var(--color-ink) !important; }
.ceiba-wp-select__home svg { color: var(--color-mark) !important; }
.ceiba-wp-select__group { box-shadow: none !important; border-radius: var(--radius-pill) !important; background: transparent !important; border-color: var(--color-rule-strong) !important; }
.ceiba-wp-select__pill { border-radius: var(--radius-pill) !important; letter-spacing: 0 !important; text-transform: none !important; min-height: 40px; display: inline-flex; align-items: center; }
.ceiba-wp-select__pill[aria-current="page"], .ceiba-wp-select__pill.is-active, .ceiba-wp-select__pill.active { background: var(--color-ink) !important; color: var(--color-paper) !important; }

/* ---- footer (legal-footer-canonical: links kept, one tagline) ---- */
body > footer { background: var(--color-paper-2); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); padding-block: var(--space-xl) calc(var(--space-xl) + env(safe-area-inset-bottom)); }
body > footer a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule-strong); text-underline-offset: 0.18em; }
body > footer a:hover { text-decoration-color: currentColor; }
body > footer .footer-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); justify-content: center; }
body > footer .footer-links a { display: inline-flex; min-height: 44px; align-items: center; }

/* ---- cards and controls the pages already have, in the one system ---- */
.hero-cta, .net-card, .journey-step, .entity-card, .card, .faq-item, .endpoint, .wp-card, .stat-card { border-radius: var(--radius-card); box-shadow: none !important; }
.hero-cta:hover, .net-card:hover { transform: none !important; border-color: var(--color-ink) !important; }
button, input, select, textarea { font-family: inherit; }

/* ---- bottom nav (mobile-bottom-nav pattern: < 768 px, 4 tabs, safe-area) ---- */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 95; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 0 env(safe-area-inset-bottom); background: color-mix(in oklab, var(--color-paper) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: var(--rule-hair) solid var(--color-rule); }
  .bottom-nav__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--color-muted); text-decoration: none; font-size: 0.75rem; font-weight: 500; }
  .bottom-nav__item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav__item[aria-current="page"] { color: var(--color-accent); }
  body:has(.bottom-nav) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body:has(.bottom-nav) #cookie-consent, body:has(.bottom-nav) .cookie-consent, body:has(.bottom-nav) #koa-cookie-pill { bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
}

/* ---- page transitions (same-origin, progressive) ---- */
@view-transition { navigation: auto; }
body > nav .nav-logo, .ceiba-wp-select__home { view-transition-name: ceiba-brand; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ======== Árbol home (index.html): ab-* so it never collides with the kept sections ======== */
.ab-wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ab-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; transition: background-color var(--motion-short) var(--ease-emphasized), color var(--motion-short) var(--ease-emphasized), border-color var(--motion-short) var(--ease-emphasized); }
.ab-btn--primary { background: var(--color-ink); color: var(--color-paper); border: var(--rule-hair) solid var(--color-ink); }
.ab-btn--primary:hover, .ab-btn:active { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.ab-btn--ghost { color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule-strong); }
.ab-btn--ghost:hover { border-color: var(--color-ink); }

.ab-hero { padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-3xl); }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: center; }
.ab-hero h1 { font-size: var(--text-display); line-height: 1.04; max-width: 17ch; margin: 0; }
.ab-hero h1 .accent { color: var(--color-accent); }
.ab-hero .ab-lead { margin-top: var(--space-lg); font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; color: var(--color-ink-2); }
.ab-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.ab-hero__proof { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); max-width: 60ch; }
.ab-hero__proof a { color: inherit; }
.ab-tree { margin: 0; min-width: 0; }
.ab-tree svg { width: 100%; height: auto; max-height: 400px; overflow: visible; }
.ab-tree__roots path { stroke: var(--color-root); stroke-width: 9; fill: none; stroke-linecap: round; }
.ab-levels { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); color: var(--color-ink-2); }
.ab-levels li { padding-left: var(--space-md); border-left: 2px solid var(--color-mark); }
.ab-levels li:last-child { border-left-color: var(--color-root); }
.ab-levels strong { color: var(--color-ink); font-weight: 600; }

.ab-steps { padding: var(--space-2xl) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.ab-steps h2 { font-size: var(--text-2xl); margin: 0; }
.ab-steps ol { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); counter-reset: ab-step; }
.ab-steps li { counter-increment: ab-step; border-top: 2px solid var(--color-ink); padding-top: var(--space-md); }
.ab-steps li::before { content: counter(ab-step); font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-muted); }
.ab-steps h3 { font-size: var(--text-title); margin: var(--space-2xs) 0 var(--space-xs); }
.ab-steps p { color: var(--color-ink-2); margin: 0; max-width: 40ch; }

.ab-forest { padding: var(--space-3xl) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.ab-forest__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: end; }
.ab-forest__head h2 { font-size: var(--text-section); line-height: 1.05; margin: 0; max-width: 18ch; }
.ab-forest__head p { color: var(--color-ink-2); margin: 0; }
.ab-search { margin-top: var(--space-xl); display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; }
.ab-search label { font-size: var(--text-sm); color: var(--color-muted); }
.ab-search input { flex: 1 1 260px; max-width: 420px; min-height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule-strong); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-md); }
.ab-roots { width: 100%; height: auto; margin-top: var(--space-xl); display: block; }
.ab-roots__ground { stroke: var(--color-rule-strong); stroke-width: 1.5; }
.ab-roots__lines path { stroke: var(--color-root); stroke-width: 2; fill: none; stroke-linecap: round; opacity: 0.85; }
.ab-roots__lines .ab-roots__mycelium { stroke-dasharray: 2 8; }
.ab-roots__tree path, .ab-roots__tree rect { color: var(--color-mark); }
.ab-forest__list { list-style: none; padding: 0; margin: var(--space-md) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xl); text-align: center; }
.ab-card { position: relative; }
.ab-card h3 { font-size: var(--text-title); margin: 0; }
.ab-card h3 a { text-decoration: none; color: var(--color-ink); }
.ab-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ab-card:hover h3 a { color: var(--color-accent); text-decoration: underline; }
.ab-card__topic { color: var(--color-ink-2); margin: var(--space-2xs) 0 0; }
.ab-card__counts { display: flex; flex-direction: column; align-items: center; margin: var(--space-sm) 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; font-size: var(--text-sm); }
.ab-card__trust { margin: var(--space-sm) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.ab-forest__empty { margin-top: var(--space-lg); color: var(--color-muted); }
.ab-forest__meta { margin-top: var(--space-xl); text-align: center; font-size: var(--text-sm); color: var(--color-muted); }
.ab-forest__meta a { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-ink); }

.ab-capture { padding: var(--space-3xl) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.ab-capture__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; }
.ab-capture h2 { font-size: var(--text-section); line-height: 1.05; margin: 0; max-width: 16ch; }
.ab-capture p { color: var(--color-ink-2); margin: var(--space-md) 0 0; max-width: 46ch; }
.ab-capture figure { margin: 0; }
.ab-capture img { width: 100%; height: auto; display: block; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule-strong); aspect-ratio: 1280 / 800; }
.ab-capture figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.ab-capture figcaption a { color: var(--color-ink); }

.ab-dev { padding: var(--space-3xl) 0; border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.ab-dev__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-xl); align-items: start; }
.ab-dev h2 { font-size: var(--text-2xl); margin: 0; }
.ab-dev p { margin: var(--space-sm) 0 0; color: var(--color-ink-2); max-width: 60ch; }
.ab-dev code { font-size: 0.9em; background: var(--color-paper-3); padding: 2px var(--space-xs); border-radius: 4px; border: var(--rule-hair) solid var(--color-rule); }
.ab-dev__links { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-strong); }
.ab-dev__links li { border-bottom: var(--rule-hair) solid var(--color-rule-strong); }
.ab-dev__links a { display: flex; min-height: 48px; align-items: center; font-family: var(--font-mono); font-size: var(--text-sm); text-decoration: none; color: var(--color-ink); }
.ab-dev__links a:hover { color: var(--color-accent); }

@media (max-width: 60rem) {
  .ab-hero__grid, .ab-capture__grid, .ab-dev__grid, .ab-forest__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .ab-tree svg { max-height: 280px; }
  .ab-steps ol { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .ab-roots { display: none; }
  .ab-forest__list { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 0; border-left: 2px solid var(--color-root); margin-left: var(--space-xs); }
  .ab-forest__list .ab-card { padding: var(--space-md) 0 var(--space-md) var(--space-lg); }
  .ab-forest__list .ab-card::before { content: ""; position: absolute; left: -2px; top: calc(var(--space-md) + 0.8em); width: var(--space-md); border-top: 2px solid var(--color-root); }
  .ab-card__counts { flex-direction: row; flex-wrap: wrap; column-gap: var(--space-sm); align-items: flex-start; }
  .ab-forest__meta { text-align: left; }
}

/* ======== whitepaper chooser (whitepaper.html, whitepaper-es.html) ======== */
.wpc { padding: calc(var(--header-h) + var(--space-2xl)) 0 var(--space-3xl); }
.wpc h1 { font-size: var(--text-section); line-height: 1.05; margin: 0; max-width: 20ch; }
.wpc .ab-lead { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 56ch; font-size: var(--text-lead); }
.wpc__list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.wpc__item { border-top: 2px solid var(--color-ink); padding-top: var(--space-md); }
.wpc__item h2 { font-size: var(--text-title); margin: 0; }
.wpc__item p { color: var(--color-ink-2); margin: var(--space-xs) 0 var(--space-md); }
.wpc__langs { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.wpc__langs a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule-strong); text-decoration: none; color: var(--color-ink); font-size: var(--text-sm); }
.wpc__langs a:hover { border-color: var(--color-ink); }
.wpc__langs a[hreflang]:first-child { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
@media (max-width: 60rem) { .wpc__list { grid-template-columns: minmax(0, 1fr); } }

/* live dot on community cards (status from the aggregator; text, not colour alone) */
.ab-card__live { margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); display: inline-flex; align-items: center; gap: var(--space-xs); }
.ab-card__live .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--color-muted); box-shadow: none; animation: none; }
.ab-card__live .status-dot.online { background: var(--color-root); }
.ab-doors { padding: var(--space-3xl) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.ab-doors h2 { font-size: var(--text-section); line-height: 1.05; margin: 0; }
.ab-doors .hero-sub { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-lead); }
.ab-doors .hero-ctas { margin-top: var(--space-xl); }
.ab-doors__note { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
body > nav .nav-logo { gap: 0; }
body > nav .nav-logo svg { margin-right: var(--space-xs); }
.faq-item { border-color: var(--color-rule-strong) !important; background: var(--color-paper-3) !important; }
:root:root, :root:root[data-theme="light"] { --color-error: #b42318; }
:root:root[data-theme="dark"] { --color-error: #f87171; }
/* headings that now carry their own number or level (was an eyebrow above them) */
.step-card h3 .step-num, .ladder-content h4 .ladder-dot { display: inline-flex; width: auto; min-width: 0; height: auto; margin: 0 var(--space-xs) 0 0; padding: 0; border: 0; background: none; font: 500 var(--text-sm)/1 var(--font-mono); color: var(--color-muted); vertical-align: middle; }
.diagram-tag { font-size: var(--text-xs) !important; }
@media (max-width: 600px) { body > nav:not(.is-open) .nav-links { display: none; } }
/* the Árbol blocks own their gutters (mobile-fixes pads every section/main on phones) */
body { margin: 0; }
main#main { padding-left: 0 !important; padding-right: 0 !important; }
section.ab-hero, section.ab-steps, section.ab-forest, section.ab-capture, section.ab-doors, section.ab-dev { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }
main .ab-wrap, section .ab-wrap { margin-inline: auto !important; }
/* long reads: the hero is the title block only; the measure stays capped at 1920 */
.wp-hero { display: block; margin: 0 0 var(--space-lg); }
.wp-hero .version-chip, .wp-hero .chip { color: var(--color-ink) !important; background: var(--color-paper-2) !important; border-color: var(--color-rule-strong) !important; }
.wp-layout, .wp-content, body > main { max-width: min(100%, 1360px); margin-inline: auto; }
.ab-search input, .newsletter-form input, input[type="email"], input[type="search"] { border-color: var(--color-muted) !important; }
.ceiba-badge:focus-visible, a:focus-visible.ceiba-badge { outline-color: var(--color-ink); }
[hidden] { display: none !important; }
@media (max-width: 360px) {
  .ab-btn, .cta-btn, .newsletter-form button, .contact-btn { white-space: nowrap; padding-inline: var(--space-md) !important; font-size: var(--text-sm) !important; }
}
.cta-btn { color: var(--color-accent-ink) !important; }
@media (max-width: 800px) { .wp-layout { display: block !important; } .wp-toc { width: auto !important; max-width: 100%; min-width: 0; } }
@media (max-width: 768px) { .wp-content table, main table { display: block; max-width: 100%; overflow-x: auto; } }
@media (max-width: 400px) { .newsletter-form button { white-space: nowrap; padding-inline: var(--space-md) !important; font-size: var(--text-sm) !important; } }
/* the fixed header is 68px tall: on phones the page's own `section` padding left the hero's first line under it */
section.ab-hero { padding-top: calc(var(--header-h) + var(--space-xl)) !important; }
