/* =====================================================================
   Whitepaper kit — component styles (chrome, chart, reactions,
   survey, companion, hero, banner). Pairs with whitepaper.css.
   ===================================================================== */

/* ---------- Theme-scoped chart band tokens ---------- */
[data-theme="dark"]  { --wp-band-fill: rgba(248,81,73,0.06); --wp-band-edge: rgba(248,81,73,0.30); }
[data-theme="light"] { --wp-band-fill: rgba(248,81,73,0.07); --wp-band-edge: rgba(220,38,38,0.30); }

/* =====================================================================
   Top bar + progress
   ===================================================================== */
.wp-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.wp-progress-fill {
  height: 100%; transform-origin: 0 50%;
  background: var(--nectar-gradient-45);
  box-shadow: 0 0 12px var(--wp-mark-glow);
  will-change: transform;
}

.wp-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem clamp(1.1rem, 3vw, 2rem);
  background: color-mix(in oklab, var(--wp-page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--wp-rule);
}
.wp-topbar-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: inherit; min-width: 0; }
.wp-topbar-mark { filter: drop-shadow(0 0 8px var(--wp-mark-glow)); flex: none; }
.wp-topbar-name { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; color: var(--wp-ink-strong); }
.wp-topbar-sep { color: var(--wp-ink-3); font-weight: 400; }
.wp-topbar-doc { font-weight: 500; font-size: 0.95rem; color: var(--wp-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-topbar-actions { display: flex; align-items: center; gap: 0.5rem; flex: none; }

.wp-iconbtn {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--wp-rule); border-radius: var(--radius-md);
  color: var(--wp-ink-2); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.wp-iconbtn:hover { background: var(--wp-surface-2); color: var(--wp-ink-strong); }
.wp-iconbtn i { width: 18px; height: 18px; }

.wp-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 36px; padding: 0 0.85rem;
  background: transparent; border: 1px solid var(--wp-rule-2); border-radius: var(--radius-md);
  color: var(--wp-ink); font-family: var(--wp-font-ui); font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.wp-btn-ghost:hover { background: var(--wp-surface-2); border-color: var(--wp-accent); }
.wp-btn-ghost i { width: 16px; height: 16px; }
@media (max-width: 560px) { .wp-btn-ghost-label { display: none; } .wp-btn-ghost { padding: 0; width: 36px; justify-content: center; } }

/* =====================================================================
   Placeholder banner
   ===================================================================== */
.wp-banner {
  font-family: var(--wp-font-ui);
  display: flex; align-items: flex-start; gap: 0.7rem;
  max-width: var(--wp-measure-wide);
  margin: 1rem auto 0; padding: 0.75rem 1rem;
  background: var(--status-warn-bg, rgba(210,153,34,0.12));
  border: 1px solid var(--status-warn-border, rgba(210,153,34,0.35));
  border-radius: var(--radius-lg);
  color: var(--status-warn-fg, #e3b341); font-size: 0.85rem; line-height: 1.5;
}
.wp-banner i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.wp-banner strong { color: var(--wp-ink-strong); font-weight: 600; }

/* =====================================================================
   Hero
   ===================================================================== */
.wp-hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); position: relative; }
.wp-hero-inner { max-width: var(--wp-measure-wide); margin: 0 auto; padding: 0 var(--wp-gutter); }
.wp-hero-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--wp-font-ui); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp-ink-3);
  margin-bottom: 1.6rem;
}
.wp-hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nectar-gradient-45); box-shadow: 0 0 10px var(--wp-mark-glow); }
.wp-hero-title {
  font-family: var(--wp-font-ui); font-weight: 800;
  font-size: var(--wp-display); line-height: 0.98; letter-spacing: -0.035em;
  color: var(--wp-ink-strong); margin: 0; text-wrap: balance;
}
.wp-hero-title .accent { background: var(--nectar-gradient-45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wp-hero-deck {
  font-family: var(--wp-font-body); font-size: var(--wp-lead); line-height: 1.45;
  color: var(--wp-ink-2); max-width: 34rem; margin: 1.5rem 0 0; text-wrap: pretty;
}
.wp-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem;
  margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--wp-rule);
  font-family: var(--wp-font-ui); font-size: 0.85rem; color: var(--wp-ink-2);
}
.wp-hero-meta > span { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.wp-hero-meta .who { color: var(--wp-ink-strong); font-weight: 600; }
.wp-hero-meta .sep { color: var(--wp-rule-2); margin: 0 -0.5rem; }
.wp-hero-meta i { width: 15px; height: 15px; flex: none; color: var(--wp-ink-3); }

/* =====================================================================
   Article layout w/ sticky nav rail
   ===================================================================== */
.wp-layout {
  max-width: 84rem; margin: 0 auto; padding: 0 var(--wp-gutter) 4rem;
  display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.wp-railcol { position: sticky; top: 4.5rem; }
@media (max-width: 960px) {
  .wp-layout { grid-template-columns: 1fr; }
  .wp-railcol { display: none; }
}

.wp-sectionnav { font-size: 0.85rem; }
.wp-sectionnav-title {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--wp-ink-3); margin-bottom: 1rem;
  padding-left: 0.85rem;
}
.wp-sectionnav-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--wp-rule); }
.wp-sectionnav-link {
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem; margin-left: -1px;
  border-left: 2px solid transparent; text-decoration: none; color: var(--wp-ink-3);
  line-height: 1.3; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.wp-sectionnav-link:hover { color: var(--wp-ink); }
.wp-sectionnav-link.is-active { color: var(--wp-ink-strong); border-left-color: var(--wp-accent); }
.wp-sectionnav-num { font-size: 0.72rem; color: var(--wp-accent); flex: none; }
.wp-sectionnav-label { font-weight: 500; }

.wp-content { min-width: 0; max-width: none; }

/* ---------------------------------------------------------------------
   Full-bleed figure treatment
   Body prose stays at the comfortable reading measure; wide figures
   break OUT of that measure and fill the whole content column (left-
   aligned with the prose, extending to the right page gutter).
   Reusable: any block tagged .wp-fig-wide — plus the built-in figure
   roots — gets the full width. Future diagrams: add .wp-fig-wide.
   --------------------------------------------------------------------- */
.wp-content .wp-section > * { max-width: none; }
.wp-content .wp-section > .wp-fig-wide,
.wp-content .wp-section > .wp-chart,
.wp-content .wp-section > .wp-loop,
.wp-content .wp-section > .wp-fig3 { max-width: none; }

/* section head */
.wp-section-head { display: flex; align-items: baseline; gap: 1rem; margin: 0 0 1.4rem; }
.wp-section-num {
  font-family: var(--wp-font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--wp-accent); flex: none; padding-top: 0.15em;
}
.wp-section-divider { height: 1px; background: var(--wp-rule); margin: 3.2rem 0 0; border: 0; }

/* =====================================================================
   Chart
   ===================================================================== */
.wp-chart { margin: 2rem 0 1.2rem; }
.wp-chart-frame {
  background: var(--wp-surface); border: 1px solid var(--wp-rule);
  border-radius: var(--radius-xl); padding: 1.1rem 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.wp-chart-head { display: flex; align-items: baseline; gap: 0.7rem; margin: 0.2rem 0.3rem 0.5rem; }
.wp-chart-eyebrow {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wp-accent-soft);
}
.wp-chart-title { font-size: 0.95rem; font-weight: 600; color: var(--wp-ink-strong); }
.wp-chart-svgwrap { width: 100%; }
.wp-chart-svg { width: 100%; height: auto; display: block; overflow: visible; }

.wp-chart-axis { font-size: 14px; fill: var(--wp-ink-3); font-family: var(--wp-font-ui); }
.wp-chart-axis.mono { font-family: var(--wp-font-mono); }
.wp-chart-axistitle { font-size: 15px; font-weight: 600; fill: var(--wp-ink-2); letter-spacing: 0.01em; }
.wp-chart-bandlabel { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; fill: var(--wp-band-edge); font-family: var(--wp-font-ui); }
.wp-chart-serieslabel { font-size: 14px; font-weight: 600; font-family: var(--wp-font-ui); }

/* line draw-on animation
   End-state (fully drawn) is the BASE style so the chart is always
   visible — even before scroll-trigger, in print, or reduced-motion.
   The draw is purely additive when .is-shown is applied. */
.wp-chart-line { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.wp-chart-svg.is-shown .wp-chart-line {
  animation: wp-draw 1100ms var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}
.wp-chart-dot, .wp-chart-endlabel { opacity: 1; }
.wp-chart-svg.is-shown .wp-chart-dot,
.wp-chart-svg.is-shown .wp-chart-endlabel {
  animation: wp-fadein 400ms var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes wp-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes wp-fadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wp-chart-svg.is-shown .wp-chart-line,
  .wp-chart-svg.is-shown .wp-chart-dot,
  .wp-chart-svg.is-shown .wp-chart-endlabel { animation: none; }
}

/* legend — single column so the longest term ("Site power & thermal")
   never wraps into its gloss at any chart width; gloss sits below term */
.wp-chart-legend { display: flex; flex-direction: column; gap: 0.95rem; margin: 1.1rem 0.3rem 0.2rem; }
.wp-chart-legend-item { display: flex; align-items: flex-start; gap: 0.6rem; min-width: 0; }
.wp-chart-swatch { flex: none; margin-top: 0.3rem; }
.wp-chart-legend-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1 1 auto; }
.wp-chart-legend-term { font-size: 0.82rem; font-weight: 600; color: var(--wp-ink-strong); line-height: 1.3; }
.wp-chart-legend-tag { font-size: 0.66rem; color: var(--wp-accent); margin-right: 0.38rem; font-weight: 500; }
.wp-chart-legend-gloss { font-size: 0.75rem; color: var(--wp-ink-3); line-height: 1.35; }
.wp-chart-legend-item.is-secondary .wp-chart-legend-term { color: var(--wp-ink-2); font-weight: 500; }
.wp-chart-legend-item.is-secondary .wp-chart-legend-tag { color: var(--wp-ink-3); }

/* secondary (dim, dashed) curve — visible by default; no fragile entrance */
.wp-chart-line-dim { opacity: 0.62; }
.wp-chart-dot-dim { opacity: 0.6; }
@media (max-width: 600px) { .wp-chart-legend { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .wp-chart-frame { padding: 0.9rem 0.6rem 1rem; }
  .wp-chart-axistitle { font-size: 21px; }
  .wp-chart-axis { font-size: 19px; }
  .wp-chart-bandlabel { font-size: 16px; }
}

/* =====================================================================
   Data-flow diagram (Figure 2) — nested LAN boundary + Nectar Box (CSS)
   ===================================================================== */
.wp-loop { margin: 1.8rem 0 1.2rem; }
.wp-loop-frame {
  background: var(--wp-surface); border: 1px solid var(--wp-rule);
  border-radius: var(--radius-xl); padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.wp-fig2 {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  max-width: 100%; margin: 0 auto;
}

/* ----- Your site · LAN trust boundary ----- */
.wp-fig2-lan {
  border: 1.5px dashed color-mix(in oklab, var(--wp-accent) 38%, var(--wp-rule-2));
  border-radius: var(--radius-xl); padding: 1.4rem 1.05rem 1.05rem; position: relative;
}
.wp-fig2-boundary-label,
.wp-fig2-box-header {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--wp-font-ui); font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--wp-ink-2);
}
.wp-fig2-boundary-label {
  position: absolute; top: -0.66rem; left: 1rem; background: var(--wp-surface);
  padding: 0 0.5rem; font-size: 0.66rem;
}
.wp-fig2-boundary-label i { width: 13px; height: 13px; color: var(--wp-accent-soft); }

.wp-fig2-laninner {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.35fr);
  align-items: center; gap: 0.65rem;
}

