/* PROJECT 100 — canonical shared stylesheet for the published static pages. */
/* ===== 00-tokens.css ===== */
/* ==========================================================================
   PROJECT 100 · design tokens
   One place for every colour, size and radius. Components never use raw
   colours; they use these variables, so light and dark stay in sync.
   Theme resolution: <html data-theme="light|dark"> wins, otherwise the OS
   preference (prefers-color-scheme) decides.
   ========================================================================== */

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-2: #eeeeee;
  --surface-3: #e2e2e2;
  --inverse: #111217;          /* always-dark surface (hero, media overlays) */
  --inverse-text: #ffffff;

  --nav-bg: #e2e2e2;
  --nav-tab: #ffffff;
  --nav-edge: #a6a6a6;

  /* text */
  --signal-ink: #000000;
  --text: #000000;
  --text-2: #000000;
  --muted: var(--text-2);

  /* lines */
  --line: #d2d2d2;
  --line-strong: #a3a3a3;

  /* brand */
  --accent: #a83200;           /* orange used for text/links on --surface (5.7:1 on white) */
  --accent-strong: #c2410c;    /* orange used as a filled background (white text 5.2:1) */
  --accent-ink: #ffffff;       /* text on filled orange */
  --accent-soft: #fdeadd;
  --brand-orange: #e8500a;     /* the bright card orange: glows, borders, decoration only */
  --amber: #ffcc00;            /* the card amber: lines, bars, text on dark */
  --accent-2: var(--text);         /* teal, secondary data colour */
  --accent-2-soft: var(--surface-2);


  /* Clear reading hierarchy: neutral text/surfaces; orange identifies actions. */
  --section-signal: var(--signal-ink);
  --section-signal-soft: var(--surface-2);
  --section-signal-line: var(--line-strong);
  --section-signal-wash: var(--surface);
  --section-frame: var(--line-strong);
  --section-sheen: linear-gradient(180deg,var(--surface-3),var(--surface-2));
  --section-shadow: 0 3px 0 rgb(0 0 0 / .18);

  /* status */
  --ok: #0f7a4b;
  --ok-soft: #def4e9;
  --warn: #8f5a00;
  --warn-soft: #fff1d1;
  --danger: #b4162b;
  --danger-soft: #fbe3e6;

  --focus: #1b5fe0;
  --scrim: rgba(10, 11, 15, .62);
  --glow: color-mix(in srgb, var(--brand-orange) 62%, transparent);        /* orange tab glow */
  --glow-wash: color-mix(in srgb, var(--brand-orange) 16%, transparent);   /* faint fill above the accent line */
  --shadow-1: 0 1px 2px rgba(20, 20, 30, .06), 0 1px 1px rgba(20, 20, 30, .04);
  --shadow-2: 0 8px 24px rgba(20, 20, 30, .10), 0 2px 6px rgba(20, 20, 30, .06);
  --shadow-3: 0 24px 60px rgba(10, 11, 15, .28);

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --step--2: clamp(.72rem, .70rem + .1vw, .78rem);
  --step--1: clamp(.82rem, .80rem + .1vw, .875rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + .75vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.5vw, 2.4rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.5vw, 3.4rem);
  --step-5: clamp(2.7rem, 1.9rem + 4vw, 4.6rem);

  /* space (4px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem;

  /* shape */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 20px;

  /* layout */
  --gutter: clamp(1rem, 4vw, 2rem);
  --content-w: 100%;          /* 1280px: same column as the header, layout and footer */
  --prose-w: 44rem;
  --rail-w: 15rem;
  --head-h: 6rem;            /* header row 1 */
  --tabs-h: 5rem;           /* header row 2 */
  --header-h: calc(var(--head-h) + var(--tabs-h));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* dark palette: system dark (unless the visitor chose light) ... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #080808;
    --nav-bg: #030303;
    --nav-tab: #242424;
    --nav-edge: #555555;
    --surface: #111111;
    --surface-2: #191919;
    --surface-3: #242424;
    --inverse: #080808;
    --inverse-text: #ffffff;
    --signal-ink: #ffcc00;
    --text: #ffffff;
    --text-2: #ffffff;
    --muted: var(--text-2);
    --line: #303030;
    --line-strong: #4a4a4a;
    --accent: #ff8800;
    --accent-strong: #c2410c;
    --accent-ink: #ffffff;
    --accent-soft: #2b1a0e;
    --accent-2: var(--text);
    --accent-2-soft: var(--surface-2);
    --section-signal: var(--signal-ink);
    --section-signal-soft: var(--surface-2);
    --section-signal-line: var(--line-strong);
    --section-shadow: 0 3px 0 rgb(0 0 0 / .18);
    --ok: #4ad394;
    --ok-soft: #10281d;
    --warn: #f2b84b;
    --warn-soft: #2b2110;
    --danger: #ff6b7d;
    --danger-soft: #2c1318;
    --focus: #7fa6ff;
    --scrim: rgba(0, 0, 0, .72);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 8px 24px rgba(0, 0, 0, .5);
    --shadow-3: 0 24px 60px rgba(0, 0, 0, .7);
  }
}

/* ... and the explicit dark choice (same values) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080808;
    --nav-bg: #030303;
    --nav-tab: #242424;
    --nav-edge: #555555;
  --surface: #111111;
  --surface-2: #191919;
  --surface-3: #242424;
  --inverse: #080808;
  --inverse-text: #ffffff;
  --signal-ink: #ffcc00;
    --text: #ffffff;
  --text-2: #ffffff;
  --muted: var(--text-2);
  --line: #303030;
  --line-strong: #4a4a4a;
  --accent: #ff8800;
  --accent-strong: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: #2b1a0e;
  --accent-2: var(--text);
  --accent-2-soft: var(--surface-2);
    --section-signal: var(--signal-ink);
    --section-signal-soft: var(--surface-2);
    --section-signal-line: var(--line-strong);
    --section-shadow: 0 3px 0 rgb(0 0 0 / .18);
  --ok: #4ad394;
  --ok-soft: #10281d;
  --warn: #f2b84b;
  --warn-soft: #2b2110;
  --danger: #ff6b7d;
  --danger-soft: #2c1318;
  --focus: #7fa6ff;
  --scrim: rgba(0, 0, 0, .72);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .5);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, .7);
}

/* ===== 05-fonts.css ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-400-800.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== 10-base.css ===== */
/* ==========================================================================
   Base: reset, typography, links, forms, tables, details, focus.
   Element selectors only. No page or component knowledge lives here.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--step-0)/1.65 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-3);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 750;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
h1 { font-size: var(--step-4); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 { font-size: var(--step-0); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li + li { margin-top: .3em; }
dl { margin: 0 0 var(--s-4); }
dt { font-weight: 650; }
dd { margin: 0 0 var(--s-2); }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
small { font-size: var(--step--1); }
strong, b { font-weight: 700; }
mark { background: var(--warn-soft); color: inherit; padding: 0 .15em; border-radius: 3px; }
code, kbd, samp { font-family: var(--font-mono); font-size: .9em; }

a {
  color: var(--accent);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
a:hover { text-decoration-thickness: .14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--accent-strong); color: var(--accent-ink); }

/* ---- tables ---------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 700; color: var(--muted); padding: 0 0 var(--s-2); font-size: var(--step--2); letter-spacing: .06em; text-transform: uppercase; }
th, td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: var(--step--2); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--line-strong); white-space: nowrap; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }

/* ---- details / summary ---------------------------------------------- */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ---- forms ----------------------------------------------------------- */
input[type="search"], input[type="text"], select {
  min-height: 2.75rem;
  padding: 0 .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
}

/* ---- utilities ------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed; left: var(--s-3); top: var(--s-3); z-index: 200;
  padding: .6rem 1rem; border-radius: var(--r-2);
  background: var(--accent-strong); color: var(--accent-ink); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content-w)); margin-inline: auto; }
.prose { max-width: var(--prose-w); }
.no-scroll { overflow: hidden; }



/* ===== 20-shell.css ===== */
/* ==========================================================================
   Shell: header, folder tabs, sub-navigation, page layout, pager, footer,
   and the single site menu. Generated markup lives in src/templates/page.html.
   ========================================================================== */

