/* ===================================================================
   MAPLE DCC Docs. Lasso Informatics brand
   Tokens fetched from Figma: MUI Design System (sdB98u3UdQwVBF4VEZdVs3)
   node 6649:50219 "Colors Styles (light)"
   =================================================================== */

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/material-icons.woff2") format("woff2");
}
.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-variable.woff2") format("woff2");
  font-weight: 100 700;
}

:root {
  /* Figma tokens */
  --bg-default: #f7f9fb; /* background/default */
  --bg-paper: #ffffff; /* background/paper-elevation-2 */
  --text-primary: #071b2c; /* text/primary */
  --text-secondary: #275c8b; /* text/secondary */
  --divider: #cee5f9; /* divider */
  --primary-main: #40b5ae; /* primary/main */
  --primary-dark: #087d77; /* primary/dark */
  --primary-light: #53cbc5; /* primary/light */
  --primary-hover: rgba(64, 181, 174, 0.08); /* primary/_states/hover */
  --primary-selected: rgba(64, 181, 174, 0.1);
  --secondary-main: #f2795e; /* secondary/main */
  --secondary-dark: #d54120;
  --secondary-light: #f89781;
  --action-hover: #e5f0fb; /* action/hover */
  --action-selected: #cee5f9; /* action/selected */
  --action-focus: #dfeefb;
  --input-border: #0c2f4d; /* _components/input/outlined/enabledBorder */
  --input-border-hover: #071b2c; /* _components/input/outlined/hoverBorder */
  --tooltip-fill: #275c8b; /* _components/tooltip/fill */
  --common-white-contrast: #f7f9fb; /* common/white_states/main */
  --warning-main: #ef6c00;
  --warning-light: #ff9800;
  --alert-warning-text: #663c00;
  --alert-warning-bg: #fff4e5;
  --error-main: #d32f2f;
  --error-light: #ef5350;
  --alert-error-text: #5f2120;
  --alert-error-bg: #fdeded;
  --info-main: #0288d1;
  --alert-info-text: #014361;
  --alert-info-bg: #e5f6fd;
  --success-main: #2e7d32;
  --radius-1: 4px; /* borderRadius 1 */
  --radius-2: 8px; /* borderRadius 2 */
  --elevation-1:
    0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
    0 1px 3px 0 rgba(0, 0, 0, 0.12);
  --elevation-4:
    0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12);
  --elevation-8:
    0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
  --label-accent: #d54120; /* secondary/dark: small-caps wayfinding labels */
  --font-heading: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-subtitle: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --sidebar-w: 296px;
}

/* ===================================================================
   Dark mode: Lasso Dark palette
   Figma: MUI Design System, node 344:36505 "Colors Styles (dark)"
   =================================================================== */
html[data-theme="dark"] {
  --label-accent: #f89781; /* secondary/light on dark surfaces */
  --bg-default: #001324; /* background/default */
  --bg-paper: #071b2c; /* background/paper-elevation-2 */
  --text-primary: #f7f9fb; /* text/primary */
  --text-secondary: #cee5f9; /* text/secondary */
  --divider: rgba(247, 249, 251, 0.35); /* divider (Figma: MUI Design System 344:36505) */
  --primary-hover: rgba(63, 177, 171, 0.08); /* primary/_states/hover */
  --primary-selected: rgba(64, 181, 174, 0.16);
  --action-hover: rgba(247, 249, 251, 0.08); /* action/hover */
  --action-selected: rgba(247, 249, 251, 0.16);
  --action-focus: rgba(247, 249, 251, 0.12);
  --input-border: rgba(247, 249, 251, 0.23); /* _components/input/outlined/enabledBorder */
  --input-border-hover: #f7f9fb; /* _components/input/outlined/hoverBorder */
  --tooltip-fill: #f7f9fb; /* _components/tooltip/fill */
  --common-white-contrast: #071b2c; /* common/white_states/main */
  --warning-main: #ffa726;
  --warning-light: #ffb74d;
  --alert-warning-text: #ffe2b7;
  --alert-warning-bg: #191207;
  --error-main: #f44336;
  --error-light: #e57373;
  --alert-error-text: #f4c7c7;
  --alert-error-bg: #160b0b;
  --info-main: #29b6f6;
  --alert-info-text: #b8e7fb; /* _components/alert/info/color */
  --alert-info-bg: #071318; /* _components/alert/info/background */
  --success-main: #66bb6a;
}
/* Teal/coral accents lighten for contrast on dark surfaces */
[data-theme="dark"] a {
  color: var(--primary-light);
}
[data-theme="dark"] a.section-card,
[data-theme="dark"] a.quick-link {
  color: var(--text-primary);
}
[data-theme="dark"] a.quick-link {
  color: var(--text-secondary);
}
[data-theme="dark"] .page-nav .pn-title,
[data-theme="dark"] .toc-float a.active,
[data-theme="dark"] .platform-btn,
[data-theme="dark"] a.quick-link:hover,
[data-theme="dark"] a.section-card .material-icons,
[data-theme="dark"] .chip-teal {
  color: var(--primary-light);
}
[data-theme="dark"] .chip-coral {
  color: var(--secondary-light);
}
[data-theme="dark"] .chip-grey {
  background: rgba(247, 249, 251, 0.12);
}
[data-theme="dark"] code {
  color: var(--text-secondary);
}
/* Diagrams are drawn on light surfaces; keep their card white in dark mode */
[data-theme="dark"] figure {
  background: #ffffff;
}
[data-theme="dark"] figure figcaption {
  color: #275c8b;
}
/* Mermaid-exported diagram SVGs (build.py's theme_aware_diagram_html auto-tags
   any <img src="...svg">) - these assume a white canvas with dark text, same
   as the figures above, but instead of pinning them to a permanent white
   card, invert+hue-rotate is the standard trick for adapting a light-themed
   image to a dark page without recoloring it by hand. Not pixel-perfect for
   every accent color, but reads correctly with zero per-diagram tuning. */
[data-theme="dark"] .diagram-svg {
  filter: invert(1) hue-rotate(180deg);
}
/* File tree recolors */
[data-theme="dark"] .file-tree .ft-path {
  color: var(--secondary-light);
}
[data-theme="dark"] .file-tree .ft-h-path {
  color: var(--secondary-light);
}
[data-theme="dark"] .file-tree .ft-comment,
[data-theme="dark"] .file-tree .ft-h-std {
  color: var(--primary-light);
}
[data-theme="dark"] .file-tree .ft-tree {
  color: rgba(206, 229, 249, 0.45);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  overflow-y: scroll;
}
body {
  margin: 0;
  background: var(--bg-default);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
}
strong,
b {
  font-weight: 600;
}
code,
kbd {
  font-family: var(--font-mono);
}

/* ============================ Motion tokens ============================ */
:root {
  --dur-1: 150ms;
  --dur-2: 220ms;
  --ease-out: cubic-bezier(0.22, 0.8, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
}
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 2px solid var(--primary-main);
  outline-offset: 2px;
  border-radius: var(--radius-1);
}

/* ============================ Search trigger ============================ */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  background: var(--bg-paper);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9333rem;
  cursor: pointer;
  transition:
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}
.search-trigger:hover {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(64, 181, 174, 0.12);
}
.search-trigger .material-icons {
  font-size: 1.2667rem;
}
.search-trigger .st-label {
  flex: 1;
  text-align: left;
  opacity: 0.8;
}
.search-trigger .st-kbd {
  display: flex;
  gap: 3px;
}
.search-trigger kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--bg-default);
}
.st-hero {
  width: 100%;
  height: 46px;
  font-size: 1rem;
}

