/* CAIN-42 public truth layer: shared by cainstudio.online, mcpgate.online and clawx.click.
   One identity system across the three sites. Keep this file byte-identical in
   platform-gateway/frontend/ and clawx-site/ (tests/test_cain42_public_truth_layer.py checks). */
:root {
  --bg: #060a17;           /* deep navy */
  --bg-raised: #0d1328;
  --bg-sunken: #040711;
  --line: #1a2342;
  --line-strong: #2b3760;
  --text: #eef1f8;
  --text-dim: #a3adc8;
  --text-faint: #7c86a6;
  --red: #ff3b4a;          /* the one accent: CAIN red, matches the 5-arm mark */
  --red-dim: #3a0f18;
  --accent-2: #ff8a80;
  --st-live: #3fb68b;      /* LIVE / ENFORCING / VERIFIED: evidence exists and was checked */
  --st-live-bg: #0f2a20;
  --st-partial: #d9a441;   /* SHADOW / TESTED / SIMULATED / BENCHMARKED / RUNNING */
  --st-partial-bg: #2d2412;
  --st-none: #8b929c;      /* NOT IMPLEMENTED / NOT LIVE / UNVERIFIED */
  --st-none-bg: #1b1e23;
  --st-fail: #ff6b70; /* was #e5484d, 4.1:1 on --st-fail-bg; 5.8:1 */
  --st-fail-bg: #3a1618;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.c42 {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans); overflow-x: hidden;
}
.c42 a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.c42 a:hover { text-decoration-color: var(--red); }
.c42 code, .c42 pre, .c42 .mono { font-family: var(--mono); font-size: 13px; }
.c42 pre { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; white-space: pre; }
.c42-wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.c42-skip { position: absolute; left: -9999px; }
.c42-skip:focus { left: 16px; top: 8px; background: var(--bg-raised); padding: 6px 10px; z-index: 10; }

/* Header: brand left, site nav, cross-site tabs upper right */
.c42-top { border-bottom: 1px solid var(--line); background: var(--bg-sunken); position: relative; z-index: 70; }
.c42-top .c42-wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap; }
.c42-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; font-weight: 600; letter-spacing: .02em; }
.c42-brand img { width: 22px; height: 22px; display: block; }
.c42-brand small { color: var(--text-faint); font-weight: 400; font-family: var(--mono); font-size: 12px; }
.c42-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.c42-nav a { text-decoration: none; color: var(--text-dim); }
.c42-nav a:hover, .c42-nav a[aria-current="page"] { color: var(--text); }
/* Grouped mega-menu (CAIN Studio). Panels drop from the header; <details> works with click and hover, no JS. */
.c42-menu > summary { list-style: none; cursor: pointer; color: var(--text-dim); }
.c42-menu > summary::-webkit-details-marker { display: none; }
.c42-menu > summary::marker { content: ""; }
.c42-menu > summary::after { content: "\25BE"; font-size: 9px; margin-left: 4px; opacity: .65; vertical-align: 1px; }
.c42-menu > summary:hover, .c42-menu[open] > summary, .c42-menu:focus-within > summary { color: var(--text); }
/* Mega-menu: a wide panel centred under the header, links flowing left-to-right in a responsive grid.
   Never taller than the viewport; scrolls if a group is huge; closes on outside-click / Escape (cain42.js). */
