/*
Theme Name:   StormSync VT/OI
Theme URI:    https://stormsyncapp.com
Author:       StormSync
Author URI:   https://stormsyncapp.com
Description:  Official website theme for StormSync VT/OI, a real-time NWS alert monitor built on the NOAA Weather Wire Service Open Interface. "Meridian" edition: dark operations-console identity, deep storm red accent system, per-page hero image containers, frosted glass surfaces, and a contrast-safe severity palette.
Version:      4.0.2
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  stormsync
Tags:         dark, one-column, custom-menu
*/

/* ================================================================
   StormSync VT/OI :: "Meridian" design system  v4.0.2
   ----------------------------------------------------------------
   A dark, instrument-panel identity for a low-latency weather wire.
   Structure of this file:
     01  Reset
     02  Design tokens
     03  Base elements
     04  Motion system
     05  Layout primitives
     06  Hero system          <- per-page background image container
     07  Navigation (glass)
     08  Buttons
     09  Surfaces: cards, panels, bento
     10  Chips + status indicators
     11  Metrics + counters
     12  Tables
     13  The wire (alert display)
     14  Latency bars
     15  Media: screenshots, slots, lightbox
     16  Forms + modal
     17  Accordion
     18  Timeline
     19  Tabs + log cards
     20  Release entries
     21  Roadmap
     22  Footer
     23  Utilities
     24  Responsive
     25  Reduced motion / forced colors

   HERO IMAGES
   Every template sets one variable at the top of the file:
       $hero_image = 'https://.../your-photo.jpg';
   That URL is piped into `--hero-img` on the <section class="hero">.
   Swap the URL, the hero changes. Nothing else to touch. If the value
   is left empty, a built-in storm gradient renders instead.
   ================================================================ */


/* ================================================================
   01  RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


/* ================================================================
   02  DESIGN TOKENS
   ================================================================ */
:root {
  /* ---- Structure ---- */
  --hh:      68px;   /* header height */
  --rad-xs:  5px;
  --rad-s:   8px;
  --rad:     12px;
  --rad-l:   18px;

  /* ---- Rich charcoal / graphite / slate surfaces ---- */
  --void:      #0A0B0D;   /* page background */
  --surface-0: #0E1013;   /* alternating bands */
  --surface-1: #131619;   /* cards */
  --surface-2: #191D22;   /* raised cards, table heads */
  --slate:     #21262D;   /* dark slate */
  --graphite:  #2B313A;   /* graphite */

  /* ---- Hairlines ---- */
  --line:   rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --line-3: rgba(255, 255, 255, 0.20);

  /* ---- Text ---- */
  --head:  #EDEFF2;
  --ink:   #A7AFBB;
  --ink-2: #8B94A1;
  --ink-3: #626C7A;

  /* ---- Deep storm red / dark crimson accent ramp ---- */
  --red-950: #2A060E;
  --red-900: #4A0A16;
  --red-800: #64101F;
  --red-700: #7D1128;   /* dark crimson */
  --red-600: #A3172F;
  --red-500: #C41E3A;   /* deep storm red - primary */
  --red-400: #D93A52;
  --red-300: #E8697C;   /* accessible accent text on dark */
  --red-200: #F2A3AF;
  --red-muted: #8C4049; /* muted red accent */

  --accent:       var(--red-500);
  --accent-hover: var(--red-400);
  --accent-press: var(--red-600);
  --accent-text:  var(--red-300);

  /* Brand bolt gradient (matches the StormSync logo mark) */
  --bolt-a: #F5325B;
  --bolt-b: #D9218C;

  /* ---- Glass ---- */
  --glass:      rgba(14, 16, 19, 0.72);
  --glass-2:    rgba(25, 29, 34, 0.55);
  --glass-line: rgba(255, 255, 255, 0.09);
  --blur:       14px;
  --blur-lg:    22px;

  /* ---- Status ---- */
  --ok:   #3FB950;
  --warn: #D29922;
  --bad:  #E5484D;
  --info: #4E8CE8;

  --ok-bg:     rgba(63, 185, 80, 0.10);   --ok-line:     rgba(63, 185, 80, 0.28);   --ok-text:   #55C46A;
  --warn-bg:   rgba(210, 153, 34, 0.10);  --warn-line:   rgba(210, 153, 34, 0.28);  --warn-text: #E0AB3C;
  --bad-bg:    rgba(229, 72, 77, 0.10);   --bad-line:    rgba(229, 72, 77, 0.30);   --bad-text:  #F0656A;
  --accent-bg: rgba(196, 30, 58, 0.11);   --accent-line: rgba(196, 30, 58, 0.32);

  /* ---- Hero ---- */
  --hero-fallback:
    radial-gradient(120% 90% at 78% 8%, rgba(196, 30, 58, 0.30) 0%, rgba(196, 30, 58, 0) 55%),
    linear-gradient(165deg, #1A1F27 0%, #101419 45%, #0A0B0D 100%);
  --hero-scrim:
    linear-gradient(180deg, rgba(10, 11, 13, 0.86) 0%, rgba(10, 11, 13, 0.62) 42%, rgba(10, 11, 13, 0.94) 100%);
  --hero-blur:  2px;
  --hero-fade:  #0A0B0D;

  /* ---- Alert tiers: calibrated for legibility on dark ---- */
  --t-torE:     #FF3EA5;
  --t-pds:      #A855F7;
  --t-torC:     #FF5C6C;
  --t-tor:      #E4485A;
  --t-pdsWatch: #8B5CF6;
  --t-torWatch: #FF8A4C;
  --t-svrD:     #FB923C;
  --t-svrC:     #F0A82A;
  --t-svr:      #E3B917;
  --t-svrWatch: #C4A020;
  --t-ffe:      #FF5A5A;
  --t-ffc:      #34D399;
  --t-ff:       #2DD4A7;
  --t-marine:   #22D3EE;
  --t-winter:   #60A5FA;
  --t-wind:     #94A3B8;

  /* ---- SPC categorical risk ---- */
  --r-tstm: #7FD1A4;
  --r-mrgl: #6FBF6F;
  --r-slgt: #E8D45C;
  --r-enh:  #F0A05A;
  --r-mdt:  #E86A6A;
  --r-high: #E88ADE;

  /* ---- EF scale ---- */
  --ef-u: #94A3B8;
  --ef-0: #4ADE80;
  --ef-1: #A3E635;
  --ef-2: #FACC15;
  --ef-3: #FB923C;
  --ef-4: #F87171;
  --ef-5: #E879F9;

  /* ---- Type ---- */
  --font-ui:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;

  /* ---- Elevation ---- */
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 4px 16px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-3: 0 18px 48px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  --glow: 0 0 0 1px rgba(196, 30, 58, 0.35), 0 8px 30px rgba(196, 30, 58, 0.18);

  /* ---- Easing ---- */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.25, 1);
}