/* ============================ Command palette ============================ */
.palette {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}
.palette.open {
  display: block;
}
.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 36, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
}
.palette.open .palette-backdrop {
  opacity: 1;
  transition: opacity var(--dur-2) var(--ease-out);
}
.palette-panel {
  position: relative;
  margin: 12vh auto 0;
  width: min(620px, calc(100vw - 32px));
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: 12px;
  box-shadow:
    2px 8px 8px 3px rgba(21, 24, 24, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
}
.palette.open .palette-panel {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-spring);
}
.palette-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}
.palette-head .material-icons {
  color: var(--text-secondary);
  font-size: 1.4rem;
}
.palette-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1.0667rem;
  color: var(--text-primary);
}
.palette-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.palette-esc {
  font-family: var(--font-mono);
  font-size: 0.7333rem;
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 2px 7px;
  background: var(--bg-default);
  cursor: pointer;
}
.palette-results {
  max-height: min(52vh, 460px);
  overflow-y: auto;
  padding-bottom: 6px;
}
.palette-results .sr-group {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7333rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 18px 4px;
}
.palette-results a.sr-item {
  display: block;
  padding: 9px 18px;
  text-decoration: none;
  color: var(--text-primary);
  border-left: 3px solid transparent;
}
.palette-results a.sr-item:hover {
  background: var(--primary-hover);
  border-left-color: var(--primary-main);
}
.palette-results a.sr-item.active {
  background: var(--primary-selected);
  border-left-color: var(--primary-main);
}
.palette-results .sr-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9333rem;
  letter-spacing: 0.015em;
}
.palette-results mark {
  background: var(--action-selected);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.palette-results .sr-snippet {
  font-size: 0.8333rem;
  color: var(--text-secondary);
  margin-top: 1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.palette-empty {
  text-align: center;
  padding: 36px 24px;
  color: var(--text-secondary);
}
.palette-empty .material-icons {
  font-size: 2.2667rem;
  opacity: 0.5;
  margin-bottom: 8px;
}
.palette-empty .empty-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.015em;
}
.palette-empty .empty-desc {
  font-size: 0.8667rem;
  margin-top: 4px;
}
.palette-foot {
  display: flex;
  gap: 18px;
  padding: 9px 18px;
  border-top: 1px solid var(--divider);
  font-size: 0.7667rem;
  color: var(--text-secondary);
}
.palette-foot kbd {
  font-family: var(--font-mono);
  font-size: 0.6667rem;
  border: 1px solid var(--divider);
  border-radius: 3px;
  padding: 0 4px;
  margin-right: 3px;
  background: var(--bg-default);
}
body.palette-lock {
  overflow: hidden;
}

/* ============================ Layout ============================ */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Mobile menu button */
.menu-fab {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 210;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--bg-paper);
  box-shadow: var(--elevation-4);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============================ Sidebar (platform sidenav) ============================ */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  background: var(--bg-paper);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  z-index: 199;
}
.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 10px;
}
.side-logo img {
  height: 30px;
  width: auto;
  display: block;
}
.side-logo .logo-dark {
  display: none;
}
[data-theme="dark"] .side-logo .logo-light {
  display: none;
}
[data-theme="dark"] .side-logo .logo-dark {
  display: block;
}
/* MUI-style switch, floating top-right */
.theme-toggle {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 120;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  cursor: pointer;
  padding: 7px 15px;
  border-radius: 100px;
  box-shadow: var(--elevation-1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ts-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7667rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.ts-label-dark {
  display: none;
}
[data-theme="dark"] .ts-label-dark {
  display: inline;
}
[data-theme="dark"] .ts-label-light {
  display: none;
}
.ts-track {
  position: relative;
  width: 34px;
  height: 14px;
  border-radius: 7px;
  background: rgba(7, 27, 44, 0.28);
  transition: background var(--dur-2) var(--ease-out);
}
[data-theme="dark"] .ts-track {
  background: rgba(64, 181, 174, 0.5);
}
.ts-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-2px, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fafafa;
  box-shadow: var(--elevation-1);
  transition:
    transform var(--dur-2) var(--ease-spring),
    background var(--dur-2) var(--ease-out);
}
[data-theme="dark"] .ts-thumb {
  transform: translate(16px, -50%);
  background: var(--primary-main);
}
.theme-toggle:hover .ts-thumb {
  box-shadow:
    var(--elevation-1),
    0 0 0 7px rgba(64, 181, 174, 0.1);
}
.side-site {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0667rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
  padding: 8px 20px 0;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 16px 0;
  padding: 7px 8px 7px 10px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
}
.side-user-avatar {
  font-size: 1.3333rem;
  color: var(--text-secondary);
  flex: none;
}
.side-user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}
.side-user-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-secondary);
}
.side-user-logout:hover {
  background: var(--action-hover);
  color: var(--text-primary);
}
.side-user-logout .material-icons {
  font-size: 1.1667rem;
}
.side-version {
  margin: 20px 16px 0;
}
.version-field {
  position: relative;
}
/* Label sits on the select's border (MUI outlined-input notch), rather
   than above the box - opaque bg-paper patch over the border line, which
   works seamlessly since the sidebar and the select share that same
   background color (see .sidebar). */
.version-field-label {
  position: absolute;
  left: 10px;
  top: 0;
  transform: translateY(-50%);
  margin-top: 1px;
  z-index: 1;
  padding: 0 4px;
  background: var(--bg-paper);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  pointer-events: none;
}
.version-field:focus-within .version-field-label {
  color: var(--primary-main);
}
.version-select {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  background: var(--bg-paper);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8333rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23275C8B' stroke-width='1.6'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition:
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}
.version-select:hover {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(64, 181, 174, 0.12);
}
.version-select:focus-visible {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(64, 181, 174, 0.12);
}
[data-theme="dark"] .version-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23F7F9FB' stroke-width='1.6'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}
.side-search {
  margin: 20px 16px 22px;
}
.side-div {
  border-top: 1px solid var(--divider);
  margin: 0 16px 8px;
}
/* Under the study name, rather than before .side-nav - even top/bottom
   spacing around the rule itself (unlike .side-div's own 0/8px split,
   which reads fine there because .side-search's own large bottom margin
   already provides the space above it). */
.side-div.side-div-site {
  margin: 14px 16px;
}
.side-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 12px 12px;
  font-size: 0.9333rem;
}
.side-foot {
  border-top: 1px solid var(--divider);
  padding: 14px 16px;
}
a.help-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--secondary-light);
  color: #071b2c;
  background: var(--secondary-light);
  border-radius: var(--radius-2);
  padding: 9px 16px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8333rem;
  letter-spacing: normal;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 10px;
  transition:
    background var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
a.help-btn:hover {
  background: var(--secondary-main);
  border-color: var(--secondary-main);
  color: #071b2c;
  text-decoration: none;
}
.help-btn .material-icons {
  font-size: 1.0667rem;
}
/* Missing-link state: muted and non-interactive, matching .platform-btn:disabled */
a.help-btn[href=""],
a.help-btn:not([href]) {
  border-color: var(--divider);
  color: var(--text-secondary);
  background: none;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
a.help-btn[href=""]:hover,
a.help-btn:not([href]):hover {
  background: none;
  border-color: var(--divider);
  color: var(--text-secondary);
}
.platform-wrap {
  position: relative;
  display: block;
}
.platform-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid rgba(64, 181, 174, 0.5);
  color: var(--primary-dark);
  background: none;
  border-radius: var(--radius-2);
  padding: 9px 16px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8333rem;
  letter-spacing: normal;
  text-transform: uppercase;
  cursor: pointer;
}
.platform-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  text-decoration: none;
}
.platform-btn .material-icons {
  font-size: 1.0667rem;
}
/* Disabled state: muted, not interactive, with a "coming soon" tooltip */
.platform-btn:disabled {
  border-color: var(--divider);
  color: var(--text-secondary);
  opacity: 0.6;
  /* let the wrapper receive hover so the tooltip still shows */
  pointer-events: none;
}
.platform-wrap:has(.platform-btn:disabled) {
  cursor: not-allowed;
}
.platform-tip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--tooltip-fill);
  color: var(--common-white-contrast);
  border-radius: var(--radius-1);
  box-shadow: var(--elevation-4);
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  opacity: 0;
  transition:
    opacity var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.platform-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--tooltip-fill);
}
.platform-wrap:hover .platform-tip,
.platform-btn:focus-visible + .platform-tip {
  opacity: 1;
  transform: translateX(-50%);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  margin-bottom: 2px;
  border-radius: var(--radius-1);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.015em;
  transition:
    background var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out);
}
.nav-item:hover {
  background: var(--action-hover);
  text-decoration: none;
}
.nav-item .material-icons {
  font-size: 1.2667rem;
  color: var(--text-secondary);
  transition: color var(--dur-1) var(--ease-out);
}
/* The Lasso Platform nav item's icon is the actual Lasso logomark (Figma
   "Lasso Branding", node 5257:814/816) rather than a generic Material
   Icons glyph - assets/icons/lasso-cloud.svg, applied as a CSS mask so it
   recolors via currentColor exactly like the Material Icons glyphs
   beside it (mask-image only reads the source's alpha channel, so the
   SVG's own fill color is irrelevant here). Sized as a square to match
   .material-icons' own box, keeping every nav label's left edge aligned
   even though the mark's natural aspect ratio is wider than tall. */