/* generic node icon chip */
.wp-fig2-ico {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--wp-accent-bg); border: 1px solid color-mix(in oklab, var(--wp-accent) 26%, transparent);
  border-radius: var(--radius-md); color: var(--wp-accent-soft); margin-bottom: 0.4rem;
}
.wp-fig2-ico i { width: 18px; height: 18px; }

/* Robot fleet card */
.wp-fig2-fleet {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--wp-page-2); border: 1px solid var(--wp-rule); border-radius: var(--radius-lg);
  padding: 0.9rem 0.7rem;
}
.wp-fig2-fleet .t { font-family: var(--wp-font-ui); font-weight: 600; font-size: 0.84rem; color: var(--wp-ink-strong); line-height: 1.25; }
.wp-fig2-fleet .s { font-family: var(--wp-font-ui); font-size: 0.72rem; color: var(--wp-ink-3); margin-top: 0.2rem; line-height: 1.35; }

/* fleet <-> box link */
.wp-fig2-link { display: flex; flex-direction: column; gap: 0.3rem; padding: 0 0.1rem; }
.wp-fig2-link-row {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--wp-font-ui); font-size: 0.7rem; font-weight: 600; color: var(--wp-ink-2);
}
.wp-fig2-link-row i { width: 14px; height: 14px; flex: none; }
.wp-fig2-link-row em { font-style: normal; font-weight: 400; color: var(--wp-ink-3); }
.wp-fig2-link-row.out i { color: var(--wp-accent-soft); }
.wp-fig2-link-row.in { color: var(--wp-ink-3); }
.wp-fig2-link-row.in i { color: var(--blue, #58a6ff); }
.wp-fig2-link-note {
  display: inline-flex; align-items: center; gap: 0.3rem; align-self: flex-start;
  font-family: var(--wp-font-ui); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--wp-accent-soft);
  background: var(--wp-accent-bg); border-radius: var(--radius-xs); padding: 0.12rem 0.4rem; margin-top: 0.05rem;
}
.wp-fig2-link-note i { width: 11px; height: 11px; }

/* ----- Nectar Box container ----- */
.wp-fig2-box {
  position: relative; border: 1.5px solid color-mix(in oklab, var(--wp-accent) 50%, transparent);
  border-radius: var(--radius-lg); padding: 1.15rem 0.8rem 0.85rem;
  background: color-mix(in oklab, var(--wp-accent) 5%, var(--wp-surface));
  box-shadow: 0 0 22px var(--wp-mark-glow);
}
.wp-fig2-box-header {
  position: absolute; top: -0.62rem; left: 0.75rem;
  background: color-mix(in oklab, var(--wp-accent) 12%, var(--wp-surface));
  padding: 0.05rem 0.5rem; font-size: 0.6rem; color: var(--wp-accent-soft);
  border-radius: var(--radius-xs); border: 1px solid color-mix(in oklab, var(--wp-accent) 30%, transparent);
}
.wp-fig2-box-header i { width: 12px; height: 12px; }

/* customer K8s control plane node (in-LAN) sits above the on-site node */
.wp-fig2-k8swrap { display: flex; flex-direction: column; gap: 1.1rem; }
.wp-fig2-k8s .wp-fig2-ico i { color: var(--wp-accent-soft); }
.wp-fig2-joinlabel {
  display: inline-flex; align-items: center; gap: 0.3rem; align-self: center;
  font-family: var(--wp-font-ui); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--wp-ink-3);
}
.wp-fig2-joinlabel i { width: 12px; height: 12px; color: var(--wp-accent-soft); }

