/* DevEx Roadmap. Same family as cmd.flisk.sh: Satoshi, JetBrains Mono, one green accent.
   Dark is the default; the toggle switches to light and remembers it.
   Family colors come from _data/families.yml and arrive as --c on each element. */

:root {
  color-scheme: dark;
  --bg: #08080c;
  --bg-glow: rgba(34, 197, 94, 0.07);
  --surface: #111117;
  --surface-2: #17171f;
  --surface-3: #1e1e28;
  --text: #ececf1;
  --muted: rgba(236, 236, 241, 0.7);
  --faint: rgba(236, 236, 241, 0.48);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  --grid: rgba(255, 255, 255, 0.05);

  --accent: #22c55e;
  --accent-ink: #04120a;
  --accent-text: #6ee7a0;
  --accent-tint: rgba(34, 197, 94, 0.12);
  --link: #6ee7a0;

  --adopt: #22c55e;
  --trial: #38bdf8;
  --assess: #f59e0b;
  --hold: #f43f5e;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);

  --font-body: "Satoshi", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-pill: 999px;
  --r-card: 16px;
  --maxw: 92rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f4;
  --bg-glow: rgba(34, 197, 94, 0.08);
  --surface: #ffffff;
  --surface-2: #f0f0ed;
  --surface-3: #e7e7e3;
  --text: #16161a;
  --muted: #52525b;
  --faint: #71717a;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.22);
  --grid: rgba(0, 0, 0, 0.06);
  --accent-text: #15803d;
  --accent-tint: rgba(34, 197, 94, 0.1);
  --link: #15803d;
  --adopt: #16a34a;
  --trial: #0284c7;
  --assess: #d97706;
  --hold: #e11d48;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--bg-glow), transparent 70%),
    radial-gradient(40rem 24rem at -10% 20%, rgba(14, 165, 233, 0.05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
code { font-family: var(--font-mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 720px) { .wrap { padding: 0 1.5rem; } }
.muted { color: var(--faint); font-size: 0.85em; }

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 1rem; border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.brand img { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 1rem; font-size: 0.875rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
.theme-toggle {
  font: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--text);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 0.15rem 0.7rem; cursor: pointer;
}
@media (max-width: 520px) { .nav-extra { display: none; } }

/* View tabs: the four big modes */

.views {
  display: flex; gap: 0.35rem; margin: 0.6rem 0 0;
  overflow-x: auto; scrollbar-width: none;
}
.views::-webkit-scrollbar { display: none; }
.view-tab {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.95rem; border-radius: 12px;
  color: var(--muted); font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.view-tab:hover { color: var(--text); background: var(--surface-2); }
.view-tab[aria-current="page"] {
  color: var(--text); background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.view-icon { width: 16px; height: 16px; flex: none; position: relative; display: inline-block; }
.view-icon-compass { border: 2px solid currentColor; border-radius: 50%; }
.view-icon-compass::after {
  content: ""; position: absolute; inset: 2px 5px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.view-icon-radar { border-radius: 50%; background: repeating-radial-gradient(circle, currentColor 0 1.5px, transparent 1.5px 4px); opacity: 0.9; }
.view-icon-lab {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 0 / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 7px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 7px 7px no-repeat;
  opacity: 0.9;
}
.view-icon-journeys {
  background:
    radial-gradient(circle at 3px 13px, var(--accent) 2.5px, transparent 3px),
    radial-gradient(circle at 13px 3px, currentColor 2.5px, transparent 3px);
}
.view-icon-journeys::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 10px; height: 10px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor; border-top-left-radius: 8px;
}

.view-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 0.4rem 2rem; flex-wrap: wrap;
  margin: 0.8rem 0 0.6rem;
}
.view-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -0.035em; }
.view-head p { margin: 0.2rem 0 0; color: var(--muted); max-width: 46rem; font-size: 0.875rem; }
.view-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); margin: 0; }
.view-count strong { color: var(--text); }

/* Sub-tabs: families or tracks. Real links, swapped in place by app.js. */

.subtabs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.8rem;
}
@media (max-width: 720px) {
  .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  .subtabs::-webkit-scrollbar { display: none; }
}
.subtab {
  --c: var(--accent);
  flex: none; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.28rem 0.75rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 0.82rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.subtab small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); }