.nav-icon-lasso {
  display: inline-block;
  width: 1.2667rem;
  height: 1.2667rem;
  flex-shrink: 0;
  background-color: var(--text-secondary);
  -webkit-mask-image: url("icons/lasso-cloud.svg");
  mask-image: url("icons/lasso-cloud.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: background-color var(--dur-1) var(--ease-out);
}
.nav-item.active {
  color: var(--primary-dark);
  background: var(--primary-selected);
}
.nav-item.active .material-icons {
  color: var(--primary-dark);
}
.nav-item.active .nav-icon-lasso {
  background-color: var(--primary-dark);
}
[data-theme="dark"] .nav-item {
  color: var(--text-primary);
}
[data-theme="dark"] .nav-item.active {
  color: var(--primary-light);
}
[data-theme="dark"] .nav-item.active .material-icons {
  color: var(--primary-light);
}
[data-theme="dark"] .nav-item.active .nav-icon-lasso {
  background-color: var(--primary-light);
}

/* ============================ Section head (main page) ============================ */
.section-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 16px;
}
.section-icon {
  font-size: 1.4667rem;
  color: var(--secondary-dark);
  background: rgba(242, 121, 94, 0.13);
  border-radius: var(--radius-2);
  padding: 9px;
}
[data-theme="dark"] .section-icon {
  color: var(--secondary-light);
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.015em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ============================ Section tabs (sub-pages) ============================ */
.section-tabs {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-default);
  margin: 0 0 26px;
  border-bottom: 1px solid var(--divider);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.section-tabs.stuck {
  box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.35);
}
.tabs-scroll {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: -1px;
  padding-top: 9px;
}
.tabs-scroll::-webkit-scrollbar {
  display: none;
}
.tabs-scroll.fade-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.tabs-scroll.fade-left {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px);
  mask-image: linear-gradient(to right, transparent, #000 56px);
}
.tabs-scroll.fade-left.fade-right {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 56px,
    #000 calc(100% - 56px),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 56px,
    #000 calc(100% - 56px),
    transparent
  );
}
.tabs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--bg-paper);
  color: var(--text-secondary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--elevation-1);
  z-index: 2;
  padding: 0;
  transition:
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.tabs-btn.show {
  display: flex;
}
.tabs-btn:hover {
  color: var(--secondary-dark);
  border-color: var(--secondary-main);
}
[data-theme="dark"] .tabs-btn:hover {
  color: var(--secondary-light);
}
.tabs-btn .material-icons {
  font-size: 1.2667rem;
}
.tabs-btn-prev {
  left: -6px;
}
.tabs-btn-next {
  right: -6px;
}
.section-tabs .tab {
  flex-shrink: 0;
  padding: 10px 16px 11px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8667rem;
  letter-spacing: 0.015em;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-2) var(--radius-2) 0 0;
  transition:
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out);
}
.section-tabs .tab:hover {
  color: var(--text-primary);
  background: var(--action-hover);
  text-decoration: none;
}
.section-tabs .tab.active {
  color: var(--secondary-dark);
  background: #ffffff;
  border-bottom-color: var(--secondary-main);
  box-shadow: 0 -7px 10px -7px rgba(0, 0, 0, 0.38);
  /* Clip the shadow below the tab so only the top corners read as lifted */
  clip-path: inset(-16px -16px 0 -16px);
}
[data-theme="dark"] .section-tabs .tab {
  color: var(--text-secondary);
}
[data-theme="dark"] .section-tabs .tab.active {
  color: var(--secondary-light);
  background: #1f3448;
  box-shadow: 0 -7px 11px -6px rgba(0, 0, 0, 0.85);
}

/* Content */
.content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}
.content-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

/* ============================ Typography ============================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: 0.015em;
}
h1 {
  font-size: 1.4667rem;
  margin: 0 0 12px;
  font-weight: 800;
}
.page-lede {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 1.0667rem;
  color: var(--text-secondary);
  margin: 0 0 26px;
}
h2 {
  font-size: 1.2333rem;
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}
h3 {
  font-size: 1.0667rem;
  margin: 26px 0 8px;
}
p {
  margin: 0 0 14px;
}
a {
  color: var(--primary-dark);
}
a:hover {
  text-decoration: underline;
}
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--action-focus);
  border-radius: var(--radius-1);
  padding: 1px 6px;
  color: var(--text-secondary);
}
ul,
ol {
  padding-left: 24px;
  margin: 0 0 14px;
}
li {
  margin-bottom: 4px;
}
.page-main ul li::marker {
  color: var(--secondary-main);
}
.page-main ol li::marker {
  color: var(--label-accent);
  font-family: var(--font-heading);
  font-weight: 700;
}
hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 32px 0;
}

/* Heading anchors render as a small "copy link" icon button */
.anchor-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid var(--divider);
  border-radius: var(--radius-1);
  background: var(--bg-paper);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0;
  opacity: 0;
  transition:
    opacity var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out);
}
.anchor-link::before {
  content: "link";
  font-family: "Material Icons";
  font-size: 1rem;
  line-height: 1;
  font-weight: normal;
  letter-spacing: normal;
  text-transform: none;
}
.anchor-link:hover {
  color: var(--primary-dark);
  border-color: var(--primary-main);
  background: var(--primary-hover);
  text-decoration: none;
}
[data-theme="dark"] .anchor-link:hover {
  color: var(--primary-light);
}
h2:hover .anchor-link,
h3:hover .anchor-link,
.anchor-link:focus-visible,
.anchor-link.copied {
  opacity: 1;
}
.anchor-link.copied {
  color: var(--primary-dark);
  border-color: var(--primary-main);
}
[data-theme="dark"] .anchor-link.copied {
  color: var(--primary-light);
}
.anchor-link.copied::before {
  content: "check";
}
.anchor-link.copied::after {
  content: "Link copied";
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: var(--primary-main);
  color: #071b2c;
  border-radius: 4px;
  padding: 3px 9px;
  animation: panel-in var(--dur-1) var(--ease-out);
  white-space: nowrap;
}

/* ============================ Status strips ============================ */
.status-strip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8667rem;
  border-radius: var(--radius-1);
  padding: 9px 13px;
  margin: 0 0 22px;
  line-height: 1.5;
}
.status-strip .material-icons {
  font-size: 1.1333rem;
  margin-top: 1px;
}
.status-strip strong {
  font-family: var(--font-body);
  font-weight: 600;
}
.status-draft {
  background: transparent;
  border: 1px solid var(--warning-light);
  color: var(--alert-warning-text);
}
.status-draft .material-icons {
  color: var(--warning-main);
}
.status-missing {
  background: var(--alert-error-bg);
  border: 1px solid var(--error-light);
  color: var(--alert-error-text);
}
.status-missing .material-icons {
  color: var(--error-main);
}

/* ====================== Instrument "Coming soon" sections ====================== */
/* Fills in a section's body on instrument pages (protocol/instruments/*.html)
   when the underlying record has no data for it yet, so every instrument
   shows the same section skeleton instead of some sections just vanishing. */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-style: italic;
}
.coming-soon .material-icons {
  font-size: 1.1333rem;
}