/* unit cards inside the Box (GPU compute, Brain) */
.wp-fig2-unit {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--wp-page-2); border: 1px solid var(--wp-rule); border-radius: var(--radius-md);
  padding: 0.8rem 0.7rem;
}
.wp-fig2-unit.is-brain { border-color: color-mix(in oklab, var(--wp-accent) 45%, transparent); }
.wp-fig2-unit .t { font-family: var(--wp-font-ui); font-weight: 600; font-size: 0.84rem; color: var(--wp-ink-strong); line-height: 1.25; }
.wp-fig2-unit .s { font-family: var(--wp-font-ui); font-size: 0.72rem; color: var(--wp-ink-3); margin-top: 0.2rem; line-height: 1.35; }

/* internal control loop between GPU and Brain */
.wp-fig2-ctrl {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin: 0.5rem 0; padding: 0.5rem 0.6rem;
  border-left: 2px dashed color-mix(in oklab, var(--wp-accent) 35%, transparent);
}
.wp-fig2-ctrl-row {
  display: flex; align-items: baseline; gap: 0.4rem;
  font-family: var(--wp-font-ui); font-size: 0.7rem; line-height: 1.35; color: var(--wp-ink-2);
}
.wp-fig2-ctrl-row i { width: 13px; height: 13px; flex: none; transform: translateY(2px); }
.wp-fig2-ctrl-row em { font-style: normal; color: var(--wp-ink-3); }
.wp-fig2-ctrl-row.up i { color: var(--wp-accent-soft); }
.wp-fig2-ctrl-row.down { color: var(--wp-ink-3); }
.wp-fig2-ctrl-row.down i { color: var(--blue, #58a6ff); }

/* "stays inside" reassurance strip */
.wp-fig2-stays {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; padding: 0.55rem 0.7rem;
  background: var(--wp-accent-bg); border: 1px solid color-mix(in oklab, var(--wp-accent) 24%, transparent);
  border-radius: var(--radius-md); color: var(--wp-ink-2);
  font-family: var(--wp-font-ui); font-size: 0.78rem; line-height: 1.4;
}
.wp-fig2-stays i { width: 15px; height: 15px; color: var(--wp-accent-soft); flex: none; }
.wp-fig2-stays strong { color: var(--wp-ink-strong); font-weight: 600; }

/* ----- two flows crossing the boundary ----- */
.wp-fig2-cross {
  display: flex; flex-direction: column; gap: 0.4rem;
  align-self: center; width: 100%; max-width: 460px;
  padding: 0.7rem 1.1rem; margin: 0;
  border-left: 2px dashed var(--wp-rule-2); border-right: 2px dashed var(--wp-rule-2);
}
.wp-fig2-cross-title {
  font-family: var(--wp-font-ui); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--wp-ink-3); text-align: center; margin-bottom: 0.05rem;
}
.wp-fig2-flow {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--wp-font-ui); font-size: 0.78rem; line-height: 1.4; color: var(--wp-ink-strong); font-weight: 500;
}
.wp-fig2-flow i { width: 15px; height: 15px; flex: none; transform: translateY(2px); color: var(--wp-accent-soft); }
.wp-fig2-flow em { font-style: normal; font-weight: 400; color: var(--wp-ink-3); }