.subtab:hover { color: var(--text); border-color: var(--line-strong); }
.subtab[aria-current="page"] {
  color: var(--text); border-color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
}
.sw { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.sw-all { background: conic-gradient(#eab308, #0ea5e9, #22c55e, #a855f7, #ec4899, #14b8a6, #f97316, #64748b, #eab308); box-shadow: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.6rem; }
@media (max-width: 720px) { .hint { display: none; } }
#q {
  font: inherit; font-size: 0.875rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 0.4rem 0.95rem; width: min(22rem, 100%);
}
#q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.hint { margin: 0; color: var(--faint); font-size: 0.8rem; }

/* Stage: the chart card */

.stage-wrap {
  position: relative;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(0.5rem, 2vw, 1.25rem);
  overflow: hidden;
}
.stage { min-height: 22rem; }
.stage.is-in > * { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stage-error { color: var(--muted); padding: 2rem; text-align: center; }
.stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.stage text { font-family: var(--font-body); }

/* Shared dot behaviour (Compass and Radar) */

.dot { cursor: default; outline: none; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms), opacity 0.3s; }
.dot .hit { fill: transparent; }
.dot .core {
  fill: var(--c); stroke: var(--surface); stroke-width: 1.5;
  transition: transform 0.2s, filter 0.2s;
}
.dot.is-dim { opacity: 0.12; }
.dot.is-focus .core { transform: scale(1.25); }
.stage.has-hot .dot:not(.is-hot) { opacity: 0.35; }
.stage.has-hot .dot.is-dim:not(.is-hot) { opacity: 0.08; }
.dot.is-hot { opacity: 1; }
.dot.is-hot .core, .dot:focus-visible .core {
  transform: scale(1.8);
  filter: drop-shadow(0 0 6px var(--c));
  stroke: var(--text);
}
.dot-label {
  font-size: 11px; font-weight: 500; fill: var(--muted);
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round;
  pointer-events: none;
}
.dot-label-lg { font-size: 13px; fill: var(--text); }

/* Compass */

.zone { fill: transparent; }
.zone-ne { fill: rgba(34, 197, 94, 0.06); }
.zone-nw { fill: rgba(244, 63, 94, 0.04); }
.zone-se { fill: rgba(14, 165, 233, 0.05); }
.zone-label { fill: var(--muted); }
.zone-title { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; fill: var(--text); }
.zone-sub { font-size: 10.5px; font-weight: 500; fill: var(--faint); }
.zone-label-ne .zone-title { fill: var(--accent-text); }
.grid { stroke: var(--grid); stroke-width: 1; }
.grid-strong { stroke: var(--line); }
.tick { font-family: var(--font-mono) !important; font-size: 10px; fill: var(--faint); }
.axis { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 5; }
.axis-head { fill: var(--line-strong); }
.rose { fill: var(--surface-3); stroke: var(--accent); stroke-width: 1.2; }
.rose-pin { fill: var(--accent); }
.cardinal { font-size: 13px; font-weight: 500; fill: var(--muted); }
.cardinal-letter { font-weight: 900; fill: var(--accent-text); font-size: 15px; }
.axis-name { font-size: 10px; letter-spacing: 0.08em; fill: var(--faint); text-transform: uppercase; }

/* Adoption Radar */

.radar-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 900px) { .radar-layout { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; } }
/* Sized by the window height too, so the whole circle fits on screen under the header. */
.stage svg.radar { width: min(100%, 56rem, var(--radar-max, 70vh)); margin: 0 auto; }
@media (max-height: 860px) { .view-head p { display: none; } }
.ring-band { stroke: var(--line); stroke-width: 1; }
.ring-band-0 { fill: color-mix(in srgb, var(--adopt) 10%, transparent); }
.ring-band-1 { fill: color-mix(in srgb, var(--trial) 7%, transparent); }
.ring-band-2 { fill: color-mix(in srgb, var(--assess) 6%, transparent); }
.ring-band-3 { fill: color-mix(in srgb, var(--hold) 5%, transparent); }
.sector { fill: var(--c); fill-opacity: 0.035; stroke: none; }
.sector-line { stroke: var(--line-strong); stroke-width: 1; }
.sector-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; fill: var(--c); }
.ring-label {
  font-size: 10.5px; font-weight: 900; letter-spacing: 0.18em;
  paint-order: stroke; stroke: var(--surface); stroke-width: 4px;
}
.ring-label.ring-adopt { fill: var(--adopt); }
.ring-label.ring-trial { fill: var(--trial); }
.ring-label.ring-assess { fill: var(--assess); }
.ring-label.ring-hold { fill: var(--hold); }