/* ============================ Role router (Quick Start) ============================ */
.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--divider);
  border-radius: 100px;
  padding: 9px 18px;
  background: var(--bg-paper);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.8667rem;
  transition:
    border-color var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-spring);
}
.role-chip .material-icons {
  font-size: 1.1333rem;
}
.role-chip:hover {
  border-color: var(--primary-main);
  color: var(--primary-dark);
}
.role-chip:active {
  transform: scale(0.97);
}
.role-chip.active {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: #071b2c;
}
[data-theme="dark"] .role-chip:hover {
  color: var(--primary-light);
}
[data-theme="dark"] .role-chip.active {
  color: #071b2c;
}
.role-panel {
  margin-bottom: 8px;
}
.role-panel.show {
  animation: panel-in var(--dur-2) var(--ease-out);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.role-desc {
  color: var(--text-secondary);
  font-size: 0.9333rem;
  margin-bottom: 14px;
}
a.path-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  padding: 13px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition:
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
a.path-step:hover {
  border-color: var(--primary-main);
  transform: translateX(2px);
  box-shadow: var(--elevation-1);
  text-decoration: none;
}
a.path-step:hover .path-arrow {
  transform: translateX(3px);
  opacity: 1;
}
.path-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-hover);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8667rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .path-num {
  color: var(--primary-light);
}
.path-body {
  flex: 1;
  min-width: 0;
}
.path-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9667rem;
  letter-spacing: 0.015em;
}
.path-desc {
  display: block;
  font-size: 0.8333rem;
  color: var(--text-secondary);
  margin-top: 1px;
}
.path-arrow {
  color: var(--primary-dark);
  font-size: 1.2rem;
  opacity: 0.45;
  transition:
    transform var(--dur-1) var(--ease-out),
    opacity var(--dur-1) var(--ease-out);
}
[data-theme="dark"] .path-arrow {
  color: var(--primary-light);
}

/* ============================ QC stage tracker ============================ */
.qc-tracker {
  margin: 22px 0 30px;
}
.qct-rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 20px;
}
.qct-rail-line {
  position: absolute;
  top: 19px;
  left: 40px;
  right: 40px;
  height: 2.5px;
  background: var(--divider);
  border-radius: 2px;
  z-index: 0;
}
.qct-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
  font-family: var(--font-body);
  font-weight: 600;
}
.qct-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-paper);
  border: 2.5px solid var(--divider);
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    transform var(--dur-1) var(--ease-spring);
}
.qc-tracker.in-view .qct-node {
  border-color: var(--stage-c);
}
.qc-tracker.in-view .qct-stage:nth-child(2) .qct-node {
  transition-delay: 0ms;
}
.qc-tracker.in-view .qct-stage:nth-child(3) .qct-node {
  transition-delay: 70ms;
}
.qc-tracker.in-view .qct-stage:nth-child(4) .qct-node {
  transition-delay: 140ms;
}
.qc-tracker.in-view .qct-stage:nth-child(5) .qct-node {
  transition-delay: 210ms;
}
.qc-tracker.in-view .qct-stage:nth-child(6) .qct-node {
  transition-delay: 280ms;
}
.qct-stage:hover .qct-node {
  transform: scale(1.08);
}
.qct-stage.active .qct-node {
  background: var(--stage-c);
  border-color: var(--stage-c);
  color: #fff;
}
.qct-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  transition: color var(--dur-1) var(--ease-out);
}
.qct-stage.active .qct-label {
  color: var(--text-primary);
}
.qct-panel {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  border-top: 3px solid var(--stage-c);
  padding: 18px 22px;
  box-shadow: var(--elevation-1);
}
.qct-panel.show {
  animation: panel-in var(--dur-2) var(--ease-out);
}
.qct-when {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.qct-checks-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7333rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-accent);
  margin-bottom: 6px;
}
ul.qct-checks {
  margin: 0;
  padding-left: 20px;
}
ul.qct-checks li {
  margin-bottom: 5px;
  font-size: 0.9333rem;
}
@media (max-width: 720px) {
  .qct-rail {
    flex-wrap: wrap;
  }
  .qct-rail-line {
    display: none;
  }
  .qct-stage {
    flex: 0 0 calc(50% - 6px);
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  .qct-label {
    text-align: left;
  }
}

/* ============================ Release timeline ============================ */
.tlh-wrap {
  margin: 18px 0 30px;
}
.tlh-legend {
  display: flex;
  gap: 22px;
  margin-bottom: 10px;
  font-size: 0.8333rem;
  color: var(--text-secondary);
}
.tlh-key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tlh-key-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c);
}
.tlh-key-diamond {
  width: 9px;
  height: 9px;
  background: var(--secondary-main);
  transform: rotate(45deg);
}
.tlh-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 4px;
}
.tlh-hint .material-icons {
  font-size: 1.0667rem;
}
.tlh-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 18px;
  scrollbar-color: var(--divider) transparent;
  -webkit-overflow-scrolling: touch;
}
.tlh-scroll::-webkit-scrollbar {
  height: 8px;
}
.tlh-scroll::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: 4px;
}
.tlh-track {
  display: inline-grid;
  grid-auto-flow: column;
  grid-template-rows: minmax(78px, auto) 34px minmax(56px, auto);
}
.tlh-col {
  display: contents;
  --w: 172px;
}
.tlh-col.tlh-release {
  --w: 118px;
}
.tlh-top,
.tlh-node,
.tlh-bottom {
  width: var(--w);
}
.tlh-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}
.tlh-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.tlh-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tlh-node::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--c, var(--divider));
}
.tlh-track > .tlh-col:first-child .tlh-node::before {
  left: 50%;
}
.tlh-track > .tlh-col:last-child .tlh-node::before {
  right: 50%;
}
.tlh-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow:
    0 0 0 3px var(--bg-default),
    0 0 0 4.5px var(--c);
}
.tlh-diamond {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  background: var(--secondary-main);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--bg-default);
}
.tlh-connector {
  width: 2px;
  height: 14px;
  background: var(--c);
}
.tlh-card {
  width: 150px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-1);
  padding: 8px 10px;
  box-shadow: var(--elevation-1);
}
.tlh-date {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7333rem;
  color: var(--text-secondary);
}
.tlh-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8333rem;
  margin-top: 2px;
  line-height: 1.3;
  letter-spacing: 0.015em;
}
.tlh-desc {
  font-size: 0.7333rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.35;
}
.tlh-rlabel {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-body);
  font-weight: 500;
}
.tlh-rdate {
  font-size: 0.6667rem;
  color: var(--secondary-dark);
  opacity: 0.85;
}
[data-theme="dark"] .tlh-rdate {
  color: var(--secondary-light);
}
.tlh-rtitle {
  font-size: 0.7667rem;
  color: var(--secondary-dark);
  line-height: 1.25;
}
[data-theme="dark"] .tlh-rtitle {
  color: var(--secondary-light);
}

/* ============================ RACI matrix ============================ */
.raci-wrap {
  overflow-x: auto;
  margin: 16px 0 26px;
}
.raci {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(118px, 150px));
  gap: 8px 0;
  min-width: 660px;
  align-items: stretch;
}
.raci-corner {
}
.raci-head {
  background: var(--c);
  color: #fff;
  border-radius: var(--radius-2);
  text-align: center;
  padding: 9px 8px;
  margin: 0 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}
.raci-head em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.7rem;
  opacity: 0.85;
}
.raci-name {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2) 0 0 var(--radius-2);
  border-right: none;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}
.raci-cell {
  background: var(--bg-paper);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 0;
}
.raci-cell:nth-of-type(5n) {
  border-right: 1px solid var(--divider);
  border-radius: 0 var(--radius-2) var(--radius-2) 0;
}
.raci-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--divider);
  opacity: 0.6;
}
.raci-dot.on {
  width: 18px;
  height: 18px;
  background: var(--c);
  opacity: 1;
  box-shadow:
    0 0 0 3px var(--bg-paper),
    0 0 0 4.5px var(--c);
}

/* Filled buttons keep dark text in both themes (beats the dark-mode link colour) */
[data-theme="dark"] a.cta-button,
[data-theme="dark"] a.cta-button:hover {
  color: #071b2c;
}
[data-theme="dark"] a.cta-button.sent {
  color: #fff;
}

