/* TeranoveCore public site — shared design system (2026-09-08).
 *
 * Dark by default (neon on Vanta Black). The theme toggle rotates the
 * three neutrals: page bg <- gray, cards <- white, text <- black. The
 * accent colours (Cyber Neon Blue / Terminal Green / Cyberpunk Red)
 * as SOLID BACKGROUNDS (buttons, the step-number circle, an active chip's
 * fill) are identical in both modes -- dark navy text on top already
 * has good contrast either way. As TEXT/an icon/a border/an SVG stroke
 * on the page's own background, blue and green use --blue-fg/--green-fg
 * instead (2026-09-27), darkened for light mode -- see the light theme
 * block below for why. Set data-theme="light" on <html>.
 */

:root {
  --blue: #00cfff;
  --green: #00ff66;
  --red: #ff204e;
  /* Foreground (text/icon/border) use of blue/green on the page's own background -- see
     the light-mode override below. Identical to --blue/--green here, so dark mode is
     pixel-identical to before this token existed. */
  --blue-fg: #00cfff;
  --green-fg: #00ff66;

  --bg: #050505;
  --bg-2: #0b0e13;
  --card: #10151d;
  --card-2: #141b25;
  --border: #232c39;
  --text: #eef4f8;
  --text-dim: #8a97a6;
  --glow: rgba(0, 207, 255, 0.14);
  --logo-back: transparent;
  --star: #ffffff;
}

:root[data-theme="light"] {
  --bg: #e9edf2;
  --bg-2: #dfe4ea;
  --card: #ffffff;
  --card-2: #f4f6f9;
  --border: #d3dae2;
  --text: #0a0e14;
  --text-dim: #5a6673;
  --glow: rgba(0, 207, 255, 0.10);
  --logo-back: #ffffff;
  --star: #0a0e14;
  /* --blue/--green (#00cfff/#00ff66) are neon values tuned for a near-black background --
     against light mode's white/light-gray surfaces they read as washed-out light blue/green
     and fail WCAG AA text contrast (~1.9:1 and ~1.4:1 against white, need 4.5:1). Every place
     that uses blue/green as TEXT, an icon, a border or an SVG stroke on the page's own
     background (not as a solid button fill) reads --blue-fg/--green-fg instead, which is
     darkened here to a real, checked 4.5:1+ contrast ratio while staying recognizably blue/green. */
  --blue-fg: #006e9e;
  --green-fg: #087d43;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-fg); text-decoration: none; }
a:hover { text-decoration: underline; }
/* WCAG 1.4.1 (axe `link-in-text-block`, found by the 2026-09-30 marketing-sweep.spec.ts pass): a link inline in
   running prose can't rely on color alone to be told apart from the surrounding text. `p`/`li` covers paragraph
   and list copy; `.muted` also covers the same prose pattern written as a de-emphasized inline note rather than
   a full `<p>` (e.g. the Downloads access-code label's "write to <a>...</a>" aside). Deliberately NOT global --
   nav bars, footer link lists, cards and buttons already have their own non-color affordance and keep their look. */
p a, li a, .muted a { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--blue-fg); }
.muted { color: var(--text-dim); }

/* --- top status strip: always dark (a terminal-style status bar), so
   the neon-green "ONLINE" text stays readable in light mode too. Collapsed
   by default (2026-09-27) -- the [hidden] attribute in the markup starts it
   closed; .nav-status (below) is the compact pill on the main nav bar that
   toggles it open/closed and always shows the same summary at a glance. --- */