.c42-menu-panel { position: absolute; left: 50%; transform: translateX(-50%); top: 100%; z-index: 80; display: none;
  width: min(1240px, 96vw); padding: 18px 24px 22px; margin-top: 0;
  background: linear-gradient(#0b1020, #0a0e1c); border: 1px solid var(--line); border-top: 2px solid var(--red);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.03);
  max-height: min(74vh, 640px); overflow: auto; overscroll-behavior: contain; }
.c42-menu:hover .c42-menu-panel, .c42-menu[open] .c42-menu-panel, .c42-menu:focus-within .c42-menu-panel {
  display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: flex-start; }
.c42-mega-col { min-width: 168px; max-width: 300px; }
.c42-mega-col-h { display: block; margin: 2px 0 8px; padding-left: 12px;
  font: 700 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.c42-menu-panel a { display: block; padding: 9px 12px; white-space: nowrap; color: var(--text-dim); text-decoration: none;
  border-radius: 9px; border-left: 2px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease; }
.c42-menu-panel a:hover, .c42-menu-panel a:focus-visible { color: var(--text); background: rgba(255,59,74,.12); border-left-color: var(--red); }
.c42-menu-panel a:focus-visible { outline: 2px solid rgba(255,59,74,.5); outline-offset: 1px; }
/* Mobile hamburger drawer: the checkbox lives at the top of the header and toggles the nav (no JS). */
.c42-nav-toggle { display: none; }
.c42-burger { display: none; }
.c42-sites { margin-left: auto; display: flex; gap: 2px; font-family: var(--mono); font-size: 12px; }
.c42-sites a { text-decoration: none; color: var(--text-dim); padding: 5px 9px; border: 1px solid var(--line); }
.c42-sites a:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.c42-sites a:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.c42-sites a[aria-current="true"] { color: var(--text); border-color: var(--red); background: var(--red-dim); }

/* Hero */
.c42-hero { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.c42-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.c42-hero h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.15; margin: 0 0 16px; font-weight: 650; letter-spacing: -.01em; max-width: 22ch; }
.c42-lede { color: var(--text-dim); font-size: 17px; max-width: 70ch; margin: 0 0 20px; }
.c42-flow { font-family: var(--mono); font-size: 13px; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.c42-flow li::after { content: "→"; margin-left: 10px; color: var(--text-faint); }
.c42-flow li:last-child::after { content: ""; }
.c42-flow b { color: var(--text); font-weight: 600; }
.c42-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.c42-btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none !important; font-size: 14px; background: var(--bg-raised); }
.c42-btn.primary { border-color: var(--red); background: var(--red-dim); }
.c42-btn:hover { border-color: var(--red); }

/* Sections */
.c42-sec { padding: 40px 0; border-bottom: 1px solid var(--line); }
.c42-sec h2 { font-size: 20px; margin: 0 0 6px; font-weight: 600; }
.c42-sec > .c42-wrap > p.c42-sub { color: var(--text-dim); margin: 0 0 20px; max-width: 75ch; }
.c42-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.c42-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.c42-card h3 { font-size: 14px; margin: 0 0 6px; font-weight: 600; }
.c42-card p { margin: 0; color: var(--text-dim); font-size: 14px; }
.c42-card .c42-src { margin-top: 10px; font-size: 12px; font-family: var(--mono); color: var(--text-faint); overflow-wrap: anywhere; }
.c42-card .c42-src a { color: var(--text-faint); }

/* Status badges. Every badge on these pages is rendered from a fetched source and links to it. */
.st { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; vertical-align: 1px; }
.st-live { color: var(--st-live); background: var(--st-live-bg); }
.st-partial { color: var(--st-partial); background: var(--st-partial-bg); }
.st-none { color: var(--st-none); background: var(--st-none-bg); }
.st-fail { color: var(--st-fail); background: var(--st-fail-bg); }
.st-wait { color: var(--text-faint); border-style: dashed; }

/* Status table */
.c42-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c42-table th, .c42-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.c42-table th { font-weight: 600; color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.c42-table td.src { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.c42-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.c42-table-wrap .c42-table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .c42-table.stack thead { display: none; }
  .c42-table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .c42-table.stack td { display: block; border: 0; padding: 3px 10px; }
}

/* Architecture diagram */
.c42-diagram { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; }
.c42-diagram svg { display: block; width: 100%; min-width: 640px; height: auto; }
.c42-diagram text { font-family: var(--sans); fill: var(--text); }
.c42-diagram .t-dim { fill: var(--text-dim); }
.c42-diagram .t-mono { font-family: var(--mono); }
.c42-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); margin-top: 10px; }

/* Try-it chain */
.c42-try-out { margin-top: 14px; }
.c42-stage { display: grid; grid-template-columns: 120px 150px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.c42-stage .mono { color: var(--text); }
.c42-stage span:last-child { color: var(--text-dim); }
@media (max-width: 640px) { .c42-stage { grid-template-columns: 1fr; gap: 2px; } }

.c42-note { color: var(--text-dim); font-size: 13px; }
.c42-warn { border-left: 3px solid var(--st-partial); padding: 8px 12px; background: var(--bg-raised); color: var(--text-dim); font-size: 14px; margin: 16px 0 0; }
.c42-foot { padding: 28px 0 48px; color: var(--text-faint); font-size: 13px; }
.c42-foot a { color: var(--text-dim); }
.c42-foot .c42-wrap { display: flex; gap: 18px; flex-wrap: wrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.c42-diagram .box rect { fill: var(--bg-raised); stroke: var(--line-strong); stroke-width: 1.5; }
.c42-diagram .box.accent rect { stroke: var(--red); }
.c42-diagram .box.dashed rect { fill: none; stroke-dasharray: 6 5; }
.c42-diagram .edge line { stroke: var(--text-faint); stroke-width: 1.5; }
.c42-diagram .edge.dashed line { stroke-dasharray: 5 4; }
.c42-diagram .ah { fill: var(--text-faint); }

/* ---- Simple homepage layout, dark navy (2026-09-27) ---- */
.c42-strip { background: var(--bg-sunken); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-faint); }
.c42-strip .c42-wrap { display: flex; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.c42-strip .c42-sites { margin-left: auto; }
.c42-strip .c42-sites a { padding: 3px 9px; }
.c42-top { position: sticky; top: 0; z-index: 20; background: rgba(6,10,23,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.c42-top .c42-wrap { min-height: 64px; }
.c42-nav { gap: 22px; font-size: 14.5px; }
.c42-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.c42-signin { color: var(--text-dim) !important; text-decoration: none !important; font-size: 14px; }
.c42-signin:hover { color: var(--text) !important; }
.c42-btn { border-radius: 8px; padding: 10px 18px; font-weight: 550; transition: border-color .15s, background .15s; }
.c42-btn.primary { background: #d42232; border-color: #d42232; color: #fff !important; }
.c42-btn.primary:hover { background: #e02a3a; border-color: #e02a3a; }

.c42-hero { position: relative; overflow: hidden; padding: 110px 0 96px; text-align: center; border-bottom: 0;
  background: radial-gradient(60% 55% at 50% 0%, rgba(255,59,74,.26), transparent 70%), radial-gradient(40% 40% at 85% 30%, rgba(255,120,90,.08), transparent 70%); }
.c42-hero .c42-kicker { color: var(--accent-2); }
.c42-hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; letter-spacing: -.025em; max-width: 16ch; margin: 0 auto 22px; font-weight: 700; }
.c42-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--red), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.c42-hero .c42-lede { font-size: clamp(17px, 2vw, 20px); max-width: 58ch; margin: 0 auto 32px; }
.c42-hero .c42-cta { justify-content: center; }
.c42-hero .c42-btn { padding: 13px 24px; font-size: 15px; }

.c42-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 10px; }
.c42-h2, .c42-sec h2.c42-h2 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.015em; font-weight: 680; margin: 0 0 12px; }
.c42-sec { padding: 72px 0; }

.c42-band { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-sunken); text-align: center; }
.c42-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; text-align: left; }
.c42-steps li { position: relative; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.c42-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 38px; color: var(--red); font-size: 18px; z-index: 1; }
.c42-steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red-dim); color: #ffb3b8; font-weight: 700; margin-bottom: 14px; border: 1px solid var(--red); }
.c42-steps h3 { font-size: 20px; margin: 0 0 8px; }
.c42-steps p { margin: 0; color: var(--text-dim); }