/* ============================ Table filter ============================ */
.table-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  padding: 0 14px;
  height: 44px;
  margin: 0 0 18px;
  transition:
    border-color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-out);
}
.table-filter:focus-within {
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(64, 181, 174, 0.12);
}
.table-filter .material-icons {
  font-size: 1.2667rem;
  color: var(--text-secondary);
}
.filter-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  height: 100%;
  font-family: var(--font-body);
  font-size: 0.9333rem;
  color: var(--text-primary);
}
.filter-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}
.filter-count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--label-accent);
  white-space: nowrap;
}
.filter-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--divider);
  border-radius: var(--radius-2);
  padding: 16px 18px;
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.filter-empty .material-icons {
  font-size: 1.3333rem;
  opacity: 0.6;
}
.filter-empty kbd {
  font-family: var(--font-mono);
  font-size: 0.7333rem;
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--bg-paper);
}

/* ============================ Copyable code ============================ */
code.copyable {
  cursor: copy;
  position: relative;
  transition: background var(--dur-1) var(--ease-out);
}
code.copyable:hover {
  background: var(--action-selected);
}
code.copyable.copied::after {
  content: "Copied";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6667rem;
  letter-spacing: 0.05em;
  background: var(--primary-main);
  color: #071b2c;
  border-radius: 4px;
  padding: 2px 7px;
  animation: panel-in var(--dur-1) var(--ease-out);
  white-space: nowrap;
  z-index: 5;
}

/* ============================ Planned (in development) ============================ */
.planned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin: 14px 0 8px;
}
.planned-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-paper);
  border: 1px dashed var(--divider);
  border-radius: var(--radius-2);
  padding: 14px 16px;
}
.planned-card .material-icons {
  font-size: 1.3333rem;
  color: var(--text-secondary);
  opacity: 0.75;
}
.pc-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.015em;
}
.pc-status {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6667rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-accent);
}
a.planned-card {
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
a.planned-card:hover {
  border-color: var(--primary-main);
  border-style: solid;
  transform: translateY(-1px);
  text-decoration: none;
}

/* A journey/procedure with real hand-authored content (build.py's
   planned_grid_html) - solid border + teal accent, same "ready" convention
   as .status-pill.ready / .chip-teal, instead of the dashed "not written
   yet" look above. */
.planned-card.ready {
  border-style: solid;
  border-color: rgba(64, 181, 174, 0.35);
}
.planned-card.ready .material-icons {
  color: var(--primary-dark);
  opacity: 1;
}
.planned-card.ready .pc-status {
  color: var(--primary-dark);
}
[data-theme="dark"] .planned-card.ready .material-icons,
[data-theme="dark"] .planned-card.ready .pc-status {
  color: var(--primary-light);
}

/* ============================ Skip link & external links ============================ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  background: var(--primary-main);
  color: #071b2c;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8667rem;
  border-radius: 100px;
  padding: 9px 18px;
  transform: translateY(-64px);
  transition: transform var(--dur-1) var(--ease-out);
}
/* Buttons already carry their own icon span; suppress the auto-appended one to avoid duplicates. */
.page-main p a.cta-button[target="_blank"]::after {
  content: none;
}

.empty-state {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px dashed var(--divider);
  border-radius: var(--radius-2);
  padding: 16px 18px;
  color: var(--text-secondary);
}
.empty-state .material-icons {
  font-size: 1.4667rem;
  opacity: 0.55;
}
.empty-state .empty-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.015em;
}
.empty-state .empty-desc {
  font-size: 0.8333rem;
  margin-top: 2px;
}

/* ============================ Protocol sub-navigation rails ============================ */
.proto-rail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
}
.proto-rail .rail-label {
  padding-top: 7px;
}
.proto-rail:first-child {
  margin-top: -6px;
}
.proto-rail + .status-strip,
.proto-rail-sub + .status-strip {
  margin-top: 16px;
}
.rail-label {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-accent);
  width: 86px;
}
/* Chips wrap so nothing hides behind horizontal scroll */
.rail-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0;
}
/* On desktop the right-column navigator replaces the rails */
@media (min-width: 1281px) {
  .proto-rail {
    display: none;
  }
}
.rail-chip {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--divider);
  background: var(--bg-paper);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out);
}
.rail-chip:hover {
  border-color: var(--primary-main);
  color: var(--text-primary);
  text-decoration: none;
}
.rail-chip.active {
  background: var(--primary-main);
  border-color: var(--primary-main);
  color: #071b2c;
}
.rail-chip-sm {
  font-size: 0.7333rem;
  padding: 4px 11px;
}

/* ============================ Protocol overview ============================ */
.proto-stats {
  display: flex;
  gap: 14px;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 108px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  padding: 14px 20px 12px;
  box-shadow: var(--elevation-1);
}
.stat-n {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.7333rem;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: 0.015em;
}
[data-theme="dark"] .stat-n {
  color: var(--primary-light);
}
.stat-l {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 3px;
}
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 14px 0 8px;
}
a.domain-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  padding: 15px 17px;
  text-decoration: none;
  color: var(--text-primary);
  transition:
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-spring),
    box-shadow var(--dur-1) var(--ease-out);
}
a.domain-card:hover {
  border-color: var(--primary-main);
  transform: translateY(-2px);
  box-shadow: var(--elevation-4);
  text-decoration: none;
}
.dc-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9333rem;
  letter-spacing: 0.015em;
}
.dc-count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-accent);
}
.dc-preview {
  font-size: 0.7667rem;
  color: var(--text-secondary);
  margin-top: 5px;
  font-family: var(--font-mono);
}
.inst-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}
/* Tucks the chips back up against the lede's own bottom margin - only valid
   when a lede is actually there; without one this would pull the chips up
   into the title row instead (see build.py: some instruments have no
   distinct full name to show as a lede). */
.page-lede + .inst-chips {
  margin-top: -8px;
}
.inst-chips .chip {
  font-size: 0.8rem;
  padding: 4px 13px;
  text-decoration: none;
}
a.chip-coral:hover {
  text-decoration: underline;
}

/* MUI Alerts (Standard variant: tinted background per severity, no border, 8px radius) */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: var(--radius-2);
  padding: 6px 16px;
  margin: 0 0 22px;
  font-size: 0.9333rem;
  font-weight: 500;
}
.alert .material-icons {
  font-size: 1.4667rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.alert .alert-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 2px;
  letter-spacing: 0.015em;
}
.alert p:last-child {
  margin-bottom: 0;
}
.alert-warning {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
}
.alert-warning .material-icons {
  color: var(--warning-main);
}
.alert-error {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
}
.alert-error .material-icons {
  color: var(--error-main);
}
.alert-info {
  background: var(--alert-info-bg);
  color: var(--alert-info-text);
}
.alert-info .material-icons {
  color: var(--info-main);
}

/* ============================ Tables ============================ */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-paper);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
  margin: 0 0 24px;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.data th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8667rem;
  text-align: left;
  color: var(--text-primary);
  padding: 12px 16px;
  border-bottom: 2px solid rgba(242, 121, 94, 0.5);
  white-space: nowrap;
  background: var(--bg-paper);
}
table.data td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
table.data tr:last-child td {
  border-bottom: none;
}
.measure-icon {
  font-size: 1.4rem;
  vertical-align: text-bottom;
  margin-left: 2px;
  color: var(--label-accent);
}
.measure-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 8px 0 16px;
  /* font-size: 0.8667rem; */
  color: var(--text-secondary);
}
.measure-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.measure-legend-item .measure-icon {
  margin-left: 0;
}

/* RBAC capability table (getting-started/by-role.md's "Roles &
   Capabilities" section) - embedded from a study's own assets/RBAC.html
   (see rbac_table_html() in build.py), which keeps these same class
   names but no longer brings its own <style> - styled here with this
   site's own theme variables instead of RBAC.html's old hardcoded
   light-only palette, so it's dark/light theme-aware like everything
   else on the page. */
