/* ============================================================
   Self-hosted webfonts.

   IBM Plex Sans is used by the homepage and the about page. The 50
   module pages deliberately keep the system UI font, so they never
   download these files: a browser only fetches a face that a matching
   rule actually uses.

   Paths are relative to this stylesheet, which is served from
   <base>/styles/, so they follow the site base automatically.

   One variable file per subset covers the 400-600 range.
   IBM Plex Sans, (c) IBM Corp, SIL Open Font License 1.1.
   ============================================================ */

/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ============================================================
   shared.css — Have a Sense About Everything
   Design tokens · Reset · Layout · Shared components
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  --color-background-primary: #ffffff;
  --color-background-secondary: #f5f5f4;
  --color-background-tertiary: #eeede8;
  --color-background-info: #e6f1fb;
  --color-background-success: #eaf3de;
  --color-background-warning: #faeeda;
  --color-background-danger: #fcebeb;

  --color-text-primary: #1a1a18;
  --color-text-secondary: #5f5e5a;
  --color-text-tertiary: #787770;
  --color-text-info: #0c447c;
  --color-text-success: #27500a;
  --color-text-warning: #633806;
  --color-text-danger: #791f1f;

  --color-border-primary: rgba(0,0,0,0.4);
  --color-border-secondary: rgba(0,0,0,0.3);
  --color-border-tertiary: rgba(0,0,0,0.15);
  --color-border-info: #85b7eb;
  --color-border-success: #97c459;
  --color-border-warning: #ef9f27;
  --color-border-danger: #f09595;

  --font-sans: system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: 'Courier New', monospace;

  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  --page-max-width: 860px;

  --accent: #4E99A3;
  --accent-bg: color-mix(in srgb, var(--accent) 12%, var(--color-background-primary));
  --accent-border: color-mix(in srgb, var(--accent) 45%, var(--color-border-tertiary));
  --accent-text: #417F88;
}