.c42-simple { text-align: center; }
.c42-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; text-align: left; }
.c42-benefit { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-raised), var(--bg)); }
.c42-benefit h3 { font-size: 18px; margin: 0 0 8px; }
.c42-benefit p { margin: 0; color: var(--text-dim); }

.c42-final { padding: 80px 0; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(50% 80% at 50% 100%, rgba(255,59,74,.20), transparent 70%); }
.c42-final h2 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 10px; letter-spacing: -.015em; }
.c42-final p { color: var(--text-dim); margin: 0 0 26px; font-size: 17px; }
.c42-final .c42-cta { justify-content: center; }

.c42-under { padding: 64px 0 8px; margin-top: 40px; }
.c42-under h2 { font-size: 22px; margin: 0 0 6px; }
.c42-under .c42-sub { color: var(--text-dim); max-width: 70ch; margin: 0; }

.c42-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 28px; }
.c42-stat { background: var(--bg-raised); padding: 18px 20px; text-decoration: none !important; display: block; }
.c42-stat b { display: block; font-size: 26px; letter-spacing: -.01em; }
.c42-stat span { color: var(--text-dim); font-size: 13px; }
.c42-stat:hover { background: #151c36; }

.c42-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.c42-feat { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.c42-feat svg { width: 28px; height: 28px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.c42-feat h3 { font-size: 16px; margin: 0 0 6px; }
.c42-feat p { color: var(--text-dim); font-size: 14px; margin: 0 0 12px; }
.c42-more { font-size: 13px; color: #ffb3b8 !important; text-decoration: none !important; }

.c42-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.c42-code { background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px; font-size: 13px; line-height: 1.6; color: var(--text-dim); margin: 0; }
.c42-code .c { color: var(--text); }
.c42-code .k { color: var(--accent-2); }

.c42-details { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.c42-details > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; }
.c42-details > summary::before { content: "+"; display: inline-block; width: 18px; color: var(--red); }
.c42-details[open] > summary::before { content: "−"; }
.c42-details > :not(summary) { padding: 0 18px 18px; }
.c42-details .c42-sec { padding: 24px 0; }
details.c42-wrap.c42-details { margin: 18px auto; }

.c42-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.c42-foot .c42-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.c42-foot h4 { color: var(--text); font-size: 13px; margin: 0 0 10px; }
.c42-foot .c42-wrap > div > a { display: block; text-decoration: none; margin: 0 0 7px; }
.c42-foot-brand p { margin: 10px 0 0; max-width: 32ch; }

@media (max-width: 860px) {
  .c42-steps, .c42-benefits, .c42-feats, .c42-split { grid-template-columns: 1fr; }
  .c42-steps li::after { display: none; }
  .c42-stats { grid-template-columns: repeat(2, 1fr); }
  .c42-foot .c42-wrap { grid-template-columns: 1fr 1fr; }
  /* Mobile: hide the desktop nav behind a hamburger; show it as a full-width drawer when the checkbox is on. */
  .c42-nav { display: none; }
  .c42-burger { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px;
    font-size: 20px; line-height: 1; padding: 5px 11px; cursor: pointer; color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius); }
  .c42-burger:hover { border-color: var(--text-dim); }
  /* The checkbox stays visually hidden but focusable (author CSS overrides [hidden]), so keyboard and switch users can
     open the menu: Tab reaches it, Space toggles it, and the focus ring shows on the burger. */
  .c42-nav-toggle { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
  .c42-nav-toggle:focus-visible ~ .c42-burger { outline: 2px solid var(--red); outline-offset: 2px; }
  .c42-nav-toggle:checked ~ .c42-nav { display: flex; flex-direction: column; flex-basis: 100%; width: 100%;
    gap: 0; padding: 6px 0 14px; border-top: 1px solid var(--line);
    max-height: min(72vh, 640px); max-height: min(72dvh, 640px); overflow-y: auto; overscroll-behavior: contain; }
  .c42-nav-toggle:checked ~ .c42-nav > a { padding: 9px 0; border-bottom: 1px solid var(--line); }
  .c42-menu { width: 100%; }
  .c42-menu > summary { padding: 9px 0; border-bottom: 1px solid var(--line); }
  .c42-menu-panel { position: static; left: auto; top: auto; transform: none; width: 100%; max-width: none; margin: 0;
    padding: 6px 2px 10px; background: transparent; border: 0;
    border-radius: 0; box-shadow: none; }
  .c42-menu:hover .c42-menu-panel, .c42-menu:focus-within .c42-menu-panel { display: none; }
  .c42-menu[open] .c42-menu-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px; max-height: 60vh; overflow: auto; align-content: start; }
  .c42-mega-col { min-width: 0; max-width: none; }
  .c42-mega-col-h { margin-bottom: 6px; padding-left: 4px; }
  .c42-menu-panel a { padding: 8px 4px; white-space: normal; }
  .c42-hero { padding: 72px 0 64px; }
  .c42-sec, .c42-band { padding: 52px 0; }
}
@media (max-width: 640px) {
  .c42-strip .c42-wrap > span { display: none; }
  .c42-strip .c42-sites { margin: 0 auto; }
  .c42-strip .c42-sites a { padding: 3px 7px; font-size: 11px; }
  .c42-brand small { display: none; }
  .c42-top .c42-wrap { flex-wrap: wrap; min-height: 58px; }
  .c42-signin { font-size: 13px; white-space: nowrap; }
  .c42-hero .c42-cta .c42-btn { width: 100%; text-align: center; }
  .c42-stats { grid-template-columns: 1fr 1fr; }
  .c42-foot .c42-wrap { grid-template-columns: 1fr; }
}
/* Phones: the three-site switcher, long inline code and wide tables must fit the screen,
   or mobile browsers widen the whole page and it renders zoomed out and pans sideways. */
@media (max-width: 400px) {
  .c42-strip .c42-sites { flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .c42-strip .c42-sites a { padding: 3px 5px; font-size: 10.5px; }
  .c42 main, .c42-sec { overflow-wrap: anywhere; }
  .c42 main code, .c42-sec code { overflow-wrap: anywhere; word-break: break-word; }
  .c42-table:not(.stack) { display: block; max-width: 100%; overflow-x: auto; }
}
.c42-mark { display: block; width: clamp(200px, 26vw, 340px); height: auto; margin: 0 auto 28px; filter: drop-shadow(0 0 36px rgba(255,59,74,.55)) drop-shadow(0 0 90px rgba(255,59,74,.25)); }
/* Homepage motto: the one-line identity, set in a terminal/matrix face directly under the 5-arm mark. */
.c42-motto { margin: 0 auto 26px; font-family: var(--mono); font-weight: 700; font-size: clamp(12.5px, 1.55vw, 17px); line-height: 1.45; letter-spacing: .3em; text-transform: uppercase; color: #6bffa6; text-shadow: 0 0 6px rgba(107,255,166,.6), 0 0 22px rgba(34,255,136,.38); animation: c42-motto-flicker 4.5s steps(1,end) infinite; }
@keyframes c42-motto-flicker { 0%, 94%, 100% { opacity: 1; } 95% { opacity: .68; } 96% { opacity: 1; } 97% { opacity: .82; } 98% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .c42-motto { animation: none; } }
.c42-split > * { min-width: 0; }
.c42-diagram { max-width: 100%; }
/* The gateway's injected company footer, on these pages: no sideways scroll on phones */
@media (max-width: 640px) { .cain-footer .cf-top { grid-template-columns: 1fr 1fr !important; } .cain-footer .cf-mission { grid-column: 1 / -1; } .cain-footer .cf-col { min-width: 0; } }
button.c42-btn { color: var(--text); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; }
button.c42-btn:hover { background: #151c36; }
/* Utility classes instead of style="" attributes: clawx.click's CSP (style-src 'self') ignores inline styles */
.c42-mt0 { margin-top: 0; } .c42-mt24 { margin-top: 24px; } .c42-mt12 { margin-top: 12px; } .c42-mt18 { margin-top: 18px; }
.c42-lh16 { line-height: 1.6; }
.c42-pre-box { overflow: auto; padding: 10px; border: 1px solid rgba(128,128,128,.3); border-radius: 6px; }

/* Rolling proof ticker (2026-09-29): click any item to reach the page that shows its evidence.
   No inline styles (clawx.click CSP style-src 'self'); the global prefers-reduced-motion rule
   above stops the animation, and this falls back to a scrollable strip for those visitors. */
.c42-ticker {
  background: radial-gradient(130% 240% at 50% 50%, rgba(255,59,74,.18), rgba(58,15,24,.34) 46%, var(--bg-sunken) 100%);
  border-bottom: 1px solid rgba(255,59,74,.40);
  box-shadow: 0 0 0 1px rgba(255,59,74,.10), 0 8px 26px -14px rgba(255,59,74,.55);
  animation: c42-ticker-neon 6.5s ease-in-out infinite;
  overflow: hidden; position: relative;
}
/* Slow red neon pulse: draws the eye without flashing. Disabled for prefers-reduced-motion
   by the global rule above, which leaves the static red glow in place. */
@keyframes c42-ticker-neon {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,59,74,.10), 0 6px 18px -14px rgba(255,59,74,.40); border-bottom-color: rgba(255,59,74,.30); }
  50%      { box-shadow: 0 0 0 1px rgba(255,59,74,.26), 0 12px 40px -8px rgba(255,59,74,.85); border-bottom-color: rgba(255,59,74,.70); }
}
.c42-ticker::before, .c42-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 56px; pointer-events: none; z-index: 2; }
.c42-ticker::before { left: 0; background: linear-gradient(90deg, rgba(4,7,17,.96), transparent); }
.c42-ticker::after { right: 0; background: linear-gradient(270deg, rgba(4,7,17,.96), transparent); }
.c42-ticker-track { display: flex; width: max-content; animation: c42-ticker-scroll 1200s linear infinite; }
.c42-ticker:hover .c42-ticker-track, .c42-ticker:focus-within .c42-ticker-track { animation-play-state: paused; }
.c42-ticker-items { display: flex; align-items: center; padding: 9px 0; white-space: nowrap; }
.c42-ticker-items a { color: #d3dbf0; text-decoration: none; font-size: 13px; padding: 0 4px; text-shadow: 0 0 10px rgba(255,59,74,.35); }
.c42-ticker-items a:hover, .c42-ticker-items a:focus { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.c42-ticker .c42-tk-claim { font-weight: 550; }
.c42-ticker .c42-tk-id { color: var(--text-faint); font-family: var(--mono); font-size: 11px; margin-left: 5px; }
.c42-ticker .c42-tk-sep { color: var(--red); opacity: .7; padding: 0 12px; font-size: 8px; }
@keyframes c42-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .c42-ticker { overflow-x: auto; } .c42-ticker-track { animation: none; } }

/* ---- laptops and desktops (owner request 2026-09-30): use the whole screen width. Phones and tablets are unchanged:
   the rule needs a wide viewport AND a precise pointer (mouse/trackpad), which touch tablets do not report. ---- */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  :root { --max: min(94vw, 1840px); }
  .c42-sec > .c42-wrap > p.c42-sub, .c42-under .c42-sub { max-width: 130ch; }
}

/* ---- Live soak countdown clock (owner request 2026-09-30). Red, monospaced, ticks every second.
   Text + colour only; no layout change. ---- */
.c42-soak-clock-live {
  display: inline-block;
  margin: .35rem 0 0;
  padding: .2rem .5rem;
  border: 1px solid #e11d2e;
  border-radius: 5px;
  background: rgba(225, 29, 46, .08);
  color: #e11d2e;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
  line-height: 1.4;
}
.c42-soak-clock-live b { color: #e11d2e; letter-spacing: .02em; }
.c42-soak-clock .c42-clock-note, .c42-soak-clock-live .c42-clock-note { color: #9ca3af; font-size: .85em; font-family: inherit; }

/* ---- KEYSTONE live demo: FALSEWORK finds the defect, Claude fixes it, CAIN-42 proves and signs it ---- */
.ks-sec .ks-lede { max-width: 78ch; }
.ks-tag { margin: 6px 0 16px; padding: 14px 18px; border-left: 3px solid var(--red); background: var(--bg-raised); border-radius: 10px; font-size: 16px; color: var(--text); }
.ks-tag b { color: var(--accent-2); }
.ks-flow { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 20px; }
.ks-flow li { flex: 1 1 220px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-sunken); color: var(--text-dim); font-size: 13.5px; }
.ks-flow li b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; }
.ks { border: 1px solid var(--line); border-radius: 14px; background: #0a0e1c; overflow: hidden; box-shadow: 0 26px 60px -40px rgba(34,211,238,.45); }
.ks-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #0b1020; }
.ks-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ks-tab { font: 500 12.5px/1.2 var(--sans); color: var(--text-dim); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.ks-tab:hover { color: var(--text); border-color: var(--line-strong); }
.ks-tab[aria-selected="true"] { color: #fff; border-color: var(--red); background: var(--red-dim); }
.ks-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-btn { font: 600 13px/1 var(--sans); color: var(--text); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 14px; cursor: pointer; }
.ks-btn:hover { border-color: var(--text-dim); }
.ks-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.ks-btn:disabled { opacity: .5; cursor: not-allowed; }
.ks-body { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
.ks-pane { min-width: 0; padding: 14px 16px; }
.ks-pane-code { border-right: 1px solid var(--line); }
.ks-pane-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ks-file { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.ks-badge { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--line); border-radius: 5px; padding: 4px 7px; }
.ks-code { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 10px; padding: 10px 0; overflow: auto; max-height: 460px; }
.ks-line { display: flex; gap: 12px; padding: 0 12px; white-space: pre; }
.ks-line.ks-flag { background: rgba(255,59,74,.14); box-shadow: inset 3px 0 0 var(--red); }
.ks-ln { width: 2.4em; text-align: right; color: var(--text-faint); user-select: none; flex: none; }
.ks-src { color: #d7e2f5; }
.ks-status { font: 500 13px/1.5 var(--mono); color: var(--text-dim); padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; margin-bottom: 12px; }
.ks-status.ks-busy { color: #7dd3fc; border-color: rgba(34,211,238,.5); }
.ks-status.ks-ok { color: var(--st-live); border-color: rgba(63,182,139,.5); }
.ks-status.ks-warn { color: var(--st-partial); border-color: rgba(217,164,65,.5); }
.ks-grade { font: 700 12px/1.4 var(--mono); color: var(--text); margin-bottom: 8px; }
.ks-finding { border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg-sunken); }
.ks-finding p { margin: 6px 0 0; color: var(--text-dim); font-size: 13px; }
.ks-sev { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; padding: 3px 6px; border-radius: 4px; }
.ks-critical, .ks-high { background: #3a1618; color: #ff9aa2; }
.ks-medium { background: #2d2412; color: #e7c072; }
.ks-low { background: #1b1e23; color: #a9b1c4; }
.ks-check { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.ks-result:empty { display: none; }
.ks-verdict { font: 700 13.5px/1.4 var(--sans); padding: 12px 14px; border-radius: 10px; margin: 4px 0 12px; }
.ks-v-ok { background: var(--st-live-bg); color: #7ff0c0; border: 1px solid rgba(63,182,139,.5); }
.ks-v-no { background: var(--st-partial-bg); color: #f0cd8a; border: 1px solid rgba(217,164,65,.5); }
.ks-result h4 { margin: 16px 0 8px; font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.ks-reason { color: #f0cd8a; font-size: 13px; margin: 4px 0; }
.ks-note { color: var(--text-dim); font-size: 13px; margin: 0 0 10px; }
.ks-diff { font-family: var(--mono); font-size: 12px; line-height: 1.55; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow: auto; max-height: 320px; margin: 0; white-space: pre; }
.ks-add { color: #7ff0c0; }
.ks-del { color: #ff9aa2; }
.ks-tests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.ks-tcol { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--bg-sunken); }
.ks-tlabel { font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 8px; }
.ks-trow { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 3px 0; }
.ks-tname { color: var(--text-dim); }
.ks-pass .ks-tmark { color: var(--st-live); }
.ks-nopass .ks-tmark { color: #ff9aa2; }
.ks-evidence { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg-sunken); }
.ks-kv { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; }
.ks-k { flex: 0 0 130px; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.ks-vv { font-family: var(--mono); font-size: 11.5px; color: #cfe0f5; word-break: break-all; }
.ks-verify { margin-top: 10px; }
.ks-vout { margin-top: 8px; font-size: 13px; }
.ks-vout.ks-pass { color: #7ff0c0; }
.ks-vout.ks-nopass { color: #f0cd8a; }
.ks-raw { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }
.ks-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.ks-moat { margin: 14px 0 0; padding: 14px 18px; border-radius: 10px; background: var(--bg-raised); border: 1px solid var(--line); border-left: 3px solid var(--red); color: var(--text); font-size: 15px; }
.ks-moat b { color: var(--accent-2); }
.ks-recorded { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: rgba(63,182,139,.10); border: 1px solid rgba(63,182,139,.4); color: #9ff0c8; font-size: 13.5px; font-family: var(--mono); }
.ks-seal { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(34,211,238,.10); border: 1px dashed rgba(34,211,238,.55); color: #bff0ff; font: 700 12px/1.5 var(--mono); letter-spacing: .02em; animation: ks-seal-in .5s ease-out both; }
@keyframes ks-seal-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ks-seal { animation: none; } }
.ks-stages { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(11,16,32,.6); }
.ks-st { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--text-faint); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; transition: color .15s, border-color .15s, background .15s; }
.ks-st b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-raised); color: var(--text-dim); font-size: 11px; }
.ks-st-active { color: #cfe9f5; border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.08); }
.ks-st-active b { background: #22d3ee; color: #04121a; }
.ks-st-done { color: #9ff0c8; border-color: rgba(63,182,139,.5); background: rgba(63,182,139,.08); }
.ks-st-done b { background: #3fb68b; color: #04121a; }
.ks-st-done::after { content: " \2713"; color: #7ff0c0; }
.ks-st-active { animation: ks-step-pulse 1.25s ease-in-out infinite; }
@keyframes ks-step-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); } 50% { box-shadow: 0 0 0 5px rgba(34,211,238,.14); } }
.ks-st-active::after { content: " \25B6"; color: #7dd3fc; }
.ks-st b { width: 20px; height: 20px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .ks-st-active { animation: none; } }
.ks-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; margin: 12px 0; }
.ks-metric { display: flex; flex-direction: column; gap: 3px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg-sunken); }
.ks-mk { font: 600 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.ks-mv { font: 700 13px/1.2 var(--mono); color: var(--text); word-break: break-word; }
.ks-mv.ks-ok { color: #7ff0c0; }
.ks-mv.ks-warn { color: #f0cd8a; }
.ks-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.ks-ccol { min-width: 0; }
.ks-clabel { font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 6px; }
.ks-ccode { max-height: 320px; }
.ks-code.ks-scanning { position: relative; overflow: hidden; }
.ks-code.ks-scanning::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none;
  background: linear-gradient(180deg, rgba(34,211,238,0), rgba(34,211,238,.18), rgba(255,59,74,.42), rgba(34,211,238,.18), rgba(34,211,238,0));
  box-shadow: 0 0 26px rgba(255,59,74,.55); animation: ks-sweep 1.05s linear infinite; }
@keyframes ks-sweep { from { transform: translateY(-50px); } to { transform: translateY(520px); } }
.ks-line.ks-hit { background: rgba(255,59,74,.34) !important; box-shadow: inset 3px 0 0 #ff3b4a; }
.ks-line.ks-hit .ks-ln { color: #ff9aa2; }
.ks-scanning .ks-src { text-shadow: 0 0 6px rgba(255,59,74,.3); }
.ks-code { position: relative; }
.ks-line.ks-active-line { background: rgba(34,211,238,.16); box-shadow: inset 3px 0 0 #22d3ee; }
.ks-line.ks-active-line .ks-ln { color: #7dd3fc; }
.ks-line.ks-checked .ks-ln { position: relative; }
.ks-line.ks-checked .ks-ln::after { content: "\2713"; position: absolute; left: -14px; color: rgba(63,182,139,.85); font-size: 10px; }
@media (prefers-reduced-motion: reduce) { .ks-code.ks-scanning::after { animation: none; } }
.ks-code.ks-fixing { position: relative; overflow: hidden; }
.ks-code.ks-fixing::before { content: "CLAUDE CODE \25B6 FIXING"; position: absolute; top: 8px; right: 10px; z-index: 3; pointer-events: none;
  font: 700 10px/1 var(--mono); letter-spacing: .12em; color: #7ff0c0; background: rgba(63,182,139,.16); border: 1px solid rgba(63,182,139,.55); border-radius: 5px; padding: 4px 7px; }
.ks-code.ks-fixing::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none;
  background: linear-gradient(180deg, rgba(63,182,139,0), rgba(63,182,139,.28), rgba(34,211,238,.22), rgba(63,182,139,0));
  box-shadow: 0 0 24px rgba(63,182,139,.5); animation: ks-sweep 0.9s linear infinite; }
.ks-line.ks-fixhit { background: rgba(34,211,238,.30) !important; box-shadow: inset 3px 0 0 #22d3ee; }
.ks-line.ks-fixed { background: rgba(63,182,139,.20) !important; box-shadow: inset 3px 0 0 #3fb68b; }
.ks-line.ks-fixed .ks-src { text-decoration: line-through; text-decoration-color: rgba(63,182,139,.8); }
.ks-download { display: inline-block; margin-top: 12px; }
a.ks-btn { display: inline-block; text-decoration: none; }
.ks-hint { color: var(--text-faint); font: 400 12px/1.4 var(--mono); }
.ks-input { width: 100%; min-height: 220px; resize: vertical; background: var(--bg-sunken); color: #d7e2f5; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.ks-input:focus { outline: 2px solid rgba(34,211,238,.5); outline-offset: 1px; }
.ks-input.ksy-scanning { border-color: rgba(255,59,74,.6); animation: ksy-scan 1.1s ease-in-out infinite; }
@keyframes ksy-scan { 0%,100% { box-shadow: 0 0 0 1px rgba(255,59,74,.22), 0 0 12px -6px rgba(255,59,74,.4); } 50% { box-shadow: 0 0 0 1px rgba(255,59,74,.6), 0 0 30px -4px rgba(255,59,74,.8); } }
@media (prefers-reduced-motion: reduce) { .ks-input.ksy-scanning { animation: none; } }
.ks-actions2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ks-run { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.ks-run:last-child { border-bottom: 0; }
.ks-run-v { font: 700 11px/1 var(--mono); letter-spacing: .04em; color: #7ff0c0; }
.ks-run-m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: 12.5px; }
.ksc-live { color: var(--st-live); border-color: rgba(63,182,139,.5); }
.ksc-live::before { content: "\25CF"; margin-right: 5px; animation: ksc-pulse 1.6s ease-in-out infinite; }
@keyframes ksc-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ksc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ksc-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: var(--bg-sunken); }
.ksc-tk { font: 600 10px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.ksc-tv { font: 700 20px/1.1 var(--mono); color: #eef1f8; overflow-wrap: anywhere; }
.ksc-tile.ksc-ok .ksc-tv { color: #7ff0c0; }
.ksc-tile.ksc-bad .ksc-tv { color: #ff9aa2; }
.ksc-taxonomy { margin-bottom: 14px; }
.ksc-tax-row { display: flex; align-items: baseline; gap: 10px; padding: 5px 2px; border-bottom: 1px solid var(--line); }
.ksc-tax-row:last-child { border-bottom: 0; }
.ksc-tax-name { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; color: #cfd6ea; overflow-wrap: anywhere; }
.ksc-tax-count { font: 700 13px/1 var(--mono); color: var(--accent-2); }
.ksc-feed-row { display: flex; align-items: center; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.ksc-feed-row:last-child { border-bottom: 0; }
.ksc-fv { font: 700 10.5px/1 var(--mono); letter-spacing: .03em; }
.ksc-fv.ksc-ok { color: #7ff0c0; } .ksc-fv.ksc-warn { color: #f0cd8a; }
.ksc-fp { font-family: var(--mono); font-size: 12px; color: var(--text); }
.ksc-fm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); font-size: 11.5px; }
.ksc-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 18px; padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(11,16,32,.55); }
.ksc-ctl { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; min-width: 0; }
.ksc-ck { flex: 0 0 96px; font: 600 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.ksc-cv { font-family: var(--mono); font-size: 11.5px; color: #cfe0f5; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .ksc-live::before { animation: none; } }
@media (prefers-reduced-motion: reduce) { .ks-code.ks-fixing::after { animation: none; } }
@media (max-width: 900px) { .ks-compare { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ks-body { grid-template-columns: 1fr; } .ks-pane-code { border-right: 0; border-bottom: 1px solid var(--line); } .ks-tests { grid-template-columns: 1fr; } .ks-k { flex-basis: 96px; } }

/* Top 25 menu badge — CSP-safe (2026-11-05): no inline style, clawx.click serves style-src 'self'. */
.c42-menu.c42-top25 > summary { color: #0b0f17; background: #22d3ee; font-weight: 900; border-radius: 7px; padding: 2px 10px; }