/* ================================================================
   03  BASE ELEMENTS
   ================================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(196, 30, 58, 0.4); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
strong, b { color: var(--head); font-weight: 600; }
em { font-style: italic; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--head);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--red-200);
  background: rgba(196, 30, 58, 0.10);
  border: 1px solid rgba(196, 30, 58, 0.20);
  padding: 0.12em 0.42em;
  border-radius: var(--rad-xs);
}

.inline-link {
  color: var(--accent-text);
  border-bottom: 1px solid rgba(232, 105, 124, 0.35);
  transition: color 0.18s, border-color 0.18s;
}
.inline-link:hover { color: var(--red-200); border-color: var(--red-200); }

:focus-visible {
  outline: 2px solid var(--red-400);
  outline-offset: 2px;
  border-radius: var(--rad-xs);
}

/* Skip link for keyboard + screen reader users */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red-600); color: #fff;
  padding: 12px 20px; border-radius: 0 0 var(--rad-s) 0;
  font-size: 0.9rem; font-weight: 600;
}
.skip:focus { left: 0; }

.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;
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--graphite) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: 6px; border: 3px solid var(--void); }
*::-webkit-scrollbar-thumb:hover { background: var(--slate); }


/* ================================================================
   04  MOTION SYSTEM
   Scroll reveal: fast, short travel, staggered. Nothing bounces.
   ================================================================ */
.aos { opacity: 0.001; transform: translateY(14px); will-change: opacity, transform; }
.aos.in {
  animation: ssReveal 0.5s var(--ease) forwards;
  animation-delay: calc(var(--ao, 0) * 60ms);
}
@keyframes ssReveal { to { opacity: 1; transform: none; } }

/* Hero content entrance */
.hero-in > * { opacity: 0.001; transform: translateY(16px); animation: ssReveal 0.62s var(--ease) forwards; }
.hero-in > *:nth-child(1) { animation-delay: 0.05s; }
.hero-in > *:nth-child(2) { animation-delay: 0.12s; }
.hero-in > *:nth-child(3) { animation-delay: 0.19s; }
.hero-in > *:nth-child(4) { animation-delay: 0.26s; }
.hero-in > *:nth-child(5) { animation-delay: 0.33s; }
.hero-in > *:nth-child(6) { animation-delay: 0.40s; }

/* Live pulse for status dots */
@keyframes ssPulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}
@keyframes ssRot { to { transform: rotate(360deg); } }


/* ================================================================
   05  LAYOUT PRIMITIVES
   ================================================================ */
.wrap        { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(820px,  calc(100% - 48px)); margin-inline: auto; }
.wrap-wide   { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }

.section     { padding: 88px 0; position: relative; }
.section-sm  { padding: 56px 0; }
.section-alt { background: var(--surface-0); border-block: 1px solid var(--line); }

/* Eyebrow: mono overline */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ''; width: 14px; height: 1px;
  background: currentColor; opacity: 0.6;
}
.eyebrow.accent { color: var(--accent-text); }
.eyebrow.plain::before { display: none; }

/* Section headings */
.h-sec {
  font-size: clamp(1.5rem, 2.9vw, 2.1rem);
  margin: 12px 0 14px;
}
.h-sub {
  color: var(--ink-2);
  max-width: 660px;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 40px;
}
.h-sub:last-child { margin-bottom: 0; }