/* ----- Nectar node, outside the LAN ----- */
.wp-fig2-nectar {
  display: flex; align-items: center; gap: 0.7rem;
  align-self: center; max-width: 420px;
  background: var(--wp-page-2); border: 1px solid color-mix(in oklab, var(--wp-accent) 40%, transparent);
  border-radius: var(--radius-lg); padding: 0.75rem 1.1rem;
  box-shadow: 0 0 18px var(--wp-mark-glow);
}
.wp-fig2-nectar img { filter: drop-shadow(0 0 8px var(--wp-mark-glow)); flex: none; }
.wp-fig2-nectar-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.wp-fig2-nectar-eyebrow { font-family: var(--wp-font-ui); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp-accent-soft); }
.wp-fig2-nectar .t { font-family: var(--wp-font-ui); font-weight: 700; font-size: 0.92rem; color: var(--wp-ink-strong); margin-top: 0.1rem; }
.wp-fig2-nectar .s { font-family: var(--wp-font-ui); font-size: 0.73rem; color: var(--wp-ink-2); line-height: 1.35; margin-top: 0.1rem; }

/* mode note under the boundary */
.wp-fig2-modenote {
  display: flex; align-items: flex-start; gap: 0.5rem;
  max-width: 640px; margin: 1rem auto 0; padding-top: 0.9rem; border-top: 1px solid var(--wp-rule);
  font-family: var(--wp-font-ui); font-size: 0.76rem; line-height: 1.5; color: var(--wp-ink-3);
}
.wp-fig2-modenote i { width: 14px; height: 14px; flex: none; margin-top: 0.15rem; color: var(--wp-ink-3); }

@media (max-width: 600px) {
  .wp-fig2-laninner { grid-template-columns: 1fr; gap: 0.55rem; }
  .wp-fig2-link { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; justify-content: center; padding: 0.2rem 0; }
  .wp-fig2-link-row i { transform: rotate(90deg); }
  .wp-fig2-box { margin-top: 0.3rem; }
}

/* =====================================================================
   Figure 3 — Brain conducts; the open source plays (CSS)
   ===================================================================== */
.wp-fig3 { margin: 1.8rem 0 1.2rem; }
.wp-fig3-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1.12fr) auto minmax(0,1fr);
  align-items: stretch; gap: 0.6rem;
  max-width: 100%; margin: 0 auto;
}
.wp-fig3-col { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.wp-fig3-grouplabel {
  font-family: var(--wp-font-ui); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--wp-ink-3); text-align: center; line-height: 1.3;
}
.wp-fig3-grouplabel.is-own { color: var(--wp-accent-soft); }

.wp-fig3-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.45rem; padding: 0.95rem 0.75rem;
  background: var(--wp-page-2); border: 1px solid var(--wp-rule); border-radius: var(--radius-lg);
}
.wp-fig3-card.is-own { border-color: color-mix(in oklab, var(--wp-accent) 38%, transparent); background: color-mix(in oklab, var(--wp-accent) 5%, var(--wp-surface)); }
.wp-fig3-card.is-hero {
  border: 1.5px solid color-mix(in oklab, var(--wp-accent) 55%, transparent);
  background: color-mix(in oklab, var(--wp-accent) 8%, var(--wp-surface));
  box-shadow: 0 0 24px var(--wp-mark-glow);
}
.wp-fig3-card.is-open { border-color: var(--wp-rule-2); }

.wp-fig3-ico {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: var(--wp-accent-bg); border: 1px solid color-mix(in oklab, var(--wp-accent) 26%, transparent);
  border-radius: var(--radius-md); color: var(--wp-accent-soft);
}
.wp-fig3-ico i { width: 19px; height: 19px; }
.wp-fig3-ico.is-hero { width: 42px; height: 42px; }
.wp-fig3-ico.is-hero i { width: 22px; height: 22px; }
.wp-fig3-ico.is-open { background: var(--wp-surface-2); border-color: var(--wp-rule-2); color: var(--wp-ink-2); }