.radar-list { display: grid; gap: 0.8rem; max-height: min(56rem, var(--radar-max, 40rem)); overflow: auto; padding-right: 0.25rem; }
.rl h3 { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.95rem; }
.rl h3 small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.rl-adopt h3 span { color: var(--adopt); }
.rl-trial h3 span { color: var(--trial); }
.rl-assess h3 span { color: var(--assess); }
.rl-hold h3 span { color: var(--hold); }
.rl-help { margin: 0.15rem 0 0.4rem; color: var(--faint); font-size: 0.75rem; }
.rl ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; }
.chip {
  font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 9%, transparent);
  color: var(--text); cursor: default; outline: none; transition: background 0.15s, opacity 0.2s;
}
.chip.is-dim { opacity: 0.3; }
.chip.is-hot, .chip:focus-visible { background: var(--c); color: #0b0b10; }

/* Logos: a mask over currentColor, so one SVG works on both themes. */

.logo {
  display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
/* A PNG logo is the project's own colored avatar: show it as a small rounded badge. */
.logo-img {
  background: var(--logo) center / cover no-repeat;
  -webkit-mask: none; mask: none;
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.chip { display: inline-flex; align-items: center; gap: 0.3rem; }
.chip .logo { width: 0.95em; height: 0.95em; }
.tt-sym .logo { width: 1.45rem; height: 1.45rem; vertical-align: 0; }
.pill b .logo { width: 0.85rem; height: 0.85rem; vertical-align: 0; color: #0b0b10; }
.pill b:has(.logo-img) { background: transparent; }
.pill b .logo-img { width: 1.45rem; height: 1.45rem; border-radius: 50%; box-shadow: none; }

/* Lab: the periodic table */

.lab { display: flex; flex-wrap: wrap; gap: 1.4rem 1.6rem; --tile: 72px; }
@media (max-width: 720px) { .lab { --tile: 64px; } }
.lab-block { transition: opacity 0.35s, filter 0.35s; }
.lab-block.is-dim { opacity: 0.18; filter: saturate(0.3); }
.lab-focus .lab-block.is-focus { order: -1; flex-basis: 100%; }
.lab-block h3 {
  display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 0.45rem;
  font-size: 0.85rem; color: var(--c);
}
.lab-group { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); font-weight: 400; }
.lab-grid {
  display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(6, var(--tile)); grid-auto-columns: var(--tile);
  gap: 4px;
}
.lab-focus .lab-block.is-focus .lab-grid { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, calc(var(--tile) * 1.3)); grid-auto-rows: calc(var(--tile) * 1.3); }
@media (max-width: 720px) {
  .lab-block { max-width: 100%; overflow-x: auto; }
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 26%, var(--surface-2)), color-mix(in srgb, var(--c) 10%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  cursor: default; outline: none;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s, opacity 0.2s;
  animation: tile-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) both;
}
@keyframes tile-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.tile.is-dim { opacity: 0.2; }
.tile.is-hot, .tile:focus-visible {
  transform: scale(1.18); z-index: 5;
  box-shadow: 0 0 0 2px var(--c), 0 10px 30px color-mix(in srgb, var(--c) 40%, transparent);
}
.t-n, .t-lic { position: absolute; top: 4px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); line-height: 1; }
.t-n { left: 5px; }
.t-lic { right: 5px; }
.t-sym { font-size: calc(var(--tile) * 0.36); font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.t-sym-3 { font-size: calc(var(--tile) * 0.29); }
.t-logo { width: calc(var(--tile) * 0.24); height: calc(var(--tile) * 0.24); margin-top: 3px; color: color-mix(in srgb, var(--c) 55%, var(--text)); }
.tile.has-logo .t-sym { font-size: calc(var(--tile) * 0.3); margin-top: 8px; }
.tile.has-logo .t-sym-3 { font-size: calc(var(--tile) * 0.25); }
.tile.has-logo .t-name { margin-top: 2px; }
.t-name {
  font-size: 9px; color: var(--muted); max-width: 92%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px;
}
.t-formula { display: none; font-family: var(--font-mono); font-size: 8.5px; color: var(--faint); }
.lab-focus .is-focus .t-formula { display: block; }
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--adopt);
}
.tile.ring-trial::after { background: var(--trial); }
.tile.ring-assess::after { background: var(--assess); }
.tile.ring-hold::after { background: var(--hold); }