.prose p { color: var(--ink-2); line-height: 1.8; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.split  { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.split-rail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.rail-sticky { position: sticky; top: calc(var(--hh) + 24px); }

/* Hairline rule with a red tick */
.rule {
  height: 1px; background: var(--line);
  position: relative; margin: 0 0 40px;
}
.rule::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 48px; height: 1px; background: var(--red-500);
}


/* ================================================================
   06  HERO SYSTEM
   ----------------------------------------------------------------
   Markup contract (identical on every page):

     <section class="hero" style="--hero-img: url('IMAGE-URL')">
       <div class="hero-media" aria-hidden="true"></div>
       <div class="wrap hero-inner hero-in"> ...content... </div>
     </section>

   .hero-media is THE replaceable image container. Swap the URL in the
   $hero_image variable at the top of the template. Overlays live on
   pseudo-elements so the photo never fights the text.
   Modifiers: .hero--tall  .hero--page  .hero--slim
   ================================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-0);
}
.hero-media {
  position: absolute; inset: 0; z-index: -3;
  background-image: var(--hero-img, none), var(--hero-fallback);
  background-size: cover, cover;
  background-position: var(--hero-pos, center 40%);
  background-repeat: no-repeat;
  filter: blur(var(--hero-blur)) saturate(0.78) contrast(1.06) brightness(0.9);
  transform: scale(1.08);
  animation: ssHeroSettle 1.4s var(--ease) both;
}
@keyframes ssHeroSettle {
  from { transform: scale(1.14); opacity: 0.4; }
  to   { transform: scale(1.08); opacity: 1; }
}

/* Contrast scrim + a low crimson wash that ties any photo to the palette */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(196, 30, 58, 0.22) 0%, rgba(196, 30, 58, 0) 60%),
    var(--hero-scrim);
}
/* Instrument grid + bottom fade into the page */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, transparent 62%, var(--hero-fade) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.022) 0 1px, transparent 1px 88px);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero--page { padding: calc(var(--hh) + 78px) 0 74px; }
.hero--tall { padding: calc(var(--hh) + 92px) 0 104px; }
.hero--slim { padding: calc(var(--hh) + 56px) 0 52px; }

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: #fff;
  margin: 16px 0 16px;
  max-width: 18ch;
  text-wrap: balance;
}
.hero--page h1 { max-width: 20ch; }
.hero .lede {
  color: rgba(233, 237, 243, 0.78);
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 62ch;
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.55); }
.hero .eyebrow.accent { color: var(--red-200); }

/* Photo credit / caption pinned to the hero corner */
.hero-credit {
  position: absolute; right: 24px; bottom: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

/* Hero meta strip: mono key/value readouts under the lede */
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 26px;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.hero-meta b { color: rgba(255, 255, 255, 0.9); font-weight: 500; }

/* Translucent hero badges */
.badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono); font-size: 0.63rem; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--rad-xs);
  padding: 5px 10px;
}
.badge.hot {
  color: #fff;
  background: rgba(196, 30, 58, 0.42);
  border-color: rgba(232, 105, 124, 0.5);
}
.badge .d {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; margin-right: 6px; vertical-align: 1px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }


/* ================================================================
   07  NAVIGATION - frosted glass, dark translucent
   ================================================================ */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  height: var(--hh);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s, backdrop-filter 0.3s;
}
.topbar.scrolled {
  background: var(--glass);
  border-bottom-color: var(--glass-line);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
}
.topbar-in {
  width: min(1320px, calc(100% - 40px)); margin-inline: auto;
  height: 100%; display: flex; align-items: center; gap: 22px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .bolt { width: 22px; height: 22px; flex-shrink: 0; transition: filter 0.25s; }
.brand:hover .bolt { filter: drop-shadow(0 0 8px rgba(245, 50, 91, 0.55)); }
.brand .name {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: #fff; letter-spacing: -0.02em;
}
.brand .name b { font-weight: 700; color: var(--red-300); }
.brand .vt {
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px; padding: 2px 5px; margin-left: 2px;
}

.toplinks { display: flex; gap: 1px; flex: 1; justify-content: flex-end; }
.toplinks a {
  position: relative;
  font-size: 0.86rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 12px; border-radius: var(--rad-s);
  transition: color 0.18s, background 0.18s;
}
.toplinks a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.toplinks a.on { color: #fff; }
.toplinks a.on::after {
  content: ''; position: absolute;
  left: 12px; right: 12px; bottom: 1px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red-500), var(--bolt-b));
}

/* Translucent header action */
.top-cta {
  flex-shrink: 0;
  font-size: 0.85rem; font-weight: 600;
  padding: 8px 18px; border-radius: var(--rad-s);
  color: #fff;
  background: rgba(196, 30, 58, 0.55);
  border: 1px solid rgba(232, 105, 124, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.top-cta:hover {
  background: var(--red-500);
  border-color: var(--red-400);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}
.top-cta:active { transform: translateY(1px); }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; flex-direction: column; gap: 5px; margin-left: auto;
}
.burger span {
  width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile sheet: glass, not a white slab */
.sheet {
  position: fixed; top: var(--hh); left: 0; right: 0; z-index: 290;
  background: var(--glass);
  backdrop-filter: blur(var(--blur-lg)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(1.4);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: var(--sh-3);
  padding: 8px 20px 18px;
  max-height: calc(100dvh - var(--hh)); overflow-y: auto;
  display: none; flex-direction: column;
}
.sheet.open { display: flex; animation: ssSheet 0.24s var(--ease); }
@keyframes ssSheet { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.sheet a {
  font-size: 0.95rem; font-weight: 500; color: var(--head);
  padding: 13px 8px; border-bottom: 1px solid var(--line);
  transition: color 0.15s, padding-left 0.2s var(--ease);
}
.sheet a:last-child { border-bottom: 0; }
.sheet a:hover { color: var(--red-300); padding-left: 14px; }
.sheet .sheet-cta {
  margin-top: 14px; text-align: center; border: 0;
  background: var(--red-600); color: #fff;
  border-radius: var(--rad-s); font-weight: 600;
}
.sheet .sheet-cta:hover { padding-left: 8px; color: #fff; background: var(--red-500); }


/* ================================================================
   08  BUTTONS
   ================================================================ */
.btn, .btn-ghost, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 0.9rem; font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--rad-s);
  cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s,
              box-shadow 0.25s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg, .btn-ghost svg, .btn-quiet svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn {
  background: linear-gradient(180deg, var(--red-500), var(--red-600));
  color: #fff; border-color: var(--red-400);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, var(--sh-1);
}
.btn:hover {
  background: linear-gradient(180deg, var(--red-400), var(--red-500));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 8px 26px rgba(196, 30, 58, 0.34);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); background: var(--accent-press); }

/* Translucent ghost - reads on photos and on dark surfaces alike */
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--head);
  border-color: var(--line-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--line-3);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

.btn-quiet { background: transparent; color: var(--ink-2); border-color: transparent; padding: 8px 12px; }
.btn-quiet:hover { color: var(--head); background: rgba(255, 255, 255, 0.05); }

.btn-block { width: 100%; }

.btn-dl {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 0.96rem; font-weight: 600;
  padding: 14px 26px; border-radius: var(--rad-s);
  background: linear-gradient(180deg, var(--red-500), var(--red-600));
  border: 1px solid var(--red-400);
  color: #fff; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, var(--sh-2);
  transition: background 0.2s, box-shadow 0.25s, transform 0.2s var(--ease);
}
.btn-dl:hover {
  background: linear-gradient(180deg, var(--red-400), var(--red-500));
  box-shadow: 0 10px 34px rgba(196, 30, 58, 0.4);
  transform: translateY(-1px);
}
.btn-dl svg { width: 17px; height: 17px; stroke: currentColor; }


/* ================================================================
   09  SURFACES
   ================================================================ */
.card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 26px 28px;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s, background 0.28s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--sh-2);
}
.card h3 { font-size: 1.04rem; margin-bottom: 8px; }
.card p  { color: var(--ink-2); font-size: 0.92rem; line-height: 1.72; }