.topbar {
  background: #0b0e13;
  border-bottom: 1px solid #232c39;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.topbar[hidden] { display: none; }
.topbar .wrap { display: flex; gap: 20px; align-items: center; padding: 8px 24px; flex-wrap: wrap; }
.topbar .grp { color: #9aa7b6; text-transform: uppercase; }
.topbar .svc { color: #c2ccd8; }
.topbar .svc b { color: #00ff66; font-weight: 700; }
.topbar .ok { margin-left: auto; color: #00ff66; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #00ff66; display: inline-block; box-shadow: 0 0 6px #00ff66; }

/* --- compact connection-status pill, on the main nav bar itself. Same
   semantic colours as the full strip below (online/down/unknown), but its
   label text stays --text-dim (theme-aware) rather than a hardcoded light
   colour, so it reads fine in light mode too -- only the little dot carries
   the saturated status colour, same "status dot, readable label" split the
   full topbar strip itself already uses in dark mode. --- */
.nav-status {
  display: inline-flex; align-items: center; gap: 7px; background: transparent;
  border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.nav-status:hover { border-color: var(--blue-fg); }
.nav-status[aria-expanded="true"] { border-color: var(--blue-fg); color: var(--text); }
.nav-status .dot { background: #7d8a99; box-shadow: none; }
.nav-status.st-online .dot { background: #00ff66; box-shadow: 0 0 6px #00ff66; }
.nav-status.st-down .dot { background: #ff5c7a; box-shadow: none; }
.nav-status .chev { width: 6px; height: 6px; margin-left: 1px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.15s; }
.nav-status[aria-expanded="true"] .chev { transform: rotate(-135deg); }
@media (max-width: 900px) { .nav-status .nav-status-label { display: none; } }

/* --- header / nav --- */
.nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 40; }
.nav .wrap { display: flex; align-items: center; gap: 16px; padding: 15px 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.05em; white-space: nowrap; color: var(--text); }
.logo-img { width: 36px; height: 36px; border-radius: 8px; display: block; flex-shrink: 0; }
.logo .word { font-size: 15px; }
.logo .word b { color: var(--blue-fg); }
.logo .word small { display: block; font-size: 9px; letter-spacing: 0.16em; color: var(--text-dim); font-weight: 600; }

/* --- the TNC mark: tri-colour broken ring + stars + a static "TNC"
   core. Stars + core use currentColor so they flip with the theme;
   the three arc colours never change. Add class "loading" to use it
   as a spinner -- the ring spins and breathes, the stars twinkle,
   the centre never moves. --- */
.tnc-mark { display: block; flex-shrink: 0; }
.tnc-mark .arcs { transform-origin: 50px 50px; transform-box: fill-box; }
.tnc-mark .star { fill: currentColor; }
.tnc-mark .tnc-core { fill: currentColor; }
.tnc-mark .breath { opacity: 0; transform-origin: 50px 50px; transform-box: fill-box; }
.tnc-mark.loading .arcs { animation: tnc-spin 1.5s linear infinite; }
.tnc-mark.loading .star { animation: tnc-tw 1.8s ease-in-out infinite; }
.tnc-mark.loading .star:nth-of-type(2) { animation-delay: .3s; }
.tnc-mark.loading .star:nth-of-type(4) { animation-delay: .6s; }
.tnc-mark.loading .star:nth-of-type(6) { animation-delay: .9s; }
.tnc-mark.loading .breath { animation: tnc-breath 1.4s ease-in-out infinite; }
@keyframes tnc-spin { to { transform: rotate(360deg); } }
@keyframes tnc-tw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes tnc-breath { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: .65; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .tnc-mark.loading * { animation: none !important; } }
.tnc-loader { display: grid; place-items: center; gap: 12px; padding: 44px 0; color: var(--text-dim); }
.tnc-loader .tnc-mark { width: 60px; height: 60px; color: var(--text); }
.menu { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.menu a { color: var(--text); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.menu a.here { color: var(--blue-fg); }
.menu .soon { color: var(--text-dim); font-size: 13.5px; cursor: default; white-space: nowrap; }
.menu .soon::after { content: " · soon"; font-size: 9px; letter-spacing: 0.06em; opacity: 0.8; }
.nav .spacer { flex: 1; }
.icon-btn { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 13px; }
.icon-btn:hover { border-color: var(--blue-fg); }
.btn { display: inline-block; background: var(--blue); color: #04121a; font-weight: 700; border: 0; border-radius: 9px; padding: 10px 18px; cursor: pointer; font-size: 14px; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--blue-fg); }
.navtoggle { display: none; }

/* auth slot in the nav (R2-I1): "Sign in" button when signed out; name
   + sign-out link when signed in. */
[data-auth-slot] { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
[data-auth-slot] .who { font-weight: 700; font-size: 13px; color: var(--text); }
[data-auth-slot] a { font-size: 13px; color: var(--text-dim); }
@media (max-width: 767px) { .nav [data-auth-slot] { display: none; } }

/* --- hero --- */
.hero { padding: 70px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% 30% auto auto; width: 620px; height: 620px; background: radial-gradient(circle, var(--glow), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; }
.eyebrow { color: var(--blue-fg); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 0 0 16px; }
.hero p.lead { font-size: 18px; color: var(--text-dim); margin: 0 0 28px; max-width: 520px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hub diagram */
.hub { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; }
/* Circle fill = the page background, so the nodes read as coloured
   rings with the bg showing through; text inside = --text (inverse of
   the background: white on dark, near-black on light). */
.hub .node { fill: var(--bg); stroke-width: 4; }
.hub .node.blue { stroke: var(--blue-fg); }
.hub .node.green { stroke: var(--green-fg); }
.hub .node.red { stroke: var(--red); }
/* Connectors: bold dashed lines in --text (white in dark mode, black
   in light), flowing toward the core. */
.hub .link { stroke: var(--text); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; opacity: 0.9; animation: hub-flow 1.4s linear infinite; }
@keyframes hub-flow { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .hub .link { animation: none; } }
.hub text { fill: var(--text); font: 700 9px system-ui, sans-serif; letter-spacing: 0.03em; }
.hub text.core { font-size: 11px; font-weight: 800; }

/* --- stats band --- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; }
.stat b { display: block; font-size: 26px; color: var(--text); }
.stat span { color: var(--text-dim); font-size: 13px; }

/* --- sections --- */
.section { padding: 64px 0; }
.section.tint { background: var(--bg-2); }
.section h2 { font-size: 28px; margin: 0 0 8px; text-align: center; }
.section .sub { color: var(--text-dim); text-align: center; max-width: 640px; margin: 0 auto 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.card:hover { border-color: var(--blue-fg); }
.card .ci { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; color: var(--blue-fg); margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* --- timeline (about) --- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px; margin-top: 20px; }
.tl { padding: 16px; border-top: 2px solid var(--border); }
.tl.done { border-top-color: var(--green-fg); }
.tl.future { border-top-color: var(--blue-fg); }
.tl b { display: block; color: var(--blue-fg); font-size: 13px; }
.tl h4 { margin: 4px 0 4px; font-size: 14px; }
.tl p { margin: 0; color: var(--text-dim); font-size: 13px; }

/* --- team --- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.member { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
.member .av { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); margin: 0 auto 10px; display: grid; place-items: center; color: var(--blue-fg); font-weight: 800; }
.member b { display: block; }
.member span { color: var(--text-dim); font-size: 13px; }

/* --- mission panel --- */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.panel h3 { margin: 0 0 10px; }
.panel p { color: var(--text-dim); margin: 0 0 18px; }

/* --- contact --- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.form label { display: block; font-size: 13px; margin: 12px 0 4px; color: var(--text-dim); }
.form input, .form select, .form textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 11px 12px; font-size: 14px; font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue-fg); outline-offset: 1px; }
.form textarea { min-height: 120px; resize: vertical; }
.depts .dept { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.depts .dept:first-child { border-top: 0; }
.depts .dept .di { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-2); display: grid; place-items: center; color: var(--blue-fg); flex-shrink: 0; }
.depts .dept b { display: block; }
.depts .dept span { display: block; font-size: 13px; color: var(--text-dim); }
.depts .dept a { display: block; font-size: 13px; margin-top: 2px; }
.worldmap { width: 100%; height: auto; opacity: 0.9; }
.worldmap circle { fill: var(--blue-fg); }
.worldmap .hex { fill: var(--card); stroke: var(--blue-fg); }
.worldmap .hex-t { fill: var(--blue-fg); font: 800 13px system-ui; }

/* --- footer --- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 30px; margin-top: 20px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 12px; }
.footer a, .footer span.li { display: block; color: var(--text); font-size: 13px; padding: 4px 0; }
.footer .about-blurb { color: var(--text-dim); font-size: 13px; max-width: 260px; }
.footer .news input { background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 9px 10px; font-size: 13px; width: 100%; }
.footer .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 12px; }

/* --- explainer / concept pages --- */
.concept { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); }
.concept:first-of-type { border-top: 0; }
.concept .cico { width: 52px; height: 52px; border-radius: 13px; background: var(--bg-2); color: var(--blue-fg); display: grid; place-items: center; font-size: 22px; }
.concept h3 { margin: 0 0 6px; font-size: 18px; }
.concept p { margin: 0 0 8px; color: var(--text-dim); }
.concept .ex { font-size: 13px; color: var(--text-dim); }
.concept .ex b { color: var(--text); }
.tiles-demo { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.tile-demo { background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; min-width: 150px; }
.tile-demo .tt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); }
.tile-demo .tn { font-weight: 700; font-size: 13px; margin-top: 3px; }
.tile-demo .tm { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
/* Was opacity: 0.4 -- illustrative "you don't have access to this one" example tile, but at 0.4 its own text
   (against the card background it renders on) dropped well under WCAG AA's 4.5:1 (axe `color-contrast`, found
   by the 2026-09-30 marketing-sweep.spec.ts pass) -- the demo shouldn't itself be unreadable to make its point.
   0.92 is the computed minimum with real margin in the WORSE of the two themes (--text-dim on light mode's
   white card measures 4.885:1 at 0.92, vs. 4.190:1 -- a real fail -- at the originally-tried 0.85; dark mode
   clears easily at every value checked). Still visibly muted next to its full-opacity neighbors; the
   "hidden -- no access" label is the real, non-color-dependent signal either way. */
.tile-demo.dim { opacity: 0.92; }

.steps { counter-reset: s; max-width: 780px; margin: 0 auto; }
.step { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: 0; }
.step::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #04121a; font-weight: 800; display: grid; place-items: center; }
.step h4 { margin: 0 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14px; }
.pathtabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; }
.pathtab { background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 8px 16px; font-size: 13px; }
.pathtab.on { border-color: var(--blue-fg); color: var(--blue-fg); }
.gate { background: var(--card); border: 1px solid var(--blue-fg); border-radius: 14px; padding: 20px; margin: 26px auto 0; max-width: 780px; }
.gate b { color: var(--blue-fg); }

/* --- downloads page --- */
.dl-layout { display: grid; grid-template-columns: 1fr 260px; gap: 24px; }
.dl-h { margin: 8px 0 6px; font-size: 20px; }
.dl-layout .dl-grid + .dl-h { margin-top: 36px; }
.dl-app { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.dl-app-name { font-weight: 700; min-width: 108px; }
.dl-card .dl-app .btn { margin-top: 0; padding: 6px 12px; font-size: 13px; }
.dl-note { font-size: 12px; color: var(--text-dim); margin: 4px 0 0; }
.dl-rail .plat a { color: inherit; }
.dl-side, .dl-rail { align-self: start; }
.dl-side h4, .dl-rail h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.dl-side .cat {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text);
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.dl-side .cat:hover { background: var(--card); }
.dl-side .cat.active { background: var(--card); color: var(--blue-fg); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dl-card { display: flex; flex-direction: column; gap: 8px; }
.dl-card .dl-top { display: flex; align-items: center; gap: 8px; }
.dl-card .dl-top h3 { margin: 0; flex: 1; }
.dl-card .dl-meta { font-size: 12px; color: var(--text-dim); }
.dl-card .btn, .dl-card .btn.ghost { align-self: flex-start; margin-top: 4px; }
.dl-card .btn.ghost[disabled] { opacity: 0.5; cursor: default; }
.tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); }
.tag.live { border-color: var(--green-fg); color: var(--green-fg); }
.tag.soon-tag { border-color: var(--blue-fg); color: var(--blue-fg); }
.tag.plan { border-color: var(--border); color: var(--text-dim); }
.dl-rail .plat { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.dl-rail .plat:first-of-type { border-top: 0; }
@media (max-width: 1024px) { .dl-layout { grid-template-columns: 1fr; } }

/* --- helper fab --- */
.helper-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #04121a;
  border: 0; cursor: pointer; display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 6px 24px var(--glow);
}
.helper-fab:hover { filter: brightness(1.08); text-decoration: none; }

/* --- responsive --- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .art { order: -1; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 24px; gap: 14px; }
  .menu.open { display: flex; }
  .navtoggle { display: inline-flex; }
  .nav .btn.ghost { display: none; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  /* Community Website spec, §4: "bottom-right on desktop, bottom-center
     on mobile" -- a real, binding, site-wide standard (this fab appears
     on every page), not new for the Community page specifically. */
  .helper-fab { left: 50%; right: auto; transform: translateX(-50%); }
}

/* ================= 2026-09-25: the owner's renderings (deep navy, cyan and signal green) =================
   The navy surfaces below replace the old near-black ones in dark mode; light mode is unchanged. */
:root {
  --bg: #050a12;
  --bg-2: #081120;
  --card: #0b1624;
  --card-2: #0f1d2e;
  --border: #16304a;
  --text: #e7f2ff;
  --text-dim: #93abc4;
  --glow: rgba(34, 211, 238, 0.16);
}

/* the swirl logo: a round badge with a soft cyan glow */
.logo-img { border-radius: 50%; box-shadow: 0 0 14px rgba(0, 207, 255, 0.35); background: #000; }
.nav .logo-img { width: 42px; height: 42px; }
.logo .word { font-size: 17px; letter-spacing: 0.08em; }

/* live status strip: the colour follows what the check actually said */
.topbar { background: #040810; }
.topbar .svc b { font-weight: 700; }
.topbar .svc b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 5px 1px 2px; vertical-align: middle; background: #7d8a99; }
.topbar .svc.st-online b { color: #00ff66; }
.topbar .svc.st-online b::before { background: #00ff66; box-shadow: 0 0 6px #00ff66; }
.topbar .svc.st-down b { color: #ff5c7a; }
.topbar .svc.st-down b::before { background: #ff5c7a; }
.topbar .svc b, .topbar .svc.st-unknown b { color: #c2ccd8; }
.topbar .ok { color: #c2ccd8; }
.topbar .ok .dot { background: #7d8a99; box-shadow: none; }
.topbar .ok.st-online { color: #00ff66; }
.topbar .ok.st-online .dot { background: #00ff66; box-shadow: 0 0 6px #00ff66; }
.topbar .ok.st-down { color: #ff5c7a; }
.topbar .ok.st-down .dot { background: #ff5c7a; box-shadow: none; }

/* header buttons, as in the renderings */
.nav .btn.ghost { border-color: var(--text-dim); }
.nav .btn { border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Apothos guide panel + round face button ---------- */
.ap-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.ap-head h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-fg); }
.ap-hello { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ap-hello b { display: block; font-size: 15px; }
.ap-hello span { color: var(--text-dim); font-size: 13px; }
.ap-face { position: relative; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue-fg); box-shadow: 0 0 12px rgba(0, 207, 255, 0.45), inset 0 0 10px rgba(0, 207, 255, 0.2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ap-face i { width: 6px; height: 8px; border-radius: 50%; background: var(--blue); }
.ap-list { display: flex; flex-direction: column; gap: 6px; }
.ap-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); font-size: 13px; }
.ap-item:hover { border-color: var(--blue-fg); text-decoration: none; }
.ap-item span:last-child { color: var(--text-dim); }
.ap-ask { display: flex; gap: 6px; margin-top: 12px; }
.ap-ask input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 13px; }
.ap-ask input:focus { outline: 2px solid var(--blue-fg); outline-offset: 1px; }
.ap-ask button { background: transparent; border: 1px solid var(--border); color: var(--blue-fg); border-radius: 9px; padding: 0 12px; cursor: pointer; font-size: 15px; }
.ap-ask button:hover { border-color: var(--blue-fg); }
.ap-note { margin: 8px 0 0; font-size: 11.5px; color: var(--text-dim); }
.helper-fab { width: 62px; height: 62px; background: var(--bg); border: 2px solid var(--blue-fg); box-shadow: 0 0 22px rgba(0, 207, 255, 0.55); }
.helper-fab .ap-face { width: 100%; height: 100%; border: 0; box-shadow: none; gap: 10px; }
.helper-fab .ap-face i { width: 8px; height: 11px; }

/* ---------- Downloads Hub (rendering 5) ---------- */
.hub-page { padding: 34px 0 30px; }
.hub-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 22px; max-width: 1480px; align-items: start; }
.hub-side, .hub-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }
.hub-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.hub-box h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue-fg); }
.hub-cat { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; background: transparent; border: 1px solid transparent; color: var(--text); border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.hub-cat:hover { background: var(--bg-2); }
.hub-cat.active { border-color: var(--blue-fg); background: rgba(0, 207, 255, 0.08); color: var(--blue-fg); }
.hub-cat em { font-style: normal; color: var(--text-dim); font-size: 13px; }
.hub-cat.active em { color: var(--blue-fg); }
.hub-help h3 { margin: 0 0 8px; font-size: 17px; }
.hub-help p { margin: 0 0 14px; font-size: 13px; }
.hub-help-art { display: block; width: 110px; margin: 18px auto 0; color: var(--blue-fg); filter: drop-shadow(0 0 8px rgba(0, 207, 255, 0.5)); }
.hub-main h1 { margin: 0 0 6px; font-size: 34px; }
.hub-lead { margin: 0 0 18px; }
.hub-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hub-search { flex: 1 1 280px; }
.hub-search input, .hub-sort select { width: 100%; background: var(--card); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; }
.hub-search input:focus, .hub-sort select:focus { outline: 2px solid var(--blue-fg); outline-offset: 1px; }
.hub-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.hub-sort select { width: auto; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hub-chip { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; cursor: pointer; }
.hub-chip:hover { border-color: var(--blue-fg); }
.hub-chip.on { background: var(--blue); border-color: var(--blue); color: #04121a; font-weight: 700; }
.hub-note { font-size: 12.5px; margin: 0 0 14px; }
.hub-list { display: flex; flex-direction: column; gap: 12px; }
.dl-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.dl-row:hover { border-color: rgba(0, 207, 255, 0.55); }
.dl-row[hidden] { display: none; }
.dl-ico { width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.dl-ico svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dl-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ico-portal { background: linear-gradient(145deg, #1b6cf0, #0b2f86); box-shadow: 0 0 16px rgba(27, 108, 240, 0.35); }
.ico-cloud { background: linear-gradient(145deg, #1fae6a, #0b5a34); box-shadow: 0 0 16px rgba(31, 174, 106, 0.3); }
.ico-server { background: linear-gradient(145deg, #8b3df0, #3d1486); box-shadow: 0 0 16px rgba(139, 61, 240, 0.3); }
.ico-web { background: linear-gradient(145deg, #0f8fb3, #0a4a63); box-shadow: 0 0 16px rgba(15, 143, 179, 0.3); }
.ico-community { background: linear-gradient(145deg, #d8562c, #7a2410); box-shadow: 0 0 16px rgba(216, 86, 44, 0.3); }
.ico-swarm { background: linear-gradient(145deg, #e0a72a, #8a5e0a); box-shadow: 0 0 16px rgba(224, 167, 42, 0.3); }
.ico-plan { background: var(--bg-2); border: 1px solid var(--border); }
.ico-plan svg { stroke: var(--text-dim); }
.dl-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.dl-title h3 { margin: 0; font-size: 17px; }
.dl-body p { margin: 0 0 6px; color: var(--text-dim); font-size: 13.5px; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-dim); }
.dl-facts span + span::before { content: "|"; margin-right: 14px; opacity: 0.5; }
.dl-row details { margin-top: 8px; }
.dl-row summary { cursor: pointer; color: var(--blue-fg); font-size: 13px; }
.dl-row details p { margin: 8px 0 0; }
.dl-sha { font-family: ui-monospace, Consolas, monospace; font-size: 11px !important; word-break: break-all; }
.dl-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 150px; }
.dl-actions .btn { text-align: center; padding: 10px 16px; }
.dl-actions .btn.ghost { padding: 7px 12px; font-size: 13px; }
/* Same fix as .tile-demo.dim above, same underlying cause: --text-dim content (the "Planned" tag, the .dl-body
   paragraph) at 0.85 opacity on --card measures 4.190:1 in light mode, under WCAG AA's 4.5:1. */
.dl-planned { opacity: 0.92; }
.dl-empty { text-align: center; padding: 30px 0; }
.hub-stat, .hub-req { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.hub-stat:first-of-type, .hub-req:first-of-type { border-top: 0; }
.hub-stat span, .hub-req span { color: var(--text-dim); }
.hub-req { flex-direction: column; gap: 2px; }
.hub-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; max-width: 1432px; }
.hub-strip b { display: block; font-size: 14px; }
.hub-strip span { color: var(--text-dim); font-size: 12.5px; }
@media (max-width: 1200px) {
  .hub-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .hub-rail { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 820px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-side { position: static; }
  .hub-side .hub-box:first-child { display: flex; flex-wrap: wrap; gap: 6px; }
  .hub-side .hub-box:first-child h4 { width: 100%; }
  .hub-cat { width: auto; }
  .hub-help { display: none; }
  .dl-row { grid-template-columns: 52px minmax(0, 1fr); }
  .dl-ico { width: 52px; height: 52px; }
  .dl-ico svg { width: 26px; height: 26px; }
  .dl-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .hub-strip { grid-template-columns: 1fr 1fr; }
}
.dl-row.dl-focus { border-color: var(--blue-fg); box-shadow: 0 0 0 1px var(--blue-fg); }

/* Products drop-down in the header (2026-09-25) */
.menu { gap: 22px; }
.menu a, .menu summary { font-size: 14.5px; }
.menu-drop { position: relative; }
.menu-drop summary { list-style: none; cursor: pointer; color: var(--text); font-weight: 500; white-space: nowrap; }
.menu-drop summary::-webkit-details-marker { display: none; }
.menu-drop summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.menu-drop.here summary { color: var(--blue-fg); }
.menu-drop-panel { position: absolute; top: calc(100% + 12px); left: -14px; min-width: 210px; display: flex; flex-direction: column; padding: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); z-index: 60; }
.menu-drop-panel a { padding: 8px 12px; border-radius: 8px; }
.menu-drop-panel a:hover { background: var(--bg-2); text-decoration: none; }
.menu a.here, .menu-drop-panel a.here { color: var(--blue-fg); }
.menu > a.here { box-shadow: inset 0 -2px 0 var(--blue-fg); padding-bottom: 4px; }
.icon-btn { white-space: nowrap; }
@media (max-width: 767px) {
  .menu-drop-panel { position: static; box-shadow: none; margin-top: 8px; }
}
.nav .wrap, .topbar .wrap { max-width: 1480px; }
.menu { flex-wrap: nowrap; }
@media (max-width: 1180px) { .menu { gap: 14px; } .menu a, .menu summary { font-size: 13.5px; } }
@media (max-width: 1024px) and (min-width: 768px) { .nav [data-auth-slot] { display: none; } }
@media (max-width: 767px) {
  .topbar .wrap { flex-wrap: nowrap; overflow-x: auto; gap: 14px; padding: 7px 16px; scrollbar-width: none; }
  .topbar .wrap::-webkit-scrollbar { display: none; }
  .topbar .svc, .topbar .grp, .topbar .ok { white-space: nowrap; flex-shrink: 0; }
  .topbar .ok { margin-left: 0; }
  .nav .wrap { gap: 10px; padding: 12px 16px; }
  .logo .word { font-size: 15px; letter-spacing: 0.05em; }
  .logo .word small { display: none; }
  .nav .logo-img { width: 36px; height: 36px; }
  .nav > .wrap > a.btn:not(.ghost) { display: none; }
  .navtoggle { flex-shrink: 0; }
}
.topbar .wrap:focus-visible, .brand-strip-row:focus-visible { outline: 2px solid var(--blue-fg); outline-offset: -2px; }


/* Downloads access code (downloads.js, migration 0234) */
.dl-actions [hidden] { display: none !important; }
.dl-actions .dl-lock { cursor: default; opacity: .8; }
.dl-code { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; display: grid; gap: 10px; }
.dl-code label { display: grid; gap: 4px; font-size: 14px; }
.dl-code label .muted { font-size: 12.5px; color: var(--text-dim); }
.dl-code-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dl-code-row input { flex: 1 1 240px; min-width: 0; background: var(--card-2); color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; font: 15px ui-monospace, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.dl-code-row input:focus-visible { outline: 2px solid var(--blue-fg); outline-offset: 1px; }
.dl-code-msg { margin: 0; font-size: 13px; color: var(--text-dim); min-height: 1em; }
.dl-code-msg.bad { color: var(--red); }
.dl-code.done .dl-code-msg { color: var(--green-fg); }