/* === MODULE ACCENT REGISTRY === */
html[data-module="1"] { --accent: #6F7D8C; }
html[data-module="2"] { --accent: #D94F70; }
html[data-module="3"] { --accent: #1B99F2; }
html[data-module="4"] { --accent: #4FAE57; }
html[data-module="5"] { --accent: #2F8F46; }
html[data-module="6"] { --accent: #D18B2C; }
html[data-module="7"] { --accent: #7A6CCF; }
html[data-module="8"] { --accent: #D94A3A; }
html[data-module="9"] { --accent: #3A96B0; }
html[data-module="10"] { --accent: #B07A3A; }
html[data-module="11"] { --accent: #D45A45; }
html[data-module="12"] { --accent: #6B5CC8; }
html[data-module="13"] { --accent: #2F9E9E; }
html[data-module="14"] { --accent: #7A8793; }
html[data-module="15"] { --accent: #8A62B3; }
html[data-module="16"] { --accent: #C47A2C; }
html[data-module="17"] { --accent: #4A6FA5; }
html[data-module="18"] { --accent: #2E8B7D; }
html[data-module="19"] { --accent: #D06A2B; }
html[data-module="20"] { --accent: #E8CE3F; }
html[data-module="21"] { --accent: #5EBDBD; }
html[data-module="22"] { --accent: #5967B2; }
html[data-module="23"] { --accent: #F5A9B8; }
html[data-module="24"] { --accent: #545244; }
html[data-module="25"] { --accent: #54BADE; }
html[data-module="26"] { --accent: #B34915; }
html[data-module="27"] { --accent: #8B6CC4; }
html[data-module="28"] { --accent: #6F5A8D; }
html[data-module="29"] { --accent: #2E8C73; }
html[data-module="30"] { --accent: #D25B8F; }
html[data-module="31"] { --accent: #8A6DB5; }
html[data-module="32"] { --accent: #4E99A3; }
html[data-module="33"] { --accent: #E07B5A; }
html[data-module="34"] { --accent: #5DCAA5; }
html[data-module="35"] { --accent: #7E5BBF; }
html[data-module="36"] { --accent: #3B7FCC; }
html[data-module="37"] { --accent: #8A8A7F; }
html[data-module="38"] { --accent: #E07B2A; }
html[data-module="39"] { --accent: #7B5EA7; }
html[data-module="40"] { --accent: #3A96B0; }
html[data-module="41"] { --accent: #BAC4D1; }
html[data-module="42"] { --accent: #7DAA3C; }
html[data-module="43"] { --accent: #534AB7; }
html[data-module="44"] { --accent: #CC4E2A; }
html[data-module="45"] { --accent: #A0845C; }
html[data-module="46"] { --accent: #9B3030; }
html[data-module="47"] { --accent: #534AB7; }
html[data-module="48"] { --accent: #2B7A5E; }
html[data-module="49"] { --accent: #4E99A3; }
html[data-module="50"] { --accent: #1D9E75; }

@media (prefers-color-scheme: dark) {
  :root {
    --color-background-primary: #1c1c1a;
    --color-background-secondary: #252523;
    --color-background-tertiary: #2e2e2b;
    --color-background-info: #0c2540;
    --color-background-success: #142808;
    --color-background-warning: #2a1a03;
    --color-background-danger: #2a0a0a;

    --color-text-primary: #e8e6df;
    --color-text-secondary: #a8a69e;
    --color-text-tertiary: #86837B;
    --color-text-info: #85b7eb;
    --color-text-success: #97c459;
    --color-text-warning: #ef9f27;
    --color-text-danger: #f09595;

    --color-border-primary: rgba(255,255,255,0.4);
    --color-border-secondary: rgba(255,255,255,0.25);
    --color-border-tertiary: rgba(255,255,255,0.12);

    --accent-text: var(--accent);
  }
}


/* === RESET AND BASE === */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--color-background-tertiary);
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* === LAYOUT === */
.page-wrap {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}


/* === NAVIGATION === */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: 1.5rem;
  padding: 5px 0;
}
.nav-back:hover { color: var(--color-text-primary); }


/* === MODULE PAGE TITLE === */
.module-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem;
}
.module-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 2rem;
}


/* === SECTION HEADING === */
.sec {
  margin: 2rem 0 0.6rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  padding-bottom: 5px;
}


/* === CARD === */
.card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
}


/* === TWO COLUMN GRID === */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}


/* === CARD GRID === */
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}


/* === SHARED MODULE HELPERS === */
.module-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.6rem;
}
.module-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.6rem;
}
.module-header-icon,
.module-header-icon-accent,
.module-icon,
.module-head > i:first-child {
  font-size: 42px;
  color: var(--accent);
  flex-shrink: 0;
}
.module-heading,
.module-head .module-title {
  margin: 0;
  line-height: 1.05;
}

.content-panel {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  margin-bottom: 1rem;
}
.content-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  margin-bottom: 10px;
}
.content-card-static {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
}
.scroll-panel {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  margin-bottom: 1rem;
  overflow-x: auto;
}
.sub-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 9px 11px;
}
.sub-card-roomy {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
}
.sub-card-compact {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 8px 10px;
}
.teaser-card,
.elem-detail-panel,
.calc-wrap {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
}
.elem-detail-panel,
.calc-wrap {
  margin-bottom: 1rem;
}
.elem-detail-panel {
  display: none;
}
.elem-detail.show {
  display: block;
}
.info-block,
.warning-block {
  border-radius: var(--border-radius-lg);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.info-block {
  background: var(--color-background-info);
  border: 0.5px solid var(--color-border-info);
  color: var(--color-text-info);
}
.warning-block {
  background: var(--color-background-warning);
  border: 0.5px solid var(--color-border-warning);
  color: var(--color-text-warning);
}

.panel-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}
.panel-title-spaced {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}
.inline-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.compact-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}
.mini-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.detail-label-spaced {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 3px;
}
.muted-copy {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.muted-copy-tight {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.muted-copy-large {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.muted-text-small {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.button-row-compact {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.button-row-spaced {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.is-hidden { display: none; }


/* === TYPOGRAPHY UTILITIES === */
.u-fs-10px { font-size: 10px; }
.u-fs-11px { font-size: 11px; }
.u-fs-12px { font-size: 12px; }
.u-fs-13px { font-size: 13px; }
.u-fs-14px { font-size: 14px; }
.u-fs-15px { font-size: 15px; }
.u-fs-18px { font-size: 18px; }
.u-fs-42px { font-size: 42px; }
.u-fw-500 { font-weight: 500; }
.u-lh-1-05 { line-height: 1.05; }
.u-lh-1-5 { line-height: 1.5; }
.u-lh-1-6 { line-height: 1.6; }
.u-lh-1-7 { line-height: 1.7; }
.u-lh-1-8 { line-height: 1.8; }


/* === SPACING UTILITIES === */
.u-m-0 { margin: 0; }
.u-mb-xs { margin-bottom: 4px; }
.u-mb-sm { margin-bottom: 8px; }
.u-mb-md { margin-bottom: 10px; }
.u-mb-lg { margin-bottom: 1rem; }
.u-mt-sm { margin-top: 8px; }
.u-mt-md { margin-top: 10px; }
.u-gap-sm { gap: 8px; }
.u-gap-md { gap: 10px; }


/* === LAYOUT UTILITIES === */
.u-display-flex { display: flex; }
.u-display-grid { display: grid; }
.u-display-block { display: block; }
.u-display-none { display: none; }
.u-flex-1 { flex: 1; }
.u-shrink-0 { flex-shrink: 0; }
.u-flex-wrap { flex-wrap: wrap; }
.u-gap-14px { gap: 14px; }
.u-items-center { align-items: center; }
.u-justify-space-between { justify-content: space-between; }
.u-overflow-x-auto { overflow-x: auto; }
.u-white-space-nowrap { white-space: nowrap; }
.u-gridcols-auto-fit-90px-1fr { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.u-gridcols-auto-fit-110px-1fr { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.u-gridcols-auto-fit-120px-1fr { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.u-gridcols-auto-fit-130px-1fr { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.u-gridcols-auto-fit-150px-1fr { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.u-gridcols-auto-fit-200px-1fr { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.u-gridcols-auto-fit-280px-1fr { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }


/* === METRIC CARD PARTS === */
.clabel { font-size: 11px; color: var(--color-text-secondary); margin: 0 0 3px; }
.cval   { font-size: 20px; font-weight: 500; color: var(--color-text-primary); margin: 0 0 2px; }
.cnote  { font-size: 12px; color: var(--color-text-secondary); margin: 0; line-height: 1.5; }


/* === Q&A REVEAL === */
.qa {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 11px 13px;
  margin-bottom: 8px;
}
.qa-q   { font-size: 13px; font-weight: 500; color: var(--color-text-primary); margin: 0 0 7px; }
.qa-btn {
  font-size: 12px;
  color: var(--color-text-secondary);
  cursor: pointer;
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--border-radius-md);
  padding: 3px 10px;
  background: none;
}
.qa-btn:hover { background: var(--color-background-primary); }
.qa-ans {
  font-size: 13px;
  color: var(--color-text-primary);
  margin-top: 8px;
  display: none;
  line-height: 1.6;
}
.qa-ans.show { display: block; }


/* === ANCHOR ROW (used in 11+ modules) === */
.anchor-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--color-border-tertiary);
}
.anchor-row:last-child { border-bottom: none; }
.atext { font-size: 13px; color: var(--color-text-primary); line-height: 1.5; }
.asub  { font-size: 12px; color: var(--color-text-secondary); margin-top: 1px; }


/* === PILL BADGES (used in 10+ modules) === */
.pill {
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  padding: 3px 9px;
  min-width: 82px;
  text-align: center;
  flex-shrink: 0;
}
.p-amber  { color: #633806; background: #FAEEDA; }
.p-green  { color: #27500A; background: #EAF3DE; }
.p-blue   { color: #0C447C; background: #E6F1FB; }
.p-purple { color: #3C3489; background: #EEEDFE; }
.p-teal   { color: #085041; background: #E1F5EE; }
.p-coral  { color: #712B13; background: #FAECE7; }
.p-red    { color: #791F1F; background: #FCEBEB; }


/* === HORIZONTAL BAR ROW (used in 5+ modules) === */
.bar-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 5px;
}
.bl {
  font-size: 12px;
  color: var(--color-text-secondary);
  width: 140px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 10px;
  line-height: 1.3;
}
.bb {
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  min-width: fit-content;
}
.bv { font-size: 11px; font-weight: 500; white-space: nowrap; }


/* === PROGRESS BAR (used in modules 1, 2) === */
.bar-wrap  { margin: 6px 0 14px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-secondary); margin-bottom: 3px; }
.bar-track { background: var(--color-background-secondary); border-radius: 4px; height: 10px; overflow: hidden; }
.bar-fill  { height: 10px; border-radius: 4px; }


/* === BUTTONS (interactive explorer buttons) === */
button {
  background: none;
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--border-radius-md);
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 4px 12px;
  font-size: 13px;
  font-family: var(--font-sans);
  transition: background 0.1s;
}
button:hover  { background: var(--color-background-secondary); }
button:active { transform: scale(0.98); }


/* === FORM INPUTS === */
input[type="number"],
input[type="text"],
input[type="time"],
select {
  height: 36px;
  padding: 0 10px;
  border-radius: var(--border-radius-md);
  border: 0.5px solid var(--color-border-secondary);
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  width: 100%;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--color-text-info);
}


/* ============================================================
   THEME OVERRIDES (manual toggle via data-theme attribute)
   ============================================================ */
html[data-theme="light"] {
  --color-background-primary: #ffffff;
  --color-background-secondary: #f5f5f4;
  --color-background-tertiary: #eeede8;
  --color-background-info: #e6f1fb;
  --color-background-success: #eaf3de;
  --color-background-warning: #faeeda;
  --color-background-danger: #fcebeb;
  --color-text-primary: #1a1a18;
  --color-text-secondary: #5f5e5a;
  --color-text-tertiary: #787770;
  --color-text-info: #0c447c;
  --color-text-success: #27500a;
  --color-text-warning: #633806;
  --color-text-danger: #791f1f;
  --color-border-primary: rgba(0,0,0,0.4);
  --color-border-secondary: rgba(0,0,0,0.3);
  --color-border-tertiary: rgba(0,0,0,0.15);
  --accent-text: #417F88;
}
html[data-theme="dark"] {
  --color-background-primary: #1c1c1a;
  --color-background-secondary: #252523;
  --color-background-tertiary: #2e2e2b;
  --color-background-info: #0c2540;
  --color-background-success: #142808;
  --color-background-warning: #2a1a03;
  --color-background-danger: #2a0a0a;
  --color-text-primary: #e8e6df;
  --color-text-secondary: #a8a69e;
  --color-text-tertiary: #86837B;
  --color-text-info: #85b7eb;
  --color-text-success: #97c459;
  --color-text-warning: #ef9f27;
  --color-text-danger: #f09595;
  --accent-text: var(--accent);
  --color-border-primary: rgba(255,255,255,0.4);
  --color-border-secondary: rgba(255,255,255,0.25);
  --color-border-tertiary: rgba(255,255,255,0.12);
}

/* Dark-mode active card contrast guard.
   Many module-local active cards use a light accent background. In dark mode,
   keep active cards tinted but dark enough for readable nested labels. */
html[data-theme="dark"] .elem-card.active,
html[data-theme="dark"] .tax-elem-card.active {
  background: var(--color-background-secondary) !important;
  background: color-mix(in srgb, var(--accent) 18%, var(--color-background-primary)) !important;
  border-color: var(--accent) !important;
}

html[data-theme="dark"] .elem-card.active :is(.elem-name, .elem-card-label, .ec-label),
html[data-theme="dark"] .tax-elem-card.active :is(.elem-name, .elem-card-label, .ec-label) {
  color: var(--color-text-primary) !important;
}

html[data-theme="dark"] .elem-card.active :is(.elem-sub, .elem-card-sub),
html[data-theme="dark"] .tax-elem-card.active :is(.elem-sub, .elem-card-sub) {
  color: var(--color-text-secondary) !important;
}

html[data-theme="dark"] .elem-card.active :is(.elem-icon, .elem-card-icon, .ec-icon),
html[data-theme="dark"] .tax-elem-card.active :is(.elem-icon, .elem-card-icon, .ec-icon) {
  color: var(--accent) !important;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .elem-card.active,
  html[data-theme="auto"] .tax-elem-card.active {
    background: var(--color-background-secondary) !important;
    background: color-mix(in srgb, var(--accent) 18%, var(--color-background-primary)) !important;
    border-color: var(--accent) !important;
  }

  html[data-theme="auto"] .elem-card.active :is(.elem-name, .elem-card-label, .ec-label),
  html[data-theme="auto"] .tax-elem-card.active :is(.elem-name, .elem-card-label, .ec-label) {
    color: var(--color-text-primary) !important;
  }

  html[data-theme="auto"] .elem-card.active :is(.elem-sub, .elem-card-sub),
  html[data-theme="auto"] .tax-elem-card.active :is(.elem-sub, .elem-card-sub) {
    color: var(--color-text-secondary) !important;
  }

  html[data-theme="auto"] .elem-card.active :is(.elem-icon, .elem-card-icon, .ec-icon),
  html[data-theme="auto"] .tax-elem-card.active :is(.elem-icon, .elem-card-icon, .ec-icon) {
    color: var(--accent) !important;
  }
}



/* ============================================================
   Shared components.

   Styles that several modules define identically, each defined once here.
   Generated by tools/promote_components.py, which only ever adds to this
   file; module copies are folded in by tools/consolidate_css.py.
   ============================================================ */

/* ---- components ---- */

.action-button {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.animated-fill {
  height: 8px;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.axis-ends {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-bottom: 10px;
}

.axis-ends-below {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.axis-ends-tight {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.axis-height {
  height: 18px;
}

.axis-tick {
  font-size: 10px;
  color: var(--color-text-tertiary);
  position: absolute;
  transform: translateX(-50%);
}

.axis-tick-nowrap {
  color: var(--color-text-tertiary);
  font-size: 9px;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.axis-tick-small {
  font-size: 9px;
  color: var(--color-text-tertiary);
  position: absolute;
  transform: translateX(-50%);
}

.axis-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.axis-title-spaced {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 14px 0 6px;
}

.bar-value {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.bar-value-medium {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.bg-accent {
  background: var(--accent);
}

.bg-info {
  background: var(--color-background-info);
}

.bg-subtle {
  background: var(--color-background-tertiary);
}

.block-gap {
  margin-bottom: 1rem;
}

.block-heading {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.block-margin {
  margin: 1rem 0;
}

.block-spaced {
  margin-bottom: 1.2rem;
}

.block-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.body-compact {
  font-size: 12px;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.body-muted {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.body-relaxed {
  font-size: 12px;
  color: var(--color-text-primary);
  line-height: 1.55;
}

.body-small {
  font-size: 12px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.body-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.body-text-relaxed {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.body-tiny {
  font-size: 11px;
  line-height: 1.5;
}

.bordered {
  border: 0.5px solid var(--color-border-tertiary);
}

.button-cluster {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.button-set {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.button-set-spaced {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.callout-body {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.callout-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 5px;
}

.caption-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.caption-roomy {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

.caption-small {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.caption-spaced {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

.card-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.card-grid-medium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.card-grid-narrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.card-grid-roomy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.card-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.card-grid-xl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}

.card-heading-strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.card-icon {
  font-size: 22px;
  margin-bottom: 5px;
}

.card-icon-small {
  font-size: 20px;
  margin-bottom: 4px;
}

.card-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.card-label-strong {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.card-sub {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.card-sub-muted {
  font-size: 10px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

.chart-heading-small {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.chart-panel {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.choice-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 11px 12px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  text-align: center;
}

.choice-card-plain {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  padding: 11px 12px;
  transition: background 0.12s, border-color 0.12s;
}

.control-height {
  height: 36px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.control-row-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.control-row-medium {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.control-row-roomy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.control-row-spaced {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.control-row-tight {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.data-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.data-row-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.data-row-even {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.data-row-loose {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.data-row-wide {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.deep-dive-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.desc-compact {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.desc-relaxed {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.desc-small {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.desc-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.detail-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.detail-panel {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  margin-bottom: 1rem;
  display: none;
}

.detail-panel-hidden {
  display: none;
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.detail-sub {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.display-panel {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  margin-bottom: 1rem;
  font-size: 13px;
  line-height: 1.8;
}

.divider-strong {
  border-bottom: 0.5px solid var(--color-border-secondary);
}

.dot-field {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 8px 0;
}

.dot-track {
  display: flex;
  gap: 4px;
}

.explorer-box {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  min-height: 100px;
}

.explorer-output {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  min-height: 80px;
}

.fact-panel {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 9px 11px;
  line-height: 1.5;
}

.fact-value {
  font-size: 12px;
  color: var(--color-text-primary);
  line-height: 1.45;
}

.field-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 110px;
}

.field-cell-wide {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  flex: 1;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.field-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.figure-caption-center {
  font-size: 11px;
  color: var(--color-text-tertiary);
  text-align: center;
  margin-top: 6px;
}

.figure-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.figure-large {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.figure-medium {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.figure-medium-flush {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.figure-small {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.figure-title {
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.figure-xl {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.fill-bar {
  height: 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.fill-bar-tall {
  height: 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  min-width: fit-content;
}

.fill-space {
  flex: 1;
}

.fine-print {
  font-size: 11px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  margin-top: 8px;
}

.flex-body {
  flex: 1;
  min-width: 0;
}

.flex-cell {
  flex: 1;
  min-width: 100px;
}

.flex-cell-wide {
  flex: 1;
  min-width: 120px;
}

.flex-cell-xwide {
  min-width: 180px;
  flex: 1;
}

.flush-bottom {
  margin-bottom: 0;
}

.flush-padding-bottom {
  padding-bottom: 0;
}

.footnote-medium {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 10px;
  line-height: 1.5;
}

.footnote-tight {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 6px;
  line-height: 1.5;
}

.form-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  min-width: 130px;
}

.form-label-narrow {
  font-size: 12px;
  color: var(--color-text-secondary);
  min-width: 80px;
}

.form-label-wide {
  font-size: 12px;
  color: var(--color-text-secondary);
  min-width: 160px;
}

.formula-text {
  font-size: 13px;
  font-family: monospace;
  font-weight: 500;
}

.gap-above {
  margin-top: 8px;
}

.gap-above-lg {
  margin-top: 14px;
}

.gap-below {
  margin-bottom: 10px;
}

.gap-below-lg {
  margin-bottom: 14px;
}

.gap-below-md {
  margin: 0 0 12px;
}

.gap-below-sm {
  margin-bottom: 12px;
}

.gap-below-xs {
  margin-bottom: 8px;
}

.gap-y {
  margin: 10px 0;
}

.grid-auto-even {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 1rem;
}

.grid-halves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid-halves-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.grid-halves-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.grid-halves-narrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.grid-halves-spaced {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}

.grid-halves-tight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.grid-halves-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.grid-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

.grid-thirds-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.grid-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

.header-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.header-row-spaced {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.header-row-split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.header-row-split-spaced {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hidden-panel {
  display: none;
}

.hint-text {
  font-size: 11px;
  color: var(--color-text-tertiary);
}

.icon-large {
  font-size: 26px;
}

.icon-medium {
  font-size: 16px;
}

.inline-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.input-caption {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.input-row-compact {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 10px;
}

.input-row-spaced {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 12px;
}

.intro-panel {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 13px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.intro-small {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.intro-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.is-clickable {
  cursor: pointer;
}

.item-heading {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.item-heading-medium {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.item-heading-spaced {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.item-name-small {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.key-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.key-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.key-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kicker-small {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.label-pair {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.label-pair-medium {
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.label-strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.label-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.label-tiny {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.label-tiny-strong {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.lede-compact {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.lede-flush {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}

.lede-flush-tight {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0 0 8px;
}

.lede-roomy {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.lede-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.lede-text-loose {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.legend-item-large {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.legend-item-wide {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.legend-roomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 1rem;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 0.5px solid var(--color-border-tertiary);
}

.list-row-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--color-border-tertiary);
}

.list-row-tight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--color-border-tertiary);
}

.micro-caption {
  font-size: 10px;
  color: var(--color-text-tertiary);
}

.micro-label {
  font-size: 10px;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.micro-sub {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 1px;
}

.micro-text {
  font-size: 10px;
  color: var(--color-text-secondary);
}

.mini-caption {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.mini-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
}

.mini-intro {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.mini-intro-spaced {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.module-icon-large {
  font-size: 42px;
  color: var(--accent);
  flex-shrink: 0;
}

.muted-flush {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
}

.muted-medium {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.muted-small {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.no-divider {
  border-bottom: none;
}

.no-margin {
  margin: 0;
}

.no-shrink {
  flex-shrink: 0;
}

.note-callout {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.note-context {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.note-flush {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin: 2px 0 0;
}

.note-line {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

.note-line-relaxed {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.note-muted {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

.note-panel {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.note-roomy {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 13px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.note-small {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 6px;
}

.note-small-spaced {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 8px;
}

.note-spaced {
  margin-top: 10px;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.note-tiny {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.number-input {
  width: 80px;
  font-size: 14px;
}

.outline-panel {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 13px 15px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.pad-compact {
  padding: 8px 10px;
}

.pad-top {
  padding-top: 12px;
}

.panel-grid-spaced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 1rem;
}

.panel-note {
  margin: 10px 0 0;
}

.panel-title-large {
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.period-axis {
  display: flex;
  margin-left: 148px;
  margin-bottom: 4px;
  position: relative;
  height: 14px;
}

.period-label {
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.period-label-ellipsis {
  font-size: 9px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-label-medium {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.period-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.period-row-loose {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.period-track {
  flex: 1;
  height: 16px;
  background: var(--color-background-secondary);
  border-radius: 3px;
  position: relative;
  min-width: 200px;
}

.period-track-tall {
  flex: 1;
  background: var(--color-background-tertiary);
  border-radius: 4px;
  height: 22px;
  position: relative;
}

.pill-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
}

.pill-button {
  font-size: 12px;
  padding: 3px 10px;
}

.pill-button-wide {
  font-size: 12px;
  padding: 4px 11px;
}

.placeholder-text {
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.planet-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 11px 9px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.planet-card-sub {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 3px;
  line-height: 1.35;
}

.planet-card-val {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.planet-color-bar {
  height: 4px;
  border-radius: 3px 3px 0 0;
  margin-bottom: 8px;
}

.pole-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 4px;
}

.pole-labels-roomy {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 8px;
}

.pole-labels-small {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
}

.pole-labels-spaced {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: 6px;
}

.pole-labels-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
}

.pole-labels-under {
  color: var(--color-text-tertiary);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-top: 5px;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.range-row-medium {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.range-row-spaced {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.range-row-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.range-track {
  flex: 1;
  height: 6px;
  background: var(--color-background-tertiary);
  border-radius: 3px;
  position: relative;
}

.readout-muted {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.result-panel {
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.8;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 11px 13px;
}

.result-panel-compact {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 10px 13px;
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-top: 4px;
}

.result-panel-soft {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.8;
}

.result-text {
  font-size: 13px;
  color: var(--color-text-primary);
  line-height: 1.8;
}

.result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.row-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  width: 130px;
  flex-shrink: 0;
}

.row-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.scale-ends {
  color: var(--color-text-secondary);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-top: 3px;
}

.scale-marker {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
}

.scale-name {
  width: 130px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: right;
}

.scale-name-plain {
  font-size: 12px;
  color: var(--color-text-primary);
  width: 130px;
  flex-shrink: 0;
}

.scale-name-strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-primary);
  width: 130px;
  flex-shrink: 0;
}

.scale-track-soft {
  flex: 1;
  height: 6px;
  background: var(--color-background-secondary);
  border-radius: 3px;
  position: relative;
}

.scale-track-thick {
  flex: 1;
  height: 8px;
  background: var(--color-background-secondary);
  border-radius: 4px;
  position: relative;
}

.scroll-block {
  margin-bottom: 1rem;
  overflow-x: auto;
}

.scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.scroll-x {
  overflow-x: auto;
}

.scroll-x-padded {
  overflow-x: auto;
  padding-bottom: 6px;
}

.select-input {
  height: 36px;
  padding: 0 10px;
  border-radius: var(--border-radius-md);
  border: 0.5px solid var(--color-border-secondary);
  background: var(--color-background-primary);
  color: var(--color-text-primary);
  font-size: 13px;
}

.semibold {
  font-weight: 600;
}

.shrinkable {
  min-width: 0;
}

.slider-output-value {
  font-size: 13px;
  font-weight: 500;
  min-width: 40px;
  text-align: right;
}

.slider-readout {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.slider-readout-large {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}

.small-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}

.soft-block {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  margin-bottom: 1rem;
}

.soft-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 11px 13px;
}

.source-line {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.spec-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 12px 14px;
}

.stack-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.stack-spaced {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.stack-tight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stacked-bar {
  display: flex;
  height: 28px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.stacked-bar-compact {
  display: flex;
  height: 28px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.stat-label-small {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin: 0 0 2px;
}

.stat-sub {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 1px;
}

.stat-tile {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius-md);
  padding: 9px 11px;
  text-align: center;
}

.strong-text {
  color: var(--color-text-primary);
  font-weight: 500;
}

.sub-caption {
  font-size: 10px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.sub-muted {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.subheading {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.svg-accent {
  fill: var(--accent-bg);
  stroke: var(--accent-border);
  stroke-width: 1;
}

.svg-node {
  fill: var(--color-background-secondary);
  stroke: var(--color-border-secondary);
  stroke-width: 1;
}

.svg-small {
  font-family: var(--font-sans);
  fill: var(--color-text-secondary);
  font-size: 10px;
}

.swatch-card {
  border-radius: var(--border-radius-md);
  padding: 10px 8px;
  text-align: center;
}

.swatch-empty {
  background: var(--color-background-secondary);
  border: 0.5px solid var(--color-border-tertiary);
}

.tab-button {
  font-size: 11px;
  padding: 3px 10px;
}

.tab-button-narrow {
  font-size: 11px;
  padding: 3px 9px;
}

.tab-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--border-radius-md);
  border: 0.5px solid var(--color-border-secondary);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.tab-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-row-compact {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tab-row-tight {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.teaser-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.25;
}

.teaser-num {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-accent {
  color: var(--accent);
}

.text-danger {
  color: var(--color-text-danger);
}

.text-info {
  color: var(--color-text-info);
}

.text-medium {
  font-size: 13px;
  color: var(--color-text-primary);
}

.text-strong-medium {
  font-size: 14px;
  font-weight: 500;
}

.text-success {
  color: var(--color-text-success);
}

.text-tiny {
  font-size: 10px;
}

.text-tiny-regular {
  font-size: 10px;
  font-weight: 400;
}

.text-warning {
  color: var(--color-text-warning);
}

.tick-label {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 8px;
}

.tile-grid-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tile-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tile-grid-md {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tile-grid-md-flush {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.tile-grid-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tile-grid-spaced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tile-grid-tiny {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tile-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.tile-grid-xs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tile-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.tile-icon-spaced {
  font-size: 22px;
  margin-bottom: 6px;
}

.title-medium {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.tool-panel {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  margin-bottom: 1rem;
}

.top-gap-tiny {
  margin-top: 4px;
}

.track-indent {
  margin-left: 130px;
}

.track-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}

.track-label-medium {
  font-size: 12px;
  color: var(--color-text-secondary);
  width: 140px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 10px;
  line-height: 1.3;
}

.track-label-padded {
  font-size: 11px;
  color: var(--color-text-secondary);
  width: 130px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 10px;
  line-height: 1.3;
}

.track-label-wide {
  font-size: 11px;
  color: var(--color-text-secondary);
  width: 150px;
  flex-shrink: 0;
  text-align: right;
}

.track-label-xwide {
  font-size: 11px;
  color: var(--color-text-secondary);
  width: 160px;
  flex-shrink: 0;
  text-align: right;
}

.track-medium {
  flex: 1;
  height: 18px;
  background: var(--color-background-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.track-plain {
  flex: 1;
  background: var(--color-background-secondary);
  border-radius: 3px;
  height: 20px;
  overflow: hidden;
}

.track-rounded {
  flex: 1;
  height: 18px;
  background: var(--color-background-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 6px;
}

.track-row-tight {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
}

.track-tall {
  flex: 1;
  background: var(--color-background-secondary);
  border-radius: 3px;
  height: 20px;
  overflow: hidden;
  position: relative;
}

.track-thin {
  flex: 1;
  height: 14px;
  background: var(--color-background-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.v-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.value-flush {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.value-label-narrow {
  font-size: 12px;
  color: var(--color-text-secondary);
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}

.value-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.value-row-loose {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}

.value-row-spaced {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.value-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.white-text {
  color: white;
}

.wide-min {
  min-width: 480px;
}

.wide-min-lg {
  min-width: 620px;
}

.widget-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.wrap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- utilities and palette ---- */

.bg-indigo-900 {
  background: #3C3489;
}

.bg-red-700 {
  background: #A32D2D;
}

.text-amber-700 {
  color: #A26614;
}

.text-amber-900 {
  color: #633806;
}

.text-amber-950 {
  color: #412402;
}

.text-blue-500 {
  color: #2276CA;
}

.text-blue-700 {
  color: #185FA5;
}

.text-blue-900 {
  color: #0C447C;
}

.text-green-800 {
  color: #27500A;
}

.text-green-900 {
  color: #085041;
}

.text-hex-993556 {
  color: #993556;
}

.text-indigo-200 {
  color: #CECBF6;
}

.text-indigo-700 {
  color: #534AB7;
}

.text-orange-600 {
  color: #C64E25;
}

.text-orange-850 {
  color: #854F0B;
}

.text-orange-900 {
  color: #712B13;
}

.text-red-700 {
  color: #A32D2D;
}

.text-stone-800 {
  color: #444441;
}

.text-teal-700 {
  color: #188260;
}

/* NOTE: no dark-mode override block for the remaining palette shades
   (amber-900/950, blue-700/900, green-800/900, hex-993556, indigo-700,
   orange-850/900, red-700, stone-800). A first attempt added one, tuned for
   page-background usage, but most real usages pair the class with a *fixed*
   light literal background (badges, --data-background bars) where lightening
   the text for dark mode makes it fail against that unchanging bg instead -
   e.g. .text-green-900 on a fixed #E1F5EE bar went from 8.3:1 to 3.2:1.
   Reverted; see memory.md. Fix genuine page-background dark-mode failures
   with a module-local class instead, after checking that specific usage. */

.u-align-end {
  align-items: end;
}

.u-align-flex-start {
  align-items: flex-start;
}

.u-align-items-center {
  align-items: center;
}

.u-bb-0-5px-solid-border-tertiary {
  border-bottom: 0.5px solid var(--color-border-tertiary);
}

.u-bg-background-primary {
  background: var(--color-background-primary);
}

.u-bg-background-secondary {
  background: var(--color-background-secondary);
}

.u-bg-background-warning {
  background: var(--color-background-warning);
}

.u-bg-border-secondary {
  background: var(--color-border-secondary);
}

.u-bg-green-200 {
  background: #9FE1CB;
}

.u-bg-hex-0f6e56 {
  background: #0F6E56;
}

.u-bg-hex-26215c {
  background: #26215C;
}

.u-bg-hex-27500a {
  background: #27500A;
}

.u-bg-hex-7f77dd {
  background: #7F77DD;
}

.u-bg-hex-85b7eb {
  background: #85B7EB;
}

.u-bg-hex-e1f5ee {
  background: #E1F5EE;
}

.u-bg-hex-e6f1fb {
  background: #E6F1FB;
}

.u-bg-hex-eaf3de {
  background: #EAF3DE;
}

.u-bg-hex-eeedfe {
  background: #EEEDFE;
}

.u-bg-hex-f5c4b3 {
  background: #F5C4B3;
}

.u-bg-hex-faece7 {
  background: #FAECE7;
}

.u-bg-hex-faeeda {
  background: #FAEEDA;
}

.u-border-0-5px-solid-hex-9fe1cb {
  border: 0.5px solid #9FE1CB;
}

.u-border-0-5px-solid-hex-afa9ec {
  border: 0.5px solid #AFA9EC;
}

.u-border-0-5px-solid-hex-b5d4f4 {
  border: 0.5px solid #B5D4F4;
}

.u-border-0-5px-solid-hex-cecbf6 {
  border: 0.5px solid #CECBF6;
}

.u-border-0-5px-solid-hex-f5c4b3 {
  border: 0.5px solid #F5C4B3;
}

.u-bt-0-5px-solid-border-tertiary {
  border-top: 0.5px solid var(--color-border-tertiary);
}

.u-display-inline-block {
  display: inline-block;
}

.u-flex-direction-column {
  flex-direction: column;
}

.u-font-monospace {
  font-family: monospace;
}

.u-fs-20px {
  font-size: 20px;
}

.u-fs-22px {
  font-size: 22px;
}

.u-gap-0 {
  gap: 0;
}

.u-gap-4px {
  gap: 4px;
}

.u-gap-5px {
  gap: 5px;
}

.u-gap-6px {
  gap: 6px;
}

.u-gridcols-auto-fit-140px-1fr {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.u-h-6px {
  height: 6px;
}

.u-h-auto {
  height: auto;
}

.u-items-baseline {
  align-items: baseline;
}

.u-lh-1-4 {
  line-height: 1.4;
}

.u-lh-1-d-05 {
  line-height: 1.05;
}

.u-lh-1-d-6 {
  line-height: 1.6;
}

.u-ls-0-05em {
  letter-spacing: 0.05em;
}

.u-ls-0-06em {
  letter-spacing: 0.06em;
}

.u-m-0-0-10px {
  margin: 0 0 10px;
}

.u-m-0-0-14px {
  margin: 0 0 14px;
}

.u-m-6px-0-0 {
  margin: 6px 0 0;
}

.u-m-8px-0-0 {
  margin: 8px 0 0;
}

.u-mb-2px {
  margin-bottom: 2px;
}

.u-minw-160px {
  min-width: 160px;
}

.u-minw-28px {
  min-width: 28px;
}

.u-ml-4px {
  margin-left: 4px;
}

.u-ml-5px {
  margin-left: 5px;
}

.u-overflow-hidden {
  overflow: hidden;
}

.u-p-0-18px {
  padding: 0 18px;
}

.u-p-10px-12px {
  padding: 10px 12px;
}

.u-p-10px-13px {
  padding: 10px 13px;
}

.u-p-11px-14px {
  padding: 11px 14px;
}

.u-p-13px-15px {
  padding: 13px 15px;
}

.u-p-14px-16px {
  padding: 14px 16px;
}

.u-p-5px-0 {
  padding: 5px 0;
}

.u-p-9px-11px {
  padding: 9px 11px;
}

.u-pt-8px {
  padding-top: 8px;
}

.u-radius-radius-lg {
  border-radius: var(--border-radius-lg);
}

.u-radius-radius-md {
  border-radius: var(--border-radius-md);
}

.u-text-center {
  text-align: center;
}

.u-text-green-800 {
  color: #0F6E56;
}

.u-text-hex-042c53 {
  color: #042C53;
}

.u-text-hex-04342c {
  color: #04342C;
}

.u-text-hex-26215c {
  color: #26215C;
}

.u-text-purple-50 {
  color: #EEEDFE;
}

.u-text-right {
  text-align: right;
}

.u-transform-uppercase {
  text-transform: uppercase;
}

.u-w-0-4-pct {
  width: 0.4%;
}

.u-w-0-8-pct {
  width: 0.8%;
}

.u-w-0-d-6-pct {
  width: 0.6%;
}

.u-w-10-pct {
  width: 10%;
}

.u-w-100px {
  width: 100px;
}

.u-w-120px {
  width: 120px;
}

.u-w-130px {
  width: 130px;
}

.u-w-15-pct {
  width: 15%;
}

.u-w-17-pct {
  width: 17%;
}

.u-w-19-pct {
  width: 19%;
}

.u-w-2-pct {
  width: 2%;
}

.u-w-20-pct {
  width: 20%;
}

.u-w-24-pct {
  width: 24%;
}

.u-w-25-pct {
  width: 25%;
}

.u-w-27-pct {
  width: 27%;
}

.u-w-28-pct {
  width: 28%;
}

.u-w-32-pct {
  width: 32%;
}

.u-w-40-pct {
  width: 40%;
}

.u-w-44-pct {
  width: 44%;
}

.u-w-48-pct {
  width: 48%;
}

.u-w-5-pct {
  width: 5%;
}

.u-w-50-pct {
  width: 50%;
}

.u-w-55-pct {
  width: 55%;
}

.u-w-57-pct {
  width: 57%;
}

.u-w-6-pct {
  width: 6%;
}

.u-w-61-pct {
  width: 61%;
}

.u-w-64-pct {
  width: 64%;
}

.u-w-7-5-pct {
  width: 7.5%;
}

.u-w-70-pct {
  width: 70%;
}

.u-w-75-pct {
  width: 75%;
}

.u-w-8-pct {
  width: 8%;
}

.u-w-80-pct {
  width: 80%;
}

.u-w-88-pct {
  width: 88%;
}


/* ============================================================
   Icon sizing.

   An <i class="fa-solid fa-x"> element is drawn as a box filled with
   currentColor and masked by the icon, which is how Font Awesome renders its
   own inline SVGs. Keeping the original class names means no markup and no
   script had to change.

   The masks themselves live in a per-page stylesheet, so a page only carries
   the icons it uses.

   Font Awesome Free icons, CC BY 4.0, (c) Fonticons, Inc.
   ============================================================ */

.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far,
.fab {
  display: inline-block;
  height: 1em;
  width: 1em;
  vertical-align: -0.125em;
  /* An icon with no mask stays an empty box rather than a filled square. */
  background-color: transparent;
}

.fa-fw { width: 1.25em; }
.fa-lg { font-size: 1.33em; line-height: 0.75em; vertical-align: -0.225em; }
.fa-2x { font-size: 2em; }
.fa-3x { font-size: 3em; }


/* ============================================================
   Site chrome — header, breadcrumbs, pager, related, footer.
   Everything here is shared by every page and uses the tokens
   defined in shared.css.
   ============================================================ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-secondary);
  border-radius: var(--border-radius-md);
  color: var(--color-text-primary);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* === HEADER === */
.site-head {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 14px 1.5rem 0;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  text-decoration: none;
  margin-right: auto;
}
.site-brand:hover { color: var(--accent); }
.site-mark { display: block; width: 21px; height: 21px; border-radius: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--color-text-primary); }
.site-nav a[aria-current='page'] {
  color: var(--color-text-primary);
  border-bottom-color: var(--accent);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  border-radius: var(--border-radius-md);
  border: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-secondary);
}
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: none; }
html[data-resolved-theme='dark'] .theme-toggle .icon-sun { display: none; }
html[data-resolved-theme='dark'] .theme-toggle .icon-moon { display: block; }

/* === BREADCRUMBS === */
.crumbs {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 10px 1.5rem 0;
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before { content: '›'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--color-text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--color-text-primary); text-decoration: underline; }
.crumbs [aria-current='page'] { color: var(--color-text-tertiary); }

/* === PREV / NEXT === */
.module-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.module-pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  background: var(--color-background-primary);
  text-decoration: none;
}
.module-pager a:hover { border-color: var(--accent); }
.pager-next { text-align: right; }
.pager-dir { font-size: 11px; color: var(--color-text-tertiary); }
.pager-name { font-size: 13px; font-weight: 500; color: var(--color-text-primary); }

/* === RELATED === */
.related {
  max-width: var(--page-max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}
.related-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  border-bottom: 0.5px solid var(--color-border-tertiary);
  padding-bottom: 5px;
  margin: 0 0 10px;
}
.related-heading a { color: inherit; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-item a {
  display: block;
  height: 100%;
  padding: 11px 13px;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-lg);
  background: var(--color-background-primary);
  text-decoration: none;
}
.related-item a:hover { border-color: var(--accent); }
.related-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}
.related-blurb { display: block; font-size: 12px; color: var(--color-text-secondary); line-height: 1.5; }

/* === GENERIC PAGE PIECES === */
.lede {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.topic-list { margin: 0; padding-left: 1.1rem; font-size: 13px; color: var(--color-text-secondary); line-height: 1.7; }
.topic-list a { color: var(--color-text-primary); text-decoration: none; }
.topic-list a:hover { color: var(--accent); text-decoration: underline; }

/* === FOOTER === */
.site-foot {
  max-width: var(--page-max-width);
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem 2.5rem;
  border-top: 0.5px solid var(--color-border-tertiary);
}
.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-bottom: 12px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}
.foot-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-foot a { font-size: 12px; color: var(--color-text-secondary); text-decoration: none; }
.site-foot a:hover { color: var(--accent-text); }
.site-foot .foot-brand { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--color-text-primary); }
.foot-copy { font-size: 12px; color: var(--color-text-tertiary); margin: 0 0 0 auto; }
.foot-disclaimer {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-tertiary);
  /* Justified so the block ends where the row above it does. */
  text-align: justify;
  text-align-last: start;
}

@media (max-width: 560px) {
  .site-head { flex-wrap: wrap; gap: 10px; }
  .module-pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
}