/* Lightly frosted variant, for cards that sit over imagery or bands */
.card-glass {
  background: var(--glass-2);
  backdrop-filter: blur(var(--blur)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.25);
  border: 1px solid var(--glass-line);
}
.card-glass:hover { background: rgba(30, 35, 41, 0.68); }

/* Accent-topped card */
.card-accent::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  border-radius: var(--rad) var(--rad) 0 0;
  background: linear-gradient(90deg, var(--red-500), transparent 70%);
  opacity: 0; transition: opacity 0.28s;
}
.card-accent:hover::before { opacity: 1; }

/* Icon badge inside cards */
.card-ic {
  width: 34px; height: 34px; border-radius: var(--rad-s);
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  color: var(--red-300);
}
.card-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; }

/* Bento: deliberately uneven so the capabilities grid is not 6 clones */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .card { display: flex; flex-direction: column; }
.bento .b-wide { grid-column: span 2; }
.bento .b-tall { grid-row: span 2; }

/* Note / callout */
.note {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: var(--rad-s);
  padding: 17px 20px;
  font-size: 0.9rem; color: var(--ink-2); line-height: 1.72;
}
.note svg {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px;
  stroke: var(--warn); fill: none; stroke-width: 2;
}
.note a { color: var(--accent-text); border-bottom: 1px solid rgba(232,105,124,0.3); }
.note.info { border-left-color: var(--info); }
.note.info svg { stroke: var(--info); }
.note.bad { border-left-color: var(--bad); }
.note.bad svg { stroke: var(--bad); }

/* CTA block */
.cta-box {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--surface-2) 0%, var(--surface-0) 70%);
  border: 1px solid var(--line);
  border-radius: var(--rad-l);
  padding: 72px 44px;
  text-align: center;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% 0%, rgba(196, 30, 58, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box .h-sec, .cta-box .h-sub { margin-inline: auto; }
.cta-box .h-sub { margin-bottom: 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Key/value readout rows */
.kv {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 0.89rem;
}
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--ink-2); }
.kv .v {
  font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--head); text-align: right;
}
.kv .v.hl { color: var(--red-300); }

/* Severity rows */
.sev {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0 9px 12px;
  border-left: 2px solid var(--sc, var(--line-2));
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  transition: border-left-width 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.sev:last-child { border-bottom: 0; }
.sev:hover { border-left-width: 4px; padding-left: 14px; }
.sev span:first-child { color: var(--head); font-weight: 500; }
.sev span:last-child { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); }


/* ================================================================
   10  CHIPS + STATUS INDICATORS
   ================================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--rad-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip .d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip.ok     { background: var(--ok-bg);     border-color: var(--ok-line);     color: var(--ok-text); }
.chip.warn   { background: var(--warn-bg);   border-color: var(--warn-line);   color: var(--warn-text); }
.chip.bad    { background: var(--bad-bg);    border-color: var(--bad-line);    color: var(--bad-text); }
.chip.accent { background: var(--accent-bg); border-color: var(--accent-line); color: var(--red-300); }
.chip.live .d { background: var(--ok); animation: ssPulse 2.2s ease-out infinite; }

.pending-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-s);
  padding: 10px 15px; color: var(--ink-2);
}
.pending-chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Standalone status pill for hero areas */
.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.11em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px; padding: 7px 14px; color: var(--head);
}
.status-pill .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ssPulse 2.2s ease-out infinite; }
.status-pill.warn .d { background: var(--warn); animation: none; }


/* ================================================================
   11  METRICS + COUNTERS
   ================================================================ */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--surface-1);
  overflow: hidden;
}
.metric {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.25s;
}
.metric:last-child { border-right: 0; }
.metric:hover { background: var(--surface-2); }
.metric::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--red-500);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.metric:hover::before { transform: scaleY(1); }
.metric .n {
  display: block;
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700;
  color: var(--head); letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric .n .u { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.metric .c {
  display: block; margin-top: 6px;
  font-size: 0.78rem; color: var(--ink-3); line-height: 1.5;
}


/* ================================================================
   12  TABLES
   ================================================================ */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  background: var(--surface-1);
}
.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9rem; min-width: 480px;
}
.data-table th, .data-table td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  background: var(--surface-2);
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.data-table th.hl { color: var(--red-300); }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td { color: var(--ink-2); line-height: 1.65; }
.data-table td:first-child { color: var(--head); font-weight: 500; }
.data-table .hl { color: var(--red-300); }
.data-table .mono { font-family: var(--font-mono); font-size: 0.82rem; }