/* Journeys: a metro line */

.metro { --c: var(--accent); max-width: 64rem; margin: 0 auto; padding: 0.5rem 0 1rem; }
.metro-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 1.2rem; }
.metro-head p { margin: 0; color: var(--muted); }
.metro-badge {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  color: #0b0b10; background: var(--c); padding: 0.2rem 0.65rem; border-radius: 6px;
}
.station { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1rem; animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms) both; }
.rail { position: relative; display: flex; justify-content: center; }
.rail::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px;
  background: var(--c); border-radius: 3px; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent);
}
.node {
  position: relative; z-index: 1; margin-top: 0.6rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 5px solid var(--c);
  font-weight: 900; font-size: 1.05rem; cursor: default; outline: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.node.is-hot, .node:focus-visible { transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 25%, transparent); }
.station-body {
  margin: 0 0 1.2rem; padding: 0.85rem 1rem 0.9rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
}
.lvl { margin: 0; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); }
.station-body h3 { font-size: 1.3rem; margin: 0.1rem 0 0.2rem; }
.goal { margin: 0 0 0.7rem; color: var(--muted); }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; position: relative; margin-top: 0.35rem; }
.line-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); width: 6.2rem; flex: none; }
@media (max-width: 600px) { .line-label { width: 100%; } }
.pill {
  --fc: var(--c);
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.18rem 0.6rem 0.18rem 0.22rem; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 500; cursor: default; outline: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.pill b {
  display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  font-size: 0.66rem; font-weight: 900; color: #0b0b10; background: var(--fc);
}
.pill-main { background: var(--surface); border: 2px solid var(--c); }
.pill-side { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.pill-side b { opacity: 0.8; }
.pill-missing { border: 1px dashed var(--hold); color: var(--hold); padding: 0.18rem 0.6rem; }
.pill.is-dim { opacity: 0.3; }
.pill.is-hot, .pill:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--fc) 35%, transparent); }
.pill-flisk b { background: var(--accent); }
.pill-flisk.fl-yes { border: 2px solid var(--accent); background: var(--accent-tint); }
.pill-flisk.fl-partial { border: 2px solid var(--assess); background: color-mix(in srgb, var(--assess) 12%, transparent); }
.pill-flisk.fl-soon { border: 2px dashed var(--line-strong); background: transparent; color: var(--muted); }
.pill-flisk.fl-soon b { background: var(--surface-3); color: var(--muted); }
.track-tip { margin: 0.7rem 0 0; padding-left: 0.7rem; border-left: 3px solid var(--c); color: var(--muted); font-size: 0.85rem; }
.metro-end { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1rem; align-items: center; }
.metro-end .node { margin: 0 auto; background: var(--c); color: #0b0b10; }
.metro-end p { margin: 0; color: var(--muted); font-weight: 500; }

/* Tooltip */

.tip {
  position: fixed; left: 0; top: 0; z-index: 50;
  width: min(22rem, calc(100vw - 16px));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.8rem 0.9rem 0.7rem;
  font-size: 0.82rem;
  opacity: 0; transform: translateY(4px) scale(0.98);
  transition: opacity 0.14s, transform 0.14s;
}
.tip.on { opacity: 1; transform: none; }
.tt-head { --c: var(--accent); display: flex; align-items: center; gap: 0.6rem; }
.tt-head > div { flex: 1; min-width: 0; }
.tt-head strong { display: block; font-size: 1rem; }
.tt-head span { color: var(--faint); font-size: 0.75rem; }
.tt-sym {
  flex: none; width: 2.3rem; height: 2.3rem; border-radius: 8px; display: grid; place-items: center;
  font-weight: 900; font-size: 1rem; color: var(--text) !important;
  background: color-mix(in srgb, var(--c) 30%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
}
.tt-lvl { border-radius: 50%; }
.tt-ring {
  flex: none; font-size: 0.68rem !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.12rem 0.45rem; border-radius: 6px; color: #0b0b10 !important; background: var(--faint);
}
.tt-ring.ring-adopt, .tt-ring.fl-yes { background: var(--adopt); }
.tt-ring.ring-trial { background: var(--trial); }
.tt-ring.ring-assess, .tt-ring.fl-partial { background: var(--assess); }
.tt-ring.ring-hold { background: var(--hold); }
.tt-ring.fl-soon { background: var(--surface-3); color: var(--text) !important; }
.tt-tag { margin: 0.55rem 0 0.5rem; color: var(--text); }
.tt-bar { display: grid; grid-template-columns: 5.6rem 2rem 1fr; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-size: 0.75rem; color: var(--muted); }
.tt-bar b { font-family: var(--font-mono); color: var(--text); text-align: right; }
.tt-bar i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--v), var(--surface-3) var(--v)); }
.tt-crit { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem; margin: 0.3rem 0 0; padding: 0; }
.tt-crit li { font-size: 0.68rem; padding: 0.05rem 0.4rem; border-radius: 5px; background: var(--surface-3); color: var(--muted); }
.tt-note { margin: 0.55rem 0 0; padding: 0.4rem 0.55rem; border-radius: 8px; background: color-mix(in srgb, var(--assess) 12%, transparent); color: var(--text); font-size: 0.76rem; }
.tt-meta { margin: 0.5rem 0 0; font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); }
.tt-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; margin: 0.45rem 0 0; padding-top: 0.45rem; border-top: 1px solid var(--line); }
.tt-links a { font-size: 0.75rem; font-weight: 500; text-decoration: none; }
.tt-links a:hover { text-decoration: underline; }