.wp-fig3-list {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.18rem;
  font-family: var(--wp-font-ui); font-size: 0.78rem; color: var(--wp-ink-strong); line-height: 1.3;
}
.wp-fig3-card-t { font-family: var(--wp-font-ui); font-weight: 700; font-size: 0.92rem; color: var(--wp-ink-strong); line-height: 1.25; }
.wp-fig3-card-s { font-family: var(--wp-font-ui); font-size: 0.76rem; color: var(--wp-ink-2); line-height: 1.4; }
.wp-fig3-note { font-family: var(--wp-font-ui); font-size: 0.74rem; font-style: italic; color: var(--wp-ink-3); line-height: 1.4; margin-top: auto; }

/* brand wordmark chips */
.wp-fig3-marks { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; }
.wp-fig3-marks.is-stack { gap: 0.3rem; }
.wp-fig3-mark {
  font-family: var(--wp-font-ui); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--wp-ink-2); background: var(--wp-surface-2);
  border: 1px solid var(--wp-rule-2); border-radius: var(--radius-xs); padding: 0.12rem 0.4rem; white-space: nowrap;
}
.wp-fig3-mark.is-nvidia { color: var(--wp-accent-soft); border-color: color-mix(in oklab, var(--wp-accent) 34%, transparent); }

/* Forage chip nested inside Brain */
.wp-fig3-forage {
  width: 100%; margin-top: 0.15rem; padding: 0.55rem 0.6rem;
  background: var(--wp-accent-bg); border: 1px dashed color-mix(in oklab, var(--wp-accent) 42%, transparent);
  border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 0.2rem;
}
.wp-fig3-forage-name { display: inline-flex; align-items: center; gap: 0.3rem; justify-content: center; font-family: var(--wp-font-ui); font-weight: 700; font-size: 0.8rem; color: var(--wp-accent-soft); }
.wp-fig3-forage-name i { width: 13px; height: 13px; }
.wp-fig3-forage-desc { font-family: var(--wp-font-ui); font-size: 0.71rem; color: var(--wp-ink-2); line-height: 1.4; }

/* arrows */
.wp-fig3-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; color: var(--wp-accent-soft); padding-top: 1.3rem; }
.wp-fig3-arrow-label { font-family: var(--wp-font-ui); font-size: 0.62rem; font-weight: 600; color: var(--wp-ink-3); white-space: nowrap; }
.wp-fig3-arrow i { width: 20px; height: 20px; }

/* legend + Switzerland footer */
.wp-fig3-foot { max-width: 100%; margin: 1rem auto 0; padding-top: 0.9rem; border-top: 1px solid var(--wp-rule); display: flex; flex-direction: column; gap: 0.6rem; }
.wp-fig3-legendrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; }
.wp-fig3-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; }
.wp-fig3-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--wp-font-ui); font-size: 0.74rem; color: var(--wp-ink-2); white-space: nowrap; }
.wp-fig3-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.wp-fig3-dot.is-own { background: var(--wp-accent); }
.wp-fig3-dot.is-open { background: var(--wp-ink-3); }
.wp-fig3-switz { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; font-family: var(--wp-font-ui); font-size: 0.78rem; line-height: 1.5; color: var(--wp-ink-2); }
.wp-fig3-switz i { width: 15px; height: 15px; flex: none; margin-top: 0.15rem; color: var(--wp-accent-soft); }

@media (max-width: 620px) {
  .wp-fig3-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .wp-fig3-arrow { flex-direction: row; gap: 0.4rem; padding: 0.1rem 0; }
  .wp-fig3-arrow i { transform: rotate(90deg); }
  .wp-fig3-note { margin-top: 0.3rem; }
}

/* =====================================================================
   Property tiles (6-up icon + gloss row)
   ===================================================================== */
.wp-tiles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
  margin: 1.6rem 0;
}
.wp-tile {
  display: flex; flex-direction: column; gap: 0.25rem;
  background: var(--wp-surface); border: 1px solid var(--wp-rule);
  border-radius: var(--radius-lg); padding: 0.9rem 0.95rem;
}
.wp-tile-ico {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 0.3rem;
  background: var(--wp-accent-bg); border: 1px solid color-mix(in oklab, var(--wp-accent) 26%, transparent);
  border-radius: var(--radius-md); color: var(--wp-accent-soft);
}
.wp-tile-ico i { width: 17px; height: 17px; }
.wp-tile-title { font-family: var(--wp-font-ui); font-weight: 700; font-size: 0.92rem; color: var(--wp-ink-strong); letter-spacing: -0.01em; }
.wp-tile-gloss { font-family: var(--wp-font-ui); font-size: 0.8rem; color: var(--wp-ink-2); line-height: 1.4; }
@media (max-width: 720px) { .wp-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .wp-tiles { grid-template-columns: 1fr; } }

/* =====================================================================
   Reactions
   ===================================================================== */