.cell-yes { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ok-text); letter-spacing: 0.05em; }
.cell-no  { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3);  letter-spacing: 0.05em; }
.cell-note {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--warn-text); margin-top: 4px; letter-spacing: 0.04em; line-height: 1.5;
}


/* ================================================================
   13  THE WIRE - live alert readout
   ================================================================ */
.wire {
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.wire-glass {
  background: var(--glass-2);
  backdrop-filter: blur(var(--blur-lg)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(1.3);
  border-color: var(--glass-line);
}
.wire-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.61rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.wire-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ok-text); }
.wire-head .live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  animation: ssPulse 2.2s ease-out infinite;
}
.wire-row {
  display: grid;
  grid-template-columns: 56px 48px 1fr auto;
  gap: 14px; align-items: center;
  padding: 11px 18px 11px 14px;
  border-left: 3px solid var(--tc, var(--line-2));
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem;
  transition: background 0.15s, border-left-width 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.wire-row:hover { background: rgba(255, 255, 255, 0.03); border-left-width: 5px; padding-left: 12px; }
.wire-row:last-child { border-bottom: 0; }
.wire-row .t   { color: var(--ink-3); }
.wire-row .ofc { color: var(--ink-3); }
.wire-row .nm  {
  color: var(--tc, var(--head)); font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wire-row .rk { color: var(--ink-3); font-size: 0.66rem; letter-spacing: 0.06em; }
.wire-foot {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3);
}

/* Notification card (Lite page + alert display samples) */
.notif {
  border: 1px solid var(--line);
  border-left: 3px solid var(--tc, var(--line-2));
  border-radius: var(--rad-s);
  background: var(--surface-1);
  padding: 16px 18px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.notif:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.notif-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.notif-kind {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--tc, var(--head));
}
.notif-rank { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-3); letter-spacing: 0.08em; }
.notif-loc { font-size: 0.94rem; font-weight: 600; margin-bottom: 5px; color: var(--head); }
.notif-meta {
  font-family: var(--font-mono); font-size: 0.61rem; color: var(--ink-3);
  letter-spacing: 0.04em; line-height: 1.75;
}


/* ================================================================
   14  LATENCY BARS - visualising the delivery gap
   ================================================================ */
.lat { display: flex; flex-direction: column; gap: 18px; }
.lat-row { display: grid; grid-template-columns: 1fr; gap: 7px; }
.lat-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.lat-name { font-size: 0.88rem; color: var(--head); font-weight: 500; }
.lat-name small { color: var(--ink-3); font-weight: 400; }
.lat-val {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2);
  letter-spacing: 0.04em; white-space: nowrap;
}
.lat-track {
  height: 7px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.lat-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--graphite), var(--slate));
  width: 0;
  transition: width 1.1s var(--ease);
}
.lat-row.in .lat-fill { width: var(--w, 0%); }
.lat-row.best .lat-name { color: var(--red-300); }
.lat-row.best .lat-val  { color: var(--red-300); }
.lat-row.best .lat-fill {
  background: linear-gradient(90deg, var(--red-500), var(--bolt-b));
  box-shadow: 0 0 14px rgba(196, 30, 58, 0.5);
}


/* ================================================================
   15  MEDIA
   ================================================================ */
.shot {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.shot:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--sh-3); }
.shot img {
  width: 100%; aspect-ratio: 16 / 9.4;
  object-fit: cover; object-position: top;
  cursor: zoom-in;
  background: var(--surface-2);
}
.shot figcaption { padding: 14px 18px; border-top: 1px solid var(--line); }
.shot .cap-tag {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 5px;
}
.shot .cap-txt { display: block; font-size: 0.86rem; color: var(--ink-2); line-height: 1.6; }

/* Natural-ratio variant. The default .shot crops to a uniform 16:9.4 so
   gallery grids line up; .shot--fit shows the whole image instead, and
   never upscales it past its native size. Use it for UI screenshots where
   cropping would hide controls. */
.shot--fit img {
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

/* Framed hero screenshot with a faux window chrome bar */
.frame {
  border-radius: var(--rad);
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--graphite); }
.frame-bar .tt {
  margin-left: 8px;
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
/* Never upscale past the image's native resolution. A small capture stays
   crisp and centered rather than being blown up to fill the frame; a large
   capture still scales down to the container. Do not set a fixed height or
   width/height attributes here unless they match the real file. */
.frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  cursor: zoom-in;
}

/* Replaceable image slot placeholder */
.img-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
  min-height: 240px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.014) 0 10px, transparent 10px 20px),
    var(--surface-1);
  border: 1px dashed var(--line-2);
  border-radius: var(--rad);
  padding: 24px;
}
.img-slot .tag {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--rad-xs); padding: 4px 10px;
}
.img-slot .hint { font-size: 0.8rem; color: var(--ink-3); max-width: 320px; line-height: 1.6; }

/* Lightbox */
.lbx {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(6, 7, 9, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.lbx.open { opacity: 1; pointer-events: all; }
.lbx img {
  max-width: min(1280px, 94vw); max-height: 88vh;
  border-radius: var(--rad-s);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  background: var(--surface-1);
}
.lbx-x {
  position: absolute; top: 22px; right: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2); border-radius: 50%;
  width: 40px; height: 40px; display: grid; place-items: center;
  cursor: pointer; color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.15s, background 0.15s;
}
.lbx-x:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.lbx-x svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Back to top */
.up {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2);
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), border-color 0.2s;
}
.up.show { opacity: 1; pointer-events: all; transform: none; }
.up:hover { border-color: var(--red-500); transform: translateY(-2px); }
.up svg { width: 15px; height: 15px; stroke: var(--head); fill: none; stroke-width: 2.2; }