.table-card {
  overflow: hidden;
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  background: var(--bg-paper);
  box-shadow: var(--elevation-1);
  margin: 14px 0 24px;
}
.capability-table-wrapper {
  overflow: auto;
  max-height: min(75vh, 900px);
}
.capability-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8467rem;
}
.capability-table th,
.capability-table td {
  padding: 6px 5px;
  border-right: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  text-align: center;
  vertical-align: middle;
}
.capability-table th:last-child,
.capability-table td:last-child {
  border-right: 0;
}
.capability-table tbody tr:last-child td {
  border-bottom: 0;
}
.capability-table thead th {
  /* A fixed height (not just padding) so this always matches
     tr.section-header's `top` below exactly, however many lines a
     given role header's text wraps to - see that rule's own comment. */
  height: 46px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg-paper);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.7333rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border-bottom: 2px solid var(--label-accent);
}
.capability-table thead th.feature-col,
.capability-table td.feature-col {
  text-align: left;
  min-width: 150px;
}
.feature-title {
  font-weight: 650;
  color: var(--text-primary);
}
.subtle-table {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.35;
}
.capability-table tbody tr:not(.section-header):nth-child(even) td {
  background: var(--bg-default);
}
tr.section-header td {
  position: sticky;
  /* Must exactly match thead th's explicit `height` above, or this
     row either overlaps the header row (too small) or leaves a gap
     above it (too large) once both are stuck while scrolling. */
  top: 46px;
  z-index: 2;
  /* --action-selected is a translucent overlay token (16% opacity in
     dark mode) meant to sit on top of an existing opaque background,
     not to BE one - as a bare `background`, normal rows scrolling
     underneath this sticky row bled through it. Layering it over
     --bg-paper via a same-color gradient (a standard trick for turning
     a translucent token opaque) fixes that in both themes. */
  background-color: var(--bg-paper);
  background-image: linear-gradient(0deg, var(--action-selected), var(--action-selected));
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}
.capability-table .icon-check {
  color: var(--success-main);
  font-size: 1.1667rem;
}
.capability-table td:empty::after {
  content: "\2013";
  color: var(--text-secondary);
  opacity: 0.5;
}
@media (max-width: 760px) {
  .capability-table-wrapper {
    max-height: 70vh;
  }
}
.chip {
  display: inline-block;
  font-size: 0.7667rem;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: normal;
  border-radius: 100px;
  padding: 2px 10px;
  white-space: nowrap;
}
.chip-teal {
  background: rgba(64, 181, 174, 0.15);
  color: var(--primary-dark);
}
.chip-blue {
  background: var(--action-selected);
  color: var(--text-secondary);
}
.chip-coral {
  background: rgba(242, 121, 94, 0.15);
  color: var(--secondary-dark);
}
.chip-grey {
  background: rgba(7, 27, 44, 0.08);
  color: var(--text-secondary);
}

/* ============================ Instrument cards ============================ */
.inst-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
/* Resource/scoring-script links act as actions, not navigation chips - style as
   a real Figma Button (Outlined, Medium, Primary) rather than the quick-link pill. */
.inst-meta a.quick-link {
  background: none;
  border: 1px solid rgba(64, 181, 174, 0.5);
  border-radius: var(--radius-2);
  padding: 6px 16px;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9333rem;
  letter-spacing: normal;
  text-transform: uppercase;
}
.inst-meta a.quick-link:hover {
  background: var(--primary-hover);
  border-color: rgba(64, 181, 174, 0.5);
  color: var(--primary-dark);
}
.inst-facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8667rem;
  margin-top: 14px;
}
.inst-facts th {
  font-family: var(--font-body);
  font-weight: 700;
  text-align: left;
  padding: 6px 12px 6px 0;
  color: var(--text-secondary);
  white-space: nowrap;
  width: 160px;
  vertical-align: top;
}
.inst-facts td {
  padding: 6px 0;
  border-bottom: 1px dashed var(--divider);
}
.inst-facts tr:last-child td {
  border-bottom: none;
}

details.mui-details {
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  margin: 14px 0;
  background: var(--bg-default);
}
details.mui-details summary {
  cursor: pointer;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9333rem;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
details.mui-details summary::before {
  content: "expand_more";
  font-family: "Material Icons";
  font-size: 1.2rem;
  transition: transform 0.15s;
}
details.mui-details[open] summary::before {
  transform: rotate(180deg);
}
details.mui-details .details-body {
  padding: 4px 16px 14px;
  font-size: 0.9333rem;
}

/* ============================ Landing page ============================ */
.hero {
  padding: 26px 0 8px;
  text-align: left;
  margin-bottom: 26px;
}
.hero h1 {
  color: var(--text-primary);
  font-size: 2.2667rem;
  margin-bottom: 8px;
}
.hero .hero-sub {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 1.0667rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 720px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin: 20px 0 34px;
}
.card-grid-compact {
  grid-template-columns: 1fr;
  gap: 12px;
}
a.section-card.section-card-compact {
  padding: 15px 17px;
  gap: 3px;
}
a.section-card.section-card-compact .card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
a.section-card.section-card-compact p {
  font-size: 0.9rem;
  margin-top: 2px;
}
a.section-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
  padding: 22px;
  text-decoration: none;
  color: var(--text-primary);
  transition:
    box-shadow 0.15s,
    transform 0.15s,
    border-color 0.15s;
  border: 1px solid var(--divider);
}
/* Card rhythm matches the By Process cards: icon + title share a header row
   (with the status pill pushed to the row's end via margin-left:auto), and
   the description sits below with one consistent margin - no reserved
   heights or flow tricks needed, since row height just follows content. */
a.section-card .card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
a.section-card:hover {
  box-shadow: var(--elevation-8);
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--primary-main);
}
a.section-card .material-icons {
  font-size: 1.4667rem;
  color: var(--primary-dark);
  background: var(--primary-hover);
  border-radius: 10px;
  padding: 9px;
  display: inline-flex;
  flex-shrink: 0;
}
a.section-card h3 {
  margin: 0;
  font-size: 1.1333rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
a.section-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
a.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: 100px;
  padding: 8px 18px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.8667rem;
}
a.quick-link:hover {
  border-color: var(--primary-main);
  color: var(--primary-dark);
  text-decoration: none;
  background: var(--primary-hover);
}
a.quick-link .material-icons {
  font-size: 1.1333rem;
}

.home-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8667rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label-accent);
  margin: 34px 0 6px;
}

/* "From Site to Sharing" (homepage) - same paper/elevation card shell as
   .section-card, but a salmon-highlight variant: the full border is
   --label-accent (secondary/dark in light mode, secondary/light on dark
   surfaces - the same token already used for small-caps wayfinding labels
   elsewhere) instead of --divider, at the same 1px weight as every other
   card. One uniform border-color on all four sides, unlike an accent
   border-top mixed with --divider on the other three, which bleeds color
   across the rounded corners' miter. */
.journey-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 34px;
}
.journey-card {
  padding: 20px;
  background: var(--bg-paper);
  border: 1px solid var(--label-accent);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
}
.journey-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.journey-number {
  display: grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-hover);
  color: var(--primary-dark);
  font-weight: 700;
}
.journey-owner {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.journey-card h3 {
  margin: 0 0 6px;
  font-size: 1.1333rem;
}
.journey-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .journey-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .journey-cards {
    grid-template-columns: 1fr;
  }
}

/* Feedback CTA */
.feedback-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
  padding: 24px 28px;
  margin: 36px 0 8px;
}
.feedback-cta .material-icons {
  font-size: 1.8667rem;
  color: var(--primary-dark);
  background: var(--primary-hover);
  border-radius: var(--radius-2);
  padding: 11px;
}
[data-theme="dark"] .feedback-cta .material-icons {
  color: var(--primary-light);
}
.feedback-cta .cta-text {
  flex: 1;
  min-width: 240px;
}
.feedback-cta h3 {
  margin: 0 0 3px;
  font-size: 1.1333rem;
}
.feedback-cta p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
a.cta-button,
button.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: #071b2c;
  border-radius: var(--radius-2);
  padding: 11px 22px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8667rem;
  letter-spacing: normal;
  text-transform: uppercase;
}
a.cta-button:hover,
button.cta-button:hover:not(:disabled) {
  background: var(--primary-main);
  text-decoration: none;
}
a.cta-button,
button.cta-button {
  transition:
    background var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-spring);
}
a.cta-button:active,
button.cta-button:active:not(:disabled) {
  transform: scale(0.97);
}
a.cta-button.sent {
  background: var(--success-main);
  color: #fff;
  pointer-events: auto;
}
[data-theme="dark"] a.cta-button.sent {
  color: rgba(0, 0, 0, 0.87);
}
a.cta-button.sent .material-icons {
  animation: pop-in var(--dur-2) var(--ease-spring);
}
@keyframes pop-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
a.cta-button .material-icons,
button.cta-button .material-icons {
  font-size: 1.1333rem;
  color: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
}
[data-theme="dark"] a.cta-button .material-icons,
[data-theme="dark"] button.cta-button .material-icons {
  color: inherit;
}
button.cta-button:disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