.wp-react {
  margin: 1.6rem 0 0; padding: 0.55rem 0.85rem;
  background: var(--wp-surface); border: 1px solid var(--wp-rule);
  border-radius: var(--radius-lg);
}
.wp-react-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; }
.wp-react-prompt { font-size: 0.82rem; font-weight: 600; color: var(--wp-ink-2); margin-right: auto; white-space: nowrap; }
.wp-react-opts { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wp-react-btn {
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  padding: 0.3rem 0.6rem; min-height: 32px;
  background: var(--wp-page-2); border: 1px solid var(--wp-rule-2); border-radius: var(--radius-full);
  color: var(--wp-ink-2); font-family: var(--wp-font-ui); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.wp-react-btn i { width: 15px; height: 15px; }
.wp-react-btn:hover { color: var(--wp-ink-strong); border-color: var(--wp-ink-3); }
.wp-react-btn.is-active.is-lands { background: var(--green-bg); border-color: var(--status-ok-border); color: var(--status-ok-fg); }
.wp-react-btn.is-active.is-skeptical { background: var(--amber-bg); border-color: var(--status-warn-border); color: var(--status-warn-fg); }
.wp-react-btn.is-active.is-think { background: var(--blue-bg); border-color: var(--status-info-border); color: var(--status-info-fg); }

.wp-react-comment { margin-top: 0.85rem; }
.wp-react-addlink {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.5rem; min-height: 32px; white-space: nowrap;
  background: none; border: 0; color: var(--wp-ink-3); cursor: pointer;
  font-family: var(--wp-font-ui); font-size: 0.82rem; font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.wp-react-addlink:hover { color: var(--wp-accent-soft); }
.wp-react-addlink i { width: 15px; height: 15px; }
.wp-react-commentbox { margin-top: 0.55rem; }
.wp-react-textarea {
  width: 100%; resize: vertical; min-height: 2.6rem;
  background: var(--wp-page-2); border: 1px solid var(--wp-rule-2); border-radius: var(--radius-md);
  padding: 0.6rem 0.7rem; color: var(--wp-ink); font-family: var(--wp-font-ui); font-size: 0.86rem; line-height: 1.5;
}
.wp-react-textarea::placeholder { color: var(--wp-ink-3); }
.wp-react-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 0.6rem; margin-top: 0.55rem; }
@media (max-width: 560px) { .wp-react-identity { grid-template-columns: 1fr; } }
.wp-react-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.wp-react-input {
  width: 100%; min-height: 36px;
  background: var(--wp-page-2); border: 1px solid var(--wp-rule-2); border-radius: var(--radius-md);
  padding: 0.45rem 0.65rem; color: var(--wp-ink);
  font-family: var(--wp-font-ui); font-size: 0.84rem; line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.wp-react-input::placeholder { color: var(--wp-ink-3); }
.wp-react-input:focus { outline: none; border-color: var(--wp-accent); box-shadow: var(--shadow-ring-focus); }
.wp-react-field.has-error .wp-react-input { border-color: var(--red, #f85149); }
.wp-react-hint { font-family: var(--wp-font-ui); font-size: 0.72rem; color: var(--wp-ink-3); line-height: 1.4; }
.wp-react-err { font-family: var(--wp-font-ui); font-size: 0.72rem; color: var(--status-error-fg, #ff7b72); line-height: 1.4; }
.wp-react-textarea:focus { outline: none; border-color: var(--wp-accent); box-shadow: var(--shadow-ring-focus); }
.wp-react-commentfoot { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.5rem; justify-content: flex-end; }
.wp-react-saved { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--wp-accent-soft); opacity: 0; transition: opacity var(--dur-med) var(--ease-out); font-family: var(--wp-font-ui); }
.wp-react-saved.is-on { opacity: 1; }
.wp-react-saved i { width: 13px; height: 13px; }
.wp-react-savebtn {
  background: transparent; border: 1px solid var(--wp-rule-2); border-radius: var(--radius-md);
  padding: 0.35rem 0.8rem; color: var(--wp-ink); font-family: var(--wp-font-ui); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out);
}
.wp-react-savebtn:hover { background: var(--wp-surface-2); border-color: var(--wp-accent); }

/* =====================================================================
   Stat callouts (data figures pulled from prose)
   ===================================================================== */
.wp-stats { margin: 1.9rem 0; }
.wp-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.7rem; }
.wp-stat {
  background: var(--wp-surface); border: 1px solid var(--wp-rule);
  border-radius: var(--radius-lg); padding: 0.95rem 1.05rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.wp-stat-value { font-family: var(--wp-font-mono); font-size: 1.4rem; font-weight: 600; color: var(--wp-accent-soft); letter-spacing: -0.01em; line-height: 1.05; }
.wp-stat-label { font-family: var(--wp-font-ui); font-size: 0.8rem; color: var(--wp-ink-2); line-height: 1.4; }
.wp-stats-caption { font-family: var(--wp-font-ui); font-size: 0.78rem; color: var(--wp-ink-3); margin-top: 0.75rem; line-height: 1.5; }
.wp-stats-caption .mono { color: var(--wp-ink-2); }

/* =====================================================================
   Paste-in marker (scaffold slot for verbatim copy)
   ===================================================================== */
.wp-paste {
  margin: 0 0 1.6rem;
  background: var(--wp-surface);
  border: 1px dashed var(--wp-rule-2);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
}
.wp-paste-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wp-paste-head i { width: 17px; height: 17px; color: var(--wp-accent-soft); flex: none; }
.wp-paste-tag {
  font-size: 0.68rem; font-weight: 500; color: var(--wp-accent); white-space: nowrap;
  background: var(--wp-accent-bg); border: 1px solid color-mix(in oklab, var(--wp-accent) 30%, transparent);
  padding: 0.1rem 0.45rem; border-radius: var(--radius-xs);
}
.wp-paste-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp-ink-3); white-space: nowrap; }
.wp-paste-holds { font-family: var(--wp-font-ui); font-size: 0.95rem; font-weight: 600; color: var(--wp-ink-strong); margin: 0.7rem 0 0; line-height: 1.45; }
.wp-paste-note { font-family: var(--wp-font-ui); font-size: 0.82rem; color: var(--wp-ink-3); margin: 0.3rem 0 0; line-height: 1.5; }

/* =====================================================================
   Survey + companion + closing
   ===================================================================== */
.wp-closing { max-width: var(--wp-measure-wide); margin: 0 auto; padding: 3rem var(--wp-gutter) 0; }
.wp-closing-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .wp-closing-grid { grid-template-columns: 1fr; } }

.wp-surveycard {
  background: var(--wp-surface); border: 1px solid var(--wp-rule);
  border-radius: var(--radius-2xl); padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-md);
}
.wp-surveycard-eyebrow { font-family: var(--wp-font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp-accent-soft); }
.wp-surveycard-title { font-family: var(--wp-font-ui); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; color: var(--wp-ink-strong); margin: 0.4rem 0 0.3rem; }
.wp-surveycard-sub { font-family: var(--wp-font-ui); font-size: 0.9rem; color: var(--wp-ink-2); margin: 0 0 1.4rem; }

.wp-survey { display: flex; flex-direction: column; gap: 1.3rem; }
.wp-field { display: flex; flex-direction: column; gap: 0.5rem; }
.wp-label { display: block; font-family: var(--wp-font-ui); font-size: 0.86rem; font-weight: 600; color: var(--wp-ink-strong); line-height: 1.4; }
.wp-label-hint { font-weight: 400; font-size: 0.76rem; color: var(--wp-ink-3); margin-left: 0.45rem; }
.wp-req { color: var(--wp-accent-soft); margin-left: 0.12rem; }

.wp-select-wrap { position: relative; }
.wp-select, .wp-input, .wp-textarea {
  width: 100%; font-family: var(--wp-font-ui); font-size: 0.9rem; color: var(--wp-ink);
  background: var(--wp-page-2); border: 1px solid var(--wp-rule-2); border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.wp-select { height: 42px; appearance: none; padding-right: 2.2rem; cursor: pointer; }
.wp-select-chev { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--wp-ink-3); pointer-events: none; }
.wp-textarea { resize: vertical; min-height: 3.4rem; line-height: 1.5; }
.wp-input::placeholder, .wp-textarea::placeholder { color: var(--wp-ink-3); }
.wp-select:focus, .wp-input:focus, .wp-textarea:focus { outline: none; border-color: var(--wp-accent); box-shadow: var(--shadow-ring-focus); }
.wp-field.has-error .wp-select, .wp-field.has-error .wp-input, .wp-field.has-error .wp-textarea { border-color: var(--red, #f85149); }
.wp-error { font-family: var(--wp-font-ui); font-size: 0.76rem; color: var(--status-error-fg, #ff7b72); }

.wp-chipset { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wp-multichip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 38px;
  padding: 0.4rem 0.75rem; background: var(--wp-page-2);
  border: 1px solid var(--wp-rule-2); border-radius: var(--radius-full);
  color: var(--wp-ink-2); font-family: var(--wp-font-ui); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; text-align: left; transition: all var(--dur-fast) var(--ease-out);
}
.wp-multichip:hover { color: var(--wp-ink-strong); border-color: var(--wp-ink-3); }
.wp-multichip.is-on { background: var(--green-bg); border-color: var(--status-ok-border); color: var(--status-ok-fg); }
.wp-multichip-num { font-size: 0.7rem; color: var(--wp-accent); }
.wp-multichip.is-on .wp-multichip-num { color: var(--status-ok-fg); }
.wp-multichip-check { width: 14px; height: 14px; }

.wp-toggle { display: inline-flex; gap: 0.4rem; }
.wp-toggle-btn {
  min-width: 64px; min-height: 40px; padding: 0 1rem;
  background: var(--wp-page-2); border: 1px solid var(--wp-rule-2); border-radius: var(--radius-md);
  color: var(--wp-ink-2); font-family: var(--wp-font-ui); font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.wp-toggle-btn:hover { border-color: var(--wp-ink-3); color: var(--wp-ink-strong); }
.wp-toggle-btn.is-on { background: var(--green-bg); border-color: var(--status-ok-border); color: var(--status-ok-fg); }

.wp-field-email { opacity: 1; }

.wp-survey-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: 0.4rem; }
.wp-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 44px; padding: 0 1.2rem;
  background: var(--green-500, #3fb950); border: 1px solid var(--green-600, #2ea043); border-radius: var(--radius-md);
  color: #04130a; font-family: var(--wp-font-ui); font-size: 0.92rem; font-weight: 700; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.wp-btn-primary:hover { background: var(--green-400, #4ac35a); }
.wp-btn-primary:active { background: var(--green-700, #238636); }
.wp-btn-primary i { width: 17px; height: 17px; }
.wp-survey-note { font-family: var(--wp-font-ui); font-size: 0.76rem; color: var(--wp-ink-3); }

.wp-survey-done { text-align: center; padding: 1.5rem 0.5rem; }
.wp-survey-done-mark { width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); border: 1px solid var(--status-ok-border); }
.wp-survey-done-mark i { width: 24px; height: 24px; color: var(--status-ok-fg); }
.wp-survey-done-title { font-family: var(--wp-font-ui); font-size: 1.3rem; font-weight: 700; color: var(--wp-ink-strong); margin: 0 0 0.4rem; }
.wp-survey-done-body { font-family: var(--wp-font-ui); font-size: 0.9rem; color: var(--wp-ink-2); margin: 0 0 1rem; }
.wp-survey-done-body .mono { color: var(--wp-accent-soft); }
.wp-link-btn { background: none; border: 0; color: var(--wp-ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: var(--wp-font-ui); font-size: 0.82rem; }
.wp-link-btn:hover { color: var(--wp-ink); }

/* Companion card */
.wp-companion {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  text-decoration: none; color: inherit;
  background: var(--wp-surface); border: 1px solid var(--wp-rule);
  border-left: 3px solid var(--wp-accent); border-radius: var(--radius-xl);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.wp-companion:hover { box-shadow: var(--shadow-md); border-left-color: var(--wp-accent-soft); }
.wp-companion:hover .wp-companion-go { transform: translateX(3px); color: var(--wp-accent-soft); }
.wp-companion-spine { width: 44px; height: 56px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--wp-page-2); border: 1px solid var(--wp-rule); }
.wp-companion-body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.wp-companion-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp-ink-3); }
.wp-companion-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.015em; color: var(--wp-ink-strong); }
.wp-companion-desc { font-size: 0.84rem; color: var(--wp-ink-2); line-height: 1.45; margin-top: 0.15rem; }
.wp-companion-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.wp-companion-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: var(--wp-ink-3); }
.wp-companion-tag i { width: 13px; height: 13px; }
.wp-companion-go { width: 34px; height: 34px; display: grid; place-items: center; color: var(--wp-ink-3); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.wp-companion-go i { width: 20px; height: 20px; }

.wp-aside-stack { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 4.5rem; }
@media (max-width: 900px) { .wp-aside-stack { position: static; } }

/* footer — sitemap, in the essay's paper vocabulary */
.wp-foot {
  max-width: var(--wp-measure-wide); margin: 4rem auto 0; padding: 2.5rem var(--wp-gutter) 3rem;
  border-top: 1px solid var(--wp-rule);
  font-family: var(--wp-font-ui); font-size: 0.8rem; color: var(--wp-ink-3);
}
.wp-foot-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem 4rem;
}
.wp-foot-brand-col { max-width: 23rem; min-width: 15rem; }
.wp-foot-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--wp-ink-2); font-weight: 600; font-size: 0.95rem; }
.wp-foot-brand img { width: 18px; height: 18px; }
.wp-foot-tag { margin: 0.85rem 0 0; font-size: 0.82rem; line-height: 1.6; color: var(--wp-ink-3); max-width: 34ch; }
.wp-foot-cols { display: flex; gap: 4rem; }
.wp-foot-h {
  margin: 0 0 1rem; font-family: var(--wp-font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp-ink-2);
}
.wp-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.wp-foot-col a {
  color: var(--wp-ink-3); text-decoration: none; font-size: 0.85rem;
  transition: color var(--dur-fast, 150ms) var(--ease-out, ease);
}
.wp-foot-col a:hover { color: var(--wp-accent-soft); }
.wp-foot-col a[aria-current="page"] { color: var(--wp-ink); font-weight: 600; cursor: default; }
.wp-foot-col a[aria-current="page"]:hover { color: var(--wp-ink); }
.wp-foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1.5rem;
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--wp-rule);
  font-size: 0.78rem; color: var(--wp-ink-3);
}
.wp-foot-legal { display: flex; gap: 1.5rem; }
.wp-foot-legal a { color: var(--wp-ink-3); text-decoration: none; transition: color var(--dur-fast, 150ms) var(--ease-out, ease); }
.wp-foot-legal a:hover { color: var(--wp-accent-soft); }
@media (max-width: 600px) {
  .wp-foot-top { flex-direction: column; gap: 2rem; }
  .wp-foot-cols { gap: 3rem; }
}