/* Explain and table */

.explain { margin: 1.6rem 0 0; max-width: 72rem; }
.explain h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.explain h3 { font-size: 0.95rem; margin: 0.8rem 0 0.3rem; }
.explain h3 small { font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; color: var(--faint); }
.explain p, .explain li { color: var(--muted); font-size: 0.875rem; }
.explain-cols { display: grid; gap: 0 2rem; }
@media (min-width: 860px) { .explain-cols { grid-template-columns: 1fr 1fr; } }
.criteria { margin: 0; padding-left: 1.3rem; }
.criteria li { margin: 0.15rem 0; }
.criteria strong, .rings strong { color: var(--text); }
.rings { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.rings li { padding-left: 0.8rem; border-left: 3px solid var(--faint); }
.rings .ring-adopt { border-color: var(--adopt); }
.rings .ring-trial { border-color: var(--trial); }
.rings .ring-assess { border-color: var(--assess); }
.rings .ring-hold { border-color: var(--hold); }
.fl-key { display: inline-block; font-size: 0.75rem; padding: 0 0.5rem; border-radius: var(--r-pill); margin: 0 0.1rem; }
.fl-key.fl-yes { border: 2px solid var(--accent); }
.fl-key.fl-partial { border: 2px solid var(--assess); }
.fl-key.fl-soon { border: 2px dashed var(--line-strong); }

.all-list { margin: 1.4rem 0 0; }
.all-list summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.all-list summary:hover { color: var(--text); }
.table-wrap { overflow-x: auto; margin-top: 0.6rem; border: 1px solid var(--line); border-radius: 12px; }
.all-list table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.all-list th, .all-list td { text-align: left; padding: 0.4rem 0.65rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.all-list thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.all-list tbody th { font-weight: 500; }
.all-list td:nth-child(n + 6) { font-family: var(--font-mono); }

/* About */

.prose { max-width: 50rem; margin-top: 1.6rem; }
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; margin-bottom: 0.9rem; }
.prose h2 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.prose code { background: var(--surface-2); padding: 0.1rem 0.35rem; border-radius: 5px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; overflow-x: auto; font-size: 0.8rem; }

/* Footer */

.site-footer { margin-top: 3rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; }
.site-footer p { margin: 0; max-width: 60rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Compare: click up to five tools, then read them side by side. */

.stage [data-tip="tool"] { cursor: pointer; }
.is-picked.tile { box-shadow: 0 0 0 2px var(--accent), 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.is-picked.chip { background: var(--c); color: #0b0b10; }
.is-picked.pill { box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 4px var(--accent); }
.dot .pick-ring { fill: none; stroke: var(--accent); stroke-width: 2.5; pointer-events: none; }
.dot .pick-num {
  font-size: 12px; font-weight: 900; fill: var(--accent-text); pointer-events: none;
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round;
}
.dot.is-picked { opacity: 1; }
.stage.has-picked .dot.is-picked.is-dim { opacity: 0.9; }
.tt-pick { margin: 0.5rem 0 0; font-size: 0.74rem; color: var(--faint); }
.tt-pick.on { color: var(--accent-text); font-weight: 700; }

.has-tray main { padding-bottom: 6.5rem; }
.tray {
  position: fixed; left: 50%; bottom: 14px; z-index: 40; transform: translateX(-50%);
  width: min(62rem, calc(100vw - 20px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem;
  padding: 0.6rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.tray-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-text); font-weight: 700; }
.tray-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; flex: 1 1 14rem; }
.tray-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.15rem 0.3rem 0.15rem 0.25rem; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 0.8rem; font-weight: 500;
}
.tray-chip b {
  display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--c); color: #0b0b10; font-size: 0.68rem; font-weight: 900;
}
.tray-chip .logo { width: 0.95rem; height: 0.95rem; }
.tray-x {
  font: inherit; line-height: 1; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.tray-x:hover { background: var(--surface-3); color: var(--text); }
.tray-actions { display: flex; gap: 0.4rem; }
.tray-actions button, .cmp-close {
  font: inherit; font-size: 0.8rem; font-weight: 500; color: var(--text); cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 0.25rem 0.8rem;
}
.tray-actions button:hover, .cmp-close:hover { border-color: var(--accent); }
.tray-actions .tray-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.tray-actions .tray-go:disabled { opacity: 0.4; cursor: not-allowed; }
.tray-msg { flex: 1 1 100%; margin: 0; min-height: 0; font-size: 0.78rem; color: var(--assess); }
.tray-msg:empty { display: none; }

.cmp {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem;
  background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.cmp-box {
  width: min(78rem, 100%); max-height: calc(100vh - 2rem); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow);
  padding: 1rem 1.1rem 0.8rem;
}
.cmp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.2rem; margin-bottom: 0.7rem; }
.cmp-top h2 { font-size: 1.2rem; margin-right: auto; }
.cmp-diff { font-size: 0.82rem; color: var(--muted); cursor: pointer; display: inline-flex; gap: 0.4rem; align-items: center; }
.cmp-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.cmp-scroll table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 38rem; }
.cmp-scroll th, .cmp-scroll td { text-align: left; vertical-align: top; padding: 0.4rem 0.7rem; border-bottom: 1px solid var(--line); }
.cmp-scroll tbody th[scope="row"] { width: 11rem; font-weight: 500; color: var(--muted); background: var(--surface-2); position: sticky; left: 0; }
.cmp-scroll thead th {
  position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; padding: 0.7rem;
  border-bottom: 2px solid var(--c, var(--line-strong));
}
.cmp-scroll thead th.corner { border-bottom-color: var(--line-strong); left: 0; z-index: 3; }
.cmp-scroll thead th { position: sticky; }
.cmp-scroll thead th > * { vertical-align: middle; }
.cmp-scroll thead strong { display: block; font-size: 1rem; margin-top: 0.3rem; }
.cmp-fam { display: block; color: var(--faint); font-size: 0.72rem; font-weight: 400; }
.cmp-n {
  display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--c); color: #0b0b10; font-size: 0.7rem; font-weight: 900; margin-right: 0.4rem;
}
.cmp-sym {
  display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 0.3rem; border-radius: 7px;
  font-weight: 900; background: color-mix(in srgb, var(--c) 30%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
}
.cmp-scroll thead .logo { width: 1.5rem; height: 1.5rem; }
.cmp-rm { float: right; font: inherit; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cmp-rm:hover { color: var(--text); }
.cmp-scroll tr.sec th { background: var(--surface-3); color: var(--text); font-size: 0.8rem; position: static; }
.cmp-scroll tr.sec small { color: var(--faint); font-weight: 400; margin-left: 0.4rem; }
.cmp-scroll td.has { background: var(--accent-tint); }
.cmp-scroll .yes { color: var(--accent-text); font-weight: 900; }
.cmp-scroll .no { color: var(--faint); }
.cmp-score { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: 0.4rem; }
.cmp-score b { font-family: var(--font-mono); }
.cmp-score i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--v), var(--surface-3) var(--v)); }
.cmp-scroll.only-diff tr.same { display: none; }
.cmp-foot { margin: 0.6rem 0 0; font-size: 0.75rem; color: var(--faint); }
body.cmp-open { overflow: hidden; }

