/* Generated by scripts/make-tokens.py from Rusty Bucket's theme
   (tokens.json, "Rusty Bucket" v1, dark). Don't edit: regenerate. */
:root {
  --abyss: #00111a;
  --deep: #02202b;
  --sea-glass: #a9c1be;
  --cyan: #1ee7f8;
  --brass: #e2b46e;
  --coral: #e8643c;
  --frame-lit: #b8702e;
  --frame: #7a4a24;
  --panel: #09222c;
  --sea-glow: #0d3a48;
  --cream: #fbf3e2;
  --warm-cream: #f4ecd8;
  --weathered: #76918f;
  --bg-page: #00111a;
  --bg-surface: #02202b;
  --bg-raised: #09222c;
  --bg-overlay: #0a2530;
  --bg-inset: #000b11;
  --bg-terminal: #00111a;
  --bg-hover: #0a2833;
  --text-strong: #fbf3e2;
  --text-body: #f4ecd8;
  --text-secondary: #a9c1be;
  --text-muted: #76918f;
  --text-disabled: #4a6764;
  --text-on-accent: #00111a;
  --terminal-text: #f4ecd8;
  --prompt-crab: #ff0000;
  --accent-primary: #1ee7f8;
  --accent-primary-hover: #7ff2fb;
  --accent-primary-soft: #0b3540;
  --accent-secondary: #e2b46e;
  --accent-secondary-soft: #3a2c14;
  --accent-tertiary: #e8643c;
  --focus-ring: #1ee7f8;
  --border-subtle: #0f3342;
  --border-default: #7a4a24;
  --border-control: #b8702e;
  --border-strong: #a9c1be;
  --border-active: #1ee7f8;
  --border-warm: #b8702e;
  --success: #3ef08e;
  --warning: #f5a524;
  --error: #ff4d6a;
  --info: #1ee7f8;
  --glow-color-cyan: rgba(30, 231, 248, 0.55);
  --glow-color-brass: rgba(226, 180, 110, 0.5);
  --glow-color-coral: rgba(232, 100, 60, 0.3);
  --gradient-wallpaper: radial-gradient(ellipse 120% 90% at 78% 6%, #0d3a48 0%, #02202b 40%, #00111a 80%);
  --gradient-wallpaper-daylight: radial-gradient(ellipse 120% 90% at 78% 6%, #d9f1f4 0%, #eceef2 45%, #dfe2e8 100%);
  --gradient-heated-metal: linear-gradient(120deg, #7a4a24 0%, #b8702e 45%, #e2b46e 80%, #fbf3e2 100%);
  --gradient-neon-strip: linear-gradient(90deg, #1ee7f8 0%, #e2b46e 100%);
  --gradient-plate: linear-gradient(180deg, #0d3a48 0%, #09222c 100%);
  --shadow-plate-sm: 0 1px 0 #000000, 0 2px 4px rgba(0, 0, 0, 0.55);
  --shadow-plate-md: 0 2px 0 #000000, 0 6px 12px rgba(0, 0, 0, 0.6);
  --shadow-plate-lg: 0 3px 0 #000000, 0 12px 24px rgba(0, 0, 0, 0.7);
  --shadow-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  --glow-cyan: 0 0 0 1px #1ee7f8, 0 0 12px rgba(30, 231, 248, 0.55);
  --glow-brass: 0 0 0 1px #e2b46e, 0 0 10px rgba(226, 180, 110, 0.5);
  --glow-coral: 0 0 24px rgba(232, 100, 60, 0.3);
  --glow-strip: inset 0 0 0 1px #1ee7f8;
  --glow-pulse-peak: 0 0 0 1px #1ee7f8, 0 0 20px rgba(30, 231, 248, 0.75);
  --glow-blur-cyan: 12px;
  --glow-blur-brass: 10px;
  --glow-blur-coral: 24px;
  --glow-blur-pulse: 20px;
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --chamfer-sm: 6px;
  --chamfer-md: 10px;
  --chamfer-lg: 14px;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-display: 48px;
  --text-boot: 64px;
  --text-xs-leading: 16px;
  --text-sm-leading: 20px;
  --text-base-leading: 22px;
  --text-lg-leading: 26px;
  --text-xl-leading: 30px;
  --text-2xl-leading: 38px;
  --text-display-leading: 52px;
  --text-boot-leading: 64px;
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --dur-fast: 100ms;
  --dur-base: 200ms;
  --dur-slow: 350ms;
  --dur-pulse: 1200ms;
  --dur-wallpaper-fade: 1500ms;
  --dur-helper-timeout: 30000ms;
  --dur-notice-stay: 5000ms;
  --dur-focus-settle: 120ms;
  --dur-tab-hover: 300ms;
  --dur-keep-settings: 15000ms;
  --ease-out-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in-latch: cubic-bezier(0.55, 0, 0.8, 0.2);
  --stroke-hair: 1px;
  --stroke-focus: 2px;
  --stroke-strip: 2px;
  --font-display: "Chakra Petch", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
/* software.rustybucket.ai: the page kit's styles, in Rusty Bucket's own
   default theme, "Rusty", the Deep Sea palette (ADR-026), on top of the
   generated tokens (assets/rusty.css, which render.py concatenates before this
   file). The same look as rustybucket.ai: deep sea, copper and cream, a cyan
   glow. Font URLs are rewritten to fingerprinted names by render.py. */

@font-face { font-family: 'Chakra Petch'; src: url(/_kit/chakra-petch-600.39f17fa192.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url(/_kit/chakra-petch-700.1dd17f89a2.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(/_kit/space-grotesk-400.554aedb6c2.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url(/_kit/space-grotesk-700.5a0001baf9.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/_kit/jetbrains-mono-400.1ba962e069.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --frame: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box, var(--gradient-heated-metal) border-box;
}
*, *::before, *::after { box-sizing: border-box; }
html { background-color: var(--bg-page); }

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 16px var(--space-6);
  background: var(--gradient-wallpaper) no-repeat;
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* The light strip along the top edge, as on rustybucket.ai */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: var(--gradient-neon-strip);
  box-shadow: 0 0 var(--glow-blur-cyan) var(--glow-color-cyan);
  pointer-events: none;
  z-index: 1;
}
main, footer { width: 100%; max-width: 64rem; margin: 0 auto; }
main { overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }

a { color: var(--accent-primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--dur-fast) var(--ease-out-snap); }
a:hover { color: var(--accent-primary-hover); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 var(--glow-blur-cyan) var(--glow-color-cyan);
  border-radius: var(--radius-xs);
}

/* The nav bar, as on rustybucket.ai (ADR-027), then the footer */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  width: calc(100% + 32px);
  margin: 0 -16px;
  border-bottom: var(--stroke-hair) solid var(--border-subtle);
  background: rgba(0, 17, 26, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  max-width: 64rem;
  margin: 0 auto;
  padding: var(--space-3) 16px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
}
.nav-brand:hover { color: var(--cream); }
.nav-brand img { display: block; }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-snap), background-color var(--dur-fast) var(--ease-out-snap);
}
.nav-link:hover { background: var(--bg-hover); color: var(--text-strong); }
.nav-link[aria-current="page"] { color: var(--cream); box-shadow: inset 0 -2px 0 var(--brass); }
@media (max-width: 40rem) {
  .nav-inner { justify-content: center; padding: var(--space-2) 8px; }
  .nav-links { justify-content: center; gap: 0; }
  .nav-link { padding: var(--space-2) 6px; font-size: var(--text-sm); }
}
footer { margin-top: var(--space-16); color: var(--text-muted); font-size: var(--text-sm); text-align: center; }
footer p { margin: var(--space-1) 0; }
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--accent-primary); }
.social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-2) var(--space-3); margin-bottom: var(--space-3) !important; }
.social a { display: inline-flex; align-items: center; gap: var(--space-2); }
.social .sep { color: var(--text-muted); }
@media (max-width: 30rem) { .social { flex-direction: column; } .social .sep { display: none; } }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.divider { height: 2px; margin: 0 0 var(--space-5); border: 0; background: var(--gradient-neon-strip); box-shadow: 0 0 8px var(--glow-color-cyan); }

.page-title {
  margin: var(--space-8) 0 var(--space-3);
  color: var(--text-strong);
  font-size: var(--text-display);
  line-height: 1.05;
}
.page-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: var(--space-4);
  background: var(--gradient-neon-strip);
  box-shadow: 0 0 8px var(--glow-color-cyan);
}
.intro { max-width: 40rem; margin: 0 0 var(--space-12); color: var(--text-secondary); font-size: var(--text-lg); }
.crumb { margin: var(--space-6) 0; color: var(--text-muted); font-size: var(--text-sm); }

/* A product: one plate in a heated-metal frame, its accent from the display
   data. Accents are product colours, checked for contrast on the plate
   (tests/test_kit.py): each passes 4.5:1 as text, except U-Stu's #a04bfa
   (3.9:1), which is for the strip, glow and large name only; its small text
   uses violet. */
.accent-violet { --accent: #bd83ff; --accent-glow: 0 0 24px rgba(189, 131, 255, 0.45); }
.accent-magenta { --accent: #ff5ce0; --accent-glow: 0 0 24px rgba(255, 92, 224, 0.4); }
.accent-cyan { --accent: var(--cyan); --accent-glow: 0 0 var(--glow-blur-cyan) var(--glow-color-cyan); }
.accent-rust { --accent: var(--coral); --accent-glow: 0 0 var(--glow-blur-coral) var(--glow-color-coral); }
.accent-lime { --accent: var(--success); --accent-glow: 0 0 24px rgba(62, 240, 142, 0.35); }
.accent-purple { --accent: #a04bfa; --accent-text: #bd83ff; --accent-glow: 0 0 24px rgba(160, 75, 250, 0.5); }

.product {
  position: relative;
  margin: 0 0 var(--space-12);
  padding: var(--space-8) var(--space-6) var(--space-6);
  border: var(--stroke-hair) solid transparent;
  border-radius: var(--radius-lg);
  background: var(--frame);
  box-shadow: var(--shadow-plate-md), var(--shadow-bevel);
}
/* The plate's sheen, then its accent strip along the top */
.product::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 7rem;
  border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  background: linear-gradient(180deg, rgba(13, 58, 72, 0.6), transparent);
  pointer-events: none;
}
.product::before {
  content: "";
  position: absolute;
  inset: 0 var(--space-6) auto;
  height: 2px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  z-index: 1;
}
.product > * { position: relative; z-index: 1; }
.product-head { display: flex; align-items: center; gap: var(--space-5); }
.product-icon { display: block; flex: none; width: 96px; height: 96px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)); }
.product-icon-blank { border-radius: var(--radius-md); background: var(--gradient-plate); box-shadow: inset 0 0 0 1px var(--frame-lit); }
.product-name {
  margin: 0;
  color: var(--accent);
  font-size: var(--text-2xl);
  line-height: 1.15;
  text-shadow: var(--accent-glow);
}
.product-name a { color: inherit; text-decoration: none; }
.product-name a:hover { text-decoration: underline; }
.tagline { margin: var(--space-1) 0 0; color: var(--text-strong); font-size: var(--text-lg); font-weight: 700; }
.pitch { max-width: 44rem; margin: var(--space-5) 0 0; color: var(--text-body); }

.current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
  margin: var(--space-8) 0 var(--space-4);
  color: var(--text-strong);
  font-size: var(--text-xl);
}
.released { color: var(--text-muted); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; }
.badge {
  padding: 0 var(--space-2);
  border: var(--stroke-hair) solid var(--brass);
  border-radius: var(--radius-xs);
  background: var(--accent-secondary-soft);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Platforms and their files */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); align-items: start; gap: var(--space-4); }