/* =====================================================================
   Responsive figures — horizontal scroll on narrow viewports
   Wrap any dark figure card in  .wp-figscroll-outer > .wp-figscroll .
   The card keeps its natural design width (--wp-fig-minw) and never
   compresses; on narrow screens the reader scrolls the card sideways.
   The figcaption stays OUTSIDE the scroller (full-width, below).
   ===================================================================== */
.wp-figscroll-outer { position: relative; }
.wp-figscroll {
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--wp-rule-2, var(--wp-rule)) transparent;
  padding-bottom: 2px;
}
/* the card inside never shrinks below its natural design width */
.wp-figscroll > * { min-width: var(--wp-fig-minw, 760px); }
/* thin styled scrollbar */
.wp-figscroll::-webkit-scrollbar { height: 8px; }
.wp-figscroll::-webkit-scrollbar-track { background: transparent; }
.wp-figscroll::-webkit-scrollbar-thumb { background: var(--wp-rule-2, var(--wp-rule)); border-radius: 999px; }
.wp-figscroll:hover::-webkit-scrollbar-thumb { background: var(--wp-ink-3); }
/* right / left fade hints — shown only when actually scrollable & not at that edge */
.wp-figscroll-outer::before,
.wp-figscroll-outer::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 42px;
  pointer-events: none; opacity: 0; z-index: 3;
  transition: opacity 150ms var(--ease-out, ease);
}
.wp-figscroll-outer::after  { right: 0; background: linear-gradient(to right, transparent, var(--wp-page)); }
.wp-figscroll-outer::before { left: 0;  background: linear-gradient(to left,  transparent, var(--wp-page)); }
.wp-figscroll-outer.can-scroll:not(.at-end)::after    { opacity: 1; }
.wp-figscroll-outer.can-scroll:not(.at-start)::before  { opacity: 1; }

/* inside a scroller the card holds its DESKTOP layout at every viewport —
   viewport-keyed mobile reflow rules must NOT fire on a wide scrolled card */
.wp-figscroll .wp-tiles { grid-template-columns: repeat(3, 1fr); }
.wp-figscroll .wp-fig2-laninner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.35fr); gap: 0.65rem; }
.wp-figscroll .wp-fig2-link { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0.3rem; padding: 0 0.1rem; justify-content: flex-start; }
.wp-figscroll .wp-fig2-link-row i { transform: none; }
.wp-figscroll .wp-fig2-box { margin-top: 0; }