/* ================================================================
   16  FORMS + MODAL
   ================================================================ */
.field {
  width: 100%; display: block;
  background: var(--surface-0);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-s);
  color: var(--head);
  font-size: 0.93rem;
  padding: 12px 14px; margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field:hover { border-color: var(--line-3); }
.field:focus {
  outline: none; border-color: var(--red-500);
  background: var(--surface-1);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.18);
}
.field::placeholder { color: var(--ink-3); }
textarea.field { min-height: 110px; resize: vertical; }
select.field {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626C7A' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px;
  padding-right: 38px;
}
.field-label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3);
}

.modal-bk {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(6, 7, 9, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.modal-bk.open { opacity: 1; pointer-events: all; }
.modal {
  position: relative; width: min(470px, 100%);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: var(--rad-l);
  box-shadow: var(--sh-3);
  padding: 32px 32px 28px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(10px) scale(0.99);
  transition: transform 0.28s var(--ease);
}
.modal-bk.open .modal { transform: none; }
.modal h2 { font-size: 1.22rem; margin-bottom: 7px; }
.msub { color: var(--ink-2); font-size: 0.88rem; line-height: 1.65; margin-bottom: 22px; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: 6px;
  transition: color 0.15s;
}
.modal-x:hover { color: var(--head); }
.modal-x svg { width: 17px; height: 17px; display: block; stroke: currentColor; fill: none; stroke-width: 2.2; }
.modal-msg { font-size: 0.85rem; margin-top: 12px; min-height: 1.2em; }
.modal-msg.err { color: var(--bad-text); }
.modal-msg.okk { color: var(--ok-text); }
.modal-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; padding: 18px 4px 8px;
}
.modal-success h3 { font-size: 1.12rem; margin-bottom: 9px; }
.modal-success p { color: var(--ink-2); font-size: 0.89rem; line-height: 1.7; }
.modal-success p a { color: var(--accent-text); }
.success-ic {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ok-text); border: 1px solid var(--ok-line);
  background: var(--ok-bg); margin-bottom: 16px;
}
.success-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.success-ic.fail { color: var(--bad-text); border-color: var(--bad-line); background: var(--bad-bg); }

.ss-spin {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--red-500);
  animation: ssRot 0.8s linear infinite;
}


/* ================================================================
   17  ACCORDION
   ================================================================ */
.faq-group { margin-bottom: 40px; }
.faq-group > .eyebrow { display: flex; margin-bottom: 14px; }
.qa {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--rad-s);
  margin-bottom: 9px;
  overflow: hidden;
  transition: border-color 0.22s, background 0.22s;
}
.qa:hover { border-color: var(--line-2); }
.qa.open { border-color: var(--accent-line); background: var(--surface-2); }
.qa-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; background: none; border: 0; cursor: pointer;
  padding: 17px 20px;
  font-size: 0.95rem; font-weight: 500; color: var(--head);
  transition: color 0.15s;
}
.qa-q:hover { color: #fff; }
.qa-q .pm { flex-shrink: 0; color: var(--ink-3); transition: transform 0.28s var(--ease), color 0.2s; }
.qa-q .pm svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; display: block; }
.qa.open .qa-q .pm { transform: rotate(135deg); color: var(--red-400); }
.qa-a { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); }
.qa-a-inner {
  padding: 4px 20px 18px;
  color: var(--ink-2); font-size: 0.9rem; line-height: 1.78;
}


/* ================================================================
   18  TIMELINE - release history
   ================================================================ */
.tl { position: relative; padding-left: 30px; }
.tl::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--red-700), var(--line) 22%, var(--line) 78%, transparent);
}
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--void); border: 2px solid var(--graphite);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tl-item.now::before {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.16);
}
.tl-item:hover::before { border-color: var(--red-400); }
.tl-era {
  position: relative; margin: 0 0 26px -30px;
  display: flex; align-items: center; gap: 12px;
}
.tl-era .lbl {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  background: var(--void); padding-right: 12px;
}
.tl-era::after { content: ''; flex: 1; height: 1px; background: var(--line); }


/* ================================================================
   19  TABS + LOG CARDS (status page)
   ================================================================ */
.tabs {
  display: inline-flex; gap: 3px; padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: var(--rad-s);
  background: var(--surface-1);
}
.tab {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2);
  background: transparent; border: 0; cursor: pointer;
  padding: 8px 15px; border-radius: var(--rad-xs);
  transition: color 0.2s, background 0.2s;
}
.tab:hover { color: var(--head); background: rgba(255, 255, 255, 0.05); }
.tab.on { color: #fff; background: var(--red-600); font-weight: 500; }

.log {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  margin-bottom: 22px;
  transition: border-color 0.28s, box-shadow 0.28s;
}
.log:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.log.hideme { display: none; }
.log-top {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start;
  padding: 26px 28px 22px;
  border-left: 3px solid var(--ec, var(--line-2));
}
.log-id {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 10px;
}
.log-id .d { width: 7px; height: 7px; border-radius: 2px; background: var(--ec, var(--ink-3)); }
.log-title { font-size: 1.2rem; margin-bottom: 7px; }
.log-sub { color: var(--ink-2); font-size: 0.9rem; line-height: 1.7; max-width: 60ch; }
.log-score { text-align: right; }
.log-score .n {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1;
  color: var(--head); letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.log-score .m { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }
.log-score .v {
  display: block; margin-top: 7px;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  max-width: 170px;
}

.log-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface-0);
  border-block: 1px solid var(--line);
}
.log-cell { padding: 16px 22px; border-right: 1px solid var(--line); }
.log-cell:last-child { border-right: 0; }
.log-cell .lbl {
  display: block; font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px;
}
.log-cell .val { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; color: var(--head); }
.log-cell .note {
  display: block; font-family: var(--font-mono); font-size: 0.58rem;
  color: var(--ink-3); margin-top: 5px; line-height: 1.55;
}