/* Compact header: tabs and search share a row, so the chart gets the screen. */

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; margin-top: 0.5rem; }
.topbar .views { margin: 0; }
.topbar .toolbar { margin: 0; }
.topbar #q { width: min(19rem, 100%); padding: 0.3rem 0.85rem; font-size: 0.82rem; }
.view-tab { padding: 0.35rem 0.8rem; font-size: 0.9rem; }
.bar { min-height: 2.5rem; }
.subtabs { margin: 0.45rem 0 0.5rem; gap: 0.3rem; align-items: center; }
.subtab { padding: 0.2rem 0.65rem; font-size: 0.78rem; }
.subtabs .view-count { margin: 0 0 0 auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); flex: none; white-space: nowrap; }
.subtabs .view-count strong { color: var(--text); }
.stage-wrap { padding: clamp(0.3rem, 1vw, 0.7rem); border-radius: 16px; }
.stage { min-height: 16rem; }
@media (max-width: 720px) { .subtabs .view-count { display: none; } }

/* The charts are as tall as the room under the header, so a whole card fits on screen. */
.stage svg.compass { max-height: var(--radar-max, none); }
.radar-list-wrap > summary { cursor: pointer; font-weight: 700; font-size: 0.85rem; color: var(--muted); padding: 0.3rem 0; }
.radar-list-wrap > summary:hover { color: var(--text); }
@media (min-width: 900px) { .radar-list-wrap > summary { display: none; } }