/* ============================ File tree ============================ */
.file-tree {
  background: var(--bg-paper);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
  padding: 22px 26px;
  margin: 0 0 24px;
  overflow-x: auto;
}
.file-tree .ft-grid {
  font-family: var(--font-mono);
  display: grid;
  grid-template-columns: max-content minmax(240px, 1fr);
  column-gap: 34px;
  row-gap: 2px;
  min-width: 680px;
  font-size: 0.8667rem;
  line-height: 1.6;
}
.file-tree .ft-h {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0667rem;
  letter-spacing: 0.015em;
  margin-bottom: 10px;
}
.file-tree .ft-h-path {
  color: var(--secondary-dark);
}
.file-tree .ft-h-std {
  color: var(--primary-dark);
}
.file-tree .ft-path {
  white-space: pre;
  color: var(--secondary-dark);
}
.file-tree .ft-path strong {
  font-weight: 700;
}
.file-tree .ft-tree {
  color: #9db8d2;
}
.file-tree .ft-comment {
  color: var(--primary-dark);
}

/* ============================ Figures ============================ */
figure {
  margin: 24px 0;
  background: var(--bg-paper);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
  padding: 22px;
  text-align: center;
}
figure img,
figure svg {
  max-width: 100%;
  height: auto;
}
figure.zoomable {
  cursor: zoom-in;
  position: relative;
}
figure.zoomable .zoom-hint {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7333rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--action-focus);
  border-radius: 100px;
  padding: 3px 10px;
  opacity: 0;
  transition: opacity 0.15s;
}
figure.zoomable:hover .zoom-hint {
  opacity: 1;
}
figure.zoomable .zoom-hint .material-icons {
  font-size: 0.9333rem;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 27, 44, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}
.lightbox svg,
.lightbox img {
  width: auto;
  height: auto;
  max-width: min(96vw, 1700px);
  max-height: 94vh;
  background: #fff;
  border-radius: var(--radius-2);
  padding: 26px;
  box-sizing: border-box;
  box-shadow: 2px 8px 8px 3px rgba(21, 24, 24, 0.25);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: #f7f9fb;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.lightbox-close .material-icons {
  font-size: 2rem;
}
figure figcaption {
  font-size: 0.8333rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* ============================ Prev / Next footer ============================ */
.page-nav {
  display: flex;
  gap: 16px;
  margin-top: 56px;
}
.page-nav a {
  flex: 1;
  display: block;
  border-radius: var(--radius-2);
  padding: 14px 18px;
  text-decoration: none;
}
.page-nav a:hover {
  background: var(--action-hover);
  text-decoration: none;
}
.page-nav .dir {
  font-size: 0.7667rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
}
.page-nav .pn-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9667rem;
  color: var(--primary-dark);
  margin-top: 2px;
  letter-spacing: 0.015em;
}
.page-nav .next {
  text-align: right;
}
.page-nav .spacer {
  flex: 1;
}

.site-footer {
  margin-left: var(--sidebar-w);
  border-top: 1px solid var(--divider);
  padding: 22px 40px;
  font-size: 0.8333rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Floating "On this page" menu */
.content-inner.has-toc {
  display: flex;
  gap: 44px;
  max-width: 1216px;
  justify-content: center;
}
.content-inner .page-main {
  min-width: 0;
  flex: 1 1 860px;
  max-width: 860px;
}
.toc-float {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 66px;
  align-self: flex-start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  font-size: 0.8667rem;
  padding-bottom: 28px;
}
.toc-float-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7667rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-accent);
  margin-bottom: 10px;
  padding-left: 12px;
}
.toc-float ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--divider);
  position: relative;
}
.toc-float li {
  margin: 0;
}
.toc-float ul a {
  display: block;
  padding: 5px 12px;
  margin-left: -2px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: color var(--dur-1) var(--ease-out);
}
.toc-float li.lvl2 a {
  padding-left: 26px;
  font-size: 0.8333rem;
}
.toc-float ul a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.toc-float ul a.active {
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.015em;
}
.toc-marker {
  position: absolute;
  left: -2px;
  width: 2px;
  background: var(--primary-main);
  border-radius: 1px;
  transition:
    top var(--dur-2) var(--ease-spring),
    height var(--dur-2) var(--ease-out);
}
.toc-float.toc-empty {
  visibility: hidden;
}
.toc-float ul a.active {
  border-left-color: var(--primary-main);
}
.proto-side .ps-second {
  margin-top: 18px;
}
.proto-side ul a {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 0.8333rem;
}
/* A journey/procedure with no content yet (build.py's workflow_side_aside_html)
   - same box as the clickable items above it, but plain text, muted, and
   non-interactive, since there's no page to link to. */
.rail-item-disabled {
  display: block;
  padding: 5px 12px 5px 14px;
  margin-left: -2px;
  color: var(--text-secondary);
  opacity: 0.55;
  line-height: 1.4;
  font-size: 0.8333rem;
  border-left: 2px solid transparent;
}
.toc-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0 12px;
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--divider);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7667rem;
  letter-spacing: 0.015em;
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.toc-float.scrolled .toc-top {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.toc-top:hover {
  color: var(--primary-dark);
  border-color: var(--primary-main);
  text-decoration: none;
}
[data-theme="dark"] .toc-top:hover {
  color: var(--primary-light);
}
.toc-top .material-icons {
  font-size: 0.9333rem;
}
@media (max-width: 1280px) {
  .toc-float {
    display: none;
  }
  .content-inner.has-toc {
    display: block;
    max-width: 940px;
  }
}

/* On this page */
.toc-inline {
  background: var(--bg-paper);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
  padding: 16px 22px;
  margin-bottom: 26px;
  font-size: 0.9rem;
}
.toc-inline .toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-accent);
  margin-bottom: 8px;
}
.toc-inline ul {
  margin: 0;
  padding: 0;
  list-style: none;
  column-width: 220px;
  column-gap: 28px;
}
.toc-inline li {
  margin: 0 0 6px;
  break-inside: avoid;
}
.toc-inline a {
  text-decoration: none;
}

/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: var(--elevation-4);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .content,
  .site-footer {
    margin-left: 0;
  }
  .menu-fab {
    display: flex;
  }
  body.sidebar-open .side-top {
    padding-left: 66px;
  }
  .content-inner {
    padding: 70px 20px 60px;
  }
  .section-tabs {
    margin: 0 -20px 22px;
  }
  .section-tabs .tabs-scroll {
    padding: 0 20px;
  }
  .hero {
    padding: 40px 20px 44px;
  }
  .hero h1 {
    font-size: 1.8667rem;
  }
}
@media print {
  .menu-fab,
  .sidebar,
  .page-nav {
    display: none;
  }
  .layout,
  .content {
    margin: 0;
    padding: 0;
  }
}

/* ============================================================
   Landing-page organizer: Role / Domain / Process
   Added for the restructured home page. Reuses existing tokens.
   ============================================================ */
.axis-hint {
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 0.9333rem;
  color: var(--text-secondary);
  margin: 4px 0 20px;
  max-width: 720px;
}