.diag { padding: 20px 28px 6px; }
.diag-head {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.diag-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.diag-row:first-of-type { border-top: 0; }
.diag-row .ic { flex-shrink: 0; width: 17px; height: 17px; margin-top: 3px; }
.diag-row .ic svg { width: 17px; height: 17px; display: block; stroke: currentColor; fill: none; }
.diag-row.pass .ic { color: var(--ok); }
.diag-row.warn .ic { color: var(--warn); }
.diag-row.fail .ic { color: var(--bad); }
.diag-row h4 {
  font-size: 0.93rem; margin-bottom: 5px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.diag-row p { color: var(--ink-2); font-size: 0.86rem; line-height: 1.68; }
.diag-row .chip { font-size: 0.54rem; padding: 2px 7px; }

.log-foot {
  padding: 18px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-0);
  color: var(--ink-2); font-size: 0.88rem; line-height: 1.72;
}

/* Risk / EF utility colors */
.c-tstm { color: var(--r-tstm); } .c-mrgl { color: var(--r-mrgl); }
.c-slgt { color: var(--r-slgt); } .c-enh  { color: var(--r-enh); }
.c-mdt  { color: var(--r-mdt); }  .c-high { color: var(--r-high); }
.c-cig  { color: var(--red-300); }
.c-efu { color: var(--ef-u); } .c-ef0 { color: var(--ef-0); }
.c-ef1 { color: var(--ef-1); } .c-ef2 { color: var(--ef-2); }
.c-ef3 { color: var(--ef-3); } .c-ef4 { color: var(--ef-4); }
.c-ef5 { color: var(--ef-5); }


/* ================================================================
   20  RELEASE ENTRIES
   ================================================================ */
.rel {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 28px 30px;
  transition: border-color 0.28s, box-shadow 0.28s;
}
.rel:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.rel-top { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 8px; }
.rel-v { font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--head); letter-spacing: -0.02em; }
.rel-d {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3);
  margin-left: auto;
}
.rel-title { font-size: 1.02rem; margin: 4px 0 8px; }
.rel-desc { color: var(--ink-2); font-size: 0.92rem; line-height: 1.72; margin-bottom: 18px; }
.rel-lbl {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
  margin: 22px 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.rel-list { list-style: none; }
.rel-list li {
  position: relative; padding: 5px 0 5px 20px;
  color: var(--ink-2); font-size: 0.9rem; line-height: 1.68;
}
.rel-list li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red-500);
}
.rel-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 6px; }
.rel-imgs .shot img { aspect-ratio: 16 / 9; }
.rel.dim { opacity: 0.7; }
.rel.dim:hover { opacity: 1; }
.rel.dim .rel-v { color: var(--ink-2); }


/* ================================================================
   21  ROADMAP
   ================================================================ */
.rd-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 28px;
}
.rd-arrow {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--line-2);
  transition: border-color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.rd-arrow:hover { border-color: var(--red-500); background: var(--surface-2); transform: translateY(-2px); }
.rd-arrow:active { transform: translateY(0); }
.rd-arrow svg { width: 17px; height: 17px; stroke: var(--head); fill: none; stroke-width: 2.2; }
.rd-pos { text-align: center; }
.rd-pos .ver {
  display: block;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--head); letter-spacing: -0.03em;
}
.rd-pos .idx {
  display: block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
/* Progress dots */
.rd-dots { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.rd-dots button {
  width: 22px; height: 3px; border-radius: 2px; border: 0; padding: 0;
  background: var(--graphite); cursor: pointer;
  transition: background 0.25s, width 0.25s var(--ease);
}
.rd-dots button.on { background: var(--red-500); width: 34px; }

.ver-head { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.ver-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ver-cards.solo { grid-template-columns: minmax(0, 620px); justify-content: center; }
.rm-tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.rm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.secret {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 11px; text-align: center; min-height: 170px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.014) 0 10px, transparent 10px 20px),
    var(--surface-1);
  border: 1px dashed var(--line-2); border-radius: var(--rad);
  padding: 24px;
}
.secret .label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.secret .sub   { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.secret .bars { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 160px; }
.secret .bars i { display: block; height: 7px; border-radius: 2px; background: var(--slate); }
.secret .bars i:nth-child(2) { width: 76%; }
.secret .bars i:nth-child(3) { width: 54%; }

.rd-hint {
  text-align: center; margin-top: 18px;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.rd.js .rd-slide { display: none; }
.rd.js .rd-slide.on { display: block; animation: rdIn 0.4s var(--ease); }
.rd:not(.js) .rd-slide { margin-bottom: 56px; }
@keyframes rdIn { from { opacity: 0; transform: translateX(var(--dir, 20px)); } to { opacity: 1; transform: none; } }


/* ================================================================
   22  FOOTER
   ================================================================ */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface-0);
  margin-top: 0;
  position: relative;
}
.site-foot::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.6), transparent);
}
.f-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding: 56px 0 44px;
}
.f-brand .bolt { width: 20px; height: 20px; }
.f-brand-row { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.f-brand .name { font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--head); }
.f-brand .name b { color: var(--red-300); }
.f-blurb { font-size: 0.85rem; color: var(--ink-3); line-height: 1.7; max-width: 34ch; }
.f-col h4 {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 14px;
}
.f-col a {
  display: block; font-size: 0.87rem; color: var(--ink-2);
  padding: 5px 0; transition: color 0.18s, transform 0.18s var(--ease);
}
.f-col a:hover { color: var(--red-300); transform: translateX(3px); }
.f-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok-text);
}
.f-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ssPulse 2.2s ease-out infinite; }