.platform { padding: var(--space-4); border: var(--stroke-hair) solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-inset); }
.platform h4 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.platform h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--frame-lit), transparent); }
.files { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.dl {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-4);
  border: var(--stroke-hair) solid var(--border-control);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  box-shadow: var(--shadow-plate-sm), var(--shadow-bevel);
  color: var(--text-strong);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out-snap), box-shadow var(--dur-fast) var(--ease-out-snap), transform var(--dur-fast) var(--ease-out-snap);
}
.dl:hover { border-color: var(--accent); box-shadow: var(--shadow-plate-sm), var(--accent-glow); color: var(--text-strong); transform: translateY(-1px); }
.dl:focus-visible { border-radius: var(--radius-sm); }
.dl-label { font-weight: 700; }
.dl-meta { color: var(--text-secondary); font-size: var(--text-sm); }
.dl-note { display: inline-block; margin-top: var(--space-2); color: var(--warning); font-size: var(--text-sm); }
.sum, .sig { margin: var(--space-2) 0 0; font-size: var(--text-xs); }
.sum-label { color: var(--text-muted); }
.sha, .fpr {
  color: var(--text-body);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  user-select: all;  /* one click selects the whole hash */
}

/* Verify and previous versions: <details>, no JavaScript */
details { margin-top: var(--space-6); border-top: var(--stroke-hair) solid var(--border-subtle); padding-top: var(--space-4); }
summary { color: var(--accent-text, var(--accent)); cursor: pointer; font-weight: 700; }
.cmd {
  margin: var(--space-3) 0;
  padding: var(--space-4);
  overflow-x: auto;
  border: var(--stroke-hair) solid var(--border-subtle);
  border-left: 2px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  background: var(--bg-terminal);
  color: var(--terminal-text);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.sums { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.versions { margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.version + .version { margin-top: var(--space-6); }
.version h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-2); color: var(--text-strong); font-size: var(--text-lg); }
.version table { display: block; overflow-x: auto; border-collapse: collapse; font-size: var(--text-sm); }
.version th { color: var(--text-muted); font-weight: 400; text-align: left; }
.version th, .version td { padding: var(--space-1) var(--space-3) var(--space-1) 0; vertical-align: top; }
.version td:first-child { overflow-wrap: anywhere; }
.version .sha { font-size: var(--text-xs); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 40rem) {
  .product { padding: var(--space-6) var(--space-4) var(--space-5); }
  .product-head { gap: var(--space-4); }
  .product-icon { width: 72px; height: 72px; }
  .page-title { font-size: var(--text-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .dl:hover { transform: none; }
}

/* The "Source code" card under the macOS column (the user's rule, 2026-10-15; kit v3):
   heated metal like the platform cards */
.source-card { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border: var(--stroke-hair) solid var(--frame-lit); border-radius: var(--radius-sm); background: var(--bg-raised); box-shadow: var(--shadow-plate-sm); }
.source-card h4 { margin: 0 0 var(--space-2); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-family: var(--font-mono); font-weight: 400; }
.source-link { display: flex; align-items: center; gap: var(--space-2); color: var(--text-strong); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.source-link .icon { flex: none; width: 1.4rem; height: 1.4rem; }
.source-link:hover { color: var(--accent, var(--brass)); }
.source-link:focus-visible { outline: var(--stroke-focus) solid var(--focus-ring); outline-offset: 3px; }
.source-note { margin: var(--space-2) 0 0; color: var(--text-secondary); font-size: var(--text-sm); }
@font-face { font-family: 'Public Sans'; src: url(/_kit/public-sans.6b5e29e82f.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

html.crisp {
  color-scheme: dark;

  /* Surfaces and text: ice on navy (navy #020B23, cyan #24C0EA, ice #D2F1FA) */
  --abyss: #020b23; --deep: #061433; --panel: #0a1a3d; --sea-glow: #0a1a3d;
  --bg-page: #020b23; --bg-surface: #061433; --bg-raised: #0a1a3d; --bg-overlay: #061433;
  --bg-inset: #0a1a3d; --bg-terminal: #061433; --bg-hover: #0e2250;
  --cream: #d2f1fa; --warm-cream: #c4e3ee; --sea-glass: #a3c2d2; --weathered: #8eabbd;
  --text-strong: #eefaff; --text-body: #d2f1fa; --text-secondary: #a3c2d2; --text-muted: #8eabbd;
  --text-disabled: #5f7a8c; --text-on-accent: #020b23; --terminal-text: #d2f1fa;

  /* One cyan accent; the Rusty colours collapse into it */
  --accent-primary: #24c0ea; --accent-primary-hover: #6ad6f3; --accent-primary-soft: #0d2a4d;
  --accent-secondary: #24c0ea; --accent-secondary-soft: #0d2a4d; --accent-tertiary: #24c0ea;
  --cyan: #24c0ea; --brass: #24c0ea; --coral: #24c0ea; --focus-ring: #24c0ea;
  --frame-lit: #3a5a80; --frame: #1e3557;

  /* Navy rules */
  --border-subtle: #12264a; --border-default: #23406b; --border-control: #4e6d93;
  --border-strong: #d2f1fa; --border-active: #24c0ea; --border-warm: #23406b;

  /* Status colours light enough for navy (AA) */
  --success: #5bd68a; --warning: #f2c14e; --error: #ff8a8a; --info: #24c0ea;

  /* No glows, gradients or heavy shadows */
  --glow-color-cyan: transparent; --glow-color-brass: transparent; --glow-color-coral: transparent;
  --glow-cyan: none; --glow-brass: none; --glow-coral: none; --glow-strip: none; --glow-pulse-peak: none;
  --glow-blur-cyan: 0; --glow-blur-brass: 0; --glow-blur-coral: 0; --glow-blur-pulse: 0;
  --shadow-plate-sm: 0 1px 2px rgba(0, 0, 0, 0.35); --shadow-plate-md: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-plate-lg: 0 2px 6px rgba(0, 0, 0, 0.45); --shadow-bevel: none;
  --gradient-wallpaper: none; --gradient-wallpaper-daylight: none; --gradient-heated-metal: none;
  --gradient-neon-strip: linear-gradient(90deg, #24c0ea, #24c0ea); --gradient-plate: none;
  --gradient-brass-text: linear-gradient(90deg, #24c0ea, #24c0ea);

  /* Square corners, no chamfers */
  --radius-xs: 0; --radius-sm: 0; --radius-md: 0; --radius-lg: 0;
  --chamfer-sm: 0px; --chamfer-md: 0px; --chamfer-lg: 0px;

  --font-display: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Crisp Desktop's default (owner, 2026-11-04): the government-style black-on-white theme of the
   old Corporate mode; the navy above is its dark option (html.theme-dark, the sun/moon toggle,
   js/theme.js). Crisp Cloud stays navy only. */
html.crisp.crisp-desktop:not(.theme-dark) {
  color-scheme: light;

  /* Surfaces and text: black on white */
  --abyss: #ffffff; --deep: #f3f4f6; --panel: #f3f4f6; --sea-glow: #e7eaee;
  --bg-page: #ffffff; --bg-surface: #ffffff; --bg-raised: #f3f4f6; --bg-overlay: #ffffff;
  --bg-inset: #eceef1; --bg-terminal: #f3f4f6; --bg-hover: #eaedf1;
  --cream: #0b0c0e; --warm-cream: #1b1b1b; --sea-glass: #3d4551; --weathered: #565c65;
  --text-strong: #0b0c0e; --text-body: #1b1b1b; --text-secondary: #3d4551; --text-muted: #565c65;
  --text-disabled: #71767a; --text-on-accent: #ffffff; --terminal-text: #1b1b1b;

  /* One restrained navy accent; the Rusty colours collapse into it */
  --accent-primary: #1a4480; --accent-primary-hover: #162e51; --accent-primary-soft: #e8eef6;
  --accent-secondary: #1a4480; --accent-secondary-soft: #e8eef6; --accent-tertiary: #1a4480;
  --cyan: #1a4480; --brass: #1a4480; --coral: #1a4480; --focus-ring: #1a4480;
  --frame-lit: #71767a; --frame: #a9aeb1;

  /* Grey rules */
  --border-subtle: #dfe1e2; --border-default: #a9aeb1; --border-control: #565c65;
  --border-strong: #1b1b1b; --border-active: #1a4480; --border-warm: #a9aeb1;

  /* Status colours dark enough for white (AA) */
  --success: #216e1f; --warning: #7a4b00; --error: #b50909; --info: #1a4480;

  /* No glows, gradients or heavy shadows */
  --glow-color-cyan: transparent; --glow-color-brass: transparent; --glow-color-coral: transparent;
  --glow-cyan: none; --glow-brass: none; --glow-coral: none; --glow-strip: none; --glow-pulse-peak: none;
  --glow-blur-cyan: 0; --glow-blur-brass: 0; --glow-blur-coral: 0; --glow-blur-pulse: 0;
  --shadow-plate-sm: 0 1px 2px rgba(11, 12, 14, 0.12); --shadow-plate-md: 0 1px 3px rgba(11, 12, 14, 0.14);
  --shadow-plate-lg: 0 2px 6px rgba(11, 12, 14, 0.16); --shadow-bevel: none;
  --gradient-wallpaper: none; --gradient-wallpaper-daylight: none; --gradient-heated-metal: none;
  --gradient-neon-strip: linear-gradient(90deg, #1a4480, #1a4480); --gradient-plate: none;
  --gradient-brass-text: linear-gradient(90deg, #1a4480, #1a4480);

  /* Square corners, no chamfers */
  --radius-xs: 0; --radius-sm: 0; --radius-md: 0; --radius-lg: 0;
  --chamfer-sm: 0px; --chamfer-md: 0px; --chamfer-lg: 0px;

  /* Government-style type */
  --font-display: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Crisp Cloud's light option (owner, 2026-11-04): the same black on white, with Phalanx's orange
   as the accent. Orange text fails on white, so text and rules use a dark orange (AA) and the
   bright orange fills buttons (--accent-fill) with dark text. Dark (navy) stays the default. */
html.crisp.crisp-cloud.theme-light {
  color-scheme: light;

  /* Surfaces and text: black on white */
  --abyss: #ffffff; --deep: #f3f4f6; --panel: #f3f4f6; --sea-glow: #e7eaee;
  --bg-page: #ffffff; --bg-surface: #ffffff; --bg-raised: #f3f4f6; --bg-overlay: #ffffff;
  --bg-inset: #eceef1; --bg-terminal: #f3f4f6; --bg-hover: #eaedf1;
  --cream: #0b0c0e; --warm-cream: #1b1b1b; --sea-glass: #3d4551; --weathered: #565c65;
  --text-strong: #0b0c0e; --text-body: #1b1b1b; --text-secondary: #3d4551; --text-muted: #565c65;
  --text-disabled: #71767a; --text-on-accent: #ffffff; --terminal-text: #1b1b1b;

  /* One restrained navy accent; the Rusty colours collapse into it */
  --accent-primary: #1a4480; --accent-primary-hover: #162e51; --accent-primary-soft: #e8eef6;
  --accent-secondary: #1a4480; --accent-secondary-soft: #e8eef6; --accent-tertiary: #1a4480;
  --cyan: #1a4480; --brass: #1a4480; --coral: #1a4480; --focus-ring: #1a4480;
  --frame-lit: #71767a; --frame: #a9aeb1;

  /* Grey rules */
  --border-subtle: #dfe1e2; --border-default: #a9aeb1; --border-control: #565c65;
  --border-strong: #1b1b1b; --border-active: #1a4480; --border-warm: #a9aeb1;

  /* Status colours dark enough for white (AA) */
  --success: #216e1f; --warning: #7a4b00; --error: #b50909; --info: #1a4480;

  /* No glows, gradients or heavy shadows */
  --glow-color-cyan: transparent; --glow-color-brass: transparent; --glow-color-coral: transparent;
  --glow-cyan: none; --glow-brass: none; --glow-coral: none; --glow-strip: none; --glow-pulse-peak: none;
  --glow-blur-cyan: 0; --glow-blur-brass: 0; --glow-blur-coral: 0; --glow-blur-pulse: 0;
  --shadow-plate-sm: 0 1px 2px rgba(11, 12, 14, 0.12); --shadow-plate-md: 0 1px 3px rgba(11, 12, 14, 0.14);
  --shadow-plate-lg: 0 2px 6px rgba(11, 12, 14, 0.16); --shadow-bevel: none;
  --gradient-wallpaper: none; --gradient-wallpaper-daylight: none; --gradient-heated-metal: none;
  --gradient-neon-strip: linear-gradient(90deg, #1a4480, #1a4480); --gradient-plate: none;
  --gradient-brass-text: linear-gradient(90deg, #1a4480, #1a4480);

  /* Square corners, no chamfers */
  --radius-xs: 0; --radius-sm: 0; --radius-md: 0; --radius-lg: 0;
  --chamfer-sm: 0px; --chamfer-md: 0px; --chamfer-lg: 0px;

  /* Government-style type */
  --font-display: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent-primary: #a34f00; --accent-primary-hover: #7a3b00; --accent-primary-soft: #fff1e0;
  --accent-secondary: #a34f00; --accent-secondary-soft: #fff1e0; --accent-tertiary: #a34f00;
  --cyan: #a34f00; --brass: #a34f00; --coral: #a34f00; --focus-ring: #a34f00; --border-active: #a34f00; --info: #a34f00;
  --gradient-neon-strip: linear-gradient(90deg, #fc9418, #fc9418); --gradient-brass-text: linear-gradient(90deg, #a34f00, #a34f00);
  --accent-fill: #fc9418; --accent-fill-hover: #e8850c; --text-on-accent: #0b0c0e;
}


/* The Crisp theme on software.crispdesktop.ai and software.crispcloud.ai (ADR-042): js/site.js
   sets html.crisp by hostname; the shared tokens (assets/crisp.css) remap the colours; these
   rules flatten the kit's own plates, buttons and code. */
.crisp-only { display: none; }
html.crisp .crisp-only { display: block; }
html.crisp .nav-brand img { display: none; }
.site-nav .nav-inner { max-width: 78rem; }
.site-switch { display: inline-flex; flex: none; align-items: stretch; height: 2.25rem; box-sizing: border-box; margin-left: auto; overflow: hidden;
  border: 1px solid var(--border-control); border-radius: 999px; white-space: nowrap; align-self: center; }
.site-switch a { display: inline-flex; align-items: center; padding: 0 12px; color: var(--text-secondary); font-size: 0.875rem; font-weight: 700; line-height: 1; text-decoration: none; }
.site-switch a + a { border-left: 1px solid var(--border-control); }
.site-switch a:hover { background: var(--bg-hover); color: var(--text-strong); }
html.crisp .site-switch { border-radius: 0; }
html.crisp body { background: var(--bg-surface); color: var(--text-body); font-size: 1.0625rem; }
html.crisp body::before { display: none; }
html.crisp .site-nav { background: var(--bg-surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--border-default); }
html.crisp .nav-brand, html.crisp .nav-link { color: var(--text-strong); }
html.crisp .nav-link:hover { background: var(--bg-hover); }
html.crisp .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent-primary); }
html.crisp .nav-links { -webkit-mask-image: none; mask-image: none; }
html.crisp *, html.crisp *::before, html.crisp *::after { animation: none !important; transition: none !important; }
html.crisp h1, html.crisp h2, html.crisp h3, html.crisp h4 { font-family: var(--font-display); letter-spacing: 0; color: var(--text-strong); }
html.crisp a { color: var(--accent-primary); }
html.crisp a:hover { color: var(--accent-primary-hover); }
html.crisp .page-title::after, html.crisp .divider { box-shadow: none; background: var(--accent-primary); }

/* Every product accent becomes the one navy */
html.crisp .accent-violet, html.crisp .accent-magenta, html.crisp .accent-cyan,
html.crisp .accent-rust, html.crisp .accent-lime, html.crisp .accent-purple {
  --accent: var(--accent-primary); --accent-text: var(--accent-primary); --accent-glow: none;
}
html.crisp .product { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 0; box-shadow: none; }
html.crisp .product::before, html.crisp .product::after { display: none; }
html.crisp .product-icon { filter: none; }
html.crisp .product-icon-blank { background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border-default); border-radius: 0; }
html.crisp .product-name, html.crisp .product-name a { color: var(--text-strong); text-shadow: none; }
html.crisp .badge { background: var(--bg-surface); color: var(--text-strong); border: 1px solid var(--border-control); box-shadow: none; }
html.crisp .platform h4::after { background: var(--border-default); }
html.crisp .dl { background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 0; box-shadow: none; color: var(--text-strong); }
html.crisp .dl:hover { background: var(--accent-primary-soft); border-color: var(--accent-primary); box-shadow: none; transform: none; }
html.crisp .dl-label { color: var(--accent-primary); }
html.crisp .cmd { background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: 0; box-shadow: none; color: var(--text-strong); }
html.crisp details, html.crisp .version table { border-color: var(--border-default); }
html.crisp .sha, html.crisp .fpr { color: var(--text-secondary); }
html.crisp footer p, html.crisp footer a { color: var(--text-secondary); }
html.crisp .source-card { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 0; box-shadow: none; }
html.crisp .source-link { color: var(--accent-primary); }
html.crisp .source-link:hover { color: var(--accent-primary-hover); }

/* Crisp Desktop's sun/moon toggle (ADR-043; js/theme.js shows it on software.crispdesktop.ai) */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.25rem; height: 2.25rem; box-sizing: border-box; align-self: center;
  padding: 0; border: 1px solid var(--border-control); background: transparent; color: var(--text-body); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .icon-sun { display: none; }
html.theme-dark .theme-toggle .icon-sun { display: block; }
html.theme-dark .theme-toggle .icon-moon { display: none; }
html.crisp-desktop:not(.theme-dark) body { background: var(--bg-page); }

/* Phones: the toggle and the switch stay one height (after their base rules) */
@media (max-width: 40rem) { .site-switch { height: 2rem; } .site-switch a { padding: 0 9px; font-size: 0.75rem; } .theme-toggle { width: 2rem; height: 2rem; } }

/* The menu and the control row, as on the sites (src/css/site.css; ADR-045) */
/* ---- The menu's drop-downs (owner, 2026-11-04): related pages under one entry. They open on
   hover and keyboard focus with CSS alone; js/nav.js adds tap, Esc and aria-expanded. */
.nav-item { position: relative; }
.nav-group {
  display: flex; align-items: center; gap: 6px; padding: var(--space-2) 9px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-secondary); font: inherit; font-size: var(--text-base); font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.nav-group::after {
  content: ""; width: 0.4em; height: 0.4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}
.nav-group:hover, .nav-item:focus-within > .nav-group { background: var(--bg-hover); color: var(--text-strong); }
.nav-group:focus-visible { outline: var(--stroke-focus) solid var(--focus-ring); outline-offset: 2px; }
.nav-item.has-current > .nav-group { color: var(--cream); box-shadow: inset 0 -2px 0 var(--brass); }
.nav-sub {
  position: absolute; top: 100%; left: 0; z-index: 60; display: none; flex-direction: column; min-width: 11rem;
  margin: 0; padding: 6px; list-style: none; background: var(--bg-overlay, var(--bg-surface));
  border: 1px solid var(--border-default); border-radius: var(--radius-sm); box-shadow: var(--shadow-plate-lg);
}
.nav-item:hover > .nav-sub, .nav-item:focus-within > .nav-sub, .nav-item.open > .nav-sub { display: flex; }
.nav-item.shut > .nav-sub { display: none !important; }   /* Esc closes it even under the pointer */
.nav-item:last-child .nav-sub { left: auto; right: 0; }
.nav-sub-link {
  display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--text-secondary);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav-sub-link:hover { background: var(--bg-hover); color: var(--text-strong); }
.nav-sub-link[aria-current="page"] { color: var(--cream); box-shadow: inset 2px 0 0 var(--brass); }
/* Phones: the menu wraps on its own row; no scrolling, so the drop-downs aren't clipped */
@media (max-width: 40rem) {
  .nav-inner { justify-content: space-between; padding-block: var(--space-2); }
  .nav-links { flex-wrap: wrap; justify-content: flex-start; gap: 0; width: 100%; }
  .nav-link, .nav-group { padding: var(--space-2) 5px; font-size: 0.8125rem; white-space: nowrap; }
  .nav-group { gap: 4px; }
  .nav-sub { min-width: 9.5rem; }
  .nav-sub-link { font-size: var(--text-sm); }
}
/* The control row (owner, 2026-11-04): "choose your edition:", the switch, then the theme toggle
   at the far right where a site has one; one height, one row */
.nav-controls { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.nav-controls .site-switch { margin-left: 0; }
.edition-label { color: var(--text-muted); font-size: var(--text-sm); line-height: 2.25rem; white-space: nowrap; }
@media (max-width: 40rem) {
  .edition-label { font-size: 0.75rem; line-height: 2rem; }
  .nav-controls { order: 2; margin-left: 0; width: 100%; justify-content: flex-end; }
  .nav-inner .nav-links { order: 3; }
}