/* Accessible PROJECT_100 visual wordmark. Descriptive text is unchanged. */
.brand-wordmark{display:inline-flex;align-items:baseline;white-space:nowrap;font:inherit;letter-spacing:inherit;line-height:inherit;vertical-align:baseline;}
.brand-wordmark__r{display:inline-block;transform:scaleX(-1);transform-origin:center;}
.brand-wordmark__number{color:var(--brand-wordmark-accent,#ff8800);}
.mode-folder__brand{white-space:nowrap;}
@media(max-width:1023px){.theme-switch{width:40px;height:44px;min-height:44px;grid-template-rows:18px 18px;gap:4px;padding:2px 0;}.theme-switch__sun{width:18px;height:18px;top:1px;}.theme-switch__moon{width:18px;height:18px;bottom:1px;}.home-hero__inner>*,.home-hero h1{max-width:none;}}

/* ---- header ---------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: transform .28s var(--ease);
}
.site-head[data-hidden="true"] { transform: translateY(calc(-100% - 2px)); pointer-events: none; }

.site-head__bar {
  width: min(100% - 2 * var(--gutter), var(--content-w));
  height: var(--head-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* Authored shell identity: mirror decorative geometry only; content order and images stay unchanged. */
body[data-navigation-pattern="mirrored"] { --nav-folder-shape:polygon(100% 0,62% 0,calc(62% - 8px) 8px,10px 8px,0 18px,0 100%,100% 100%); --nav-rail-left:auto; --nav-rail-right:0; --nav-sheen-angle:245deg; --mode-radius:22px 4px 4px 4px; --mode-radius-mobile:16px 3px 3px 3px; --mode-glow-origin:0% 0%; --hud-hero-radius:14px 4px 14px 4px; --hud-chip-cut:polygon(0 0,100% 0,100% 100%,12px 100%); --hud-chip-edge:-2px; }

/* The two mode folders are the brand, home links and mode selector. */
.mode-folders { display: grid; grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr); gap: .65rem; flex: 1; min-width: 0; max-width: none; align-self: stretch; padding-block: .45rem; }
.mode-folder { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; align-content:center; align-items:center; column-gap:1rem; row-gap:.3rem; padding: .65rem 1.2rem; border: 2px solid #626975; --mode-rail-colour:#818996; border-left:2px solid #626975; border-radius:4px;background:#101318; color:#ffffff; box-shadow: inset 0 0 0 3px #101318,inset 0 0 0 4px #ffffff18; text-decoration: none; transition: transform .22s ease,filter .22s ease; }
.mode-folder:hover { color:#ffffff; text-decoration: none; filter: brightness(1.16); transform: translateY(-2px); }
.mode-folder:focus-visible { outline: 3px solid var(--text); outline-offset: -5px; }
.mode-folder__state { grid-column:1; display: flex; align-items: center; gap: .4rem; font-size: .7rem; line-height: 1.3; font-weight: 750; letter-spacing: .04em; }
.mode-folder__state i { width: .42rem; height: .42rem; border: 1px solid currentColor; border-radius: 50%; flex: none; }
.mode-folder__brand { grid-column:1; min-width:0; font-size: clamp(1.25rem,2.7vw,2rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.mode-folder__brand b { color: #ff8800; }
.mode-folder__description { grid-column:2; grid-row:1 / 3; display:grid; align-content:center; gap:.3rem; padding:.2rem 0 .2rem .85rem; border-left:1px solid #ff914d70; font-size:.72rem; line-height:1.35; color:#ffffff; max-width:11rem; }
.mode-folder__description::before { content:"THE JOURNEY"; color:#ffcc00; font-size:.56rem; font-weight:850; letter-spacing:.16em; }
.mode-folder[data-space="protocol"] .mode-folder__description::before { content:"THE METHOD"; }
@media(max-width:1199px) { .mode-folder { grid-template-columns:minmax(0,1fr);background:#101318;} .mode-folder__description { display:none; } }
.mode-folder[aria-current] {background:#101318; border-color: #ff8800; --mode-rail-colour:#ff6d16; box-shadow: inset 0 0 0 3px #111318,inset 0 0 0 4px #ff914d66,0 2px 14px #e8500a18; }
/* The two space panels mirror around the centre controls, regardless of active mode. */
.mode-folder[data-space="main"] { --mode-glow-origin:0% 0%; border-left:var(--mode-rail-width,8px) solid var(--mode-rail-colour); border-radius:var(--mode-corner,22px) 4px 4px 4px; }
.mode-folder[data-space="protocol"] { --mode-glow-origin:100% 0%; border-right:var(--mode-rail-width,8px) solid var(--mode-rail-colour); border-radius:4px var(--mode-corner,22px) 4px 4px; }
.mode-folder[aria-current] .mode-folder__brand b { color: #ff8800; }
.mode-folder[aria-current] .mode-folder__state i { background: #fff; box-shadow: 0 0 8px #ffffff80; }
.mode-folder[aria-current]::after { content: ""; position: absolute; pointer-events: none; inset: 0; background: linear-gradient(110deg,transparent 35%,#ffffff18 50%,transparent 65%); transform: translateX(-140%); animation: mode-arrive .8s ease-out .15s 1 both; }
@keyframes mode-arrive { to { transform: translateX(140%); } }
@media(prefers-reduced-motion:reduce) { .mode-folder { transition: none;background:#101318;} .mode-folder:hover { transform: none; } .mode-folder[aria-current]::after { animation: none; display: none; } }

.site-head__actions { margin:0; display:grid; place-items:center; align-self:center; min-height:82px; padding:0; border:0; background:none; box-shadow:none; }
.theme-switch { position:relative; display:grid;grid-template-rows:18px 18px;gap:4px; place-items:center;width:40px;height:44px;padding:2px 0; border:0; border-radius:0; background:none; color:var(--text); cursor:pointer; -webkit-tap-highlight-color:transparent; }
.theme-switch svg { display:block; width:28px; height:28px; transition:color .25s,transform .25s,filter .25s; }
.theme-switch__track { position:absolute; inset:23px 4px; pointer-events:none; background:linear-gradient(#8b715c,#8b715c) left center / 2px 100% no-repeat,linear-gradient(#8b715c,#8b715c) right center / 2px 100% no-repeat; opacity:.45; }
.theme-switch__sun { color:#b84300; transform:rotate(0deg); filter:drop-shadow(0 0 5px rgb(234 105 20 / .25));width:18px;height:18px;}
.theme-switch__moon { color:#000000;width:18px;height:18px;}
.theme-switch[aria-checked="true"] .theme-switch__sun { color:#b9916e; filter:none; transform:rotate(30deg) scale(.84); }
.theme-switch[aria-checked="true"] .theme-switch__moon { color:#ffffff; filter:drop-shadow(0 0 5px rgb(255 211 147 / .35)); }
.theme-switch .theme-switch__indicator { position:absolute; left:0;top:5px; width:10px; height:12px; color:#d45205; z-index:1; transform:translateY(0); transition:transform .25s,color .25s; filter:none; }
.theme-switch .theme-switch__indicator--opposite { left:auto; right:0; }
.theme-switch[aria-checked="true"] .theme-switch__indicator { transform:translateY(22px); color:#ffb273; }
.theme-switch:hover svg { filter:drop-shadow(0 0 6px rgb(238 137 66 / .4)); }
.theme-switch:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { .theme-switch svg,.theme-switch .theme-switch__indicator { transition:none; } }



.site-switch {
  display: none;
  align-items: center;
  gap: .4rem;
  min-height: 2.5rem;
  padding: 0 .8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  color: var(--text);
  font-size: var(--step--2);
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: var(--surface);
}
.site-switch:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.site-switch__glyph { color: var(--accent); font-size: 1.1em; line-height: 1; }
@media (min-width: 400px) { .site-switch { display: inline-flex; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
/* Theme switching is an icon action, visually separate from folder buttons. */
#themeToggle { background: transparent; border-color: transparent; box-shadow: none; }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.icon-btn .i-moon { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: block; }
}
.menu-btn { width: auto; padding: 0 .8rem; gap: .5rem; grid-auto-flow: column; background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.menu-btn:hover { background: var(--accent-strong); color: var(--accent-ink); filter: brightness(1.08); }
.menu-btn__label { font-size: var(--step--1); font-weight: 700; }
@media (max-width: 479px) { .menu-btn { width: 2.75rem; min-height: 2.75rem; padding: 0; } .menu-btn__label { display: none; } }

/* ---- folder navigation: one authored source, shared by every page ----- */
.tabs {
  border-bottom: 1px solid var(--nav-edge);
  background: var(--nav-bg);
}
.tabs__list {display:grid;flex-wrap:wrap;gap:.4rem;
  width: min(100% - 2 * var(--gutter),var(--content-w));
  margin: 0 auto;
  padding: .5rem 0 .65rem;
  list-style: none;overflow-x:visible;
  overscroll-behavior-x: contain;scroll-snap-type:none;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));overflow:visible;}
.tabs__list::-webkit-scrollbar { height: 3px; }
.tabs__list::-webkit-scrollbar-thumb { background: var(--line-strong); }
.tabs__list li { margin: 0;flex:initial; display: flex; scroll-snap-align: start;min-width:0;}
.tab {
  --folder-colour: #f07832;
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;min-width:0;min-height:44px;padding:.65rem .6rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);font-size:.875rem;line-height:1.25;
  font-weight: 750;
  text-align: center;
  text-decoration: none;white-space:normal;
  transition: color .18s;width:100%;overflow-wrap:anywhere;word-break:normal;height:auto;}
.tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--nav-sheen-angle,115deg), rgb(255 255 255 / .12), transparent 46%), linear-gradient(180deg, color-mix(in srgb,var(--nav-tab) 88%,white), var(--nav-tab) 45%, color-mix(in srgb,var(--nav-tab) 76%,black));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .24), inset 0 -3px 0 rgb(0 0 0 / .3), inset 0 0 0 1px var(--nav-edge);
  clip-path:var(--nav-folder-shape,polygon(0 0,38% 0,calc(38% + 8px) 8px,calc(100% - 10px) 8px,100% 18px,100% 100%,0 100%));
  pointer-events: none;
  transition: background .18s;
}
.tab::after {
  content: "";
  position: absolute;
  inset: 0 var(--nav-rail-right,auto) 0 var(--nav-rail-left,0);
  width: 4px;
  background: var(--folder-colour);
  opacity: 1;
  pointer-events: none;
  transition: opacity .18s,box-shadow .18s;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab:hover::before { background: linear-gradient(var(--nav-sheen-angle,115deg),rgb(255 255 255 / .2),transparent 50%), linear-gradient(180deg,color-mix(in srgb,var(--nav-tab) 78%,var(--text)),var(--nav-tab)); }
.tab:hover::after { opacity: .85; }
.tab[aria-current="page"] { color: var(--accent-ink); font-weight: 800; }
.tab[aria-current="page"]::before {
  background: linear-gradient(var(--nav-sheen-angle,115deg),rgb(255 255 255 / .12),transparent 46%), linear-gradient(180deg,var(--accent-strong),color-mix(in srgb,var(--accent-strong) 82%,black));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -3px 0 rgb(0 0 0 / .3), inset 0 0 0 1px var(--brand-orange);
}
.tab[aria-current="page"]::after {
  opacity: 1;
  box-shadow: 0 0 10px color-mix(in srgb,var(--folder-colour) 65%,transparent);
}
.tab__label { position: relative;white-space:normal;overflow-wrap:anywhere;word-break:normal;min-width:0;max-width:100%;width:100%;line-height:1.25;display:block;}
.tab[aria-current="page"] .tab__label { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: .38em; }
.tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* Structural navigation uses the original PROJECT 100 brand palette. */
[data-folder]{--folder-colour:var(--brand-orange);}
@media(min-width:1100px){
  :root{--tabs-h:4.75rem;}
  body[data-site="protocol"]{--tabs-h:8.75rem;--header-h:calc(var(--head-h) + var(--tabs-h));}
  .tabs__list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.4rem;overflow:visible;scroll-snap-type:none;overflow-x:visible;flex-wrap:wrap;}
  body[data-site="protocol"] .tabs__list{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.4rem;overflow:visible;overflow-x:visible;}
  .tabs__list li{min-width:0;flex:initial;}
  .tab{min-width:0;width:100%;min-height:44px;padding-inline:.7rem;white-space:normal;font-size:.875rem;line-height:1.25;padding:.65rem .6rem;overflow-wrap:anywhere;word-break:normal;height:auto;}
}
@media(max-width:719px) {
  .tabs__list {gap:.4rem; padding-top: .35rem; padding-bottom: .55rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));overflow:visible;overflow-x:visible;flex-wrap:wrap;scroll-snap-type:none;}
  .tabs__list li {flex:initial;min-width:0;}
  .tab {min-width:0;min-height:44px;font-size:.875rem; padding-inline: 1rem;width:100%;white-space:normal;line-height:1.25;padding:.65rem .6rem;overflow-wrap:anywhere;word-break:normal;height:auto;}
}
@media(prefers-reduced-motion:reduce) {
  .tab,.tab::before,.tab::after { transition: none; }
}

/* ---- layout ---------------------------------------------------------- */
.layout {
  flex: 1;
  width: min(100% - 2 * var(--gutter), var(--content-w));
  margin-inline: auto;
  padding-block: var(--s-5) var(--s-8);
}
.layout--flush { width: 100%; padding: 0 0 var(--s-8); }
main.main { min-width: 0; outline: none; }
.layout--rail main.main .wrap { width: 100%; }


/* Authored overview navigation and optional equipment reference. */
.training-destinations { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem; margin-bottom:1rem;margin:.75rem 0;padding:.45rem;background:#172d3a;border:1px solid #ffcc00;border-radius:.5rem;}
.training-destinations a { display:flex;flex-direction:column;gap:0;padding:.5rem .4rem;min-height:44px;border:1px solid #ff8a3d;border-left:1px solid #ff8a3d;background:#ffffff;color:#111111;align-items:center;justify-content:center;text-decoration:none;min-width:0;text-align:center;border-radius:.3rem;font-size:.8125rem;line-height:1.25;overflow-wrap:anywhere;}
.training-destinations strong {font-size:inherit;color:inherit;font-weight:800;line-height:inherit;white-space:normal;min-width:0;}
.training-destinations [aria-current] {box-shadow:none;background:#ffcc00;color:#000000;border-color:#ffcc00;}
.collection-controls { margin-block:1rem; }
.collection-controls [data-filter-status] { margin-block:.5rem; }
[data-cat][hidden] { display:none !important; }
.programme-reference { margin-block:1rem; border:1px solid var(--line-strong); border-left:4px solid var(--brand-orange); border-radius:.5rem; background:var(--surface); }
.programme-reference>summary { padding:1rem; min-height:56px; cursor:pointer; font-weight:750; }
.programme-reference>summary span { display:block; margin-top:.3rem; font-size:.85rem; color:var(--text-2); }
.programme-reference__body { padding:1rem; }
@media(max-width:480px) { .training-destinations {grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;margin:.75rem 0;padding:.45rem;background:#172d3a;border:1px solid #ffcc00;border-radius:.5rem;} .training-destinations a {min-height:44px;padding:.5rem .4rem;flex-direction:column; flex-wrap:wrap;align-items:center;gap:0;justify-content:center;text-decoration:none;min-width:0;text-align:center;border:1px solid #ff8a3d;border-left:1px solid #ff8a3d;border-radius:.3rem;background:#ffffff;color:#111111;font-size:.8125rem;line-height:1.25;overflow-wrap:anywhere;} }

/* ---- sub-navigation: the left vertical menu (all sizes) / chips only on pages that have no rail */
.layout--rail { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.rail {
  position: sticky; top: calc(var(--header-h) + var(--s-4)); max-height: calc(100dvh - var(--header-h) - var(--s-6));
  overflow-y: auto; padding: var(--s-4) var(--s-3); border: 1px solid var(--line); border-inline-start: 3px solid var(--folder-colour,var(--accent));
  border-radius: 0 0 8px 0; background: var(--surface); scrollbar-width: thin; transition: top .45s var(--ease);
}
.rail__title {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px dashed var(--line-strong);
  font-size: var(--step--2);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.rail__title svg { width: 1.1rem; height: 1.1rem; flex: none; }
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.rail li { margin: 0; }
.rail a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem .7rem .5rem .55rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 0 7px 0;
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.rail__num { font: 800 .68rem/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.rail a:hover { color: var(--text); background: var(--surface-2); border-left-color: var(--folder-colour,var(--accent)); text-decoration: none; }
.rail a[aria-current="page"], .rail a.is-active {
  background: color-mix(in srgb,var(--folder-colour,var(--accent)) 9%,var(--surface));
  border-color: var(--line); border-left-color: var(--folder-colour,var(--accent)); color: var(--text);
  box-shadow: inset 3px 0 0 var(--folder-colour,var(--accent));
}
.rail a[aria-current="page"] .rail__num, .rail a.is-active .rail__num { color: inherit; opacity: .85; }
.site-head[data-hidden="true"] ~ .layout .rail { top: var(--s-4); max-height: calc(100dvh - var(--s-6)); }

/* phones keep the same vertical menu, as a slim column of numbered file tabs */
@media (max-width: 719px) {
  .layout--rail { grid-template-columns: 5.9rem minmax(0, 1fr); gap: .5rem; width: min(100% - .75rem, 80rem); }
  .rail { padding: .5rem .3rem; border-radius: var(--r-2); max-height: calc(100dvh - var(--header-h) - 7.5rem); }
  .site-head[data-hidden="true"] ~ .layout .rail { max-height: calc(100dvh - 8rem); }
  .rail__title { justify-content: center; margin-bottom: .4rem; padding-bottom: .35rem; }
  .rail__title span { display: none; }
  .rail__list { gap: .3rem; }
  .rail a { grid-template-columns: minmax(0, 1fr); gap: .15rem; justify-items: start; min-width: 0; min-height: 2.6rem; padding: .35rem .3rem .35rem .35rem; font-size: .62rem; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
  .rail__label { min-width: 0; max-width: 100%; }
  .rail__num { font-size: .56rem; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .layout--rail { grid-template-columns: 11.5rem minmax(0, 1fr); gap: var(--s-5); }
}

.subnav {
  display: flex;
  gap: .4rem;
  margin: 0 0 var(--s-5);
  padding: 0 0 .25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav li { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.layout--flush > .subnav { width: min(100% - 2 * var(--gutter), var(--content-w)); margin: var(--s-5) auto 0; }

/* ---- pager (previous / next page) ------------------------------------ */
.pager {
  display: grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .15s var(--ease);
}
.pager a:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.pager__dir { font-size: var(--step--2); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager__label { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
.pager__next { text-align: right; grid-column: 2; }
.pager__prev:only-child { grid-column: 1; }
@media (max-width: 639px) { .pager__next { grid-column: 2; text-align: right; } .pager__label{font-size:.95rem;} .pager a{padding:.6rem;} }

.reader-route--compact{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1rem;margin-top:var(--s-3);padding-block:.4rem;border-top:1px solid var(--line);font-size:.8rem}.reader-route__label{font-weight:750;color:var(--muted)}.reader-route--compact a{display:inline-flex;align-items:center;min-height:44px;font-weight:650}

/* on full-width (flush) pages the previous/next boxes sit in the same column as the menu */
.layout--flush .pager { width: min(100% - 2 * var(--gutter), var(--content-w)); margin-inline: auto; }

/* ---- footer ---------------------------------------------------------- */
.site-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.site-foot__inner {
  width: min(100% - 2 * var(--gutter), var(--content-w));
  margin-inline: auto;
  padding-block: 1rem;
  display: grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap: .6rem 1rem;
}
.site-foot__identity { grid-column:1/-1; }
.site-foot__group { min-width:0; border-block:1px solid var(--line); }
.site-foot__group>summary { display:flex; align-items:center; gap:.5rem; justify-content:space-between; min-height:48px; cursor:pointer; font-size:.85rem; font-weight:700; list-style:none; }
.site-foot__group>summary::-webkit-details-marker { display:none; }
.site-foot__group>summary::after { content:"+"; font-size:1.3rem; }
.site-foot__group[open]>summary::after { content:"−"; }
.site-foot__group>summary span { margin-left:auto; color:var(--text-2); font-size:.75rem; }
.site-foot__group>nav { padding-bottom:.6rem; }
.site-foot__group a { min-height:44px; }
.site-foot h2 { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text); margin:0 0 .4rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap: 0 .8rem; }
.site-foot li { margin: 0; min-width: 0; max-width: 100%; }
.site-foot li a { display:flex; align-items:center; min-height:36px; padding:.35rem 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; color:var(--text-2); text-decoration:none; font-size:.85rem; line-height:1.3; font-weight:600; white-space:normal; overflow-wrap:anywhere; }
.site-foot li a:hover,.site-foot li a:focus-visible { color:var(--text); text-decoration:underline; text-underline-offset:.2em; }
.site-foot__lede { color:var(--text-2); font-size:.85rem; line-height:1.45; max-width:28rem; margin:0 0 .6rem; }
.site-foot__switch,.site-foot__index { display:inline-flex; gap:.35rem; align-items:center; min-height:44px; margin-right:.5rem; font-size:.8rem; line-height:1.3; font-weight:700; text-decoration:underline; text-underline-offset:.2em; }
.site-foot__switch { color:var(--accent); }
.site-foot__index { color:var(--text); }
.site-foot__legal { grid-column:1/-1; padding-top:.75rem; border-top:1px solid var(--line); font-size:.75rem; line-height:1.45; color:var(--text-2); margin:0; }
@media(max-width:479px) { .site-foot ul { grid-template-columns:1fr; } }

/* ---- site menu (dialog) --------------------------------------------- */
.menu {
  width: min(26rem, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.menu[open] { display: flex; flex-direction: column; animation: menu-in .5s var(--ease); }
.menu::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes menu-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.menu__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.menu__title { margin: 0; font-size: var(--step-1); }
.menu__body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5) var(--s-6); display: grid; gap: var(--s-5); align-content: start; }
.menu__sites { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.menu__site {
  display: grid; gap: .1rem; padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line-strong); border-radius: 0 0 8px 0;
  color: var(--text); text-decoration: none; background: var(--surface-2);
}
.menu__site small { color: var(--muted); font-weight: 600; }
.menu__site strong { font-size: var(--step-0); letter-spacing: -.01em; }
.menu__site[aria-current="true"] { border-inline-start: 4px solid var(--folder-colour,var(--accent)); background: var(--surface-2); }
.menu__site:hover { text-decoration: none; border-color: var(--accent); }
.menu__section h3 { font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.menu__group { margin: 0 0 var(--s-3); }
.menu__group-title { font-size: var(--step--1); font-weight: 700; margin: 0 0 .15rem; color: var(--text); }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; }
.menu__list li { margin: 0; }
.menu__list a { display: block; min-height:2.75rem; padding: .55rem .65rem; border-radius: var(--r-1); color: var(--text); font-size: 1rem; text-decoration: none; font-weight: 550; }
.menu__list a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.menu__list a[aria-current="page"] { background: var(--surface-2); border-inline-start: 3px solid var(--folder-colour,var(--accent)); color: var(--text); font-weight: 750; }
.menu__links { display: grid; gap: var(--s-2); }
.menu__link {
  display: flex; align-items: center; gap: var(--s-3);
  padding: .65rem var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2);
  color: var(--text); text-decoration: none; background: var(--surface);
}
.menu__link:hover { border-color: var(--accent); text-decoration: none; }
.menu__link svg { width: 1.25rem; height: 1.25rem; color: var(--accent); flex: none; }
.menu__link span { display: grid; line-height: 1.25; }
.menu__link small { color: var(--muted); word-break: break-all; }

/* ---- print ----------------------------------------------------------- */
@media print {
  .site-head, .rail, .subnav, .pager, .site-foot, .menu { display: none !important; }
  body { background: #fff; color:#000000; }
  details:not([open]) > :not(summary) { display: block; }
}

/* ===== 25-float.css ===== */
/* ==========================================================================
   Floating controls: the "@" links button,
   back button and site switch. All are fixed to the viewport on every page of
   both sites; markup lives at the end of src/templates/page.html.
   ========================================================================== */

@media print { .fab-dock, .fab-switch { display: none !important; } }

/* ---- "@" links, back button, site switch ----------------------------------- */
.fab-dock { position:relative; display:flex; min-width:0; width:100%; }

.fab {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s, color .15s, border-color .15s;
}
.fab:hover { transform: scale(1.06); text-decoration: none; }
.fab svg { width: 1.3rem; height: 1.3rem; }
.fab--at { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); font: 700 1.55rem/1 var(--font-sans); box-shadow: 0 6px 20px -4px var(--glow), var(--shadow-2); }
.fab--at[aria-expanded="true"] { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
@media (max-width: 719px) { .fab { width: 2.75rem; height: 2.75rem; } .fab--at { font-size: 1.4rem; } }

.fab-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + .6rem);
  width: min(88vw, 20rem);
  max-height: min(70dvh, 30rem);
  overflow-y: auto;
  padding: .6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-4);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform-origin: bottom left;
  animation: fab-in .42s var(--ease) both;
}
.fab-panel[hidden] { display: none; }
@keyframes fab-in { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
.fab-panel__title { margin: .2rem .4rem .5rem; font-size: var(--step--2); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fab-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fab-panel__list li { margin: 0; opacity: 0; animation: fab-row .4s var(--ease) forwards; }
.fab-panel__list li:nth-child(1) { animation-delay: .02s; } .fab-panel__list li:nth-child(2) { animation-delay: .06s; }
.fab-panel__list li:nth-child(3) { animation-delay: .10s; } .fab-panel__list li:nth-child(4) { animation-delay: .14s; }
.fab-panel__list li:nth-child(5) { animation-delay: .18s; } .fab-panel__list li:nth-child(6) { animation-delay: .22s; }
.fab-panel__list li:nth-child(7) { animation-delay: .26s; }
@keyframes fab-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fab-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: var(--r-2); background: var(--surface-2); color: var(--text); text-decoration: none; }
.fab-row:hover { background: var(--surface-3); text-decoration: none; }
.fab-row__ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; background: var(--surface-3); color: var(--accent); }
.fab-row__ic svg { width: 1.1rem; height: 1.1rem; }
.fab-row__txt { display: grid; min-width: 0; line-height: 1.25; }
.fab-row__txt strong { font-size: var(--step--1); letter-spacing: .02em; }
.fab-row__txt small { color: var(--muted); font-family: var(--font-mono); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fab-row--primary { background: var(--accent-strong); color: var(--accent-ink); }
.fab-row--primary:hover { background: var(--accent-strong); filter: brightness(1.08); }
.fab-row--primary .fab-row__ic { background: rgba(255,255,255,.2); color:#ffffff; }
.fab-row--primary small { color:#ffffff; }


.fab-switch { display:flex; align-items:center; justify-content:center; gap:.55rem; min-width:0; text-decoration:none; font-weight:800; }

.fab-switch:hover { background: var(--accent-strong); color: var(--accent-ink); text-decoration: none; }
.fab-switch__glyph { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: var(--r-1); background: var(--accent-strong); color: var(--accent-ink); }
@media (max-width: 479px) { .fab-switch span:last-child { font-size: .8rem; letter-spacing: .02em; } .fab-switch { padding-right: .65rem; min-height: 2.75rem; } }

/* ===== 30-components.css ===== */
/* ==========================================================================
   Shared components. Page-family files (40-*.css …) may only add rules for
   markup that is unique to a page family; anything used on two or more
   pages belongs here. Components use tokens only; no raw colours.
   Vocabulary is documented in docs/DESIGN-SYSTEM.md.
   ========================================================================== */

/* ---- type helpers ---------------------------------------------------- */
.eyebrow, .kicker {
  display: block;
  margin: 0 0 var(--s-2);
  font-size: var(--step--2);
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-2); max-width: 46rem; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---- sections -------------------------------------------------------- */
.section { padding-block: var(--s-7); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: var(--s-5); max-width: 46rem; }
.section__head > :last-child { margin-bottom: 0; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }

.grid { display: grid; gap: var(--s-4); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--text);
  font-size: var(--step--1);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn--primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); filter: brightness(1.1); }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 2.25rem; padding: 0 .85rem; font-size: var(--step--2); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---- chips / tags ---------------------------------------------------- */
.chip, .tag {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .3rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
}
.chip b, .chip strong { color: var(--accent-2); font-weight: 750; }
.tag { padding: .15rem .5rem; font-size: var(--step--2); letter-spacing: .06em; text-transform: uppercase; font-weight: 750; }
.tag--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tag--teal { background: var(--accent-2-soft); border-color: transparent; color: var(--accent-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* filter chips (buttons) */
.filters { display: flex; flex-wrap: nowrap; gap: var(--s-2); margin: 0 0 var(--s-4); padding-bottom: .35rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.filters::-webkit-scrollbar { display: none; }

/* ---- category folders: angular corner and active colour spine -------- */
.filters, .subnav { --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.filters.is-drift, .subnav.is-drift { scroll-snap-type: none; margin-bottom: .45rem; }
.filter, .subnav a {
  --chip: var(--folder-colour,var(--brand-orange));
  position: relative; isolation: isolate; overflow: visible;
  border: 1px solid var(--line); border-radius: 0 0 8px 0;
  background: var(--surface); color: var(--text-2);
  font-size: 1rem; font-weight: 650; white-space: nowrap;
  transition: background .18s,color .18s;
}
.filters > .filter:nth-child(3n/**/+2),.subnav > li:nth-child(3n/**/+2)>a{--chip:var(--accent-2);}
.filters > .filter:nth-child(3n/**/+3),.subnav > li:nth-child(3n/**/+3)>a{--chip:var(--amber);}
.filter::before,.subnav a::before{
  content:"";position:absolute;inset:0 auto 0 -1px;width:3px;background:var(--chip);opacity:.4;pointer-events:none;
}
.filter::after,.subnav a::after{
  content:"";position:absolute;top:0;right:0;width:8px;height:8px;background:var(--bg);clip-path:polygon(0 0,100% 0,100% 100%);pointer-events:none;
}
.filter{flex:none;scroll-snap-align:start;min-height:2.75rem;padding:0 1.05rem 0 1.25rem;}
.subnav a{display:flex;align-items:center;min-height:2.75rem;padding:.6rem 1.05rem .6rem 1.25rem;}
.filter:hover,.subnav a:hover{background:var(--surface-2);color:var(--text);text-decoration:none;}
.filter[aria-pressed="true"],.subnav a[aria-current="page"],.subnav a.is-active{
  background:color-mix(in srgb,var(--chip) 9%,var(--surface));color:var(--text);font-weight:800;
}
.filter[aria-pressed="true"]::before,.subnav a[aria-current="page"]::before,.subnav a.is-active::before{
  opacity:1;box-shadow:0 0 8px color-mix(in srgb,var(--chip) 45%,transparent);
}
.filter:focus-visible,.subnav a:focus-visible{outline:2px solid var(--focus);outline-offset:3px;}

/* thin position bar under a scrolling selector row */
.rowbar { position: relative; height: 4px; margin: 0 0 var(--s-4); border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rowbar[hidden] { display: none; }
.rowbar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand-orange), var(--amber)); }

/* ---- cards ----------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.card__media { aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card__body > * { margin: 0; }
.card__title { font-size: var(--step-1); letter-spacing: -.01em; }
.card__meta { font-size: var(--step--1); color: var(--muted); }
.reading-actions{display:grid;justify-items:start;gap:.25rem;margin:.5rem 0}.reading-actions>a{display:inline-flex;align-items:center;min-height:40px;max-width:100%;line-height:1.4}.takeaway-line,.copy-line{display:block}.copy-line+.copy-line{margin-top:.35rem}.day-key{margin-bottom:.75rem}.day-key dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:0}.day-key dl>div{display:flex;gap:.4rem;align-items:baseline}.day-key dt{font-weight:800;color:var(--accent)}.day-key dd{margin:0;font-size:.9rem;line-height:1.4}.day-key p{font-size:1rem;margin:.6rem 0 0}.study-links { display:flex; flex-wrap:wrap; gap:.5rem 1rem; margin-block:.8rem; }
.detail-study-reference { border-top:1px solid var(--line); padding-top:.6rem; font-size:.85rem; line-height:1.5; }
.detail-study-reference a { display:inline-flex; align-items:center; min-height:40px; padding:.4rem .65rem; margin:.2rem 0; border:1px solid var(--line-strong); border-left:4px solid var(--section-signal,var(--accent-strong)); border-radius:5px; background:var(--surface-2); color:var(--accent); font-weight:750; text-decoration:none; line-height:1.35; }
.detail-study-reference a:hover,.detail-study-reference a:focus-visible { text-decoration:underline; border-color:var(--accent); }
.card--pad { padding: var(--s-4) var(--s-5) var(--s-5); }
.card--accent { border-left: 4px solid var(--accent-strong); }
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.card--link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); text-decoration: none; }

@media screen {
  .card--reference { border-color: var(--section-frame); border-top: 3px solid var(--section-signal-line); }
  .analysis-reference { max-width:1180px; margin:28px auto; padding:24px; border-top:2px solid var(--section-signal); background:var(--surface);}

  .reading-heading { color:var(--text); }
  .reading-copy, .reading-meta { color:var(--text-2); opacity:1; }
}



/* ---- callouts -------------------------------------------------------- */
.callout {
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--r-2);
  background: var(--surface);
}
.callout > :last-child { margin-bottom: 0; }
.callout__title { display: block; margin-bottom: var(--s-1); font-size: var(--step--2); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.callout--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout--warn .callout__title { color: var(--warn); }
.callout--danger { border-left-color: var(--danger); background: var(--danger-soft); }
.callout--danger .callout__title { color: var(--danger); }
.callout--ok { border-left-color: var(--ok); background: var(--ok-soft); }
.callout--ok .callout__title { color: var(--ok); }
.callout--accent { border-left-color: var(--accent-strong); }
.callout--accent .callout__title { color: var(--accent); }

@media screen {
  .callout--reference { border-color:var(--section-frame); border-left-color:var(--section-signal-line); background:var(--section-signal-wash); }
  .callout--reference .callout__title { color:var(--section-signal); }
}

/* ---- stats ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: var(--s-3); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.stats > li, .stat { margin: 0; }
.stat { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.stat__value { display: block; font-size: var(--step-3); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: .3rem; font-size: var(--step--2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat--accent .stat__value { color: var(--accent); }

/* ---- tables ---------------------------------------------------------- */
.table-wrap {
  margin: 0 0 var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
}
.table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.table-wrap table { min-width: 34rem; }
.table-wrap caption { padding: var(--s-3) var(--s-4) 0; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: var(--s-4); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
@media screen {
  .table-wrap--data { border-color:var(--section-frame); border-radius:3px 14px 3px 3px; box-shadow:inset 0 3px 0 var(--section-signal),var(--section-shadow); }
  .table-wrap--data thead th { background:var(--surface-3); border-bottom:2px solid var(--section-frame); color:var(--text);}
  .table-wrap--data tbody tr:nth-child(even) { background:var(--surface-2);}
  .table-wrap--data tbody tr:hover { background:var(--surface-3);}
}
/* card layout on phones: needs data-label on each td (already present in generated tables) */
@media (max-width: 639px) {
  .table--cards { border: 0; background: transparent; overflow: visible; }
  .table--cards table, .table--cards tbody, .table--cards tr, .table--cards td { display: block; min-width: 0; width: 100%; }
  .table--cards caption { display:block; width:100%; max-width:100%; box-sizing:border-box; padding:.65rem 0; overflow-wrap:normal; word-break:normal; white-space:normal; }
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table--cards tr { margin-bottom: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); overflow: hidden; }
  .table--cards td { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s-3); padding: .55rem var(--s-4); border-bottom: 1px solid var(--line); }
  .table--cards td:last-child { border-bottom: 0; }
  .table--cards td::before { content: attr(data-label); font-size: var(--step--2); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .15em; }
  .table--cards td:first-child { padding-left: var(--s-4); }
}

/* ---- accordion (native details) -------------------------------------- */
.acc {
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  margin: 0 0 var(--s-3);
}
.acc > summary {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  font-weight: 700;
  line-height: 1.35;
}
.acc > summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: .6rem; height: .6rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}
.acc[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc > summary:hover { color: var(--accent); }
.acc__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.acc__body > :last-child { margin-bottom: 0; }
.acc__hint { margin-left: auto; font-size: var(--step--2); font-weight: 600; color: var(--muted); }
.acc__hint + ::after { margin-left: 0; }
@media screen {
  .acc--reference { border-color:var(--section-frame); border-radius:3px 12px 3px 3px; }
  .acc--reference > summary { background:var(--section-sheen); box-shadow:inset 3px 0 0 var(--section-signal-line); }
  .acc--reference[open] > summary { box-shadow:inset 3px 0 0 var(--section-signal); border-bottom-color:var(--section-frame); }
}

/* ---- definition list ------------------------------------------------- */
.kv { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: var(--s-2) var(--s-4); }
.kv dt { color: var(--muted); font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding-top: .2em; }
.kv dd { margin: 0; }
@media (max-width: 559px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: var(--s-3); } }

/* ---- media / figures ------------------------------------------------- */
.media { margin: 0 0 var(--s-5); }
.media img { width: 100%; border-radius: var(--r-3); background: var(--surface-3); }
.media figcaption { margin-top: var(--s-2); font-size: var(--step--1); color: var(--muted); }
[data-full] { cursor: zoom-in; }

/* ---- page hero (identity banner on inner pages) ---------------------- */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(11rem, 26vw, 17rem);
  margin: 0 0 var(--s-6);
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--inverse);
  color: var(--inverse-text);
  isolation: isolate;
}
.page-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(8 9 12 / .88) 0%, rgb(8 9 12 / .35) 55%, rgb(8 9 12 / .1) 100%); }
.page-hero__text { padding: var(--s-5) clamp(var(--s-4), 4vw, var(--s-7)) var(--s-5); max-width: 46rem; }
.page-hero h1 { margin: 0; color:#ffffff; font-size: var(--step-4); }
.page-hero .eyebrow { color: #ffb400; }
.page-hero .lead { color:#ffffff; margin: var(--s-2) 0 0; }

/* Portrait previews put the existing description beside the complete artwork. */
.card.card--portrait{display:grid;grid-template-columns:clamp(64px,32%,112px) minmax(0,1fr);align-items:start;height:auto;}
.card.card--portrait .card__media{grid-column:1;grid-row:1;aspect-ratio:var(--preview-ratio);max-height:none;min-height:0;width:100%;align-self:start;}
.card.card--portrait .card__body{grid-column:2;grid-row:1;min-width:0;width:auto;align-self:stretch;justify-content:center;padding:.6rem;overflow-wrap:anywhere;border-left:1px solid var(--line);}
.card.card--portrait .card__details{grid-column:1/-1;grid-row:2;min-width:0;padding:.65rem .8rem;border-top:1px solid var(--line);}
.card--portrait .card__title,.card--portrait .vid-cap__title{overflow-wrap:anywhere;line-height:1.3;}
/* ---- file cards (the "FILE 01 · Open file ↗" folders) ---------------- */
.file-card {
  position: relative;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: var(--s-4);
  align-items: center;
  min-height: 6.25rem;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-strong);       /* folder-tab edge */
  border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .2s var(--ease), box-shadow .2s;
}
.file-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-2); text-decoration: none; }
.file-card.file-card--portrait{grid-template-columns:clamp(56px,30%,88px) minmax(0,1fr);gap:.6rem;align-items:center;min-height:0;padding:.55rem;}
.file-card.file-card--portrait .file-card__thumb{width:100%;height:auto;aspect-ratio:var(--preview-ratio);max-height:none;}
.file-card__thumb { width: 4.75rem; height: 4.75rem; border-radius: var(--r-2); object-fit: cover; background: var(--surface-3); }
.file-card__num { display: block; font-size: var(--step--2); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.file-card__title { display: block; font-size: var(--step-0); font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.file-card__cta { display: block; margin-top: .2rem; font-size: var(--step--1); font-weight: 650; color: var(--accent); }
.file-card--no-thumb { grid-template-columns: minmax(0, 1fr); }


/* ---- timeline -------------------------------------------------------- */
.timeline { list-style: none; margin: 0 0 var(--s-5); padding: 0 0 0 1.25rem; border-left: 2px solid var(--line-strong); display: grid; gap: var(--s-5); }
.timeline > li { position: relative; margin: 0; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1.25rem - 7px); top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-strong); border: 3px solid var(--bg); }
.timeline__date { display: block; font-size: var(--step--2); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---- lightbox: hi-res viewer with Download / Full size / Close ------------------ */
/* One reading-window identity, independent of the underlying page. CREAMi retains its own palettes. */
:root { --viewer-bg:#f1f5f6; --viewer-panel:#e3ecef; --viewer-ink:#000000; --viewer-muted:#000000; --viewer-rim:#7f9dab; --viewer-head:#193c4d; }
html[data-theme="dark"] { --viewer-bg:#111f29; --viewer-panel:#192c38; --viewer-ink:#ffffff; --viewer-muted:#ffffff; --viewer-rim:#6d94a8; --viewer-head:#15394b; }
dialog:not(.creami-window) { --bg:var(--viewer-bg); background:var(--viewer-bg); color:var(--viewer-ink); --surface:var(--viewer-bg); --surface-2:var(--viewer-panel); --text:var(--viewer-ink); --muted:var(--viewer-muted); --line-strong:var(--viewer-rim); border-color:var(--viewer-rim); box-shadow:0 0 0 1px #e8c59b66,0 24px 90px #0009; }
dialog:not(.creami-window)::backdrop { background:#03101bd4; backdrop-filter:blur(5px); }
dialog:not(.creami-window) :is(.lightbox__bar,.resource-sheet-head) { background:linear-gradient(110deg,var(--viewer-head),#244b5b); color:#ffffff; border-bottom:2px solid #dba56b; }
dialog:not(.creami-window) .resource-sheet-head .eyebrow { color:#ffd5a6; }
.lightbox { width:min(96vw,64rem); max-width:96vw; max-height: 96dvh; padding: 0; border: 0; border-radius: var(--r-3); background: #08090c; color:#ffffff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox__bar { order:0; display: flex; flex-wrap: wrap; justify-content:flex-end;gap:.25rem;padding:.5rem;border-bottom:1px solid rgb(255 255 255 / .12);background:#101218; }
.lightbox__btn { display: inline-flex; align-items: center; justify-content: center; gap:.35rem;min-height:44px;min-width:44px;padding:0 .6rem; border: 1px solid rgb(255 255 255 / .3); border-radius: var(--r-2); background: rgb(255 255 255 / .06); color:#ffffff; font: 700 var(--step--1)/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.lightbox__btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.lightbox__btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color:#ffffff; text-decoration: none; }
.lightbox__btn--close { background: var(--accent-strong); border-color: var(--accent-strong); }
.lightbox__btn--close:hover { filter: brightness(1.1); }
.lightbox__fig { order:1; background:#08090c; color:#ffffff; display: grid; flex: 1; min-height: 0; margin: 0; overflow: auto; justify-items: center; }
.lightbox__fig img { width: auto; max-width: 100%; max-height: 78dvh;  background: #08090c; }
.lightbox__position { align-self:center; margin-inline-end:auto; padding:0; color:#ffffff; font:700 .75rem/1.3 var(--font-sans); font-variant-numeric:tabular-nums; }
.viewer-download-bar{order:2;flex:none;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));border-top:2px solid #dba56b;background:var(--viewer-head,#193c4d);color:#ffffff;z-index:2}
.viewer-download-bar[hidden]{display:none}
.viewer-download-bar a[href],.viewer-download-bar button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex:1;max-width:46rem;padding:9px 16px;border:1px solid #dba56b;border-radius:8px;background:#f7e4cc;color:#173c4e;font:800 14px/1.3 var(--font-sans);text-decoration:none;cursor:pointer}
.viewer-download-bar a:focus-visible,.viewer-download-bar button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.publication-window{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
.publication-window iframe{display:block;width:100%;height:100%;border:0}
.lightbox__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 4rem; margin-top: -1rem; border: 0; background: rgb(0 0 0 / .55); color:#ffffff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__nav--prev { left: 0; border-radius: 0 var(--r-2) var(--r-2) 0; }
.lightbox__nav--next { right: 0; border-radius: var(--r-2) 0 0 var(--r-2); }
.lightbox__nav:hover { background: var(--accent-strong); }
@media (max-width: 479px) { .lightbox { width: 100vw; max-height: 100dvh; border-radius: 0; } .lightbox__btn { padding: 0 .7rem; } .lightbox__fig img { max-height: 74dvh; } }

/* ---- video (click to play) ------------------------------------------- */
.yt { position: relative; aspect-ratio: 9 / 16; background: var(--surface-3); overflow: hidden; border: 0; padding: 0; width: 100%; display: block; }
.yt img { width:100%; height:100%; object-fit:contain; object-position:center; background:#080808; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt__play svg { width: 3.25rem; height: 3.25rem; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .5)); }
.yt.is-playing .yt__play { display: none; }

/* ---- CTA band -------------------------------------------------------- */
.cta {
  padding: var(--s-7) var(--s-5);
  border-radius: var(--r-4);
  background: var(--inverse);
  color: var(--inverse-text);
  text-align: center;
}
.cta h2 { color:#ffffff; }
.cta p { color:#ffffff; max-width: 38rem; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: var(--s-4); }
.cta a:not(.btn) { color: #ffb400; }
.cta .eyebrow { color: #ffb400; }
.cta .btn--ghost { color:#ffffff; border-color: rgb(255 255 255 / .45); }
.cta .btn--ghost:hover { border-color: #fff; background: rgb(255 255 255 / .1); }

/* ---- utility pages --------------------------------------------------- */
.notfound, .redirect { width: min(100% - 2 * var(--gutter), 36rem); margin: 18vh auto; text-align: center; }
.notfound__code { font-size: var(--step-5); font-weight: 800; letter-spacing: -.04em; color: var(--accent); margin: 0; }
.notfound__links { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* link inside an eyebrow label: full-height tap area without changing the layout */
.eyebrow a { display: inline-block; padding-block: .7rem; margin-block: -.7rem; }

/* file-card list used where a page lists its sibling files without a carousel (e.g. guidebook) */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.file-grid > li { margin: 0; min-width: 0; }

/* ===== 31-carousel.css ===== */
/* ==========================================================================
   Carousels: titled, categorised rows that loop in both directions.
   Behaviour: src/js/60-carousel.js. Markup is generated by scripts/components.py
   or written in the content files; every carousel has the same structure:
     .carousel > .carousel__head + .carousel__stage > .carousel__track > .carousel__item
   Without JS the track is a normal scroll-snap strip with a native scrollbar.
   ========================================================================== */
.carousel { --c-w: 15rem; --c-gap: var(--s-4); min-width: 0; }
.carousel + .carousel { margin-top: var(--s-6); }
.carousels { display: grid; gap: var(--s-6); }          /* a group of carousels sharing one filter */
.carousels > .carousel + .carousel { margin-top: 0; }

.carousel__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-1) var(--s-4);
  margin-bottom: var(--s-3);
  padding: .1rem 0 var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent-strong);        /* folder-tab marker */
}
.carousel__title { margin: 0; font-size: var(--step-1); letter-spacing: -.01em; }
.carousel__count { font-size: var(--step--2); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }

.carousel__stage { position: relative; max-width: 100%; }
.carousel__track {
  position: relative;                 /* offsetParent for loop measuring */
  display: flex;
  gap: var(--c-gap);
  margin: 0;
  padding: .35rem .15rem .8rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: auto;
  scrollbar-color: var(--accent-strong) var(--surface-3);
}
.carousel__track::-webkit-scrollbar { height: 1rem; }
.carousel__track::-webkit-scrollbar-track { background: var(--surface-3); border-radius: 99px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--accent-strong); border-radius: 99px; }
.carousel__track:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-2); }
.carousel__item { flex: 0 0 var(--c-w); min-width: 0; margin: 0; display: flex; scroll-snap-align: start; }
.carousel__item > * { flex: 1; min-width: 0; }
.carousel__item > .card { height: 100%; }

/* looping mode: JS draws its own bar and moves the row, so native scrollbar and snapping step aside */
.carousel.is-drift .carousel__track { scrollbar-width: none; scroll-snap-type: none; cursor: grab; }
.carousel.is-drift .carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; user-select: none; }
.carousel__track.is-dragging a, .carousel__track.is-dragging button { pointer-events: none; }

.carousel__btn {
  position: absolute; top: calc(50% - .5rem); z-index: 3;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin-top: -1.25rem; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--text); box-shadow: var(--shadow-2);
  transition: background .15s, color .15s, border-color .15s, transform .15s var(--ease);
}
.carousel__btn svg { width: 1.2rem; height: 1.2rem; }
.carousel__btn--prev { left: -.3rem; }
.carousel__btn--next { right: -.3rem; }
.carousel__btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); transform: scale(1.06); }
.carousel.is-single .carousel__btn { display: none; }

/* the bar underneath: where you are in the loop; drag or click it to jump */
.carousel__bar {
  position: relative; height: 1rem; margin-top: .2rem;
  border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; touch-action: none;
}
.carousel__thumb { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--accent-strong); box-shadow: 0 0 10px -2px var(--glow); }
.carousel:not(.is-drift) .carousel__bar { display: none; }
.carousel__bar:hover .carousel__thumb { filter: brightness(1.12); }

@media (min-width: 1100px) { .carousel { --c-w: 16rem; } }
@media (max-width: 719px) {
  .carousel { --c-w: 8.9rem; --c-gap: var(--s-2); }
  .carousel__btn { width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; }
  .carousel__btn--prev { left: -.15rem; } .carousel__btn--next { right: -.15rem; }
  .carousel__head { padding-left: var(--s-2); }
  .carousel__title { font-size: var(--step-0); }
}
/* wider tiles for text-led cards */
.carousel--wide { --c-w: 17rem; }
.carousel--file { --c-w: 16rem; }
.carousel--era { --c-w: 15rem; }
@media (max-width: 719px) { .carousel--wide, .carousel--file { --c-w: 10.5rem; } .carousel--era { --c-w: 11rem; } }
@media print { .carousel__track { flex-wrap: wrap; overflow: visible; } .carousel [data-clone], .carousel__btn, .carousel__bar { display: none !important; } }

/* ===== 32-fold.css ===== */
/* ==========================================================================
   Folding cards (.fold): a closed file shows its thumbnail, number, title and a "+";
   a click slides it open to the full sheet (illustration, formula, clinical notes, downloads).
   Native <details>, so it works without JavaScript; src/js/65-fold.js only adds the slide animation
   and keeps one card open at a time inside a [data-fold-group].
   Colour comes from --vec-accent (protocol) or --nut-hue (liquid-intake) via the .vec--vN / .nut-vec--vN class.
   ========================================================================== */
.fold {
  --fold-accent: var(--vec-accent, var(--nut-hue, var(--folder-colour,var(--accent-strong))));
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--fold-accent);
  border-radius: 0 0 8px 0;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color .2s, box-shadow .25s;
}
.fold::before {                      /* the folder tab */
  content: ""; position: absolute; top: -.55rem; right: 1.25rem;
  width: 5.5rem; height: .55rem;
  clip-path: polygon(0 0,calc(100% - 8px) 0,100% 100%,0 100%); background: var(--fold-accent);
}
.fold:hover { border-left-color: var(--fold-accent); background: var(--surface-2); }
.fold[open] { border-left-color:var(--fold-accent); box-shadow:none; }
.fold[open]::after{content:"";position:absolute;inset:0 auto 0 -4px;width:4px;background:var(--fold-accent);box-shadow:0 0 9px color-mix(in srgb,var(--fold-accent) 45%,transparent);pointer-events:none;}

.fold__summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-4); align-items: center;
  padding: var(--s-3) var(--s-4);
  list-style: none; cursor: pointer; border-radius: inherit;
}
.fold__summary::-webkit-details-marker { display: none; }
.fold__summary::marker { content: ""; }
.fold__summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.fold__thumb {
  display: block; width: 4.25rem; aspect-ratio: 941 / 1672;
  border: 1px solid var(--line); border-radius: var(--r-1); overflow: hidden; background: var(--surface-3);
}
.fold__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fold__title { display: grid; gap: .2rem; min-width: 0; }
.fold__eyebrow { font-size: var(--step--2); font-weight: 750; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fold__name { margin: 0; font-size: var(--step-1); font-weight: 800; letter-spacing: -.005em; line-height: 1.15; }
.fold__hint { color: var(--text-2); font-size: var(--step--1); line-height: 1.4; }

.fold__mark {                        /* + that turns into × */
  position: relative; width: 2.1rem; height: 2.1rem; flex: none;
  border: 1.5px solid var(--fold-accent); border-radius: 50%;
  transition: transform .3s var(--ease), background .2s;
}
.fold__mark::before, .fold__mark::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: .9rem; height: 2px; margin: -1px 0 0 -.45rem; border-radius: 2px; background: var(--fold-accent); transition: background .2s; }
.fold__mark::after { transform: rotate(90deg); }
.fold[open] > .fold__summary .fold__mark { transform: rotate(135deg); background: var(--fold-accent); }
.fold[open] > .fold__summary .fold__mark::before, .fold[open] > .fold__summary .fold__mark::after { background: var(--bg); }
.fold__summary:hover .fold__mark { background: color-mix(in srgb, var(--fold-accent) 22%, transparent); }

.fold__panel { overflow: hidden; }                         /* height is animated by 65-fold.js */
.fold__inner { padding: var(--s-4) var(--s-4) var(--s-5); border-top: 1px dashed var(--line-strong); margin-inline: var(--s-4); padding-inline: 0; }
.fold__sheet { display: grid; gap: var(--s-5); align-items: start; }
.fold__art { margin: 0; width: min(100%, 17rem); justify-self: center; }
.fold__text { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
.fold__text > * { margin: 0; }
.fold__text .acc { margin: 0; }
@media (min-width: 760px) {
  .fold__sheet { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-6); }
  .fold__art { width: 100%; justify-self: stretch; position: sticky; top: calc(var(--header-h) + var(--s-4)); }
  .fold__summary { padding: var(--s-4) var(--s-5); }
  .fold__inner { margin-inline: var(--s-5); }
  .fold__thumb { width: 5rem; }
}
@media (max-width: 479px) {
  .fold__summary { gap: var(--s-3); padding: var(--s-3); }
  .fold__thumb { width: 3.4rem; }
  .fold__name { font-size: var(--step-0); }
  .fold__mark { width: 1.8rem; height: 1.8rem; }
  .fold__inner { margin-inline: var(--s-3); }
}

@media print { .fold > .fold__panel { display: block; height: auto !important; } }

/* ---- zoom: any illustration that opens the hi-res viewer ------------------------- */
.zoom {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-3); overflow: hidden;
  cursor: zoom-in; color: inherit; text-align: inherit;
  transition: border-color .15s, box-shadow .2s;
}
.zoom:hover, .zoom:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-2); }
.zoom img { display: block; width: 100%; height: auto; }
.zoom__hint {
  position: absolute; right: .5rem; bottom: .5rem;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .6rem; border-radius: 99px;
  background: rgb(10 11 14 / .78); color:#ffffff;
  font-size: var(--step--2); font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  pointer-events: none; opacity:1;
}
.zoom__hint::before { content: ""; width: .8rem; height: .8rem; border: 2px solid currentColor; border-radius: 50%; box-sizing: border-box; background: linear-gradient(currentColor, currentColor) 62% 62% / 2px 45% no-repeat; }
@media (hover: hover) { .zoom__hint { opacity: 0; transition: opacity .15s; } .zoom:hover .zoom__hint, .zoom:focus-visible .zoom__hint { opacity: 1; } }

/* ===== 40-home.css ===== */
/* ==========================================================================
   Home & library family (.home-…)
   Pages: index, project-goals, project-story, library.
   Only markup that is unique to these pages lives here; everything else comes
   from 30-components.css. Surfaces that are always dark (hero, CTA, era cards)
   share three local custom properties so the values are defined once.
   ========================================================================== */

.home-hero, .home-cta, .home-era {
  --on-dark: var(--inverse-text);
  --on-dark-2: rgb(243 244 247 / .82);
  --on-dark-accent: #ffb400;
}

/* Authored visual entry points and visible-motion controls. */
.reader-context--visual { display:grid; grid-template-columns:clamp(120px,15vw,190px) minmax(0,1fr); gap:1.25rem; align-items:center; padding:1rem 1.25rem; margin-block:1rem; }
.reader-context__preview { display:block; min-width:0; height:145px; overflow:hidden; border-radius:4px 14px 4px 4px; background:var(--surface); }
.reader-context__preview img { width:100%; height:100%; object-fit:contain; display:block; }
.reader-context__copy { min-width:0; }
.personal-mission {display:block; grid-template-columns:clamp(100px,17vw,220px) minmax(0,1fr); gap:clamp(1rem,3vw,2rem); margin-block:1.4rem; padding:clamp(1rem,3vw,2rem); align-items:start; }
.personal-mission__intro{display:grid;grid-template-columns:clamp(90px,26%,210px) minmax(0,1fr);gap:clamp(.75rem,2vw,1.5rem);align-items:start;}.personal-mission__opening{min-width:0;}.personal-mission__opening>.eyebrow{display:block;text-align:left;font-size:.7rem;letter-spacing:.06em;}.personal-mission__opening p{margin:.6rem 0 0;font-size:.95rem;line-height:1.5;}.personal-mission__details{margin-top:1rem;min-width:0;}
.personal-mission__portrait img {width:100%;height:auto;max-height:none;object-fit:contain;border-radius:.35rem;display:block;}
.personal-mission h2 {font-size:clamp(1.1rem,2.5vw,1.8rem); margin:.45rem 0 .8rem;text-align:left;line-height:1.2; text-wrap:balance; }
.personal-mission h2>span {display:block; }
.personal-mission>div>.eyebrow { display:block; text-align:center; }
.personal-mission p,.story-introduction p { max-width:74ch; font-size:1rem; line-height:1.65; }
.personal-mission__numbers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; margin:1rem 0; }
.personal-mission__numbers span { border-top:2px solid var(--accent); padding-top:.5rem; font-size:.75rem; line-height:1.4; }
.personal-mission__numbers b { display:block; margin-bottom:.3rem; font-size:1.1rem; color:var(--text); }
.personal-mission .personal-mission__context { font-size:.85rem; color:var(--text-2); }
.story-introduction { margin-block:1.1rem 1.8rem; max-width:78ch; }
.goal-evidence-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(.5rem,1.5vw,1rem); margin:1rem 0; }
.goal-evidence-grid>article { min-width:0; border:1px solid var(--line-strong); border-top:3px solid var(--accent); padding:clamp(.65rem,1.8vw,1rem); background:var(--surface-2); }
.goal-evidence-grid h3 { font-size:clamp(1rem,2.2vw,1.4rem); line-height:1.25; text-wrap:balance; margin:.45rem 0; }
.goal-evidence-grid p { font-size:.85rem; line-height:1.5; margin:.5rem 0; }
.goal-evidence-detail { margin-top:.7rem; padding:.3rem .7rem; border:1px solid var(--line-strong); background:var(--surface); }
.goal-evidence-detail>summary { cursor:pointer; min-height:48px; padding:.5rem 0; font-size:.95rem; font-weight:700; }
.goal-evidence-detail p { max-width:78ch; line-height:1.65; }.goal-research-sources { padding-left:1.4rem; }.goal-research-sources li { margin:.65rem 0; font-size:.85rem; }

.reference-library-intro { max-width:75ch; margin-bottom:1rem; }
.reference-topic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.reference-topic { display:grid; grid-template-columns:100px minmax(0,1fr); gap:1rem; padding:1rem; color:var(--text); text-decoration:none; border:1px solid var(--line-strong); border-inline-start:3px solid var(--accent); background:var(--surface-2); }
.reference-topic img { width:100%; height:150px; object-fit:contain; }.reference-topic small { font-size:.65rem; letter-spacing:.1em; }.reference-topic h3 { margin:.25rem 0; font-size:1.1rem; }.reference-topic p { margin:.4rem 0; font-size:.85rem; }.reference-topic b { font-size:.8rem; color:var(--accent); }
.reference-inventory { margin-top:1rem; border-block:1px solid var(--line-strong); padding:.5rem 0; }.reference-inventory>summary { cursor:pointer; min-height:44px; font-weight:700; }
@media(max-width:699px) { .reference-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; } .reference-topic { grid-template-columns:minmax(0,1fr); gap:.5rem; padding:.65rem; } .reference-topic img { height:clamp(90px,15svh,140px); } .reference-topic h3 { font-size:.95rem; } .reference-topic p { font-size:.8rem; } }

@media(max-width:599px) { .personal-mission { grid-template-columns:1fr;display:block;} .personal-mission__portrait { float:none;max-width:none;display:block;width:100%;padding:.25rem;border:2px solid #ff8a3d;border-top:3px solid #ffcc00;border-radius:.6rem;background:#111111;box-sizing:border-box;align-self:start;} .personal-mission__portrait img {max-height:none;display:block;width:100%;height:auto;object-fit:contain;border-radius:.35rem;} .personal-mission__numbers { grid-template-columns:1fr; } }

.reader-context__copy .callout__title { display:block; margin-bottom:.5rem; font-size:.75rem; letter-spacing:.12em; }
.reader-context__copy .copy-group { margin:0; font-size:.9rem; }
.reader-context__copy .copy-facts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; }
.reader-context__links { display:flex; gap:.4rem 1rem; flex-wrap:wrap; margin-top:.6rem; font-size:.82rem; }
.reader-context__links p { margin:0; }
.motion-toggle { position:absolute; top:12px; right:12px; z-index:4; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #ffffff45; border-radius:4px 10px 4px 4px; background:#080c12c9; color:#ffffff; font:inherit; font-size:.75rem; font-weight:800; cursor:pointer; box-shadow:0 2px 8px #0004; }
.motion-toggle:hover { background:#b64408; }
.motion-toggle:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
html[data-motion="paused"] .home-stats .stat.is-revealed,html[data-motion="paused"] .home-stats .stat.is-revealed::after,html[data-motion="paused"] .stat,html[data-motion="paused"] .stat::after,html[data-motion="paused"] .stat__value,html[data-motion="paused"] .meter__fill::after,html[data-motion="paused"] .jr__stamp i,html[data-motion="paused"] .jr__fc i { animation-play-state:paused; }
.section-hero-video { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); max-width:none; z-index:0; pointer-events:none; }
.hud-hero:has(.section-hero-video) { overflow:hidden; isolation:isolate; }
.hud-hero:has(.section-hero-video)::before { z-index:1; opacity:1; background:linear-gradient(90deg,#080c12ed,#080c1260); mask-image:none; pointer-events:none; }
.hud-hero:has(.section-hero-video) .hud-hero__text { position:relative; z-index:2; color:#ffffff; }
.hud-hero:has(.section-hero-video) .hud-title,.hud-hero:has(.section-hero-video) .hud-lede { color:#ffffff; }
.card__media:has(.card-preview-video) { position:relative; overflow:hidden; }
.card-preview-surface{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.card__media.has-video-surface .card-preview-video{opacity:0}
.card-preview-video { object-fit:contain; background:#080808; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:none; z-index:1; pointer-events:none; }
.home-stats .stat { position:relative; overflow:hidden; isolation:isolate; }
.home-stats .stat__value { display:block; font-variant-numeric:tabular-nums; }
.home-stats .stat::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(110deg,transparent 20%,#ffab5c20 50%,transparent 80%); transform:translateX(-140%); }
.home-stats .stat { --stat-delay:0s; }
.home-stats .stat:nth-child(2) { --stat-delay:1.5s; }
.home-stats .stat:nth-child(3) { --stat-delay:3s; }
.home-stats .stat:nth-child(4) { --stat-delay:4.5s; }
.home-stats .stat.is-revealed { animation:stat-edge 8s ease-in-out var(--stat-delay) infinite; }
.home-stats .stat.is-revealed::after { animation:stat-scan 8s ease-in-out var(--stat-delay) infinite; }
.meter__fill::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,#fff8,transparent); transform:translateX(-100%); animation:meter-scan 3.5s ease-in-out infinite; }
.home-motto--closing { display:flex; justify-content:center; flex-wrap:wrap; align-items:center; gap:.6rem; margin:1.25rem auto; }
.closing-update { max-width:65ch; margin-inline:auto; }
.publication-source { width:min(100% - 2 * var(--gutter),var(--content-w)); margin:1rem auto; display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .6rem; font-size:.75rem; line-height:1.5; padding:.65rem .9rem; border-top:1px solid var(--border); }
.publication-source__label { font-size:.62rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
@keyframes stat-scan { 0%,70% { transform:translateX(-140%); } 95%,100% { transform:translateX(140%); } }
@keyframes stat-edge { 0%,70%,100% { box-shadow:var(--shadow-2); } 85% { box-shadow:var(--shadow-2),inset 0 0 0 1px #ffbd8650,0 0 16px #ff9b3012; } }
@keyframes stat-rise { from { opacity:.15; transform:translateY(35%) rotateX(-35deg); filter:blur(2px); } to { opacity:1; transform:none; filter:none; } }
@keyframes meter-scan { 0%,30% { transform:translateX(-100%); } 80%,100% { transform:translateX(100%); } }
@media(max-width:700px) { .reader-context--visual { grid-template-columns:70px minmax(0,1fr); gap:.6rem; padding:.85rem; } .reader-context__preview { height:70px;grid-column:1;grid-row:1; } .reader-context__copy{display:contents;} .reader-context__copy .callout__title{grid-column:2;grid-row:1;align-self:center;margin:0;} .reader-context__copy .copy-group{grid-column:1 / -1;} .reader-context__copy .copy-facts { grid-template-columns:minmax(0,1fr); gap:.4rem; } .reader-context__copy .copy-facts>div { padding-block:0; } .reader-context__copy .copy-facts dt { display:inline; margin-right:.35rem; } .reader-context__copy .copy-facts dd { display:inline; font-size:.9em; } .reader-context__links { grid-column:1/-1; font-size:.72rem; } }
@media(prefers-reduced-motion:reduce) { .home-stats .stat.is-revealed,.home-stats .stat.is-revealed::after,.home-stats .stat.is-revealed .stat__value,.meter__fill::after,.jr__stamp i,.jr__fc i { animation:none; } }

/* ---- home hero (a framed cover banner in the same column as the menu, like a page cover photo) ---- */
.home-hero {
  position: relative;
  display: grid;
  align-items: end;
  width: min(100% - 2 * var(--gutter), var(--content-w));
  margin: var(--s-4) auto 0;
  border-radius: var(--r-3, 14px);
  min-height: clamp(26rem, 40vw, 33rem);
  padding: var(--s-9) 0 calc(var(--s-8) + var(--s-6));
  background: var(--inverse);
  color: var(--on-dark);
  isolation: isolate;
  overflow: hidden;
}
.home-hero__img { max-width: none; position: absolute; inset: auto; top: 50%; left: 50%; z-index: auto; width: 100%; height: 100%; object-fit: contain; opacity: 1; transform: translate(-50%, -50%); } /* The entire authored frame, including its Instagram caption, remains visible. */
.home-hero__media { position:absolute; inset:0; width:100%; background:#08090c; z-index:0; }
.home-hero__surface { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.home-hero__media.has-video-surface .home-hero__img { opacity:0; }
/* Fade the clip caption with the shade layer. Masking a transformed video
   produces stale text textures in Android Chrome's emulator compositor. */
@media (max-width: 84rem) {
  .home-hero { --home-hero-shade: linear-gradient(180deg, rgb(8 9 12 / .3) 0%, rgb(8 9 12 / .4) 50%, rgb(8 9 12 / .96) 72%, #08090c 100%); }
}
.home-hero::after { content: ""; position: absolute; inset:0; z-index: 1; pointer-events: none; background: linear-gradient(90deg,#08090ce8 0%,#08090ca8 38%,#08090c15 65%,transparent 100%); }
.home-hero__inner { position: relative; z-index: 2; width: 100%; padding-inline: clamp(var(--s-4), 4vw, var(--s-7)); }
.home-hero__inner > * {max-width:min(44rem,58%); }
.home-hero h1 { font-size:clamp(2rem,4.3vw,4rem); }
@media(max-width:1099px) {
 .home-hero { display:grid; }
 .home-hero__img { top:0; transform:translateX(-50%); }
 .home-hero h1 { max-width:58%; }
 .home-hero::after { background:linear-gradient(90deg,#08090cd9,#08090c60 72%,#08090c20); }
 .home-hero__inner { padding:1.5rem; }
 .home-hero__inner > * {max-width:min(44rem,58%); }
}
.home-hero .eyebrow { max-width: min(44rem, calc(100% - 3rem)); color: var(--on-dark-accent); }
.home-hero h1 { margin: 0 0 var(--s-4); color:#ffffff; font-size:clamp(2rem,4.3vw,4rem); line-height: 1; letter-spacing: -.045em; }
.home-hero h1 span { color: var(--on-dark-accent); }
.home-hero .lead { color: var(--on-dark-2); }
.home-motto { margin: 0 0 var(--s-5); font-size: var(--step--1); font-weight: 750; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark); }
.home-motto span { color: var(--on-dark-accent); }

/* secondary button that sits on an always-dark surface */
.home-btn-light { background: transparent; border-color: rgb(255 255 255 / .45); color:#ffffff; }
.home-btn-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; color:#ffffff; }

/* stats overlap the bottom edge of the hero */
.home-stats { position: relative; z-index: 2; margin: var(--s-4) 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hud-wrap > .hud-intro.home-status-intro:first-child { margin-top:var(--s-3); }
/* The desktop overview places the personal context beside its measured status. */
@media(min-width:1440px){
.home-status-intro{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:1rem;align-items:stretch;}
.home-status-intro>.home-stats{grid-column:1/-1;margin:0;}
.home-status-intro>.personal-mission{margin:0;grid-template-columns:clamp(120px,9vw,180px) minmax(0,1fr);gap:1rem;}
.home-status-intro>.personal-mission h2,.home-status-intro>.personal-mission>div>.eyebrow{text-align:left;}
.home-status-intro>.personal-mission .personal-mission__portrait img{max-height:260px;}
.home-status-intro>.goalmeter{margin:0;display:flex;flex-direction:column;justify-content:center;}
.home-status-intro>.goalmeter .goalmeter__grid{grid-template-columns:minmax(0,1fr);}
}

.home-stats .stat { box-shadow: var(--shadow-2); }
@media (min-width: 800px) { .home-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- "FILE 01" feature folders --------------------------------------- */
.home-folder { flex: 1; border-top: 3px solid var(--accent-strong); border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3); }
.home-folder .card__media { aspect-ratio: 4 / 3; }
.home-folder .card__media img { object-position: 50% 22%; transition: transform .4s var(--ease); }
.home-folder:hover .card__media img { transform: scale(1.03); }
/* Home portals share one media frame, with full images and readable native labels. */
.carousel--portal .home-folder { height:100%; display:flex; flex-direction:column; }
.carousel--portal .home-folder .card__media { position:relative; width:100%; height:auto;min-height:0;aspect-ratio:4/3; background:#080808; overflow:hidden; }
.carousel--portal .home-folder .card__media img { width:100%; height:100%; object-fit:contain; object-position:center; transform:none; }
.carousel--portal .home-folder .card__body { flex:1;min-height:4rem;display:flex;align-items:flex-start;justify-content:center;text-align:left; }
@media(min-width:1100px) { .carousel--portal { --collection-columns:repeat(4,minmax(0,1fr)); } }
.story-preview{display:block}.carousel--portal .home-folder .story-preview img{object-fit:cover;object-position:50% 28%}.carousel--portal .home-folder .card__title{margin:0;font-weight:650;overflow-wrap:normal;word-break:normal;hyphens:none;}
.story-preview figure { position:relative; margin:0; min-width:0; height:100%; overflow:hidden; }
.story-preview figcaption { position:absolute; bottom:0; left:0; right:0; padding:.35rem .4rem; background:#080808d9; color:#ffffff; font-size:.6rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.system-preview { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.65rem; padding:.8rem; color:#ffffff; background:radial-gradient(ellipse at 70% 0,#58321d,transparent 75%),#101217!important; }
.system-preview__covers { display:flex; justify-content:center; height:clamp(56px,7vw,88px); gap:.4rem; }
.carousel--portal .system-preview__covers img { width:auto; height:100%; max-width:45%; border:1px solid #f3bd7c70; border-radius:3px; box-shadow:0 5px 10px #0008; }
.system-preview__title { font-size:clamp(.85rem,1.6vw,1.25rem); font-weight:900; letter-spacing:.06em; line-height:1.1; }
.system-preview__topics { display:flex; flex-wrap:wrap; justify-content:center; gap:.25rem .4rem; color:#f7c18f; font-size:.58rem; font-weight:700; }
.system-preview__topics span+span::before { content:"·"; margin-right:.4rem; }
.home-folder__num { font-size: var(--step--2); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home-folder__cta { margin-top: auto; padding-top: var(--s-2); font-size: var(--step--1); font-weight: 700; color: var(--accent); }

/* ---- CTA band on dark ------------------------------------------------- */
.home-cta { position:relative; overflow:hidden; isolation:isolate; margin-block:var(--s-7); }
.home-cta__video { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:none; z-index:-2; opacity:.5; }
.home-cta::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#08090ce8,#08090ca8,#08090ce8); pointer-events:none; }
.home-cta .eyebrow { color: var(--on-dark-accent); }
.home-cta h2 { font-size: var(--step-4); letter-spacing: -.035em; }
.home-cta p { color: var(--on-dark-2); }
.home-cta a:not(.btn) { color: var(--on-dark-accent); }
.layout--flush .home-cta { margin-block: 0; }

/* ---- FAQ -------------------------------------------------------------- */
.home-faq__list { max-width: none; }
@media (min-width: 52rem) { .home-faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); align-items: start; } .home-faq__list .acc { margin: 0; } }
.home-faq .acc { background: var(--surface); }

/* ---- biometric record card ------------------------------------------- */
.home-record { max-width: none; gap: 0; }
.home-record p:last-of-type { margin-bottom: var(--s-4); }
.home-record .btn { align-self: flex-start; }

/* ---- goals page: metric tiles ---------------------------------------- */
.home-goals { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.home-goal { margin: 0; }
.home-goal + .home-goal { margin-top: 0; }
.home-goal__nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; margin: var(--s-2) 0 var(--s-3); font-variant-numeric: tabular-nums; }
.home-goal__now { font-size: var(--step-4); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent-2); }
.home-goal__arrow { font-size: var(--step-2); color: var(--muted); }
.home-goal__target { font-size: var(--step-3); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.home-goal__unit { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.home-goal__bar { display: block; width: 100%; height: .5rem; margin: 0 0 var(--s-3); border: 0; border-radius: var(--r-1); background: var(--surface-3); overflow: hidden; appearance: none; -webkit-appearance: none; }
.home-goal__bar::-webkit-progress-bar { background: var(--surface-3); border-radius: var(--r-1); }
.home-goal__bar::-webkit-progress-value { background: var(--accent-2); border-radius: var(--r-1); }
.home-goal__bar::-moz-progress-bar { background: var(--accent-2); border-radius: var(--r-1); }
.home-goal .card__meta { margin: 0; }
.home-laws p { font-size: var(--step-1); font-weight: 650; }

/* roadmap */
.home-roadmap-acc { margin-top: var(--s-6); }
.home-roadmap-acc > .acc__body { padding-top: var(--s-5); }
.home-rule { margin-bottom: var(--s-5); }
.home-phases { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.home-phase { margin: 0; border-top: 3px solid var(--accent-strong); border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3); }
.home-phase + .home-phase { margin-top: 0; }
.home-phase > * { margin: 0; }
.home-phase > * + * { margin-top: var(--s-2); }
.home-phase__num { display: block; font-size: var(--step-4); font-weight: 800; letter-spacing: .06em; line-height: 1; color: var(--accent); }
.home-phase__months { display: block; font-size: var(--step--2); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.home-phase__foot { padding-top: var(--s-3); margin-top: auto; border-top: 1px solid var(--line); }
.home-phase { display: flex; flex-direction: column; }

/* ---- story page ------------------------------------------------------- */
.home-glance { max-width: 46rem; margin-bottom: var(--s-5); }
.home-glance .timeline { margin-bottom: 0; }
.home-glance__label { display: block; font-weight: 600; }

.home-quote { margin: 0 0 var(--s-6); padding: var(--s-2) 0 var(--s-2) var(--s-5); border-left: 4px solid var(--accent-strong); max-width: 46rem; }
.home-quote p { margin: 0; font-size: var(--step-2); font-weight: 650; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }

.home-photos { list-style: none; margin: var(--s-6) 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.home-photos > li { margin: 0; }
.home-photos button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-3); overflow: hidden; }
.home-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; transition: transform .4s var(--ease); }
.home-photos button:hover img { transform: scale(1.03); }
.home-photos figcaption { margin-top: var(--s-2); font-size: var(--step--1); font-weight: 650; color: var(--muted); }
@media (min-width: 640px) { .home-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); } }

.home-era {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent-strong);
  border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3);
  background: var(--inverse);
  color: var(--on-dark);
}
.home-era--now { background: linear-gradient(155deg, var(--accent-strong) 0%, var(--inverse) 100%); }
.home-era__num { font-size: var(--step-4); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--on-dark-accent); }
.home-era--now .home-era__num { color:#ffffff; }
.home-era__range { font-size: var(--step--2); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.home-era h4 { margin: 0; color:#ffffff; font-size: var(--step-1); }
.home-era p { margin: 0; color: var(--on-dark-2); font-size: var(--step--1); line-height: 1.55; }
.home-provenance { margin-top: var(--s-5); font-size: var(--step--1); }
.home-stations { list-style: none; margin: 0; padding: 0; }
.home-stations > li { margin: 0; }
.home-stations button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-3); overflow: hidden; }
.home-stations img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.home-stations .media { margin: 0; }

/* ---- library ---------------------------------------------------------- */
.home-hero-cover { object-position: 50% 28%; opacity: .38; }
.home-downloads { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.home-downloads > li { margin: 0; }
.home-dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-strong);
  border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.home-dl__cover { width: 8rem; aspect-ratio: 600 / 850; object-fit: cover; border-radius: var(--r-2); box-shadow: var(--shadow-2); background: var(--surface-3); }
.home-dl__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); min-width: 0; }
.home-dl__body > * { margin: 0; }
.home-dl__body .card__title { font-size: var(--step-2); }
.home-dl__body .btn-row { margin-top: var(--s-3); }
.home-dl--plain { border-top-color: var(--accent-2); }
@media (min-width: 640px) {
  .home-dl { grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-6); padding: var(--s-5); }
  .home-dl__cover { width: 100%; }
  .home-dl--plain { grid-template-columns: minmax(0, 1fr); }
}

.home-kindle { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); max-width: none; border-left-color: var(--accent-2); }
.home-kindle > * { margin: 0; }
.home-kindle .card__title { font-size: var(--step-2); }
.home-kindle p { max-width: 46rem; }

.home-doors { list-style: none; padding: 0; }
.home-doors > li { margin: 0; display: flex; }
.home-door { flex: 1; border-top: 3px solid var(--accent-strong); border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3); }
.home-door > * { margin: 0; }
.home-door p { margin-top: var(--s-2); color: var(--text-2); }
.home-registry .card__title { margin-bottom: var(--s-2); font-size: var(--step-1); }
.home-hero-portrait { object-position: 50% 14%; }
.home-history caption { display: block; width: 100%; }

/* ===== 41-workout.css ===== */
/* Workout page – the training log is a set of category carousels (src/css/31-carousel.css);
   these rules only shape the reel cards inside them. */
/* Workout journal: compact two-column cards with equally sized preview images. */
.card.log-card { display:flex; flex-direction:column; align-self:stretch; height:100%; }
.card.log-card .card__body { min-width:0; flex:1; justify-content:space-between; padding:.6rem; gap:.35rem; }
.card.log-card .card__media { position:relative; width:100%; min-height:0; height:clamp(160px,20vw,220px); aspect-ratio:auto; flex:none; background:#080808; }
.card.log-card .card__media img { object-fit:contain; object-position:center; transform:none; background:#080808; }
.log-card .yt__play svg { width:2.5rem; height:2.5rem; }
@media(min-width:1000px) { .carousel--journal { --collection-columns:repeat(auto-fit,minmax(210px,1fr)); } }
.card.log-card .vid-cap__title { min-height:2.5em; font-size:clamp(.8rem,1.6vw,1rem); }
.card.log-card .vid-cap__go { margin-top:.25rem; }
.log-card .card__title { font-size: var(--step-0); line-height: 1.25; }
.log-card .card__meta { font-size: var(--step--2); }
.log-card .yt { height: 100%; aspect-ratio: auto; }
.log-card__tag { position: absolute; top: var(--s-2); left: var(--s-2); z-index: 1; pointer-events: none; border-color: transparent; background: var(--inverse); color: var(--inverse-text); }

/* ===== 42-gear.css ===== */
/* ==========================================================================
   Gear family (gear-anchors, -grips, -gym, -photos, -recovery, -resistance,
   -rig, -safety, -shop). Everything here is prefixed .gear-.
   Built on the shared vocabulary: .card, .tag, .acc, .callout, .scroller, .yt,
   [data-gallery]. Only the pieces unique to the gear pages live in this file.
   ========================================================================== */

/* ---- inventory groups ---------------------------------------------------- */
.gear-group { margin-top: var(--s-7); }
.gear-group:first-of-type { margin-top: var(--s-5); }
.gear-group__title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--step-2);
}
.gear-group__title::before {          /* folder-tab marker */
  content: "";
  flex: none;
  width: .45rem;
  height: 1.1em;
  border-radius: 2px;
  background: var(--accent-strong);
}

.gear-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gear-list > li { min-width: 0; margin: 0; }
.gear-list__wide { grid-column: 1 / -1; }

/* ---- product card ---------------------------------------------------------- */
.gear-item { height: 100%; }
.gear-item .card__media { aspect-ratio: 4 / 3; }
.gear-item .card__media img { object-fit: contain; padding: var(--s-2); }
.gear-item__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.gear-item__zoom:hover img { filter: brightness(1.05); }
.gear-item .card__body { gap: var(--s-2); }
.gear-item .card__body > p { font-size: var(--step--1); line-height: 1.6; color: var(--text-2); }
.gear-item .card__title { font-size: var(--step-0); line-height: 1.25; overflow-wrap:normal; word-break:normal; }
.gear-item__spec, .gear-item__badge { align-self: flex-start; }
.gear-item__badge { margin-top: auto; }
.gear-item--text { border-top: 3px solid var(--accent-strong); border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3); }
.gear-item--text .card__body { padding-top: var(--s-4); }

.gear-item--wide .card__media {   }
@media (min-width: 800px) {
  .gear-item--wide { flex-direction: row; }
  .gear-item--wide .card__media { flex: 0 0 15rem; aspect-ratio: auto; max-height: none; }
  .gear-item--wide .card__body { padding: var(--s-5); }
  .gear-item--wide .card__title { font-size: var(--step-1); }
}

/* phones: compact product rows (thumbnail left, text right) */
@media (max-width: 559px) {
  .gear-item:not(.gear-item--wide) { flex-direction: row; }
  .gear-item:not(.gear-item--wide):not(.card--portrait) .card__media { flex: 0 0 7.5rem;   min-height: 7.5rem; }
  .gear-item:not(.gear-item--wide) .card__body { padding: var(--s-3) var(--s-4) var(--s-4); }
  .gear-item--text .card__body { padding-top: var(--s-3); }
}

.gear-note {
  margin: var(--s-7) 0 0;
  padding-left: var(--s-4);
  border-left: 3px solid var(--line-strong);
  max-width: 46rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---- resistance: bundle directory ---------------------------------------- */
.gear-bundles { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.gear-bundles__title { margin: 0; font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.gear-bundles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s-3); align-items: start; }
.gear-bundles .acc { margin: 0; background: var(--surface-2); }
.gear-bundles .acc > summary { padding: var(--s-3) var(--s-4); min-height: 2.75rem; }
.gear-bundles .acc > summary::after { margin-left: 0; }
.gear-bundles .acc__body { padding: var(--s-3) var(--s-4) var(--s-4); font-size: var(--step--1); }
.gear-bundles .acc__body p { margin: 0 0 var(--s-2); }
.gear-bundle__name { font-weight: 750; }
.gear-bundle__force { margin-left: auto; margin-right: var(--s-2); color: var(--accent-2); font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gear-bundle__comp { color: var(--text); }
.gear-bundle__use { color: var(--text-2); }
.gear-grades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.gear-grades li { margin: 0; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.gear-grades strong { display: block; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.gear-grades span { display: block; font-size: var(--step--1); color: var(--muted); }

/* ---- gym walkthroughs (video cards in a scroller) ------------------------ */
.gear-tour .card__media { position: relative; aspect-ratio: 3 / 4; }
.gear-tour .yt { height: 100%; aspect-ratio: auto; }
.gear-tour .card__title { font-size: var(--step-0); line-height: 1.3; }
.gear-tour__link { align-self: flex-start; margin-top: auto; }
.gear-badge { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 1; pointer-events: none; background: var(--accent-strong); color: var(--accent-ink); }

/* ---- photo posts ------------------------------------------------------------ */
.gear-posts { margin: 0; padding: 0; list-style: none; }
.gear-posts > li { min-width: 0; margin: 0; }
.gear-post { height: 100%; }
.gear-post .card__media { position: relative; aspect-ratio: 1 / 1; }
.gear-post__stats { display: flex; gap: var(--s-4); font-variant-numeric: tabular-nums; }
.gear-post__cta { margin-top: auto; padding-top: var(--s-2); font-weight: 700; font-size: var(--step--1); color: var(--accent); }

/* ---- rig photo wall (masonry via columns) ---------------------------------- */
.gear-photos { columns: 2; column-gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.gear-photos > li { break-inside: avoid; margin: 0 0 var(--s-3); }
.gear-photo button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-3); background: var(--surface-3); overflow: hidden; }
.gear-photo img { width: 100%; height: auto; transition: transform .3s var(--ease); }
.gear-photo button:hover img { transform: scale(1.03); }
.gear-photo figcaption { padding: var(--s-2) var(--s-1) 0; font-size: var(--step--1); font-weight: 650; color: var(--text-2); }
@media (min-width: 720px) { .gear-photos { columns: 3; column-gap: var(--s-4); } .gear-photos > li { margin-bottom: var(--s-4); } }

/* ---- safety: load-path chain + check lists --------------------------------- */
.gear-chain { position: relative; max-width: 46rem; margin: 0 0 var(--s-5); padding: 0; list-style: none; counter-reset: none; }
.gear-chain__step {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: var(--s-4);
  margin: 0;
  padding-bottom: var(--s-5);
}
.gear-chain__step:last-child { padding-bottom: 0; }
.gear-chain__step::before {           /* connector between steps */
  content: "";
  position: absolute;
  left: calc(1.25rem - 1px);
  top: 2.5rem;
  bottom: .25rem;
  width: 2px;
  background: var(--line-strong);
}
.gear-chain__step:last-child::before { display: none; }
.gear-chain__n {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-2);
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gear-chain__title { margin: .15rem 0 var(--s-1); font-size: var(--step-1); }
.gear-chain__step p { margin: 0; color: var(--text-2); }

.gear-checks { display: grid; gap: var(--s-4); margin: var(--s-7) 0 var(--s-5); }
@media (min-width: 800px) { .gear-checks { grid-template-columns: 1fr 1fr; } }
.gear-checks__col { border-top: 3px solid var(--ok); }
.gear-checks__col--warn { border-top-color: var(--warn); }
.gear-checks__col h3 { margin-bottom: var(--s-4); font-size: var(--step-1); }
.gear-checks__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.gear-checks__list li { position: relative; margin: 0; padding-left: 2rem; font-size: var(--step--1); line-height: 1.6; }
.gear-checks__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gear-checks__col--warn .gear-checks__list li::before {
  background: var(--warn);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.9L2.7 17.5a1.5 1.5 0 0 0 1.3 2.25h16a1.5 1.5 0 0 0 1.3-2.25L13.7 3.9a1.5 1.5 0 0 0-2.6 0z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.9L2.7 17.5a1.5 1.5 0 0 0 1.3 2.25h16a1.5 1.5 0 0 0 1.3-2.25L13.7 3.9a1.5 1.5 0 0 0-2.6 0z'/%3E%3C/svg%3E");
}
#gear-source > .callout, #gear-source > .acc { max-width: 46rem; }
#gear-source > .callout { margin-bottom: var(--s-4); }

/* ===== 43-protocol.css ===== */
/* ==========================================================================
   Protocol family – shared chapter styles (FIT PROTOCOL pages).
   .chap  = one encyclopedia chapter on a page      .source-ref = “Encyclopedia V2.0 · PDF page N” label
   Sub-families extend this in 44-*.css (chapters, supplements …) and 45-vectors.css.
   ========================================================================== */

.chap { margin: 0 0 var(--s-7); }
.chap + .chap { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.chap > .section__head { max-width: none; }
.chap h2 { font-size: var(--step-3); }
.chap h3 { margin-top: var(--s-5); font-size: var(--step-1); }
.chap h4 { margin-top: var(--s-5); font-size: var(--step--1); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.chap .prose, .acc__body.prose { max-width: 46rem; }
.chap .table-wrap { margin-top: var(--s-5); }

.source-ref {
  display: inline-block;
  margin: 0 0 var(--s-3);
  padding: .15rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: .02em;
}
.chap__next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); font-weight: 650; }
.chap__source { margin: var(--s-5) 0 0; color: var(--muted); font-size: var(--step--1); }
.analysis { margin-top: var(--s-5); }
.analysis p { margin: 0; }

/* guide-note accordions use the same heading rhythm as chapters */
.acc__body h3 { margin-top: var(--s-4); font-size: var(--step-1); }
.acc__body h4 { margin-top: var(--s-5); font-size: var(--step--1); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.acc__body > :first-child { margin-top: 0; }

/* ===== 44-protocol-a.css ===== */
/* ==========================================================================
   Protocol family A – overview hub, baseline, constraints, history, daily
   clock, checklists, guidebook, pill cards, troubleshooting, nutrition.
   Prefix: .chap-…  (extends the shared .chap / .source-ref blocks in 43-protocol.css)
   ========================================================================== */

/* ---- shared small pieces --------------------------------------------- */
.chap__caption { margin: var(--s-3) 0 0; color: var(--muted); font-size: var(--step--1); }
.chap > .callout {  }
.chap .analysis > * + * { margin-top: var(--s-3); }
.chap > .source-ref { margin-top: var(--s-3); }

.chap-registry, .chap-glance { margin: 0 0 var(--s-6); }
.chap-registry p, .chap-glance p { max-width: 46rem; margin: 0; }
.chap-registry p + p, .chap-glance p + p { margin-top: var(--s-3); }
.chap-registry .callout__title { margin-bottom: var(--s-3); }

.chap-list { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
.chap-list li + li { margin-top: var(--s-2); }

/* collapsed guide notes: heading rhythm inside accordions (the .chap h3/h4 rules do not reach them) */
.chap-acc .acc__body > :first-child { margin-top: 0; }
.chap-acc .acc__body h3 { margin: var(--s-4) 0 var(--s-3); font-size: var(--step-1); }
.chap-acc .acc__body > .source-ref + h3 { margin-top: 0; }
.chap-acc .acc__body h4 { margin: var(--s-5) 0 var(--s-3); font-size: var(--step--1); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.chap-acc .acc__body .table-wrap { margin: var(--s-4) 0; }
.chap-acc .acc__body .callout { margin: var(--s-4) 0; }
.chap-acc .acc__body .callout p { margin: 0; }
.chap-acc .acc__body .callout p + p { margin-top: var(--s-3); }
.chap-acc + .chap__source { margin-top: var(--s-4); }
.chap-acc .acc__body .chap__source { margin-top: var(--s-4); }

/* ---- checklists ------------------------------------------------------- */
.chap-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.chap-checks li { position: relative; margin: 0; padding-left: 2rem; }
.chap-checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--accent-2); border-radius: 4px; background: var(--surface);
}
.chap-checks--flag { margin: var(--s-3) 0; }
.chap-checks--flag li::before { border-color: var(--danger); }

/* Training day / rest day: one list, two columns on tablet and up. DOM order is the source order. */
.chap-split { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.chap-split > li { margin: 0; min-width: 0; }
.chap-split__head--rest, .chap-split__item--rest { order: 1; }
.chap-split__head h4 { margin: var(--s-2) 0 0; font-size: var(--step--1); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.chap-split__head--train h4 { color: var(--accent); }
.chap-split__head--rest h4 { color: var(--accent-2); }
.chap-split__item {
  position: relative;
  padding: var(--s-3) var(--s-4) var(--s-3) 2.9rem;
  border: 1px solid var(--line); border-left-width: 3px;
  border-radius: var(--r-2); background: var(--surface);
}
.chap-split__item--train { border-left-color: var(--accent-strong); }
.chap-split__item--rest { border-left-color: var(--accent-2); }
.chap-box {
  position: absolute; left: var(--s-4); top: 1.05rem;
  width: 1.1rem; height: 1.1rem; overflow: hidden;
  font-size: 0; line-height: 0; color: transparent;
  border: 2px solid var(--muted); border-radius: 4px; background: var(--surface);
}
@media (min-width: 640px) {
  .chap-split { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--s-3) var(--s-4); }
  .chap-split__head--train, .chap-split__item--train { grid-column: 1; order: 0; }
  .chap-split__head--rest, .chap-split__item--rest { grid-column: 2; order: 0; }
}

/* ---- daily clock (chapter 4) ----------------------------------------- */
.chap-branches { margin-bottom: var(--s-5); }
.chap-flow { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-2); align-items: center; }
.chap-flow li { display: inline-flex; align-items: center; gap: .45em; margin: 0; font-weight: 650; line-height: 1.3; }
.chap-flow li span { color: var(--accent); font-weight: 800; }

/* ---- overview hub ----------------------------------------------------- */
.chap-hub-wrap { margin: 0 0 var(--s-6); container: chapter-hub / inline-size; }
.chap-hub-wrap .grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; }
@container chapter-hub (min-width: 52rem) { .chap-hub-wrap .grid--3 { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.chap-hub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.chap-hub > li { margin: 0; min-width: 0; }
.chap-hub__card { height: 100%; border-top: 3px solid var(--accent-strong); }
.chap-hub__card .card__media { aspect-ratio: 16 / 10; }
.chap-hub__card .card__body { gap: var(--s-1); padding: clamp(.6rem,1.5vw,var(--s-4)); }
.chap-hub__num { font-size: var(--step--2); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chap-hub__card .card__title { font-size: clamp(.9rem,2vw,var(--step-1)); line-height: 1.2; }
.chap-hub__cta { margin-top: auto; padding-top: var(--s-2); font-size: var(--step--1); font-weight: 650; color: var(--accent); }
.chap-hub__plain { display: grid; place-items: center; background: var(--inverse); }
.chap-hub__plain::after { content: attr(data-n); font-size: var(--step-5); font-weight: 800; letter-spacing: -.04em; color:#ffffff; }
@media (min-width: 640px) {
  .chap-hub { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
}

/* ---- tables whose first column names the row (phone cards get a header strip) ---- */
.chap-rowhead tbody th { font-weight: 700; color: var(--text); }
.chap-rowhead thead td { border-bottom: 2px solid var(--line-strong); }
@media (max-width: 639px) {
  .chap-rowhead caption { display: block; padding: 0 0 var(--s-2); }
  .chap-rowhead tbody th,
  .chap-rowhead td:first-child {
    display: block; width: 100%;
    padding: .6rem var(--s-4);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-size: var(--step--1); font-weight: 750; color: var(--text);
  }
  .chap-rowhead td:first-child { display: block; }
  .chap-rowhead td:first-child::before { display: none; }
}

/* ---- guidebook: manual card, branch switch, clock steps --------------- */
.chap-page { display: flex; flex-direction: column; gap: var(--s-6); }
.chap-page > .page-hero { order: -1; margin: 0; }      /* the manual card sits before the hero in the frozen source order */
.chap-page > .section { padding-block: 0; }
.chap-page > .card, .chap-page > nav { margin: 0; }

.chap-manual .card__title { font-size: var(--step-2); }
.chap-manual .stats { max-width: 30rem; margin: var(--s-4) 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chap-manual .stat { padding: var(--s-3); }
.chap-manual .stat__value { font-size: var(--step-2); }
.chap-manual .prose p { margin: 0 0 var(--s-3); }
.chap-manual .prose > :last-child { margin-bottom: 0; }

.chap-branch { position: relative; }
.chap-branch__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chap-branch__tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-1);
  max-width: 34rem; margin: 0 0 var(--s-4); padding: var(--s-1);
  border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface-2);
}
.chap-branch__tabs label {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 var(--s-2);
  border-radius: var(--r-2);
  color: var(--text-2); font-size: var(--step--1); font-weight: 700; text-align: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.chap-branch__tabs label:hover { color: var(--accent); }
.chap-branch__input[value="training"]:checked ~ .chap-branch__tabs label[for="branch-training"],
.chap-branch__input[value="rest"]:checked ~ .chap-branch__tabs label[for="branch-rest"],
.chap-branch__input[value="evening"]:checked ~ .chap-branch__tabs label[for="branch-evening"] {
  background: var(--accent-strong); color: var(--accent-ink);
}
.chap-branch__input[value="training"]:focus-visible ~ .chap-branch__tabs label[for="branch-training"],
.chap-branch__input[value="rest"]:focus-visible ~ .chap-branch__tabs label[for="branch-rest"],
.chap-branch__input[value="evening"]:focus-visible ~ .chap-branch__tabs label[for="branch-evening"] {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.chap-branch__note { margin: 0 0 var(--s-5); }
.chap-branch__note p { margin: 0; max-width: 46rem; }

.chap-branch__panel { display: none; }
.chap-branch__input[value="training"]:checked ~ .chap-branch__panels [data-branch="training"],
.chap-branch__input[value="rest"]:checked ~ .chap-branch__panels [data-branch="rest"],
.chap-branch__input[value="evening"]:checked ~ .chap-branch__panels [data-branch="evening"] { display: grid; }

.chap-clock { list-style: none; margin: 0; padding: 0; counter-reset: chap-step; gap: var(--s-3); }
.chap-clock__step {
  position: relative; counter-increment: chap-step; margin: 0;
  padding: var(--s-4) var(--s-4) var(--s-4) calc(var(--s-4) + 2.75rem);
  border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface);
}
.chap-clock__step::before {
  content: counter(chap-step); position: absolute; left: var(--s-4); top: var(--s-4);
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: var(--r-2); background: var(--accent-soft); color: var(--accent);
  font-size: var(--step--1); font-weight: 800; font-variant-numeric: tabular-nums;
}
.chap-clock__title { margin: 0 0 var(--s-2); padding-top: .2rem; font-size: var(--step-1); letter-spacing: -.01em; }
.chap-clock__step p { margin: 0; max-width: 46rem; }
@media (min-width: 640px) {
  .chap-clock__step { padding-right: var(--s-5); padding-left: calc(var(--s-5) + 2.75rem); }
  .chap-clock__step::before { left: var(--s-5); }
}

/* ---- pill cards -------------------------------------------------------- */

/* ---- nutrition ---------------------------------------------------------- */
.chap-nutri { margin-bottom: var(--s-5); }
.chap-nutri .card__media { aspect-ratio: 4 / 3; }
.chap-thumbs__label { font-weight: 700; }
.chap-thumbs { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.chap-thumbs li { margin: 0; }
.chap-thumbs button { display: block; width: 100%; aspect-ratio: 3 / 5; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.chap-thumbs button:hover { border-color: var(--accent); }
.chap-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.chap-targets { margin-bottom: var(--s-5); }
.chap-targets .card__title { max-width: none; }
.chap-targets .stats { margin: var(--s-4) 0 var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chap-targets .stats + .chap__caption { margin: 0 0 var(--s-5); }
@media (min-width: 640px) { .chap-targets .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .chap-targets .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.chap-targets .stat__value { font-size: var(--step-2); }
.chap-targets .prose p { margin: 0 0 var(--s-3); }
.chap-targets .prose > :last-child { margin-bottom: 0; }

/* ---- hero over busy artwork --------------------------------------------- */
.chap-hero-quiet .page-hero__img { opacity: .4; }
.chap__source + .chap-acc { margin-top: var(--s-5); }
.chap .prose .lead { font-weight: 450; font-size: var(--step-1); }
.page-hero .lead a { color:var(--accent); }

/* heroes without a photo: keep a visible dark banner in both themes */
.chap-hero-plain {
  min-height: clamp(8rem, 18vw, 11rem);
  border-top: 4px solid var(--accent-strong);
  background: linear-gradient(135deg, color-mix(in srgb, var(--inverse-text) 18%, var(--inverse)), var(--inverse));
}

/* ===== 45-protocol-b.css ===== */
/* ==========================================================================
   Protocol family B (.pb-) – interactions, margins, labs, monitoring, joints,
   progression, supplements.  Builds on the shared .chap / .source-ref /
   .analysis rules in 43-protocol.css and the components in 30-components.css.
   ========================================================================== */

/* ---- identity banner without a photo (no tall black slab) --------------- */
.page-hero.pb-hero--plain { min-height: 0; border: 1px solid var(--line-strong); border-top: 4px solid var(--accent-strong); }
.pb-hero--plain .page-hero__text { padding-block: var(--s-6); }

/* ---- chapter text rhythm --------------------------------------------- */
.chap .prose > .lead { margin: 0 0 var(--s-5); font-weight: 650; color: var(--text); }
.chap > .callout { margin-top: var(--s-5); }
.chap > .acc { margin-top: var(--s-4); }
.chap > .acc + .acc { margin-top: var(--s-3); }
.chap > .table-wrap + .callout { margin-top: var(--s-5); }
.chap > .chap__next { margin-top: var(--s-5); }

/* ---- accordion bodies outside a .chap (daily guide notes) ------------ */
.pb-notes { margin-top: var(--s-6); }
.pb-notes .acc__body > h3 { margin: var(--s-4) 0 var(--s-3); font-size: var(--step-1); }
.pb-notes .acc__body > h3:first-child { margin-top: 0; }
.pb-notes .acc__body > h4 { margin: var(--s-5) 0 var(--s-3); font-size: var(--step--1); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.pb-notes .acc__body > .table-wrap { margin: var(--s-4) 0 var(--s-5); }
.pb-notes .acc__body > .callout { margin: 0 0 var(--s-4); }
.acc .acc__body > .table-wrap:only-child { margin: 0; border: 0; border-radius: 0; background: none; }
.acc .acc__body > .table-wrap:only-child caption { padding-left: 0; }
.acc .acc__body > .table-wrap:only-child :is(th, td):first-child { padding-left: 0; }

/* ---- rule lists (checklist-style bullets) ----------------------------- */
.pb-rules { margin: 0 0 var(--s-4); padding: 0; list-style: none; display: grid; gap: var(--s-3); }
.pb-rules > li { position: relative; margin: 0; padding: var(--s-3) var(--s-4) var(--s-3) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.pb-rules > li::before { content: ""; position: absolute; left: var(--s-4); top: 1.05rem; width: .5rem; height: .5rem; border-radius: 2px; background: var(--accent-strong); }
.acc__body > .pb-rules:last-child { margin-bottom: 0; }
/* inside an accordion the list is flat: hairlines instead of nested boxes */
.acc__body > .pb-rules { gap: 0; }
.acc__body > .pb-rules > li { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding-left: var(--s-5); }
.acc__body > .pb-rules > li:last-child { border-bottom: 0; }
.acc__body > .pb-rules > li::before { left: 0; }

/* ---- interaction matrix ---------------------------------------------- */
.pb-matrix td.pb-matrix__num { color: var(--accent); font-size: var(--step-1); font-weight: 800; }
@media (min-width: 640px) {
  .pb-matrix table { min-width: 44rem; }
  .pb-matrix td { min-width: 9rem; }
  .pb-matrix td.pb-matrix__num { min-width: 0; width: 2.5rem; }
}
.pb-matrix td.pb-matrix__name { font-weight: 700; color: var(--text); }
@media (max-width: 639px) {
  .pb-matrix td.pb-matrix__num { width: 100%; font-size: var(--step-0); background: var(--surface-2); }
  .pb-matrix td.pb-matrix__name { font-size: var(--step-0); }
}

/* ---- monitoring: next-review banner ----------------------------------- */
.pb-review { margin: 0 0 var(--s-6); max-width: 46rem; }
.pb-review p { margin-bottom: var(--s-2); }

/* ---- supplements page -------------------------------------------------- */
/* Source order keeps the hard-coded 21+2 summary first (wording order is frozen);
   the identity banner is lifted to the top visually. */
.pb-page { display: flex; flex-direction: column; }
.pb-page > * { min-width: 0; }
.pb-page > .page-hero { order: -2; }
.pb-page > .pb-grid { order: -1; margin: 0 0 var(--s-6); }

.pb-grid h2 { font-size: var(--step-2); margin-bottom: var(--s-4); }
.pb-grid .stats { margin-bottom: var(--s-5); }
.pb-grid .stat { background: var(--surface-2); }
.pb-grid .stat:first-child .stat__value { color: var(--accent); }
.pb-grid__stages { margin-bottom: var(--s-5); }
.pb-grid__stages dd { margin-bottom: var(--s-3); }
.pb-grid .callout { margin-bottom: var(--s-4); }
.pb-grid .callout p { margin: 0; }
.pb-grid__note { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
@media (min-width: 640px) {
  .pb-grid.card--pad { padding: var(--s-5) var(--s-6) var(--s-6); }
  .pb-grid__stages { grid-template-columns: 11rem minmax(0, 1fr); }
}

.pb-summary { margin: 0 0 var(--s-7); }
.pb-summary__art { display: none; }
.pb-summary__text > :last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .pb-summary { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s-5); align-items: start; }
  .pb-summary__art { display: block; width: 6rem; height: auto; border: 1px solid var(--line); border-radius: var(--r-2); background: #fff; }
}

.pb-groups { display: grid; gap: var(--s-4); margin: var(--s-5) 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.pb-groups > li { margin: 0; display: flex; }
.pb-group { flex: 1; position: relative; }
.pb-group > * { margin: 0; }
.pb-group > * + * { margin-top: var(--s-2); }
.pb-group__title { font-size: var(--step-1); }
.pb-group__count { font-size: var(--step--1); font-weight: 750; letter-spacing: .02em; color: var(--accent-2); }
.pb-group__tag { align-self: flex-start; margin-bottom: var(--s-2); }
.pb-group__tag + .pb-group__title { margin-top: 0; }

/* ===== 46-nutrition.css ===== */
/* ==========================================================================
   Nutrition / health family (.nut-…)
   Pages: fit-nutrition, fit-meals, fit-nutrition-notes, liquid-intake, biometrics, mineral-chemistry.
   Blocks:  .nut-rows/.nut-row/.nut-grid/.nut-meal   filterable meal rows with reel cards
            .nut-intro                               callout with a decorative illustration
            .nut-vec-list/.nut-vec                   liquid-intake vector file (poster + recipe)
            .nut-branches                            three-way branch summary
            .nut-timeline/.nut-entry/.nut-fact       dated measurements, planning bands, nutrient figures
            .nut-photo/.nut-links/.nut-after         small helpers
   Tokens only, except the seven vector identity hues (a data palette, see below).
   ========================================================================== */

/* ---- vector identity hues (one per liquid vector; used as a 3px tab edge only) */
.nut-vec--v1  { --nut-hue: #a6c969; }
.nut-vec--v2  { --nut-hue: #64c9d6; }
.nut-vec--v3  { --nut-hue: #dfbf75; }
.nut-vec--v4  { --nut-hue: #ea637c; }
.nut-vec--v5  { --nut-hue: #94a9dd; }
.nut-vec--v6  { --nut-hue: #cd94de; }
.nut-vec--v10 { --nut-hue: #b2a0cf; }

/* ---- small helpers --------------------------------------------------- */
.nut-after { margin-top: var(--s-5); }
.nut-before { margin-bottom: var(--s-5); }
.nut-links { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.nut-links li { margin: 0; }
.nut-links a {
  display: flex; align-items: center; min-height: 2.75rem;
  padding: 0 var(--s-4);
  border: 1px solid var(--line); border-left: 3px solid var(--accent-2); border-radius: var(--r-2);
  background: var(--surface);
  font-weight: 650; text-decoration: none;
}
.nut-links a:hover { border-color: var(--accent); border-left-color: var(--accent); text-decoration: none; }
@media (min-width: 640px) { .nut-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.nut-photo { max-width: 26rem; margin: var(--s-5) 0 0; }
.nut-photo img { aspect-ratio: 1; object-fit: cover; }

/* ---- meal rows: each category is a .carousel (src/css/31-carousel.css) --------- */
.nut-meal .card__media { position: relative; aspect-ratio: 4 / 5; }
.nut-meal .card__body { padding: var(--s-3) var(--s-3) var(--s-4); gap: var(--s-1); }
@media (min-width: 640px) { .nut-meal .card__body { padding: var(--s-4); } }
.nut-meal__tag {
  position: absolute; top: var(--s-2); left: var(--s-2);
  border-color: transparent; background: var(--inverse); color: var(--inverse-text);
}
.nut-meal__date { font-size: var(--step--2); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nut-meal .card__title { font-size: var(--step-0); line-height: 1.25; }
.nut-meal__stats { display: flex; gap: var(--s-3); margin: 0; padding: 0; list-style: none; font-size: var(--step--1); font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; }
.nut-meal__stats li { margin: 0; }
.nut-meal__cta { margin-top: auto; padding-top: var(--s-2); font-size: var(--step--1); font-weight: 700; color: var(--accent); }
.nut-meal__ing { font-size: var(--step--1); color: var(--text-2); }

/* ---- intro callout with illustration --------------------------------- */
.nut-intro { display: grid; gap: var(--s-4); align-items: center; }
.nut-intro p { margin: 0; }
.nut-intro__art { width: 100%; border-radius: var(--r-2); background: var(--surface-3); }
@media (min-width: 800px) {
  .nut-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: var(--s-6); }
}

/* ---- liquid vector files --------------------------------------------- */
.nut-vec-list { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.nut-vec-list > li { min-width: 0; margin: 0; }

.nut-vec__body { min-width: 0; }
.nut-vec__body > :last-child { margin-bottom: 0; }

.nut-vec__base, .nut-vec__protocol { margin: 0 0 var(--s-4); }
.nut-vec__base { padding: var(--s-3) var(--s-4); border-radius: var(--r-2); background: var(--surface-2); }
.nut-vec__base strong, .nut-vec__protocol strong {
  display: block; margin-bottom: .1rem;
  font-size: var(--step--2); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
}
.nut-vec__ingredients { margin: 0 0 var(--s-4); padding: 0; list-style: none; }
.nut-vec__ingredients li {
  position: relative; margin: 0; padding: .45rem 0 .45rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.nut-vec__ingredients li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: .45rem; height: .45rem; border-radius: 2px; background: var(--nut-hue, var(--accent-strong));
}
.nut-vec__ingredients li:last-child { border-bottom: 0; }
.nut-vec__links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.nut-vec__sep { display: none; }


/* ---- branch summary -------------------------------------------------- */
.nut-branches { display: grid; gap: var(--s-3); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.nut-branches li {
  margin: 0; padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line); border-top: 3px solid var(--accent-2); border-radius: var(--r-1) var(--r-3) var(--r-3) var(--r-3);
  background: var(--surface); color: var(--text-2);
}
.nut-branches strong { display: block; margin-bottom: .15rem; font-size: var(--step-1); letter-spacing: -.01em; color: var(--text); }
@media (min-width: 720px) { .nut-branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- dated measurements ---------------------------------------------- */
.nut-timeline { margin-bottom: 0; }
.nut-timeline > li { min-width: 0; }
.nut-entry { box-shadow: none; }
.nut-entry p:last-child { margin-bottom: 0; }
.nut-entry__date { margin: 0 0 var(--s-1); font-size: var(--step--2); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.nut-entry__value { margin: 0 0 var(--s-2); font-size: var(--step-1); font-weight: 780; letter-spacing: -.01em; line-height: 1.3; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.nut-entry--unverified { border-style: dashed; border-left: 4px solid var(--warn); }
.nut-entry--planned { border-style: dashed; border-color: var(--line-strong); background: var(--surface-2); }

/* ---- figures: planning bands and nutrient cards ---------------------- */
.nut-fact { line-height: 1.55; }
.nut-fact p:last-child { margin-bottom: 0; }
.nut-fact__value { margin: 0 0 var(--s-2); font-size: var(--step-1); font-weight: 780; letter-spacing: -.01em; line-height: 1.3; color: var(--accent-2); font-variant-numeric: tabular-nums; }
h3.nut-fact__value { font-size: var(--step-2); }
.nut-fact__name { margin: 0 0 var(--s-1); font-size: var(--step--1); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
p.nut-fact__value { margin-bottom: var(--s-3); }

.nut-facts { display: grid; gap: var(--s-4); }
.nut-facts .nut-fact { height: 100%; }
@media (min-width: 800px) { .nut-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 47-vectors.css ===== */
/* ==========================================================================
   Vectors family (FIT PROTOCOL · Liquid Intake): overview, V1–V6, V10, notes.
   Prefix .vec-   Builds on .page-hero, .stats, .callout, .acc, .kv, .btn, .card.

   .vec-page      page wrapper (flex column so the identity hero can lead the page
                  although the key-actives block precedes it in the source order)
   .vec-key       key actives: stat tiles + one fact row per active
   .vec-sheet     one vector's formula sheet (poster + timing, shaker, ingredients, notes)
   .vec-record    the canonical "current record" text for a vector
   .vec-file      overview card for one vector (links to its own page)
   .vec-gallery   lineup of vector portraits (opens the shared lightbox)
   .vec-ref       cards on the vector-notes page
   ========================================================================== */

/* Decorative per-vector swatches (artwork colours). Used for edges and dots only, never for text. */
:root {
  --vec-v1: #b7ed42;
  --vec-v2: #50d7f0;
  --vec-v3: #e7ba57;
  --vec-v4: #f06778;
  --vec-v5: #ce8fe9;
  --vec-v6: #799bd6;
  --vec-v10: #cc9de9;
}
.vec--v1 { --vec-accent: var(--vec-v1); }
.vec--v2 { --vec-accent: var(--vec-v2); }
.vec--v3 { --vec-accent: var(--vec-v3); }
.vec--v4 { --vec-accent: var(--vec-v4); }
.vec--v5 { --vec-accent: var(--vec-v5); }
.vec--v6 { --vec-accent: var(--vec-v6); }
.vec--v10 { --vec-accent: var(--vec-v10); }

/* ---- page wrapper ---------------------------------------------------- */
.vec-page { display: flex; flex-direction: column; gap: var(--s-6); }
.vec-page > * { margin: 0; min-width: 0; }
.vec-page > .page-hero { order: -1; }

/* ---- key actives ------------------------------------------------------ */
.vec-key {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
@media (min-width: 640px) { .vec-key { padding: var(--s-5); } }
.vec-key__title { margin: 0 0 var(--s-4); font-size: var(--step-2); }
.vec-key__title [aria-hidden] { margin-right: .15em; }
.vec-key__stats {  }
.vec-key .stat { margin: 0; padding: var(--s-3) var(--s-4); background: var(--surface-2); border-color: transparent; }
.vec-key .stat__value { font-size: var(--step-2); color: var(--accent-2); }
.vec-key__note { margin: 0; }
.vec-key__note p { margin: 0; }

.vec-facts { margin: 0 0 var(--s-5); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.vec-facts > li { display: grid; gap: var(--s-1); margin: 0; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.vec-facts__label { color: var(--text); }
.vec-facts span { color: var(--text-2); }
@media (min-width: 800px) {
  .vec-facts > li { grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr); gap: var(--s-5); }
}

/* ---- vector sheet (single-vector pages) -------------------------------- */
.vec-sheet {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 4px solid var(--vec-accent, var(--accent-strong));
  border-radius: var(--r-3);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.vec-sheet__art { width: min(100%, 18rem); margin: 0 auto; }
.vec-sheet__art img { width: 100%; height: auto; }
.vec-sheet__main { display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.vec-sheet__main > * { margin: 0; }
.vec-sheet__head h2 { margin: 0; font-size: var(--step-3); }
.vec-sheet__hint { margin: var(--s-2) 0 0; color: var(--text-2); font-size: var(--step-1); line-height: 1.4; }
.vec-sheet .acc { margin: 0; }
.vec-sheet__actions { margin-top: var(--s-2); }
@media (min-width: 800px) {
  .vec-sheet { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6); }
  .vec-sheet__art { position: sticky; top: calc(var(--header-h) + var(--s-4)); align-self: start; width: 100%; margin: 0; }
}

/* when / shaker lines */
.vec-spec { display: grid; gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--line); overflow: hidden; }
.vec-spec p { margin: 0; padding: var(--s-3) var(--s-4); background: var(--surface-2); }
.vec-spec__when { font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.vec-spec--inline { display: block; padding: var(--s-3) var(--s-4); background: var(--surface-2); border-color: var(--line); }
.vec-spec--inline .vec-spec__name { margin-right: .35em; font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }

/* ingredient list */
.vec-ingredients { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.vec-ingredients > li {
  position: relative;
  margin: 0;
  padding: var(--s-3) var(--s-4) var(--s-3) calc(var(--s-4) + 1rem);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface);
}
.vec-ingredients > li::before {
  content: "";
  position: absolute;
  left: var(--s-4);
  top: 1.2em;
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background: var(--vec-accent, var(--accent-2));
  box-shadow: 0 0 0 1px var(--line-strong);
}

/* ---- current record --------------------------------------------------- */
.vec-record {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--r-2);
  background: var(--surface);
}
.vec-record > * { margin: 0; }
@media (min-width: 640px) { .vec-record { padding: var(--s-4) var(--s-5); } }
.vec-record > * + * { margin-top: var(--s-2); }
.vec-record__title { font-size: var(--step--1); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
h2.vec-record__title { font-size: var(--step--1); }
.vec-record__when { font-weight: 700; }

/* ---- overview: one card per vector --------------------------------------- */
.vec-files__list { display: grid; gap: var(--s-4); }

/* ---- vector notes page ------------------------------------------------ */
.vec-ref-grid { margin-top: var(--s-5); }
.chap .vec-ref h3 { margin: 0 0 var(--s-2); }
.vec-ref p { margin: 0; }
.vec-ref__when { font-weight: 700; color: var(--accent-2); }
.vec-ref-note { margin-top: var(--s-5); }
.vec-ref-note p { margin: 0; }

/* ===== 48-pills.css ===== */
/* Daily pill cards – live text rendered from src/data/pill-cards.json (scripts/components.py). */
.pcard__key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-5); color: var(--muted); font-size: var(--step--1); }
.pcard-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.pcard-grid > li { min-width: 0; margin: 0; }
@media (min-width: 720px) { .pcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.pcard { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-3); background: var(--surface); padding: var(--s-4); }
.pcard__head { display: grid; gap: var(--s-1); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.pcard__step { font-size: var(--step--2); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pcard__title { margin: 0; font-size: var(--step-2); }
.pcard__count { margin: 0; font-family: var(--font-mono); font-size: var(--step--1); color: var(--accent-2); font-weight: 650; }
.pcard__branch { margin: var(--s-3) 0 0; color: var(--muted); font-size: var(--step--1); }
.pcard__items { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 0; }
.pcard__item { display: grid; gap: var(--s-1); margin: 0; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.pcard__item:first-child { border-top: 0; }
.pcard__name { font-weight: 700; line-height: 1.3; }
.pcard__dose { color: var(--accent-2); font-weight: 650; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.pcard__glyphs { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.pill-g { width: 1.75rem; height: .875rem; flex: none; fill: var(--surface-2); stroke: var(--text-2); stroke-width: 1.4; }
.pill-g--opt { stroke-dasharray: 3 2.5; stroke: var(--muted); }
.pcard__note, .pcard__rule { margin: var(--s-3) 0 0; color: var(--muted); font-size: var(--step--1); }
.pcard__rule { margin-top: var(--s-5); }

/* ===== 62-update6: @ panel rows, carousel pause button, count-up tones, status-vs-goal meters (2026-10-07) ===== */
.fab-panel__list li:nth-child(8) { animation-delay: .30s; } .fab-panel__list li:nth-child(9) { animation-delay: .34s; }
.fab-panel { z-index: 46; }

.carousel__pp {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-left: auto; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.carousel__pp svg { width: .9rem; height: .9rem; }
.carousel__pp:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.carousel__pp[hidden] { display: none; }
.carousel__btn[hidden], .carousel__bar[hidden] { display: none; }
.carousel.is-drift .carousel__item { scroll-snap-align: none; }

/* current figures vs goal figures */
.stat[data-tone="now"] { border-color: color-mix(in srgb, var(--accent-strong) 55%, var(--line)); }
.stat[data-tone="now"] .stat__value { color: var(--accent); }
.stat[data-tone="goal"] { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 70%, var(--surface)); }
.stat[data-tone="goal"] .stat__value { color: var(--ok); }
.stat__value.is-counting { text-shadow:none; }
.stat[data-tone="goal"] .stat__value.is-counting { text-shadow:none; }

.goalmeter { margin: var(--s-6) 0 0; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); box-shadow: var(--shadow-1, none); }
.goalmeter__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem var(--s-4); margin-bottom: var(--s-4); }
.goalmeter__title { margin: 0; font-size: var(--step-1); letter-spacing: -.01em; }
.goalmeter__key { display: flex; gap: var(--s-4); font-size: var(--step--2); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.goalmeter__key i { display: inline-block; width: .7rem; height: .7rem; margin-right: .4rem; border-radius: 50%; vertical-align: -.05rem; }
.goalmeter__key .k-now i { background: var(--accent-strong); } .goalmeter__key .k-goal i { background: var(--ok); }
.goalmeter__grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .goalmeter__grid { grid-template-columns: 1fr 1fr; } }
.meter__top { margin-bottom: 1.05rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem var(--s-3); }
.meter__name { font-weight: 800; letter-spacing: .01em; }
.meter__nums { font-variant-numeric: tabular-nums; font-size: var(--step-1); font-weight: 800; letter-spacing: -.02em; }
.meter__now { color: var(--accent); }
.meter__sep { color: var(--muted); font-weight: 600; margin: 0 .15em; }
.meter__goal { color: var(--ok); }
.meter__track { position: relative; height: 1.05rem; margin: .55rem 0 .35rem; border-radius: 99px; background: var(--surface-3); overflow: visible; }
.meter__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); min-width: .5rem; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-strong), color-mix(in srgb, var(--accent-strong) var(--mix, 40%), var(--ok)));
  box-shadow: 0 0 14px -2px var(--glow); transition: width 1.5s cubic-bezier(.2,.8,.2,1); }
.meter.is-armed .meter__fill { width: 0; }
.meter__tick { position: absolute; top: -.3rem; bottom: -.3rem; left: var(--g, 100%); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ok); box-shadow: 0 0 10px -1px color-mix(in srgb, var(--ok) 70%, transparent); }
.meter__tick::after { content: attr(data-label); position: absolute; bottom: calc(100% + .1rem); right: -.1rem; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); white-space: nowrap; }
.meter__scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter__note { margin: .35rem 0 0; font-size: var(--step--1); color: var(--muted); }
.goalmeter__foot { margin: var(--s-4) 0 0; font-size: var(--step--2); color: var(--muted); }


/* ===== 70-update7: one info card, then the illustrated content; pop-out close buttons; image-only carousels ===== */
/* the single glowing information card that opens a page */
.page-hero + .callout, .page-hero + .vec-key, .vec-page > .vec-key, .goalmeter, .callout.chap-registry {
  border: 1px solid color-mix(in srgb, var(--accent-strong) 70%, var(--line));
  border-left-width: 4px; border-left-color: var(--accent-strong);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-strong) 10%, var(--surface)), var(--surface) 65%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-strong) 18%, transparent), 0 0 26px -8px var(--glow), var(--shadow-2, none);
  border-radius: var(--r-3);
}
.page-hero + .callout .callout__title, .vec-key .vec-key__title { color: var(--accent); }
/* everything that is only background information sits at the bottom of a page, quietly */
.after-note { display: grid; gap: .35rem; margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: var(--step--1); }
.after-note .eyebrow { margin: 0; }
.after-note .lead { margin: 0; font-size: inherit; color: inherit; }
.vec-more { display: grid; gap: var(--s-4); }
.vec-more .vec-facts { margin: 0; }

/* page heads take less phone screen so the carousels show without scrolling */
@media (max-width: 719px) {
  .page-hero { min-height: 8.5rem; margin-bottom: var(--s-4); }
  .page-hero h1 { font-size: var(--step-3); }
  .page-hero__text { padding-block: var(--s-4); }
  .section { padding-block: var(--s-5); }
  .section__head { margin-bottom: var(--s-3); }
}

/* carousels: pictures only (the title is in the picture or the row heading); a thick red bar shows where you are */
.carousel--media { --c-w: 9.8rem; }
@media (min-width: 720px) { .carousel--media { --c-w: 13rem; } }
.carousel--media .carousel__item { display: flex; align-items: stretch; }
.carousel--media .carousel__item > .card { height: auto; background: transparent; border: 0; box-shadow: none; }
.carousel--media .card__media { aspect-ratio: 3 / 4; height: auto; flex: 0 0 auto; border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-3); }
.carousel--media .card__media img, .carousel--media .card__media .yt, .carousel--media .card__media .yt img { width:100%; height:100%; object-fit:contain; object-position:center; background:#080808; display:block; }
.carousel--media .card--link:hover { transform: none; box-shadow: none; }
.carousel--media .card--link:hover .card__media { border-color: var(--accent); box-shadow: 0 0 20px -6px var(--glow); }
.carousel--media .card__media > a { display: block; height: 100%; }

/* media carousels: every picture or clip is its own bordered card; a tap opens the pop-up viewer / player */
.carousel--media .carousel__item > .card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-3); box-shadow: var(--shadow-1); overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.carousel--media .carousel__item > .card:hover,
.carousel--media .carousel__item > .card:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong), 0 12px 26px -14px var(--glow); }
.carousel--media .card__media { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.carousel--media .card--link:hover .card__media { border-color: var(--line); box-shadow: none; }
.carousel--video .yt { cursor: pointer; }
.carousel--video .yt:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.carousel--video .yt__play svg { transition: transform .2s var(--ease); }
.carousel--video .card:hover .yt__play svg { transform: scale(1.1); }
.vid-cap { padding: var(--s-2) var(--s-3) var(--s-3); gap: .3rem; flex: 1; }
.vid-cap__title { font-size: var(--step--1); font-weight: 750; line-height: 1.25; letter-spacing: -.005em; color: var(--text); display: block; min-height: 2.5em; overflow-wrap: anywhere; }
.vid-cap__go { font-size: var(--step--2); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-top: auto; }

/* video pop-up (shares the .lightbox shell with the image viewer) */
.lightbox--video { width: min(96vw, 30rem); }
.lightbox__title { flex: 1 1 100%; min-width: 0; align-self: center; font-size: var(--step--1); font-weight: 750; line-height: 1.25; color:#ffffff; }
@media (min-width: 480px) { .lightbox__title { flex-basis: 0; margin-right: auto; } }
.lightbox--video .lightbox__bar { justify-content: flex-end; }
/* preview pop-up for page-link rows and text chapter cards */
.lightbox--card { width: min(96vw, 34rem); }
.lightbox--card .lightbox__title { display: none; }
.pv { display: flex; flex-direction: column; min-height: 0; overflow: auto; background: #08090c; }
.pv__img { display: block; width: 100%; max-height: 56dvh; object-fit: contain; background: #000; }
.pv__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); }
.pv__body > * { margin: 0; }
.pv__kick { font-size: var(--step--2); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.pv__title { font-size: var(--step-2); line-height: 1.15; letter-spacing: -.015em; color:#ffffff; text-wrap: balance; }
.pv__text { font-size: var(--step-0); line-height: 1.55; color:#ffffff; max-width: 62ch; }
.pv__go { margin-top: var(--s-2); min-height: 3rem; padding: 0 1.4rem; background: var(--accent-strong); border-color: var(--accent-strong); font-size: var(--step-0); }
.pv__go:hover { filter: brightness(1.1); }
.pv [hidden] { display: none !important; }
.vplayer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); flex: 1; min-height: 0; padding: var(--s-3); background: #000; }
.vplayer__frame { aspect-ratio: 9 / 16; height: min(76dvh, 44rem, calc((96vw - 2rem) * 16 / 9)); background: #000; border-radius: var(--r-2); overflow: hidden; }
.vplayer__alt { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s-3); font-size: var(--step--1); font-weight: 750; color: var(--amber); text-decoration: underline; text-underline-offset: .2em; }
.vplayer__alt:hover { color:#ffffff; }
.vplayer__frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* rows of file cards that go two deep, so six to eight pages are in view at once instead of one long line */
/* Shared authored collection: original card surfaces, proportional 2 × 2 overview. */
.carousel.collection-grid { --c-w:auto; }
.carousel.collection-grid .carousel__track { display:grid; grid-template-columns:var(--collection-columns,repeat(2,minmax(0,1fr))); grid-template-rows:none; grid-auto-rows:1fr;grid-auto-flow:row;align-items:stretch; grid-auto-columns:auto;gap:clamp(.4rem,1.5vw,1rem);margin:0;padding:0;overflow:visible;width:100%; opacity:1; transition:opacity .18s; }
.carousel.collection-grid.is-changing .carousel__track { opacity:0; }
.carousel.collection-grid .carousel__item { display:flex;min-width:0; width:100%; max-width:100%; flex:none; }
.carousel.collection-grid .carousel__item[hidden] { display:none!important; }
.carousel.collection-grid:not(.carousel--portal) .card:not(.card--portrait):not(.log-card) .card__media,.carousel.collection-grid .file-card:not(.file-card--portrait) .file-card__thumb { width:100%; height:auto; aspect-ratio:16/10; max-height:clamp(100px,18svh,200px); min-height:0; }
.carousel.collection-grid .card:not(.log-card) .card__media img { object-fit:contain; }
.carousel.collection-grid .card__body { padding:clamp(.45rem,1.5vw,.9rem); }
.carousel.collection-grid .card__title { font-size:clamp(.85rem,1.6vw,1.1rem); line-height:1.3; }
.carousel.collection-grid .carousel__stage { overflow:visible; mask-image:none; -webkit-mask-image:none; }
.collection-controls { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; margin:.4rem 0 .7rem; }
.collection-controls button { min-width:44px; min-height:44px; padding:.3rem .6rem; border:1px solid var(--line-strong); border-radius:3px; background:var(--surface-2); color:var(--text); font:inherit; font-size:.8rem; cursor:pointer; }
.collection-controls span { font-size:.75rem; font-variant-numeric:tabular-nums; }
@media(prefers-reduced-motion:reduce) { .carousel.collection-grid .carousel__track { transition:none; } }
.carousel--rows2 .carousel__track { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: var(--c-w); gap: var(--c-gap); }
.carousel--rows2 .carousel__item { flex: none; width: auto; }
.carousel--rows2 .home-folder:not(.card--portrait) .card__media { aspect-ratio: 16 / 10; }
.carousel--rows2 .card__body { padding: var(--s-2) var(--s-3) var(--s-3); gap: 0; }
.carousel--rows2 .card__title { font-size: var(--step-0); line-height: 1.2; }
.carousel--hub .chap-hub__card:not(.card--portrait) .card__media { aspect-ratio: 16 / 10; }
.carousel--hub .chap-hub__card .card__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 719px) { .carousel--rows2 { --c-w: 10.2rem; } .carousel--file.carousel--rows2 .file-card:not(.file-card--portrait) { padding: .5rem; } }

/* the @ links panel: a Close X in its corner */
.fab-panel__head { position: sticky; top: -.6rem; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: -.6rem -.6rem .35rem; padding: .55rem .6rem .4rem .9rem; background: var(--surface); border-radius: var(--r-4) var(--r-4) 0 0; }
.fab-panel__head .fab-panel__title { margin: 0; }
.pop-close { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pop-close svg { width: 1.15rem; height: 1.15rem; }
.pop-close:hover, .pop-close:focus-visible { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.lightbox__btn[data-lb="close"] { font-size:.875rem;min-width:60px;padding-inline:.4rem;font-weight:800; }

/* Footer groups remain native disclosures, with every destination retained. */
.site-foot__inner > * { min-width:0; }
.carousel__stage, .section, .wrap { min-width: 0; }

/* compact key-fact tiles: two or three across on a phone, not one long column */
.vec-key__stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.6rem), 1fr)); gap: var(--s-2); }
@media (max-width: 719px) { .vec-key .stat { padding: var(--s-2) var(--s-3); } .vec-key .stat__value { font-size: var(--step-1); } .vec-key__title { font-size: var(--step-1); margin-bottom: var(--s-3); } }
/* file cards in the two-row carousels: picture on top, name below */
.carousel--rows2 .file-card:not(.file-card--portrait) { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .4rem; padding: .5rem; }
.carousel--rows2 .file-card:not(.file-card--portrait) .file-card__thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
.carousel--rows2 .file-card__title { font-size: var(--step-0); }

/* ===== 80-update8: footer link rows that loop by themselves, bottom download bar + pop-out ===== */
.site-foot ul[data-marquee] { scrollbar-width: none; scroll-snap-type: none; }
.site-foot ul[data-marquee] li { scroll-snap-align: none; }
.site-foot li a[aria-current="page"] { color:var(--text); text-decoration:underline; }

/* One aligned end-of-page component: matching columns, shapes and entrance. */
.has-dlbar { padding-bottom:var(--page-dock-clearance); }
[data-bottom-controls] { --page-dock-clearance:calc(var(--page-dock-height,108px) + 16px + env(safe-area-inset-bottom,0px)); padding-bottom:var(--page-dock-clearance); --home-dock-duration:.65s; --home-dock-ease:cubic-bezier(.22,.8,.25,1); }
.page-dock { position:fixed;z-index:45;bottom:calc(.6rem + env(safe-area-inset-bottom,0px));left:50%;width:min(calc(100% - 24px),960px);display:grid;grid-template-columns:52px minmax(0,1fr);align-items:stretch;gap:6px;transform:translate(-50%,calc((1 - var(--dl-p,0)) * (100% + 1.5rem)));opacity:var(--dl-p,0);visibility:hidden;transition:transform var(--home-dock-duration) var(--home-dock-ease),opacity var(--home-dock-duration) var(--home-dock-ease);}
.page-dock[data-dock-layout="links"]{left:12px;width:52px;grid-template-columns:minmax(0,1fr);transform:translateY(calc((1 - var(--dl-p,0)) * (100% + 1.5rem)))}
[data-bottom-visible] .page-dock {visibility:visible}
.page-dock .fab-dock{grid-column:1;grid-row:1;min-width:0}
.page-dock .fab-switch{grid-column:3;grid-row:1}
.page-dock .page-dock__action{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;min-height:60px;height:100%;padding:5px 7px;border:1px solid var(--line-strong);border-bottom:3px solid var(--accent-strong);border-radius:8px;background:var(--text);color:var(--surface);box-shadow:0 3px 12px #0002;text-decoration:none;font:750 12px/1.2 var(--font-sans);letter-spacing:0}
.page-dock .page-dock__action:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.page-dock .fab--at,.page-dock .fab-switch{flex-direction:column;gap:2px;font-size:10px}
.page-dock__glyph,.page-dock .fab-switch__glyph{display:grid;place-items:center;flex:none;width:20px;height:20px;background:none;color:var(--accent);font-size:20px}
.page-dock .home-links-label{font:inherit}
.page-dock .fab-panel{bottom:calc(100% + 8px);left:0;right:auto;width:min(330px,calc(100vw - 24px))}
.dl-bar{grid-column:2;grid-row:1;min-width:0;padding:0;visibility:inherit}
.dl-bar[hidden]{display:none}
.dl-bar__inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;height:100%;min-width:0}
.dl-bar__label,.dl-bar__kick,.dl-bar__go{display:none}
.page-dock .dl-bar__half{justify-content:flex-start;cursor:pointer;text-align:left;background:var(--surface);color:var(--text)}
.dl-bar__half:hover{border-color:var(--accent-strong)}
.dl-bar__cover{display:block;flex:none;width:26px;height:38px;object-fit:cover;border-radius:3px;box-shadow:0 2px 5px #0005}
.dl-bar__txt{display:grid;gap:2px;min-width:0;line-height:1.15}
.dl-bar__txt strong{font-size:clamp(10px,1.6vw,14px);font-weight:800;white-space:normal}
.dl-bar__txt small{font-size:10px;font-weight:450;color:var(--muted)}
.dl-bar__open{color:var(--accent-strong);font-size:10px;line-height:1.2;font-weight:750}
@media(max-width:559px){.page-dock{grid-template-columns:44px minmax(0,1fr);gap:4px}.dl-bar__inner{gap:4px}.page-dock .page-dock__action{padding:4px;gap:4px}.page-dock .fab-switch{font-size:9px}.dl-bar__cover{width:18px;height:27px}.dl-bar__txt small{display:none}.dl-bar__txt strong{font-size:10px}.dl-bar__open{font-size:9px}}

/* ===== 90-update9: business-card tones ===== */
/* header: orange line with an amber hairline under it, like the stripes on the card */
.site-head { box-shadow: 0 1px 0 var(--line); }
.page-hero .eyebrow, .cta .eyebrow { color: var(--amber); }
.btn--primary { box-shadow: 0 6px 18px -8px var(--glow); }

/* ==========================================================================
   Readable text blocks (update 14)
   Ingredient / dose runs become rows: name, then quantity + dose, notes under.
   Wide boxes put quantity + dose on the right of the name; narrow boxes (phones) stack them.
   Long prose becomes a bold lead-in plus short paragraphs.
   ========================================================================== */
.ing-wrap { display: grid; gap: var(--s-2); margin-block: var(--s-3); container-type: inline-size; min-width: 0; }
.ing-when { margin: 0; font: 800 var(--step--2)/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ing-list { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--surface); }
.ing-list .ing { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: .2rem; margin: 0; padding: .6rem .75rem .6rem .8rem; border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent-strong); }
.ing-list .ing:nth-child(even) { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.ing-list > .ing:last-child { border-bottom: 0; }
.ing__name { min-width: 0; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; color: var(--text); }
.ing__amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; line-height: 1.2; }
.ing__qty { font: 800 var(--step-0)/1.1 var(--font-mono); color: var(--accent); }
.ing__dose { font: 600 var(--step--1)/1.15 var(--font-mono); color: var(--muted); }
.ing__qty + .ing__dose::before { content: "· "; }
.ing__note { font-size: var(--step--1); line-height: 1.4; color: var(--muted); }
.ing--noamt .ing__name { font-weight: 600; }
.ing--note { display: block !important; font-size: var(--step--1); line-height: 1.45; color: var(--muted); border-left-color: var(--line-strong) !important; background: transparent !important; }
.ing--group { display: block !important; padding: 0 !important; border-left-color: var(--accent-2, var(--accent)) !important; background: color-mix(in srgb, var(--accent-2, var(--accent)) 7%, var(--surface)) !important; }
.ing__glabel { display: block; padding: .5rem .8rem .2rem; font: 800 var(--step--2)/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2, var(--accent)); }
.ing-list--nested { border: 0; border-radius: 0; background: transparent; }
.ing-list--nested .ing { background: transparent !important; border-left-color: transparent; padding-left: 1.1rem; }
.ing__sub { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ing__sub li { margin: 0; padding: .15rem .5rem; font-size: var(--step--2); line-height: 1.3; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
@container (min-width: 21rem) {
  .ing-list .ing { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); align-items: baseline; }
  .ing__amt { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; text-align: right; gap: .1rem; }
  .ing__amt { min-width: 0; max-width: min(15rem, 55cqw); }
  .ing__qty + .ing__dose::before { content: none; }
  .ing__note, .ing__sub { grid-column: 1 / -1; }
}

/* Main-view editorial groups: semantic points; full detail records stay intact. */
.copy-group { display:grid; gap:.55rem; margin-block:1rem; font-weight:400; line-height:1.45; }
.copy-group__title { margin:0; font-size:1em; font-weight:800; line-height:1.3; }
.copy-points { text-align:left; margin:0; padding-left:1.15rem; display:grid; gap:.4rem; list-style:square; }
ol.copy-points { list-style:decimal; }
.copy-points > li { margin:0; padding-left:.1rem; line-height:1.45; }
.copy-points > li::marker { color:var(--accent-strong); font-weight:800; }
.copy-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem 1.25rem; margin:0; }
.copy-facts > div { min-width:0; padding:.25rem 0 .25rem .7rem; border-left:3px solid var(--accent-strong); }
.copy-facts dt { margin:0 0 .2rem; font-size:.88em; font-weight:800; color:var(--text); }
.copy-facts dd { margin:0; line-height:1.45; }
.copy-condition { margin:0; font-size:.94em; line-height:1.45; }
.copy-group.hud-takeaway { font-weight:400; }
@media(max-width:639px) { .copy-facts { grid-template-columns:minmax(0,1fr); gap:.65rem; } }
@media print { .copy-group,.copy-facts > div { break-inside:avoid; } }

.rd { display: grid; gap: .7rem; max-width: 62ch; min-width: 0; }
.rd-p { margin: 0; line-height: 1.6; }
.rd-lead { display: block; margin-bottom: .1rem; font-weight: 800; letter-spacing: .01em; color: var(--accent); }
.rd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.rd-list > li { position: relative; margin: 0; padding: .4rem .6rem .4rem 1.25rem; line-height: 1.5; border-left: 2px solid var(--line-strong); background: color-mix(in srgb, var(--accent) 4%, transparent); border-radius: 0 var(--r-2) var(--r-2) 0; }
.rd-list > li::before { content: ""; position: absolute; left: .45rem; top: .95rem; width: .4rem; height: .4rem; border-radius: 1px; background: var(--accent-strong); transform: rotate(45deg); }
.kv { display: block; line-height: 1.45; }
.kv + .kv { margin-top: .3rem; }
.kv__k { font-weight: 800; color: var(--accent); }


/* ===== update 15: illustrated boards - light on phones, richer on computers (2026-10-09) ===== */
@media (max-width: 999.98px) { .desk-only { display: none !important; } }
@media (min-width: 1000px) { .phone-only { display: none !important; } }
.deskart-off .desk-only { display: none !important; }
.carousel--art .carousel__track { align-items: flex-start; }
.carousel--art .art-item { flex: 0 0 var(--c-w); }
/* Full-image chart cards: identical frames within each orientation, all available on mobile. */
#art-master .master-chart-grid .card,#pill-architecture .master-chart-grid .card{display:flex;flex-direction:column;height:100%}
#art-master .master-chart-grid .card__media,#pill-architecture .master-chart-grid .card__media{width:100%;height:clamp(125px,24vw,215px);aspect-ratio:auto;max-height:none;min-height:0;background:#080a0c}
#art-master .master-chart-grid--tall .card__media,#pill-architecture .master-chart-grid--tall .card__media{height:clamp(180px,34vw,300px)}
#art-master .master-chart-grid img,#pill-architecture .master-chart-grid img{width:100%;height:100%;object-fit:contain;object-position:center}
#art-master .master-chart-grid .art-cap,#pill-architecture .master-chart-grid .art-cap{padding:.6rem;font-size:.85rem;line-height:1.35;min-height:3.4em}

.carousel--art .art-item--w { flex-basis: min(82vw, 21rem); }
@media (min-width: 720px) { .carousel--art .art-item--w { flex-basis: 26rem; } }
.carousel--art .card__media { border-bottom: 1px solid var(--line); }
.carousel--art .card__media img { object-fit: contain; }
.carousel--art .carousel__item > .card:not(.card--portrait) { display: flex; flex-direction: column; height: auto; }
.art-cap { display: block; padding: var(--s-2) var(--s-3) var(--s-3); font-size: var(--step--1); font-weight: 750; line-height: 1.25; color: var(--text); text-wrap: balance; }
.art-note { margin: 0 0 var(--s-3); font-size: var(--step--1); line-height: 1.45; color: var(--text-2); }
.lightbox.is-wide .lightbox__fig { justify-items: start; align-content: start; overflow: auto; }
.lightbox.is-wide .lightbox__fig img { width: 230vw;    }
/* update 15b: single pictures on a phone are shown bigger; lead blocks sit right under the page head */
@media (max-width: 999.98px) {
  .carousel--art .art-item--w { flex-basis: min(88%, 21rem); }
  .carousel--art.art-solo .art-item--w { flex-basis: min(100%, 21rem); }
  .carousel--art.art-solo .art-item--p { flex-basis: min(72%, 15rem); }
}
.carousel--art + .carousel--art { margin-top: var(--s-5); }
.art-folder .btn { margin-top: var(--s-2); }

/* ===== update 16: illustration pack - record viewer (style editions, A/B/C states, gym and stage rails) (2026-10-09) ===== */
.rv { display: grid; gap: var(--s-4); min-width: 0; }
.rv + .carousel--art, .rv ~ .carousel--art { margin-top: var(--s-5); }
.rv-subj { display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px 2px var(--s-2); margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rv-tab { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-left:3px solid var(--line-strong); border-radius:0 0 8px 0;
  background: var(--surface); color: var(--text); font: inherit; font-size: var(--step--1); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.15; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.rv-tab:hover { border-color: var(--accent); }
.rv-tab small { display: block; margin-top: .1rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.rv-tab[aria-selected="true"] { background:var(--surface-2);border-color:var(--line-strong);color:var(--text);box-shadow:inset 3px 0 0 var(--folder-colour,var(--accent)); }
.rv-tab[aria-selected="true"] small { color: inherit; opacity:1; }
.rv-tab:focus-visible, .rv-ed:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rv-tab--or::before { content: "or"; margin-right: .1rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.rv-tab--or[aria-selected="true"]::before { color: inherit; }
.rv-step { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: .8rem; font-weight: 800; flex: none; }
.rv-tab[aria-selected="true"] .rv-step { background: rgb(255 255 255 / .22); color: inherit; }
.rv--rail .rv-subj { gap: 0; padding-bottom: var(--s-3); }
.rv--rail .rv-tab { border-radius: 0; margin-left: -1px; }
.rv--rail .rv-tab:first-child { margin-left:0;border-radius:0; }
.rv--rail .rv-tab:last-child { border-radius:0 0 8px 0; }
.rv-panel[hidden] { display: none; }
.rv-grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 56rem) { .rv-grid { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: var(--s-5); } .rv-panel.is-wide .rv-grid { grid-template-columns: minmax(0, 1fr); } }
.rv-media { display: grid; gap: var(--s-3); min-width: 0; align-content: start; }
.rv-eds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rv-ed { display: inline-flex; align-items: baseline; gap: .4rem; min-height: 2.5rem; padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius:0 0 7px 0; border-left:3px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: var(--step--1); font-weight: 700; text-decoration: none; }
.rv-ed:hover { border-color: var(--accent); text-decoration: none; color: var(--text); }
.rv-ed.is-on { background:var(--surface-2);border-left-color:var(--folder-colour,var(--accent));color:var(--text); }
.rv-code { font-size: .68rem; font-weight: 800; letter-spacing: .1em; opacity: .7; }
.rv-fig { margin: 0; display: grid; gap: var(--s-2); min-width: 0; }
.rv-link { display: block; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: #0b0c10; overflow: hidden; width: 100%; }
.rv-panel:not(.is-wide) .rv-link { max-width: 26rem; }
@media (max-width: 55.99rem) { .rv-panel:not(.is-wide) .rv-link { max-width: min(100%, 24rem); margin-inline: auto; } .rv-panel:not(.is-wide) .rv-cap { max-width: min(100%, 24rem); margin-inline: auto; } }
.rv-frame { display: block; width: 100%; }
.rv-frame img { display: block; width: 100%; height: auto; object-fit: contain; }
.rv-fig.is-swap .rv-frame img { animation: rv-fade .28s ease both; }
@keyframes rv-fade { from { opacity: .15; } to { opacity: 1; } }

.rv-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; font-size: var(--step--1); color: var(--text-2); line-height: 1.4; }
.rv-cap b { color: var(--text); }
.rv-dl { font-weight: 700; }
.rv-hint { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.rv-rec { min-width: 0; font-size: 1rem; line-height: 1.55; }
.rv-h { margin: 0 0 var(--s-2); font-size: var(--step-1); font-weight: 800; letter-spacing: -.01em; }
.rv-h em { font-style: normal; font-weight: 700; color: var(--accent); }
.rv-lead { margin: 0 0 var(--s-3); color: var(--text-2); }
.rv-when { margin: 0 0 var(--s-3); padding: .5rem .75rem; border-left: 3px solid var(--accent-2); background: var(--surface-2); }
.rv-when b, .rv-src b { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-right: .4rem; color: var(--muted); }
.rv-grp { margin: 0 0 var(--s-3); padding: .55rem .8rem .6rem; border: 1px solid var(--line); border-left: 4px solid var(--brand-orange); border-radius: var(--r-1); background: var(--surface); }
.rv-grp h4 { margin: 0 0 .3rem; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rv-grp--s { border-left-color: var(--accent-2); }
.rv-grp--n { border-left-color: var(--line-strong); }
.rv-grp--o { border-left-color: var(--warn); border-style: dashed; border-left-style: solid; }
.rv-grp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.rv-grp li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .9rem; padding: .32rem 0; border-top: 1px solid var(--line); }
.rv-grp li:first-child { border-top: 0; }
.rv-n { font-weight: 700; min-width: 0; }
.rv-q { color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
@media (max-width: 30rem) { .rv-grp li { grid-template-columns: minmax(0, 1fr); } .rv-q { text-align: left; } }
.rv-cond { display: inline-block; margin-left: .5rem; padding: .05rem .45rem; border: 1px solid var(--warn); border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); vertical-align: .08em; }
.rv-note { margin: 0 0 var(--s-3); padding: .5rem .75rem; background: var(--warn-soft); border-radius: var(--r-1); color: var(--text); font-size: .95rem; }
.rv-src { margin: var(--s-3) 0 0; font-size: .86rem; color: var(--text-2); line-height: 1.5; }
.rv-states { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
.rv-st { display: grid; gap: .1rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); font-size: .86rem; line-height: 1.3; }
.rv-st b { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rv-st--on { border-color: var(--ok); background: var(--ok-soft); }
.rv-st--part { border-color: var(--warn); background: var(--warn-soft); }
.rv-st--off { border-style: dashed; color: var(--muted); }
@media (max-width: 30rem) { .rv-states { grid-template-columns: minmax(0, 1fr); } }
.rv-tl { list-style: none; margin: 0 0 var(--s-3); padding: 0 0 0 .2rem; display: grid; gap: 0; border-left: 2px solid var(--line-strong); margin-left: .35rem; }
.rv-tl li { position: relative; display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .1rem .8rem; padding: .38rem 0 .38rem .9rem; }
.rv-tl li::before { content: ""; position: absolute; left: -.45rem; top: .95rem; width: .62rem; height: .62rem; border-radius: 50%; background: var(--brand-orange); box-shadow: 0 0 0 3px var(--surface-2); }
.rv-tl b { font-variant-numeric: tabular-nums; font-size: .92rem; }
.rv-tl span { min-width: 0; }
@media (max-width: 30rem) { .rv-tl li { grid-template-columns: minmax(0, 1fr); } }
.rv-offh { margin: 0 0 .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rv-off { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rv-off li { padding: .2rem .65rem; border: 1px dashed var(--danger); border-radius: 999px; color: var(--danger); font-size: .88rem; font-weight: 700; }
.rv-more { margin: var(--s-3) 0 0; }
.rv-legend { margin-top: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); padding: .6rem .9rem; }
.rv-legend summary { cursor: pointer; font-weight: 750; }
.rv-legend summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rv-legend ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: .5rem; }
.rv-legend li { font-size: .95rem; line-height: 1.45; color: var(--text-2); }
.rv-legend li b { color: var(--text); margin-right: .35rem; }
.rv-three { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-2); }
@media (min-width: 48rem) { .rv-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv-three li { padding: .6rem .8rem; border: 1px solid var(--line); border-left: 4px solid var(--accent-2); border-radius: var(--r-1); background: var(--surface); line-height: 1.45; }
.rv-three b { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-prev { margin: 0 0 var(--s-3); max-width: 44rem; }
.rv-prev .card__media { background: #0b0c10; }
.rv-prev .card__media img { object-fit: contain; }
.art-folder p > .btn + .btn { margin-left: .5rem; }
/* update 16b: on narrow screens the edition chips and tabs sit in one swipeable row instead of wrapping into a tall stack */
@media (max-width: 55.99rem) {
  .rv-eds { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px var(--s-2); margin: 0 -2px; scrollbar-width: thin;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .rv-eds li { flex: none; scroll-snap-align: start; }
  .rv-eds li:last-child { padding-right: 2.5rem; }
}

/* ---- update 17: the day picture inside the Guidebook branch panels (no step number, full width) ---- */
.chap-clock__pic { counter-increment: none; padding-left: var(--s-4); }
.chap-clock__pic::before { content: none; display: none; }
@media (min-width: 640px) { .chap-clock__pic { padding-left: var(--s-5); } }
.chap-clock__pic .rv-in { margin: var(--s-3) 0; }
.chap-clock__pic .acc { margin-top: var(--s-3); }

/* ---- update 18: Biometrics selfie journal (stage, strip, session flip-through) ---- */
.jr { --jr-ink: #ffffff; --jr-ink-2: #ffffff; --jr-mute: #9aa1b2; --jr-amber: #ffb400; --jr-cyan: #3fd0d8; }
.jr__wrap, .jr__seq {
  position: relative; display: grid; grid-template-columns:minmax(0,1fr); min-width:0; gap: var(--s-4); padding: clamp(.7rem, 2vw, 1.2rem);
  background: linear-gradient(var(--nav-sheen-angle,115deg), #0a0b0e 0%, #13151a 55%, #1c1f27 100%);
  color: var(--jr-ink); border: 1px solid var(--hud-line, #3a3d46); border-radius: 0 var(--hud-cut, 14px) 4px var(--hud-cut, 14px);
}
.jr__wrap { margin-top: var(--s-4); }
.jr__seq { margin-top: var(--s-5); }
.jr__stage {
  position: relative; overflow: hidden; isolation: isolate; width: 100%; min-width:0; box-sizing:border-box; aspect-ratio: 4 / 5; max-height: 78svh; margin: 0 auto;
  background: #07080a; border: 1px solid #2c303a; border-radius: 4px; touch-action: pan-y; outline-offset: 3px; cursor: zoom-in;
}
.jr__bg { position: absolute; inset: -12%; z-index: -1; background-size: cover; background-position: center; filter: blur(26px) saturate(1.25) brightness(.5); transition: background-image .4s; }
.jr__frame { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--hud-ease, ease-out); will-change: transform; }
.jr__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.jr__img.is-in { opacity: 1; animation: jr-in .9s var(--hud-ease, cubic-bezier(.22,.9,.25,1)) both, jr-kb 9s linear .9s forwards; }
@keyframes jr-in { from { opacity: 0; transform: scale(1.07) translateX(18px); filter: blur(7px) brightness(1.5); } to { opacity: 1; transform: none; filter: none; } }
@keyframes jr-kb { from { transform: scale(1); } to { transform: scale(1.045); } }
.jr__sweep { position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(63,208,216,.0) 30%, rgba(63,208,216,.28) 92%, rgba(255,255,255,.7) 100%); }
.jr__img.is-in ~ .jr__sweep { animation: jr-sweep 1.1s ease-out both; }
@keyframes jr-sweep { 0% { top: -30%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.jr__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.22), transparent 45%); mix-blend-mode: soft-light; }
.jr__stage.is-tilt .jr__glare { opacity: 1; }
.jr__stamp { position: absolute; left: .7rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .55rem;
  font: 700 .8rem/1 var(--font-mono, monospace); letter-spacing: .12em; color: var(--jr-ink); background: rgba(8,9,12,.62); border-left: 2px solid var(--jr-amber); pointer-events: none; }
.jr__stamp b { text-transform: uppercase; }
.jr__stamp i { width: .5rem; height: .5rem; border-radius: 50%; background: #ff3b30; animation: jr-blink 1.4s steps(2, jump-none) infinite; }
@keyframes jr-blink { 50% { opacity: .15; } }
.jr__open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; color:#ffffff; }
.jr__open span { position: absolute; right: .6rem; top: .6rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(8,9,12,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); font-size: 1.1rem; }
.jr__open:focus-visible { outline: 2px solid var(--jr-amber); outline-offset: -4px; }
.jr__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); pointer-events: none; }
.jr__prog i { display: block; height: 100%; width: 100%; background: var(--jr-amber); transform: scaleX(0); transform-origin: left; }
.jr__prog i { animation: none; }
@keyframes jr-prog { to { transform: scaleX(1); } }

.jr__panel { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.jr__count { margin: 0; font: 700 .8rem/1 var(--font-mono, monospace); letter-spacing: .16em; color: var(--jr-mute); }
.jr__count b { color: var(--jr-amber); font-size: 1.5rem; letter-spacing: .04em; }
.jr__date { margin: 0; font-size: clamp(1.9rem, 6.5vw, 3rem); line-height: 1; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; color: var(--jr-ink); }
.jr__place { margin: 0; font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--jr-cyan); }
.jr__cap { margin: .2rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--jr-ink-2); }
.jr__meta { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .84rem; color: var(--jr-ink-2); }
.jr__meta li { padding-left: .7rem; border-left: 2px solid #2c303a; }
.jr__meta b { margin-right: .4rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--jr-amber); }
.jr__ctl { display: flex; gap: .5rem; margin-top: .7rem; }
.jr__btn { min-height: 2.75rem; min-width: 2.75rem; padding: 0 1rem; border: 0; cursor: pointer; font: 750 .8rem/1 inherit; letter-spacing: .12em; text-transform: uppercase;
  color: var(--jr-ink); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); transition: background .15s, transform .15s; }
.jr__btn:hover { background: rgba(255,180,0,.2); }
.jr__btn:active { transform: scale(.96); }
.jr__btn:focus-visible { outline: 2px solid var(--jr-amber); outline-offset: 2px; }
.jr__btn:not(.jr__btn--pp) { font-size: 1.5rem; padding: 0; }

.jr__strip { list-style: none; margin: 0; padding: 0 0 .65rem; display: flex; gap: .55rem; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: #c2410c #1c1f27; }
.jr__strip::-webkit-scrollbar { height: 6px; } .jr__strip::-webkit-scrollbar-track { background: #1c1f27; } .jr__strip::-webkit-scrollbar-thumb { background: #c2410c; border-radius: 3px; }
.jr__strip li { flex: 0 0 auto; scroll-snap-align: center; }
.jr__thumb { position: relative; display: block; width: 4.6rem; aspect-ratio: 3 / 4; padding: 0; border: 2px solid #3a3d46; border-radius: 4px; overflow: hidden; cursor: pointer; background: #07080a;
  opacity: .72; transition: opacity .2s, transform .2s var(--hud-ease, ease-out), border-color .2s, box-shadow .2s; }
.jr__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr__tl { position: absolute; left: 0; right: 0; bottom: 0; padding: .55rem .15rem .2rem; font: 700 .56rem/1.1 var(--font-mono, monospace); letter-spacing: .04em; text-align: center; color:#ffffff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); }
.jr__thumb:hover { opacity: 1; transform: translateY(-2px); }
.jr__thumb[aria-current="true"] { opacity: 1; border-color: var(--jr-amber); box-shadow: 0 0 0 1px var(--jr-amber), 0 6px 18px rgba(255,180,0,.28); transform: translateY(-3px); }
.jr__thumb:focus-visible { outline: 2px solid var(--jr-cyan); outline-offset: 2px; }

.jr__seqhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; }
.jr__seqhead b { font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jr-amber); }
.jr__seqhead span { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--jr-mute); }
.jr__seqgrid { display: grid; gap: var(--s-3); }
.jr__flip { position: relative; overflow: hidden; width: 100%; max-width: 22rem; aspect-ratio: 3 / 4; margin: 0 auto; background: #07080a; border: 1px solid #2c303a; border-radius: 4px; }
.jr__flip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jr__flip.is-tick img { animation: jr-tick .22s ease-out; }
@keyframes jr-tick { from { filter: brightness(1.7) contrast(1.2); } to { filter: none; } }
.jr__fc { position: absolute; left: .6rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .5rem; font: 700 .72rem/1 var(--font-mono, monospace); letter-spacing: .12em; color:#ffffff; background: rgba(8,9,12,.62); border-left: 2px solid var(--jr-cyan); pointer-events: none; }
.jr__fc i { width: .45rem; height: .45rem; border-radius: 50%; background: #ff3b30; animation: jr-blink 1s steps(2, jump-none) infinite; }
.jr__frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; align-content: start; }
.jr__f { position: relative; display: block; padding: 0; border: 2px solid #3a3d46; border-radius: 4px; overflow: hidden; cursor: pointer; background: #07080a; aspect-ratio: 3 / 4; transition: border-color .2s, transform .2s var(--hud-ease, ease-out); }
.jr__f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jr__f:hover { transform: translateY(-2px); border-color: #6a6f7c; }
.jr__f.is-cur { border-color: var(--jr-cyan); box-shadow: 0 0 0 1px var(--jr-cyan); }
.jr__fn { position: absolute; left: .3rem; top: .3rem; min-width: 1.3rem; padding: .15rem .3rem; font: 700 .68rem/1 var(--font-mono, monospace); text-align: center; color:#ffffff; background: rgba(8,9,12,.7); }
.jr__flippp { grid-column: 1 / -1; }
.jr-limits { margin-top: var(--s-4); }

@media (min-width: 640px) { .jr__frames { grid-template-columns: repeat(6, minmax(0, 1fr)); } .jr__thumb { width: 5.4rem; } }
@media (min-width: 900px) {
  .jr__wrap { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); column-gap: var(--s-6); align-items: start; }
  .jr__stage { grid-row: 1 / span 2; }
  .jr__panel { padding-top: var(--s-3); grid-column: 2; }
  .jr__strip { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .6rem; overflow: visible; padding: 0; align-self: end; }
  .jr__thumb { width: 100%; }
  .jr__date { font-size: clamp(2.6rem, 4.4vw, 4.2rem); }
  .jr__seqgrid { grid-template-columns: 22rem minmax(0, 1fr); align-items: start; column-gap: var(--s-6); }
  .jr__flip { margin: 0; }
  .jr__frames { grid-template-columns: repeat(3, minmax(0, 13rem)); }
}
@media (hover: none) { .jr__stage { cursor: default; } }


/* ===== update 19: two-sided flip cards (main-site vector cards) ===== */
.flipc { display: grid; gap: var(--s-3); min-width: 0; width: 100%; max-width: 26rem; justify-self: center; }
.flipc__stage { position: relative; width: 100%; perspective: 1400px; border-radius: var(--r-2); }
.flipc__card { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--turn, 0deg)); transition: transform var(--dur, .95s) cubic-bezier(.3, .7, .2, 1); will-change: transform; }
.flipc__face { position: absolute; inset: 0; display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: #0b0c10; backface-visibility: hidden; -webkit-backface-visibility: hidden; cursor: zoom-in; box-shadow: 0 18px 38px -22px rgb(0 0 0 / .75); }
.flipc__face--b { transform: rotateY(180deg); }
.flipc__face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flipc[data-side="0"] .flipc__face--b, .flipc[data-side="1"] .flipc__face--a { pointer-events: none; }
.flipc__face:focus-visible, .flipc__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.flipc__sheen { position: absolute; inset: 0; border-radius: var(--r-2); pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .28) 50%, transparent 65%); background-size: 260% 100%; background-position: 120% 0; mix-blend-mode: overlay; }
.flipc.is-turning .flipc__sheen { animation: flipc-sheen var(--dur, .95s) ease-out both; }
@media(prefers-reduced-motion:reduce){.flipc__card{transition:none}.flipc.is-turning .flipc__sheen{animation:none}}
@keyframes flipc-sheen { 0% { opacity: 0; background-position: 120% 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: -20% 0; } }
@media (max-width: 55.99rem) { .flipc { max-width: min(100%, 24rem); } }


/* ===== update 20: one-line picture caption = description + round download arrow (replaces "Download original PNG x MB" text and tap hints) ===== */
.pcap { display: flex; align-items: center; gap: .6rem; min-width: 0; margin: 0; }
.pcap--flip { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.pcap--flip .pcap__flip { justify-self: start; }
.pcap--flip .pcap__dl { justify-self: end; }
.pcap__flip { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: .4rem 1.1rem; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); font: inherit; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.pcap__flip svg { width: 1.1rem; height: 1.1rem; }
.pcap__flip:hover { filter: brightness(1.08); }
.pcap__flip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pcap__t { flex: 1; min-width: 0; font-size: var(--step--1); font-weight: 700; line-height: 1.3; color: var(--text); }
.pcap__dots { display: inline-flex; gap: .3rem; flex: 0 0 auto; }
.pcap__dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); transition: background .3s, transform .3s; }
.pcap__dots i.is-on { background: var(--accent); transform: scale(1.25); }
.pcap__dl { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); background: transparent; text-decoration: none; transition: background .2s, color .2s; }
.pcap__dl svg { width: 1.2rem; height: 1.2rem; }
.pcap__dl:hover, .pcap__dl:focus-visible { background: var(--accent); color: var(--accent-ink, #fff); }
.pcap__dl:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rv-panel:not(.is-wide) .pcap { max-width: 26rem; }
@media (max-width: 55.99rem) { .rv-panel:not(.is-wide) .pcap { max-width: min(100%, 24rem); margin-inline: auto; } }

.ingredient-row { position: relative; padding-right: 2.8rem !important; }
.ingredient-info { position: absolute; right: .65rem; top: .65rem; width: 1.5rem; height: 1.5rem; border: 1px solid #44d4d5; border-radius: 50%; color: #44d4d5; background: #182329; font: 700 .85rem/1 sans-serif; cursor: pointer; }
@media (max-width: 719px) { .ingredient-row { min-height: 3.75rem; padding-right: 3.75rem !important; } .ingredient-info { width: 2.75rem; height: 2.75rem; right: .5rem; top: .5rem; } }
.ingredient-info:focus-visible { outline: 2px solid #ff7a19; outline-offset: 3px; }
.ingredient-tip { position: fixed; z-index: 10000; box-sizing: border-box; width: min(480px, calc(100vw - 24px)); padding: 1rem; color:#ffffff; background: #14242c; border: 1px solid #44d4d5; border-left: 3px solid #ff7a19; border-radius: .4rem; box-shadow: 0 12px 32px #0009; font-size: 1.05rem; line-height: 1.55; }
.ingredient-tip[hidden] { display: none; }
.ingredient-tip strong { color: #44d4d5; }
.ingredient-tip p { margin: .65rem 0; }
.ingredient-tip a { color: #ffc18e; font-size: .95rem; }
.ingredient-tip > div + div {    }

/* Shared compact information layout for gear, meals and capsule stages. */
.item-purpose { margin: .65rem 0; padding: .6rem .8rem; border-inline-start: 3px solid #ff7a19; background: #ff7a1910; overflow-wrap: anywhere; }
.item-purpose p { margin: .35rem 0; font-size: .95rem; line-height: 1.5; }
.item-purpose strong { color: var(--text); }
.item-specs { margin-top: .3rem; font-size: .95rem; line-height: 1.5; }
.item-specs > summary { cursor: pointer; color: var(--accent); font-weight: 700; padding: .5rem 0; }
.item-specs[open] > summary { margin-bottom: .35rem; }
.item-specs p { margin: .35rem 0; }
.gear-item { align-items: start; }
.gear-item .card__media { width: 100%; align-self: start; }
.gear-item .card__body { min-width: 0; width: 100%; overflow-wrap: break-word; }
.gear-item--wide .card__media { aspect-ratio: 4 / 3; max-height: 20rem; align-self: start; }
.gear-item .card__title.ingredient-row { padding-right: 0 !important; min-height:0; }
.gear-item .ingredient-info { position:static; vertical-align:middle; margin-left:.35rem; }
.gear-bundle__name.ingredient-row { display: inline-block; min-height: 2rem; padding-right: 2.5rem !important; }
.gear-bundle__name .ingredient-info { top: 0; right: 0; }
.item-caption { padding: .7rem .8rem; background: var(--surface); border-inline-start: 3px solid #44d4d5; border-radius: 0 0 .3rem .3rem; overflow-wrap: anywhere; }
.item-caption strong { display: block; font-size: .95rem; line-height: 1.35; }
.item-caption p { font-size: .9rem; line-height: 1.45; margin: .4rem 0 0; color: var(--text-2); }
.ingredient-info { width: 2rem; height: 2rem; }
.ingredient-tip { height: auto; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding-right: 2.5rem; }
.ingredient-tip__close { position: absolute; right: .4rem; top: .4rem; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: .25rem; color:#ffffff; background: #ffffff12; font-size: 1.35rem; cursor: pointer; }
.ingredient-tip__close:focus-visible { outline: 2px solid #ff7a19; outline-offset: 2px; }
.ingredient-tip > div + div { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid #ffffff26; }
.ingredient-tip__close + div { margin-top: 0; padding-top: 0; border-top: 0; }
.item-facts-table td.ingredient-row { position: relative; padding-right: 3rem !important; }
.item-facts-table .ingredient-info { top: .35rem; right: .35rem; }
@media (min-width: 800px) {
  .gear-item--wide .card__body { flex: 1; width: auto; }
}
@media (max-width: 559px) {
  .gear-item:not(.gear-item--wide):not(.card--portrait) .card__media { min-height: 0; aspect-ratio: 4 / 3; align-self: start; }
  .gear-item:not(.gear-item--wide) .card__body { flex: 1; width: auto; }
}

/* Originals fit the available screen until the visitor chooses zoom. */
.lightbox:not(.lightbox--video):not(.lightbox--card) { height: 96dvh; }
.lightbox__bar { flex-shrink: 0; }
.lightbox__fig { grid-template-rows:minmax(0,1fr); }
.lightbox__fig img { min-height: 0; height: 100%; width: 100%; max-height: 100%; object-fit: contain; }
.lightbox.is-wide .lightbox__fig { display: block; }
.lightbox.is-wide .lightbox__fig img { width: max(100%, 180vw); height: auto; max-width: none; max-height: none; }

/* Corner controls follow the centered website column on wide displays. */
:root{--site-corner-inset:max(.75rem,var(--gutter),calc((100% - var(--content-w))/2));}

/* Reserve a clear lane for information markers beside card text and amounts. */
.ingredient-row,
.gear-bundle__name.ingredient-row,
.item-facts-table td.ingredient-row {
  box-sizing: border-box;
  padding-right: 4rem !important;
  min-height: 3.3rem;
}
.ingredient-row > :not(.ingredient-info) { min-width: 0; overflow-wrap: anywhere; }

/* Visitor context, topic choices and a compact vocabulary reference. */
.visitor-route{margin:.75rem 0;font-size:1rem;line-height:1.55;overflow-wrap:anywhere;}
.visitor-route--terms{font-size:.95rem;margin:.6rem 0 1rem;}
.visitor-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;}
.visitor-topic-grid>a{display:flex;flex-direction:column;gap:.45rem;padding:1rem;border:1px solid var(--line);border-inline-start:3px solid var(--accent);border-radius:.5rem;background:var(--surface);color:var(--text);text-decoration:none;}
.visitor-topic-grid>a strong{font-size:1.1rem;color:var(--accent);}
.visitor-topic-grid>a span{font-size:1rem;line-height:1.5;}
.visitor-topic-grid>a:hover,.visitor-topic-grid>a:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.visitor-terms{margin-top:1rem;border:1px solid var(--line);border-radius:.5rem;background:var(--surface);}
.visitor-terms>summary{display:flex;justify-content:space-between;gap:1rem;padding:1rem;cursor:pointer;font-weight:700;font-size:1.05rem;}
.visitor-terms>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.visitor-terms dl{margin:0;padding:0 1rem 1rem;font-size:1rem;line-height:1.55;}
.visitor-terms dt{font-weight:700;color:var(--accent);margin-top:.75rem;}
.visitor-terms dd{margin:.25rem 0 0;}
#start-here .carousel{margin-top:1rem;}
#start-here .visitor-route a,.visitor-route--terms a{text-underline-offset:.2em;}
.art-cap::before{content:"⤢ ";color:var(--accent);font-weight:700;}
@media(max-width:40rem){.visitor-topic-grid{grid-template-columns:1fr;}.visitor-route--terms{font-size:1rem;}}

/* Fitted photo swipes navigate; explicit zoom retains two-axis panning. */
.lightbox:not(.is-wide) .lightbox__fig{touch-action:pan-y pinch-zoom;}


/* Native component responsive states, consolidated from the retired mobile presentation sheets. */
.rail-toggle{display:none;position:static;width:fit-content;max-width:100%;min-height:44px;margin:.65rem 0;padding:.5rem .75rem;font-size:.8125rem;line-height:1.25;border-radius:.4rem;background:#172d3a;color:#ffffff;box-shadow:none;left:auto;right:auto;top:auto;gap:.6rem;}
.rail-drawer{box-sizing:border-box;width:min(30rem,calc(100vw - 1.25rem));max-height:calc(100dvh - 2rem);padding:0;border:1px solid var(--accent);border-top:5px solid var(--accent-strong);border-radius:.8rem;background:var(--surface);color:var(--text);box-shadow:0 1rem 4rem #0008;}
.rail-drawer::backdrop{background:#0009;}
.rail-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem;border-bottom:1px solid var(--line);}
.rail-drawer__head h2{margin:0;font-size:1.1rem;}
.rail-drawer__close{min-width:2.75rem;min-height:2.75rem;border:1px solid var(--line);border-radius:.4rem;background:var(--surface);color:var(--text);font:inherit;font-size:1.5rem;cursor:pointer;}
.rail-drawer__body{padding:.75rem;overflow:auto;max-height:calc(100dvh - 8rem);}
.rail-drawer .rail__list{display:grid;gap:.5rem;}
.rail-drawer .rail__list a{display:flex;align-items:center;gap:.7rem;min-height:3rem;padding:.6rem .75rem;border:1px solid var(--line);border-left:3px solid var(--folder-colour,var(--accent));border-radius:0 0 7px 0;color:var(--text);background:var(--surface);font-size:1rem;font-weight:650;text-decoration:none;overflow-wrap:anywhere;}
.rail-drawer .rail__list a[aria-current="page"]{background:var(--surface-2);color:var(--text);border-left-color:var(--folder-colour,var(--accent));box-shadow:inset 2px 0 0 var(--folder-colour,var(--accent));}
.rail-drawer .rail__num{flex:none;}
.rail-drawer .rail__label{min-width:0;}
.rail-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
.rail-drawer a:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
.rail-drawer button:focus-visible{outline:3px solid var(--accent);outline-offset:3px;}
@media (max-width:719px),(max-width:1023px) and (pointer:coarse){body[data-site="protocol"] .layout--rail{grid-template-columns:minmax(0,1fr);gap:.75rem;width:calc(100% - 1.5rem);}body[data-site="protocol"] .layout--rail>main.main{width:100%;min-width:0;grid-column:1;}body[data-site="protocol"] .layout--rail>.rail{position:static;max-height:none;}body[data-site="protocol"] .layout--rail.has-mobile-rail>.rail{display:none;}.rail-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.6rem;width:fit-content;min-width:0;min-height:44px;box-sizing:border-box;padding:.5rem .75rem;border:1px solid var(--line-strong);border-left:4px solid var(--folder-colour,var(--accent));border-radius:.4rem;background:#172d3a;color:#ffffff;font:inherit;font-weight:750;text-align:left;cursor:pointer;box-shadow:none;position:static;max-width:100%;margin:.65rem 0;font-size:.8125rem;line-height:1.25;left:auto;right:auto;top:auto;}.rail-toggle__current{grid-column:1;grid-row:2;min-width:0;white-space:normal;line-height:1.35;font-size:.85rem;font-weight:550;color:var(--muted);}.rail-toggle__chevron{grid-column:2;grid-row:1/3;margin-left:auto;color:var(--accent);font-size:1.25rem;}.fab-switch{min-height:2.75rem;box-sizing:border-box;padding:.4rem .65rem;font-size:.8rem;gap:.4rem;letter-spacing:.02em;}.fab-switch__glyph{width:1.5rem;height:1.5rem;flex:none;}}








@media print{.rail-toggle{display:none!important;position:static;width:fit-content;max-width:100%;min-height:44px;margin:.65rem 0;padding:.5rem .75rem;font-size:.8125rem;line-height:1.25;border-radius:.4rem;background:#172d3a;color:#ffffff;box-shadow:none;left:auto;right:auto;top:auto;gap:.6rem;}.rail-drawer{display:none!important;}}

@media (max-width:719px),(max-width:1023px) and (pointer:coarse){.stats{gap:.5rem;grid-template-columns:repeat(2,minmax(0,1fr));}.stat{min-width:0;padding:.65rem .7rem;}.stat__value{font-size:clamp(1.35rem,6vw,1.8rem);line-height:1.1;}.stat__label{font-size:.75rem;line-height:1.35;letter-spacing:.03em;}.goalmeter{padding:.85rem;margin-top:.75rem;}.goalmeter__head{gap:.3rem;margin-bottom:.65rem;}.goalmeter__title{font-size:1rem;}.goalmeter__key{font-size:.65rem;gap:.6rem;}.goalmeter__grid{gap:1rem;}.meter__name{font-size:.85rem;}.meter__nums{font-size:1.05rem;}.meter__top{margin-bottom:.65rem;gap:.25rem;}.meter__track{height:.7rem;margin-top:.35rem;}.meter__tick::after{font-size:.55rem;}.meter__note{font-size:.85rem;line-height:1.4;}.goalmeter__foot{font-size:.85rem;line-height:1.4;}.goalmeter__foot{margin-top:.65rem;}}
















.rail-toggle-space{display:none;}
@media (max-width:719px),(max-width:1023px) and (pointer:coarse){.rail-toggle{position:static;top:auto;left:auto;right:auto;width:fit-content;z-index:45;transition:top .28s var(--ease);max-width:100%;min-height:44px;margin:.65rem 0;padding:.5rem .75rem;font-size:.8125rem;line-height:1.25;border-radius:.4rem;background:#172d3a;color:#ffffff;box-shadow:none;gap:.6rem;}.rail-toggle-space{display:block;min-height:3.65rem;}.rail-toggle__category{flex:none;font-size:.95rem;}body[data-site="protocol"] main.main [id]{scroll-margin-top:calc(var(--site-header-offset,0px) + 4.25rem);}}



@media print{.rail-toggle-space{display:none!important;}}
@media (max-width:719px),(max-width:1023px) and (pointer:coarse){.card__media img{object-fit:contain;object-position:center;transform:none;}.carousel--media .card__media img{object-fit:contain;object-position:center;transform:none;}.carousel--hub .chap-hub__card .card__media img{object-fit:contain;object-position:center;transform:none;}.file-card__thumb{object-fit:contain;object-position:center;transform:none;}.fold__thumb img{object-fit:contain;object-position:center;transform:none;}.chap-thumbs img{object-fit:contain;object-position:center;transform:none;}.home-photos img{object-fit:contain;object-position:center;transform:none;}.home-stations img{object-fit:contain;object-position:center;transform:none;}.jr__thumb img{object-fit:contain;object-position:center;transform:none;}.jr__flip img{object-fit:contain;object-position:center;transform:none;}.jr__f img{object-fit:contain;object-position:center;transform:none;}.nutrition-salads .salad-gallery .salad-photo img{object-fit:contain;object-position:center;transform:none;}.salad-browser-pick img{object-fit:contain;object-position:center;transform:none;}.home-folder:hover .card__media img{transform:none;}.salad-photo:hover img{transform:none;}}














@keyframes mobile-cover-shine{
 from{background-position:140% 0}
 to{background-position:-40% 0}
}
:is(.card__media:has(img),.fold__thumb,.salad-photo){position:relative;overflow:hidden;}
:is(.card__media:has(img),.fold__thumb,.salad-photo)::before{
 content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
 background:linear-gradient(105deg,transparent 38%,rgb(255 255 255 / .22) 50%,transparent 62%);
 background-size:260% 100%;background-position:140% 0;
}
:is(.card,.fold__summary):is(:hover,:focus-within,:active) :is(.card__media:has(img),.fold__thumb)::before{
 animation:mobile-cover-shine .85s var(--ease) both;
}
.salad-photo:is(:hover,:focus-within,:active)::before{
 animation:mobile-cover-shine .85s var(--ease) both;
}
@media screen and (max-width:767px), screen and (max-width:1023px) and (pointer:coarse){:root{--step-0:1rem;--step-1:1.125rem;--step-2:1.35rem;--step-3:1.65rem;--step-4:2rem;--step-5:2.3rem;--head-h:62px;--tabs-h:46px;--header-h:108px;}body[data-site="protocol"]{--head-h:60px;--tabs-h:0px;--header-h:60px;--step-0:1rem;--step-1:1.125rem;--step-2:1.35rem;--step-3:1.65rem;--step-4:2rem;--step-5:2.3rem;}html{font-size:16px;}body{font-size:16px;line-height:1.5;}main.main{min-width:0;max-width:100%;box-sizing:border-box;}.wrap{min-width:0;max-width:100%;box-sizing:border-box;}.guide-main{min-width:0;max-width:100%;box-sizing:border-box;}.layout{min-width:0;max-width:100%;box-sizing:border-box;}.layout--rail{min-width:0;max-width:100%;box-sizing:border-box;}.wrap{width:calc(100% - 24px);margin-inline:auto;padding-inline:0;}.site-head{height:auto;}.site-head__bar{width:calc(100% - 16px);max-width:none;height:62px;min-height:0;}.brand{font-size:17px;gap:3px;white-space:nowrap;flex-shrink:0;}.site-head__actions{;min-height:44px;width:40px;height:44px;grid-template-columns:40px;}.site-head .icon-btn{height:40px;padding:8px;border-radius:9px;}.site-head .icon-btn svg{width:19px;height:19px;}.menu-btn__label{display:none;}.layout{padding-top:0;margin-top:0;}main.main{padding-top:0;}main.main>.wrap{padding-top:12px;}h1{font-size:clamp(26px,7vw,34px);line-height:1.12;}h2{font-size:24px;line-height:1.2;}h3{font-size:20px;line-height:1.25;}p{max-width:none;}.eyebrow{font-size:11px;letter-spacing:.1em;}.page-hero{min-height:0!important;padding:20px 12px!important;margin-bottom:16px;}.lead{font-size:15px!important;line-height:1.5;max-width:none;}.home-hero{min-height:0!important;margin:8px 12px 16px;padding:0!important;}.home-hero__inner{padding:18px 16px!important;width:100%;min-height:0!important;}.home-hero h1{font-size:clamp(1.7rem,7.5vw,2.4rem)!important;line-height:1.06!important;margin:8px 0;max-width:none;}.home-hero .eyebrow{font-size:10px;}.home-hero .lead{font-size:.9375rem!important;margin:10px 0;line-height:1.45;}.home-motto{font-size:.6875rem;margin:8px 0;letter-spacing:.12em;max-width:none;width:100%;}.home-hero .btn-row{gap:8px;margin-top:14px;max-width:none;width:100%;flex-wrap:wrap;}.home-hero .btn{padding:10px 12px;min-height:42px;font-size:13px;}.rail-toggle{position:static!important;margin:.65rem 0!important;width:fit-content!important;min-height:44px!important;font-size:.8125rem!important;max-width:100%;padding:.5rem .75rem;line-height:1.25;border-radius:.4rem;background:#172d3a;color:#ffffff;box-shadow:none;left:auto;right:auto;top:auto;gap:.6rem;}.rail-toggle-space{display:none!important;}.site-foot{padding:0 12px!important;margin-top:12px!important;}.site-foot__grid{gap:16px!important;grid-template-columns:1fr!important;}.site-foot p{font-size:13px;}.site-foot a{font-size:14px;}[data-analysis-reference-entry]{margin:12px auto!important;padding:12px!important;}[data-analysis-reference-entry] h2{font-size:20px!important;}[data-analysis-reference-entry] p{font-size:13px!important;}.site-foot{font-size:13px;}.site-foot h2{font-size:13px;}.site-foot h3{font-size:13px;}button{touch-action:manipulation;}select{touch-action:manipulation;}summary{touch-action:manipulation;}select{font-size:16px;}summary:focus-visible{outline:3px solid var(--brand-orange);outline-offset:2px;}@media screen and (max-width:359px){.brand{font-size:14px;}}@media screen and (max-width:359px){.site-head__bar{gap:5px;padding-inline:8px;width:calc(100% - 16px);height:62px;min-height:0;}}@media screen and (max-width:359px){.site-head .icon-btn{width:32px;}}.layout{width:100%;padding:0!important;gap:0!important;}main.main{width:100%;margin:0!important;padding:0!important;}.layout--rail main.main{padding:12px!important;}.site-foot__inner{grid-template-columns:1fr 1fr!important;gap:12px!important;min-width:0;}.site-foot__inner ul{display:grid;grid-template-columns:1fr;gap:0;}.home-hero__img{max-width:none;}.site-head .icon-btn{min-height:44px;}html{scroll-snap-type:none!important;scroll-behavior:auto!important;}body{scroll-snap-type:none!important;scroll-behavior:auto!important;}body{padding-bottom:var(--page-dock-clearance,76px)!important;}.site-head__actions{margin-left:auto;min-height:44px;width:40px;height:44px;grid-template-columns:40px;}.site-head .tabs{display:block!important;}.site-head .tabs__list li{flex:initial;width:100%;min-width:0!important;}.site-head .tab:before{border-left-width:4px;}.fab-switch__glyph{width:28px;height:28px;}[data-home-dock]
.fab-panel{max-height:calc(75dvh - 60px);width:min(320px,calc(100vw - 24px));}.site-foot{margin-bottom:0!important;}.site-foot__inner{display:grid!important;}:root{--head-h:62px;--tabs-h:46px;--header-h:108px;}body[data-site=protocol]{--head-h:62px;--tabs-h:46px;--header-h:108px;}.site-head{position:relative;top:auto;z-index:50;}.site-head__bar{height:62px;min-height:0;padding:3px 8px;gap:6px;width:calc(100% - 16px);}.mode-folders{max-width:none;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:6px;padding-block:5px;min-height:0;height:62px;}.mode-folder{--mode-rail-width:5px;--mode-corner:16px;padding:6px 8px;gap:5px;min-height:50px;border-radius:5px;row-gap:3px;background:#101318;}.mode-folder__brand{font-size:clamp(.82rem,4vw,.98rem);line-height:1.15;letter-spacing:-.025em;}.mode-folder__brand b{display:inline;}@media (max-width:359px){.mode-folder{padding-inline:5px;min-height:50px;padding:6px 8px;border-radius:5px;row-gap:3px;background:#101318;}}@media (max-width:359px){.mode-folder__brand{font-size:clamp(.82rem,4vw,.98rem);letter-spacing:-.025em;line-height:1.15;}}.mode-folder__state{font-size:.55rem;letter-spacing:0;line-height:1.1;gap:3px;}.mode-folder__state i{width:4px;height:4px;}.mode-folder__description{display:none;}.site-head__actions{flex:none;gap:0;padding:0;width:40px;min-height:44px;height:44px;grid-template-columns:40px;}.site-head .icon-btn{width:44px;min-height:44px;}.site-head .menu-btn__label{display:none;}.site-head .tabs__list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));flex-wrap:wrap!important;width:calc(100% - 16px);gap:.4rem;padding:2px 0 5px;overflow:visible!important;scroll-snap-type:none!important;overflow-x:visible!important;overflow-y:visible!important;}.site-head .tabs__list li{display:flex;min-width:0!important;width:100%;margin:0;flex:initial;}.site-head .tab{min-width:0!important;width:100%;min-height:44px;padding:.65rem .6rem;white-space:normal!important;line-height:1.25;font-size:.875rem!important;overflow-wrap:anywhere;word-break:normal;height:auto;}.site-head .tab__label{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;min-width:0;max-width:100%;width:100%;line-height:1.25;display:block;}.subnav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;overflow:visible!important;flex-wrap:wrap!important;mask-image:none!important;-webkit-mask-image:none!important;max-width:100%;padding:0!important;}.subnav>li{min-width:0!important;width:100%;margin:0!important;}.subnav a{display:flex;align-items:center;justify-content:center;min-width:0!important;min-height:44px!important;width:100%;padding:8px!important;font-size:12px!important;line-height:1.3;white-space:normal!important;text-align:center;}@media (min-width:360px){.subnav{grid-template-columns:repeat(3,minmax(0,1fr));}}.subnav+.rowbar{display:none!important;}.filters+.rowbar{display:none!important;}.filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px!important;flex-wrap:wrap!important;overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important;margin-top:10px;min-width:0;}.filters button{min-width:0!important;width:100%;min-height:44px!important;white-space:normal!important;font-size:11px!important;line-height:1.25;padding:6px 4px!important;flex:none!important;border-radius:5px!important;}.carousel--file .carousel__track{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row!important;grid-auto-columns:auto!important;grid-template-rows:auto!important;gap:8px!important;width:100%!important;overflow:visible!important;scroll-snap-type:none!important;}.carousel--file .carousel__item{width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;margin:0!important;}.carousel--file .carousel__stage{overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important;padding-bottom:0!important;}.carousel--file .carousel__bar{display:none!important;}.carousel--file .carousel__pp{display:none!important;}.site-head .tab{font-size:.875rem!important;min-width:0!important;width:100%;white-space:normal!important;min-height:44px;padding:.65rem .6rem;line-height:1.25;overflow-wrap:anywhere;word-break:normal;height:auto;}@media screen and (max-width:359px){.site-head .tab{font-size:.875rem!important;min-width:0!important;width:100%;white-space:normal!important;min-height:44px;padding:.65rem .6rem;line-height:1.25;overflow-wrap:anywhere;word-break:normal;height:auto;}}html{scroll-padding-top:calc(var(--site-header-offset,var(--site-header-height,150px)) + 12px)!important;}}














































































































/* Full-page documents inside the native guide reader. Standalone pages retain their own navigation. */
html[data-resource-reader="true"]{scroll-padding-top:0!important}html[data-resource-reader="true"] .site-head,html[data-resource-reader="true"] .site-foot,html[data-resource-reader="true"] .page-dock,html[data-resource-reader="true"] .print-top,html[data-resource-reader="true"] .wg-toolbar,html[data-resource-reader="true"] .reader-route,html[data-resource-reader="true"] .reader-context,html[data-resource-reader="true"] .skip-link{display:none!important}html[data-resource-reader="true"] .main{padding-top:12px!important;margin-top:0!important}html[data-resource-reader="true"] .guide-main.reader{padding-top:0}html[data-resource-reader="true"] .p100-guides .print-page{scroll-margin-top:12px}