.f-copy {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 0;
  font-size: 0.79rem; color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.f-copy a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.f-copy a:hover { color: var(--red-300); }

.f-disc {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem; color: var(--ink-3); line-height: 1.75;
}
.f-disc svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; stroke: var(--ink-3); fill: none; stroke-width: 2; }
.f-disc strong { color: var(--ink-2); font-weight: 600; }
.f-disc a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.f-disc a:hover { color: var(--red-300); }


/* ================================================================
   23  UTILITIES
   ================================================================ */
.plain-content { width: min(760px, calc(100% - 48px)); margin-inline: auto; padding: 64px 0 88px; }
.plain-content p  { color: var(--ink-2); margin-bottom: 16px; line-height: 1.8; }
.plain-content a  { color: var(--accent-text); border-bottom: 1px solid rgba(232,105,124,0.3); }
.plain-content h2 { font-size: 1.32rem; margin: 32px 0 12px; }
.plain-content h3 { font-size: 1.08rem; margin: 24px 0 10px; }
.plain-content ul, .plain-content ol { margin: 0 0 16px 22px; color: var(--ink-2); }
.plain-content li { margin-bottom: 7px; line-height: 1.75; }
.plain-content img { border-radius: var(--rad); margin: 20px 0; }

.doc-block { margin-bottom: 44px; scroll-margin-top: calc(var(--hh) + 30px); }
.doc-block:last-child { margin-bottom: 0; }

/* Document table of contents rail */
.toc { font-size: 0.86rem; }
.toc h4 {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 12px;
}
.toc a {
  display: block; padding: 7px 0 7px 13px;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  transition: color 0.18s, border-color 0.18s;
}
.toc a:hover { color: var(--head); border-color: var(--red-500); }

.mono { font-family: var(--font-mono); }
.t-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-s { margin-bottom: 16px; }
.mb-m { margin-bottom: 28px; }
.mb-l { margin-bottom: 44px; }


/* ================================================================
   24  RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .toplinks, .top-cta { display: none; }
  .burger { display: flex; }
  .split-rail { grid-template-columns: 1fr; gap: 36px; }
  .rail-sticky { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-wide { grid-column: span 2; }
  .bento .b-tall { grid-row: span 1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ver-cards { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .log-meta { grid-template-columns: repeat(2, 1fr); }
  .log-cell:nth-child(2n) { border-right: 0; }
  .log-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .section { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
  .wrap, .wrap-narrow, .wrap-wide { width: calc(100% - 36px); }
  .grid-2, .grid-3, .grid-4, .rel-imgs, .bento { grid-template-columns: 1fr; }
  .bento .b-wide { grid-column: span 1; }
  .hero--page { padding: calc(var(--hh) + 52px) 0 52px; }
  .hero--tall { padding: calc(var(--hh) + 58px) 0 64px; }
  .hero--slim { padding: calc(var(--hh) + 40px) 0 40px; }
  .hero h1 { max-width: none; }
  .log-top { grid-template-columns: 1fr; }
  .log-score { text-align: left; }
  .wire-row { grid-template-columns: 52px 1fr auto; }
  .wire-row .ofc { display: none; }
  .data-table th, .data-table td { padding: 11px 13px; }
  .cta-box { padding: 48px 22px; }
  .card { padding: 22px 20px; }
  .modal { padding: 26px 22px 22px; }
  .f-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 32px; }
  .f-copy { justify-content: center; text-align: center; }
  .tl { padding-left: 24px; }
  .tl-item::before { left: -24px; }
  .tl-era { margin-left: -24px; }
  .up { right: 14px; bottom: 14px; }
  .hero-credit { display: none; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 6px; }
}


/* ================================================================
   25  REDUCED MOTION / FORCED COLORS
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .aos { opacity: 1; transform: none; }
  .hero-in > * { opacity: 1; transform: none; }
  .hero-media { animation: none; transform: scale(1.02); }
  .card:hover, .shot:hover, .up:hover, .notif:hover,
  .rd-arrow:hover, .btn:hover, .btn-ghost:hover, .btn-dl:hover { transform: none; }
  .lat-fill { transition: none; width: var(--w, 0%); }
}

@media (prefers-contrast: more) {
  :root {
    --line:   rgba(255, 255, 255, 0.18);
    --line-2: rgba(255, 255, 255, 0.3);
    --ink:    #C4CBD5;
    --ink-2:  #AEB6C2;
    --ink-3:  #8792A0;
  }
}

@media (forced-colors: active) {
  .card, .wire, .log, .rel, .qa { border: 1px solid CanvasText; }
  .btn, .btn-ghost, .btn-dl { border: 1px solid ButtonText; }
}

/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar.scrolled { background: rgba(10, 11, 13, 0.97); }
  .sheet    { background: #0E1013; }
  .card-glass, .wire-glass { background: var(--surface-1); }
  .up       { background: var(--surface-1); }
  .lbx      { background: rgba(6, 7, 9, 0.96); }
  .modal-bk { background: rgba(6, 7, 9, 0.92); }
}

/* Print */
@media print {
  .topbar, .sheet, .up, .lbx, .modal-bk, .hero-media, .rd-controls { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .log, .rel { border: 1px solid #ccc; break-inside: avoid; }
}