/* Lab: one grid sized by fitLab(); the detail on a tile depends on how big it ends up. */

.stage .lab { display: grid; gap: 4px; justify-content: center; align-content: start; grid-auto-rows: var(--tile); }
.lab .tile { width: auto; height: auto; }
.lab .t-n, .lab .t-lic { font-size: clamp(7px, calc(var(--tile) * 0.12), 11px); top: calc(var(--tile) * 0.06); }
.lab .t-n { left: calc(var(--tile) * 0.07); }
.lab .t-lic { right: calc(var(--tile) * 0.07); }
.lab .t-name { font-size: clamp(7px, calc(var(--tile) * 0.125), 11px); }
.lab .t-formula { font-size: clamp(7px, calc(var(--tile) * 0.1), 10px); }
.lab .tile::after { height: clamp(2px, calc(var(--tile) * 0.05), 4px); }
.lab .tile { border-radius: clamp(4px, calc(var(--tile) * 0.1), 10px); }

.lab-xs .t-n, .lab-xs .t-lic, .lab-xs .t-name, .lab-xs .t-logo, .lab-xs .t-formula,
.lab-sm .t-n, .lab-sm .t-lic, .lab-sm .t-logo, .lab-sm .t-formula,
.lab-md .t-formula { display: none; }
.lab-xs .t-sym, .lab-xs .tile.has-logo .t-sym { font-size: calc(var(--tile) * 0.42); margin-top: 0; }
.lab-xs .t-sym-3, .lab-xs .tile.has-logo .t-sym-3 { font-size: calc(var(--tile) * 0.32); }
.lab-sm .tile.has-logo .t-sym { font-size: calc(var(--tile) * 0.36); margin-top: 2px; }
.lab-sm .tile.has-logo .t-sym-3 { font-size: calc(var(--tile) * 0.29); }
.lab-lg .t-formula { display: block; }
.lab-lg .t-sym { font-size: calc(var(--tile) * 0.34); }
.cmp-cmd { font-size: 0.82rem; font-weight: 500; }