/* domain cards with count */
.domain-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.domain-big-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.domain-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  padding: 20px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--elevation-1);
  transition:
    border-color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-spring),
    box-shadow var(--dur-1) var(--ease-out);
}
.domain-box:hover {
  border-color: var(--primary-main);
  transform: translateY(-3px);
  box-shadow: var(--elevation-8);
  text-decoration: none;
}
.domain-box .db-icon {
  font-size: 1.6rem;
  color: var(--primary-dark);
  background: var(--primary-hover);
  border-radius: 10px;
  padding: 10px;
  display: inline-flex;
  flex-shrink: 0;
}
.domain-box .db-body {
  flex: 1;
  min-width: 0;
}
.domain-box .db-name {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.015em;
  font-size: 1.0667rem;
  margin-bottom: 4px;
  line-height: 1.25;
}
.domain-box .db-count {
  font-size: 0.8667rem;
  color: var(--text-secondary);
}
.domain-box .db-count b {
  color: var(--primary-dark);
  font-weight: 700;
}
.domain-box .db-arrow {
  color: var(--divider);
  font-size: 1.3333rem;
  flex-shrink: 0;
  align-self: center;
  transition:
    color var(--dur-1) var(--ease-out),
    transform var(--dur-1) var(--ease-out);
}
.domain-box:hover .db-arrow {
  color: var(--primary-main);
  transform: translateX(3px);
}

/* process rows */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.process-box {
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  padding: 22px;
  box-shadow: var(--elevation-1);
}
.process-box .pb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.process-box .pb-icon {
  font-size: 1.4667rem;
  color: var(--primary-dark);
  background: var(--primary-hover);
  border-radius: 10px;
  padding: 9px;
  display: inline-flex;
}
.process-box .pb-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1333rem;
  letter-spacing: 0.015em;
}
.process-box .pb-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 14px;
}
.process-box .pb-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.process-box .pb-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--primary-hover);
  border: 1px solid var(--divider);
  text-decoration: none;
  color: var(--text-primary);
  transition:
    border-color var(--dur-1) var(--ease-out),
    background var(--dur-1) var(--ease-out);
}
.process-box a.pb-step:hover {
  border-color: var(--primary-main);
  background: var(--action-selected);
  text-decoration: none;
}
.process-box .pb-step .pb-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-main);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.process-box .pb-step .pb-label {
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
}
.process-box .pb-step .pb-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6667rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--action-selected);
  color: var(--text-secondary);
}
.process-box .pb-step .pb-tag.live {
  background: rgba(64, 181, 174, 0.18);
  color: var(--primary-dark);
}
.process-box .pb-step .material-icons {
  font-size: 1.1333rem;
  color: var(--primary-main);
}

@media (max-width: 600px) {
  .process-box {
    padding: 20px;
  }
  .domain-big-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Content status system (end-user facing)
   Three states, plain language:
     ready   = Ready to use  (written + reviewed)
     partial = In progress   (working draft, details being filled in)
     soon    = Coming soon    (placeholder, not written yet)
   ============================================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: normal;
  padding: 4px 10px 4px 8px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.status-pill .material-icons {
  font-size: 0.8667rem;
}
.status-pill.ready {
  background: rgba(64, 181, 174, 0.14);
  color: var(--primary-dark);
  border-color: rgba(64, 181, 174, 0.35);
}
.status-pill.partial {
  background: var(--alert-warning-bg);
  color: var(--alert-warning-text);
  border-color: rgba(239, 108, 0, 0.35);
}
.status-pill.soon {
  background: var(--action-selected);
  color: var(--text-secondary);
  border-color: var(--divider);
}

.domain-box {
  position: relative;
}
.db-examples {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
  opacity: 0.85;
}

/* Muted, non-interactive domain-box variant for items with no live link yet
   (e.g. training tracks awaiting a course URL) - swaps the link hover-lift
   for the platform button's disabled + hover-tooltip pattern (.platform-tip). */
.domain-box.disabled {
  cursor: not-allowed;
}
.domain-box.disabled:hover {
  border-color: var(--divider);
  transform: none;
  box-shadow: var(--elevation-1);
}
.domain-box.disabled:hover .platform-tip,
.domain-box.disabled:focus-visible .platform-tip {
  opacity: 1;
  transform: translateX(-50%);
}

/* status pill inside the vertical "All documentation" cards */
.section-card {
  position: relative;
}
/* The section card styles its .material-icons as a big boxed glyph; the status
   pill's own icon must NOT inherit that. Reset it back to a small inline glyph. */
.status-pill .material-icons {
  font-size: 0.8667rem !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  color: inherit !important;
}

/* ============================ Workflow pages ============================ */
.process-steps {
  margin: 1.5rem 0;
}
.process-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.25rem;
}
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--divider);
}
.process-number {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-hover);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .process-number {
  color: var(--primary-light);
}
.process-content {
  padding-top: 0.25rem;
}
.process-content strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}
.process-content p {
  margin: 0;
  color: var(--text-secondary);
}

/* Flow diagram (journey pages): a grid of step cards linked by arrows,
   e.g. content/workflows/journeys/enrollnow.md's "Workflow" section. */
.wf-flow {
  width: 100%;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
}
.wf-card {
  padding: 18px 20px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-2);
  box-shadow: var(--elevation-1);
}
.wf-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--primary-hover);
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
}
[data-theme="dark"] .wf-step-num {
  color: var(--primary-light);
}
.wf-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.wf-subtitle {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-family: var(--font-subtitle);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
}
.wf-card ul {
  margin: 0;
  padding-left: 18px;
}
.wf-card li {
  margin: 0 0 8px;
  padding-left: 2px;
  font-size: 12.5px;
  line-height: 1.3;
  /* font-weight: 700; */
  color: var(--text-primary);
}
.wf-card li::marker {
  color: var(--secondary-main);
}
.wf-arrow {
  position: relative;
  align-self: center;
  height: 14px;
  background: var(--primary-main);
  clip-path: polygon(0 29%, 79% 29%, 79% 0, 100% 50%, 79% 100%, 79% 71%, 0 71%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
/* @media (max-width: 700px) {
  .wf-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wf-arrow {
    width: 70px;
    height: 42px;
    margin: 0 auto;
    transform: rotate(90deg);
  }
} */

/* Flow diagram, wrapping variant - same .wf-card visual language as
   .wf-flow above, but a responsive grid instead of a fixed 3-card/
   2-arrow layout, for journey pages with 4-8 steps (e.g. eeg.md,
   redcap.md). Sequence is conveyed by each card's own numbered badge
   (.wf-step-num) rather than connector arrows, which would misplace
   themselves once cards wrap onto more than one row. */
.wf-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 1.5rem auto;
}
.wf-pipeline .wf-card {
  margin: 0;
}
/* A decision/gate step within a pipeline (e.g. eyetracking.md's "Already
   BIDS-ET?", redcap.md's "Score?") - same card, flagged with a dashed
   accent border and a small branch icon instead of drawn as an actual
   fork, with its outcomes listed as .wf-outcome bullets. */
.wf-card.wf-decision {
  border-style: dashed;
  border-color: var(--secondary-main);
}
.wf-card.wf-decision .wf-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wf-card.wf-decision .wf-title .material-icons {
  font-size: 16px;
  color: var(--secondary-main);
}
.wf-outcome {
  font-weight: 700;
}
.wf-outcome.pass {
  color: var(--success-main);
}
.wf-outcome.fail {
  color: var(--error-main);
}
/* A stage that doesn't apply to a given modality (e.g. qc/index.md's
   per-modality breakdowns - REDCap has no Processed Data QC step). */
.wf-card.wf-muted {
  opacity: 0.65;
}
.wf-card.wf-muted .wf-title {
  color: var(--text-secondary);
}
/* Site-owned vs DCC-owned step distinction (eeg.md) - a small wayfinding
   tag above the title, matching the small-caps --label-accent
   convention used elsewhere (e.g. .qct-checks-title). */
.wf-owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.6833rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-accent);
}
.wf-owner-tag .material-icons {
  font-size: 13px;
}
/* Callout box below a pipeline (e.g. eeg.md's "What the site owns"). */
.wf-note {
  margin: 14px 0 0;
  padding: 14px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--label-accent);
  border-radius: var(--radius-2);
}
.wf-note-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7333rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label-accent);
  margin-bottom: 8px;
}
.wf-note ul {
  margin: 0;
  padding-left: 18px;
}
.wf-note li {
  margin-bottom: 6px;
  font-size: 0.9333rem;
  color: var(--text-primary);
}
.wf-note li:last-child {
  margin-bottom: 0;
}