/*
Theme Name: StormSync Mist (preview)
Theme URI: https://stormsyncapp.com
Author: Zloy
Author URI: https://stormsyncapp.com/developer
Description: Theme for StormSyncApp.com. Mist teal ground with a wind-field background, pink brand accent, alert colors reserved for alerts.
Version: 6.0.0
Text Domain: stormsync-mist
*/

/* =====================================================================
   CONTENTS
   01 Tokens        02 Base           03 Layout and shared parts
   04 Header        05 Footer         06 Home page
   07 Live alert feed (styled through its existing classes only)
   08 Overlays      09 Responsive     10 Reduced motion and print
   ===================================================================== */


/* =====================================================================
   01  TOKENS
   ===================================================================== */
:root {
  /* Ground and surfaces */
  --ground:    #e4eeec;   /* page ground, the wind field shows on it */
  --ground-2:  #d6e6e2;   /* deeper bands */
  --paper:     #f8fbfa;   /* sheets and bands that sit above the wind */
  --line:      #c2d6d1;
  --line-2:    #9fbcb6;

  /* Ink */
  --ink:       #0d2e31;
  --ink-2:     #284a4d;
  --muted:     #48676a;   /* 5.0:1 on --ground, 5.8:1 on --paper */
  --teal:      #17605c;   /* secondary accent: step numbers, wind */
  --wind-rgb:  23, 96, 92;

  /* Brand */
  --pink:      #d81f57;   /* buttons, active nav, small accents (white text 4.9:1) */
  --pink-dk:   #b3195a;   /* pink text on the light grounds */
  --pink-tint: #fbe4ec;

  /* UI states, not alerts */
  --ok:    #1d6f3c;  --ok-bg:   #e3f2e8;
  --warn:  #7f5300;  --warn-bg: #fbefcf;  --warn-dot: #d99a00;
  --bad:   #ab2219;  --bad-bg:  #fbe6e4;

  /* Alert tiers: alerts only */
  --a-tor: #ff4b3e;
  --a-sev: #ff9f1c;
  --a-ff:  #3ccf6e;
  --a-wat: #f2d21b;
  --a-oth: #5aa8ff;

  /* Broadcast panel (the live feed and screenshot mats) */
  --panel:    #0b2124;
  --panel-2:  #10292d;
  --panel-3:  #173439;
  --panel-ln: #224349;
  --panel-tx: #e4efee;
  --panel-mu: #96b3b1;

  /* Type: Fira Sans for everything, Fira Mono for times, versions and data */
  --font: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fira Mono", "DejaVu Sans Mono", Consolas, monospace;

  /* Layout */
  --max: 86rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --band: clamp(3.5rem, 7vw, 6rem);
  --r: 6px;
  --r-lg: 10px;
  --head-h: 4.5rem;
  --shadow: none;
}


/* =====================================================================
   02  BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 1rem);
  scrollbar-color: var(--line-2) var(--ground);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-wrap: break-word;
  caret-color: var(--pink);
}

::selection { background: var(--pink-tint); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--pink-dk); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
strong, b { font-weight: 600; }

code {
  font-family: var(--mono);
  font-size: .9em;
}

button { font: inherit; color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: .75rem;
  top: -3.5rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: .75rem; color: #fff; }

/* The wind field canvas, inserted by assets/site.js */
.wind {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}


/* =====================================================================
   03  LAYOUT AND SHARED PARTS
   ===================================================================== */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Bands that sit above the wind field */
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }

/* Buttons */
.btn, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn { background: var(--pink); color: #fff; }
.btn:hover { background: #c51b50; color: #fff; }
.btn:active { background: #a91546; }
.btn-lg { min-height: 3.25rem; padding: 0 1.6rem; font-size: 1.075rem; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 2.25rem; padding: 0 .85rem; font-size: .92rem; }

/* Text link with a drawn arrow */
.more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--pink-dk);
  text-decoration: none;
  padding-block: .25rem;
}
.more::after {
  content: "";
  width: .5rem;
  height: .5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.more:hover { color: var(--ink); }
.more:hover::after { transform: translateX(2px) rotate(45deg); }

.more-down::after { transform: rotate(135deg) translate(-2px, 2px); }
.more-down:hover::after { transform: rotate(135deg) translate(0, 2px); }

/* Small labels next to headings: plain white boxes */
.tag {
  display: inline-block;
  vertical-align: .3em;
  margin-left: .4rem;
  padding: .14rem .55rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-dev { color: var(--ink); }

.fine { font-size: .875rem; color: var(--muted); }


/* =====================================================================
   04  HEADER
   ===================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  gap: .5rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand .bolt { width: 52px; height: 52px; margin: -8px -12px -8px -14px; flex: none; }
.brand .name { font-weight: 800; font-size: 1.28rem; letter-spacing: .04em; color: var(--ink); }
.brand .name b { font-weight: 800; color: var(--pink); }
.brand .vt {
  font-family: var(--font);
  font-size: .72rem;
  color: var(--muted);
  border-left: 1px solid var(--line-2);
  padding-left: .55rem;
  margin-left: .15rem;
}

.toplinks {
  display: flex;
  align-items: stretch;
  gap: .25rem;
  margin-left: auto;
  align-self: stretch;
  min-width: 0;
}
.toplinks a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 .75rem;
  color: var(--ink-2);
  font-size: .98rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.toplinks a::after {
  content: "";
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: -1px;
  height: 3px;
  background: transparent;
}
.toplinks a:hover { color: var(--ink); }
.toplinks a:hover::after { background: var(--line-2); }
.toplinks a.on { color: var(--ink); font-weight: 600; }
.toplinks a.on::after { background: var(--pink); }

.top-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  border-radius: var(--r);
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
}
.top-cta:hover { background: #c51b50; color: #fff; }


/* =====================================================================
   05  FOOTER
   ===================================================================== */
.site-foot {
  background: var(--ground-2);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .94rem;
  padding-top: 3rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, .7fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.f-brand-row { font-weight: 800; font-size: 1.1rem; color: var(--ink); margin-bottom: .4rem; letter-spacing: .01em; }
.foot-line { color: var(--muted); max-width: 30ch; margin-bottom: 1rem; }
.foot-h { font-weight: 600; color: var(--ink); margin: 0 0 .5rem; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; }
.foot-col a {
  color: var(--ink-2);
  text-decoration: none;
  padding-block: .2rem;
  overflow-wrap: anywhere;
}
.foot-col a:hover { color: var(--pink-dk); text-decoration: underline; }

.f-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
}
.f-status:hover { border-color: var(--ink); }
.f-status i { display: none; }
.f-status.ok   { color: var(--ink); }
.f-status.warn { color: var(--warn); }
.f-status.bad  { color: var(--bad); }

.foot-base {
  border-top: 1px solid var(--line-2);
  padding-block: 1.5rem 2rem;
}
.f-disc { max-width: 88ch; font-size: .84rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.f-disc strong { color: var(--ink); }
.f-copy { font-size: .84rem; color: var(--muted); margin: 0; }


/* =====================================================================
   06  HOME PAGE
   ===================================================================== */

/* ---- Hero: headline on the wind, then the intro and the live wire ---- */
.hx { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hx-title {
  font-size: clamp(2.5rem, 1.2rem + 4.9vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.022em;
  max-width: 19ch;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.hx-lede {
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0;
}
.hx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.hx-note {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--muted);
}

.hx-btns { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.75rem 0 1.5rem; }
.hx-fine { font-size: .88rem; color: var(--ink-2); max-width: 56ch; margin-bottom: .6rem; }
.hx-fine strong { color: var(--ink); }

/* ---- How a warning reaches your stream ---- */
.flow {
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding-block: var(--band);
}
.flow h2 { max-width: 22ch; margin-bottom: 2.25rem; }
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: none;
}
.flow-steps li {
  position: relative;
  padding: 1.5rem 2rem 0 0;
  border-top: 2px solid var(--ink);
}
.flow-steps li + li { padding-left: 2rem; border-left: 1px solid var(--line); }
.flow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: rotate(45deg);
  background: var(--paper);
}
.flow-n {
  display: block;
  font-family: var(--font);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 1rem;
}
.flow-steps h3 { font-size: 1.25rem; font-weight: 600; }
.flow-steps p { color: var(--ink-2); max-width: 36ch; }
.flow-foot {
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
  max-width: 70ch;
}

/* ---- What goes on stream: tab list and a broadcast stage ---- */
.onair { padding-block: var(--band); }
.onair-in {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.onair-head p { color: var(--ink-2); }
.onair .tabs { display: none; }
.tabs-on .tabs {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 1.5rem 0;
}
.tabs [role="tab"] {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0 .9rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}
.tabs [role="tab"]::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 1px;
  background: var(--line-2);
  flex: none;
}
.tabs [role="tab"]:hover { color: var(--ink); background: rgba(248, 251, 250, .7); }
.tabs [role="tab"][aria-selected="true"] {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  font-weight: 600;
}
.tabs [role="tab"][aria-selected="true"]::before { background: var(--pink); }

.onair-stage { min-width: 0; }
.pane + .pane { margin-top: 3rem; }
.tabs-on .pane + .pane { margin-top: 0; }
.pane[hidden] { display: none; }
.stage-shot {
  margin: 0;
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: clamp(.5rem, 1.2vw, .9rem);
  box-shadow: var(--shadow);
}
.stage-shot img {
  width: 100%;
  border-radius: var(--r);
  background: var(--panel-2);
  cursor: zoom-in;
}
.stage-shot--small {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
}
.stage-shot--small img { width: auto; max-width: 100%; max-height: 100%; }
.stage-shot figcaption { color: var(--panel-mu); font-size: .85rem; margin-top: .75rem; }
.stage-cap { color: var(--panel-mu); font-size: .85rem; margin: .75rem 0 0; grid-column: 1 / -1; }

/* Chaser overlay tab: a mosaic of real chaser elements */
.stage-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: .75rem;
  align-items: center;
  padding: clamp(.75rem, 2vw, 1.25rem);
}
.stage-mosaic figure { margin: 0; }
.stage-mosaic img { width: 100%; border-radius: 4px; cursor: zoom-in; }
.mosaic-col { display: flex; flex-direction: column; gap: .75rem; }

.pane-txt {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: .5rem 2rem;
  margin-top: 1.5rem;
}
.pane-txt h3 { font-size: 1.2rem; margin: 0; }
.pane-txt p { color: var(--ink-2); max-width: 62ch; }

/* ---- On the road / After the storm ---- */
.field {
  background: var(--paper);
  border-block: 1px solid var(--line);
  padding-block: var(--band);
}
.field-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field-col { padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.field-col + .field-col {
  padding-right: 0;
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
}
.field-col p { color: var(--ink-2); max-width: 56ch; }
.field-shot { margin: 1.5rem 0 1.25rem; max-width: 15rem; }
.field-shot img { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); cursor: zoom-in; }
.field-shot figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.field-col .more { margin-top: .5rem; }

/* ---- Weather Graphics ---- */
.wg {
  background: var(--ground-2);
  border-block: 1px solid var(--line);
  padding-block: var(--band);
}
.field + .wg { border-top: 0; }
.wg-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: 2.5rem;
}
.wg-copy p { color: var(--ink-2); max-width: 60ch; }
.noai {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink) !important;
  font-size: 1.02rem;
}
.wg-side { font-size: .95rem; color: var(--ink-2); }
.wg-side p { color: var(--ink-2); }
.wg-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.wg-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.wg-shots figure { margin: 0; }
.wg-shots img {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.wg-shots figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* ---- Latest release ---- */
.lr {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-block: var(--band);
}
.lr-in {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
}
.lr-ver { font-weight: 800; font-size: 2.2rem; line-height: 1.1; color: var(--ink); margin: .25rem 0 .2rem; }
.lr-date { font-size: .95rem; color: var(--muted); }
.lr-side > p:not(.lr-ver):not(.lr-date) { color: var(--ink-2); }
.lr-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.lr-items li {
  padding: 1rem 1.5rem 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .98rem;
}
.lr-items li:nth-child(even) { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--line); }
.lr-items strong { display: block; color: var(--ink); margin-bottom: .2rem; }
.lr-fixes { margin-top: 1.75rem; }
.lr-fixes h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.lr-fixes ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); font-size: .98rem; }
.lr-fixes li + li { margin-top: .4rem; }
.lr-help { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }

/* ---- A note from me ---- */
.letter-sec { padding-block: var(--band); }
.letter {
  max-width: 46rem;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.letter p { color: var(--ink-2); font-size: 1.05rem; }
.credit {
  margin: 1.75rem 0;
  padding: 1rem 1.1rem;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.credit .credit-lbl { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.credit-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.credit-row code { font-size: .95rem; color: var(--ink); }
.copy-msg { font-size: .88rem; color: var(--ok); }
.sig {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.25rem;
  font-weight: 800;
  font-size: 1.25rem !important;
  color: var(--ink) !important;
  margin: 0;
}
.sig a { font-size: .95rem; font-weight: 500; }

/* ---- Final download band ---- */
.go {
  padding-block: var(--band);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.go-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.go h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); max-width: 13ch; }
.go-body > p:first-child { color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
.go-body .btn { margin: .5rem 0 1.25rem; }
.go-body .fine { margin-bottom: .5rem; }


/* =====================================================================
   06B  INNER PAGES: shared parts
   Most sections sit straight on the wind field. .sheet bands sit above it.
   ===================================================================== */
.hero { padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(2.25rem, 4.5vw, 3.5rem); }
.hero-media { display: none; }
.hero .hero-inner, .hero .hero-in { position: relative; }
.hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 20ch;
  margin-bottom: 1.1rem;
}
.lede {
  font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}
.hero-cta, .cta-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.hero .hero-cta { margin-top: 1.75rem; }

/* Facts line under a lede (new .facts and the older .hero-meta) */
.facts, .hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line-2);
  max-width: 52rem;
}
.facts li, .hero-meta span { font-size: 1rem; font-weight: 600; color: var(--ink); }
.facts li span, .hero-meta span { display: block; }
.facts li span { font-size: .82rem; font-weight: 400; color: var(--muted); }
.hero-meta span { font-size: .82rem; font-weight: 400; color: var(--muted); }
.hero-meta b { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }

.status-line { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; color: var(--ink-2); font-weight: 500; }
.status-line .tag { margin-left: 0; }

.section { padding-block: var(--band); }
.section-sm { padding-block: calc(var(--band) * .55); }
.sheet, .section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.sheet + .sheet { border-top: 0; }

.sec-title, .h-sec {
  font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.1;
  margin-bottom: .8rem;
}
.sec-lede, .h-sub { color: var(--ink-2); max-width: 62ch; font-size: 1.06rem; margin-bottom: 1.5rem; }
h3.h-sub { color: var(--ink); font-size: 1.2rem; font-weight: 600; margin: 2rem 0 .6rem; }
.sub-title { font-size: 1.2rem; margin-top: 2rem; }
.section p, .sheet p { color: var(--ink-2); }
.section p strong, .sheet p strong { color: var(--ink); }
.section .more { margin-top: .5rem; }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split > * { min-width: 0; }
.split-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.split-wide > .shot { position: sticky; top: calc(var(--head-h) + 1.5rem); }
.split-head { align-items: end; margin-bottom: 2rem; }
.split-head .sec-title, .split-head .sec-lede { margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

/* Ruled grids: columns divided by hairlines, no boxes */
.ruled {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}
.ruled-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ruled-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ruled > * { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--line-2); }
.ruled-4 > * + * { padding-left: 1.5rem; border-left: 1px solid var(--line-2); }
.ruled-2 > :nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line-2); }
.ruled h3 { font-size: 1.12rem; }
.ruled p { margin: 0; }
.plain-list li { color: var(--ink-2); }

/* Definition index: name on the left, text on the right */
.index { margin: 0; border-top: 1px solid var(--line-2); }
.index > div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: .25rem 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.index dt { font-weight: 600; color: var(--ink); }
.index dd { margin: 0; color: var(--ink-2); }

.spec { margin: 0; border-top: 1px solid var(--line-2); }
.spec > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* Screenshots on a dark mat */
.shot { margin: 0; min-width: 0; }
.shot img, .shot--fit img {
  width: 100%;
  border-radius: var(--r);
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.shot img[data-big] { cursor: zoom-in; }
.shot figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.shot figcaption b, .cap-tag { color: var(--ink); font-weight: 600; }
.cap-tag, .cap-txt { display: block; }
.shot-narrow { max-width: 56rem; margin-top: 2rem; }
.gallery { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-big .shot img { box-shadow: var(--shadow); }

/* Lists with square markers */
.ticks, .rel-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ticks li, .rel-list li { position: relative; padding-left: 1.2rem; margin-bottom: .6rem; color: var(--ink-2); }
.ticks li::before, .rel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .42rem;
  height: .42rem;
  background: var(--pink);
}
.ticks-no li::before { background: var(--ink-2); height: 2px; top: .78em; }
.ticks strong, .rel-list strong { color: var(--ink); }

/* Callout: full border and tint, never a side bar */
.callout, .note {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink-2);
  font-size: .98rem;
}
.sheet .callout, .sheet .note { background: var(--ground); }
.note.info { background: var(--ground); }
.sheet .note.info { background: var(--ground); }
.callout strong, .note strong { color: var(--ink); }
.mb-m { margin-bottom: 1.25rem; }
.mb-l { margin-bottom: 2rem; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.compare > div {
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}
.sheet .compare > div { background: var(--ground); }
.compare-wide { margin-top: 1rem; }

/* Final call to action band on inner pages */
.go .hero-cta { margin: .5rem 0 1rem; }
.terms-note { font-size: .86rem; color: var(--muted); margin-top: .75rem; }

/* ---- Chasers: element gallery ---- */
.els {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.el {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: .75rem .75rem 1.1rem;
}
.el-tall { grid-row: span 2; }
.el-shot {
  margin: 0 0 1rem;
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: 1rem;
  background: var(--panel);
  border-radius: var(--r);
  flex: 1;
}
.el-shot img { width: auto; max-width: 100%; max-height: 20rem; border-radius: 4px; cursor: zoom-in; }
.el-tall .el-shot img { max-height: 34rem; }
.el h3, .el p { padding-inline: .5rem; }
.el h3 { margin-bottom: .25rem; }
.el p { margin: 0; color: var(--ink-2); }
.el-text { justify-content: flex-end; background: var(--ground-2); padding-top: 1.5rem; }

/* ---- Weather Graphics: the not-AI band ---- */
.noai-band {
  background: var(--ground-2);
  border-block: 1px solid var(--line);
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
}
.noai-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 1rem 3rem;
  align-items: center;
}
.noai-big {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}
.noai-in p:last-child { color: var(--ink-2); font-size: 1.06rem; margin: 0; }

/* ---- Download ---- */
.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.dl-us { margin-top: 1.25rem; }
.dl-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.btn-dl { width: 100%; }
.dl-meta { margin: .85rem 0 1rem; font-weight: 600; color: var(--ink); }
.dl-box .fine { margin-bottom: .6rem; }
.steps { margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: st; }
.steps li {
  counter-increment: st;
  position: relative;
  padding: .85rem 0 .85rem 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.steps li:first-child { border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: .8rem;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal);
  font-weight: 600;
  font-size: .95rem;
}
.steps strong { color: var(--ink); }

/* ---- About: speed chart and severity ranks ---- */
.speed, .ranks {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.speed-title { font-weight: 600; color: var(--ink) !important; margin-bottom: 1.1rem; }
.speed-row {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) minmax(0, 6.5rem);
  align-items: center;
  gap: .75rem;
  padding: .45rem 0;
}
.speed-name { font-size: .92rem; color: var(--ink-2); }
.speed-val { font-size: .9rem; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.speed-track {
  position: relative;
  height: .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.speed-track i {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: var(--a);
  width: max(.7rem, calc(var(--b) - var(--a)));
  border-radius: 4px;
  background: var(--ink-2);
}
.speed-row.is-us .speed-track i { background: var(--pink); }
.speed-row.is-us .speed-name { color: var(--ink); font-weight: 600; }
.speed figcaption { margin-top: .9rem; font-size: .84rem; color: var(--muted); }

.rank {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .75rem;
  margin-bottom: .4rem;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  font-size: .95rem;
}
.rank::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: var(--w);
  background: var(--c, var(--a-tor));
}
.rank.r-wat { --c: #c9a800; }
.rank span { color: var(--ink-2); }
.rank b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ranks .fine { margin-top: .75rem; }

/* ---- Developer: essay rows ---- */
.essay-part {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 5vw, 4rem);
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.essay-part:first-child { border-top: 2px solid var(--ink); }
.essay-part > div { max-width: 64ch; }
.essay-part .sec-title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }

/* ---- Contact and 404: ways to go ---- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.way {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  color: var(--ink);
  text-decoration: none;
}
.way h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.way p { flex: 1; color: var(--ink-2); }
.way .btn, .way .btn-line { margin-top: .5rem; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.way-link:hover { border-color: var(--pink); color: var(--ink); }
.way-link:hover h3 { color: var(--pink-dk); }
.way-link p { margin: 0; }

/* ---- Roadmap: now / next / later ---- */
.nnl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.nnl-col { padding: 1.25rem 1.5rem 0 0; }
.nnl-col + .nnl-col { padding-left: 1.5rem; border-left: 1px solid var(--line-2); }
.nnl-col h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .2rem; }
.nnl-col:first-child h3 { color: var(--teal); }
.nnl-col:nth-child(2) h3 { color: var(--pink-dk); }
.nnl-when { font-weight: 600; color: var(--ink) !important; margin-bottom: .6rem; }


/* =====================================================================
   06C  DATA, LOG AND LEGAL PAGES
   (roadmap carousel, FAQ, release history, performance log,
   maintenance, privacy, terms). Markup and scripts unchanged.
   ===================================================================== */
.wrap-narrow { width: min(100% - 2 * var(--gutter), 52rem); margin-inline: auto; }
.plain-content { width: min(100% - 2 * var(--gutter), 52rem); margin: 0 auto; padding-block: var(--band); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.inline-link { color: var(--pink-dk); }

/* Status chips. Dots are switched off everywhere. */
.d { display: none !important; }
.chip, .status-pill {
  display: inline-flex;
  align-items: center;
  padding: .14rem .55rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  vertical-align: middle;
}
.chip, .status-pill { background: #fff; }
.chip.ok, .status-pill:not(.warn):not(.bad) { color: var(--ink); }
.chip.warn, .status-pill.warn { color: var(--warn); }
.chip.bad, .status-pill.bad { color: var(--bad); }
.chip.accent { color: var(--ink); }
.status-pill { font-size: .92rem; padding: .3rem .8rem; }
.hero .status-pill { margin-top: .25rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.15rem 1.25rem;
  min-width: 0;
}
.card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.card p { color: var(--ink-2); }
.rm-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.rm-tag { font-size: .8rem; color: var(--muted); }

/* Sidebar layouts on FAQ, privacy, terms, maintenance */
.split-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.rail-sticky { position: sticky; top: calc(var(--head-h) + 1.25rem); }
.toc h4 { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: .5rem; }
.toc a {
  display: block;
  padding: .4rem 0 .4rem .8rem;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
  font-size: .94rem;
  text-decoration: none;
}
.toc a:hover { color: var(--pink-dk); border-left-color: var(--pink); }
.doc-block { margin-bottom: 2.75rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.doc-block:last-child { margin-bottom: 0; }
.doc-block > .h-sec { padding-top: 1.5rem; border-top: 1px solid var(--line-2); }
.doc-block:first-child > .h-sec, .doc-block > .h-sec.mt-0 { border-top: 0; padding-top: 0; }
.prose { max-width: 70ch; }
.prose p { color: var(--ink-2); }
.prose code, .section code { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); font-weight: 600; text-align: right; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--r); margin: 1rem 0 1.5rem; background: var(--paper); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .94rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: .75rem .95rem; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--ground-2); color: var(--ink); font-weight: 600; }
.data-table td { color: var(--ink-2); }
.data-table td:first-child { color: var(--ink); font-weight: 500; width: 32%; }
.data-table tr:last-child td { border-bottom: 0; }

/* FAQ accordion */
.faq-group { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--head-h) + 1rem); }
.faq-title { font-size: 1.45rem; font-weight: 800; margin-bottom: .5rem; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-of-type { border-top: 2px solid var(--ink); }
.qa-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 3.1rem;
  padding: .75rem 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.qa-q:hover { color: var(--pink-dk); }
.pm { position: relative; flex: none; width: 1.6rem; height: 1.6rem; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); }
.pm::before, .pm::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .62rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.open .pm { border-color: var(--pink); color: var(--pink-dk); }
.qa.open .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa-a-inner { padding: 0 2.5rem 1.2rem 0; color: var(--ink-2); max-width: 70ch; }
.js .qa-a { max-height: 0; overflow: hidden; }

/* Roadmap carousel */
.rd-controls { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.rd-arrow {
  position: relative;
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.rd-arrow:hover { border-color: var(--pink); color: var(--pink-dk); }
.rd-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .6rem;
  height: .6rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-30%, -50%) rotate(45deg);
}
#rdNext::before { transform: translate(-70%, -50%) rotate(-135deg); }
.rd-pos { display: flex; align-items: baseline; gap: .75rem; }
.rd-pos .ver { font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.rd-pos .idx { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-slide { margin-bottom: 2rem; }
.rd.js .rd-slide { display: none; margin-bottom: 0; }
.rd.js .rd-slide.on { display: block; }
.ver-head { margin-bottom: 1rem; }
.ver-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.ver-cards.solo { grid-template-columns: minmax(0, 40rem); }
.secret { display: flex; flex-direction: column; gap: .6rem; padding: 1.15rem 1.25rem; background: var(--ground-2); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.secret .label { font-weight: 700; color: var(--ink); }
.secret .bars { display: flex; flex-direction: column; gap: .4rem; }
.secret .bars i { display: block; height: .55rem; border-radius: 2px; background: var(--line-2); }
.secret .bars i:nth-child(1) { width: 85%; }
.secret .bars i:nth-child(2) { width: 62%; }
.secret .bars i:nth-child(3) { width: 38%; }
.secret .sub { font-size: .92rem; color: var(--muted); }
.rd-dots { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: 1.5rem; }
.rd-dots button { position: relative; width: 1.9rem; height: 1.9rem; border: 0; padding: 0; background: none; cursor: pointer; }
.rd-dots button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.2rem;
  height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  transform: translate(-50%, -50%);
}
.rd-dots button:hover::before { background: var(--muted); }
.rd-dots button.on::before { background: var(--pink); }
.rd-hint { margin-top: .5rem; font-size: .88rem; color: var(--muted); }

/* Release history timeline */
.tl { position: relative; padding-left: 1.75rem; }
.tl::before { content: ""; position: absolute; left: .35rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line-2); }
.tl-era { margin: 2.5rem 0 1rem; }
.tl-era:first-child { margin-top: 0; }
.tl-era .lbl { display: inline-block; margin-left: -1.75rem; padding: .25rem .75rem; background: var(--ink); color: #fff; border-radius: 4px; font-weight: 600; font-size: .9rem; }
.tl-item { position: relative; margin-bottom: 1.1rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem + .35rem - 5px);
  top: 1.55rem;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--paper);
  border: 2px solid var(--teal);
}
.tl-item.now::before { background: var(--pink); border-color: var(--pink); }
.rel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.45rem; }
.tl-item.now .rel { border-color: #eaa9bf; box-shadow: var(--shadow); }
.rel-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-bottom: .6rem; }
.rel-v { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.rel-d { margin-left: auto; font-size: .9rem; color: var(--muted); }
.rel-desc { color: var(--ink-2); }
.rel-lbl { margin: 1.1rem 0 .55rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .95rem; color: var(--ink); }
.rel .rel-list { font-size: .98rem; margin-bottom: 0; }
.rel.dim { background: var(--ground-2); }
.rel-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem; }

/* Performance log */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.metric { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--line-2); }
.metric + .metric { padding-left: 1.25rem; border-left: 1px solid var(--line-2); }
.metric .n { font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.metric .u { font-size: 1rem; color: var(--muted); font-weight: 600; }
.metric .c { font-size: .9rem; color: var(--muted); }
.sx-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.sx-tools .tabs { display: inline-flex; padding: .2rem; border: 1px solid var(--line-2); border-radius: 4px; background: var(--paper); }
.sx-tools .tab { min-height: 2.4rem; padding: 0 1.05rem; border: 0; border-radius: 4px; background: none; font-size: .94rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.sx-tools .tab:hover { color: var(--ink); }
.sx-tools .tab.on { background: var(--ink); color: #fff; }
.log { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 1.25rem; overflow: hidden; }
.log-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; padding: 1.25rem 1.4rem; }
.log-id { font-size: .82rem; color: var(--muted); margin-bottom: .35rem; letter-spacing: .02em; }
.log-title { font-size: 1.35rem; font-weight: 800; margin-bottom: .3rem; }
.log-sub { color: var(--ink-2) !important; max-width: 64ch; margin: 0; }
.log-score { text-align: right; flex: none; }
.log-score .n { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--ink); }
.log-score .m { color: var(--muted); font-weight: 600; }
.log-score .v { display: block; margin-top: .35rem; font-size: .84rem; color: var(--muted); }
.log-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--ground); }
.log-cell { display: flex; flex-direction: column; gap: .1rem; padding: .8rem 1.4rem; border-right: 1px solid var(--line); min-width: 0; }
.log-cell:last-child { border-right: 0; }
.log-cell .lbl { font-size: .8rem; color: var(--muted); }
.log-cell .val { font-weight: 700; color: var(--ink); }
.log-cell .note { display: block; padding: 0; border: 0; background: none; font-size: .8rem; color: var(--muted); }
.c-tstm { color: #3d7a3d !important; }
.c-mrgl { color: #1d6b34 !important; }
.c-slgt { color: #806600 !important; }
.c-enh  { color: #a04f00 !important; }
.c-mdt  { color: #b8241b !important; }
.c-high { color: #9c1470 !important; }
.c-cig  { color: var(--ink) !important; }
.c-efu, .c-ef0, .c-ef1 { color: var(--ink-2) !important; }
.c-ef2 { color: #806600 !important; }
.c-ef3 { color: #a04f00 !important; }
.c-ef4 { color: #b8241b !important; }
.c-ef5 { color: #861010 !important; }
.diag { border-top: 1px solid var(--line); padding: 1rem 1.4rem; }
.diag-head { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; color: var(--ink); }
.diag-row { display: grid; grid-template-columns: .7rem minmax(0, 1fr); gap: .85rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.diag-head + .diag-row { border-top: 0; padding-top: .2rem; }
.diag-row .ic { width: .6rem; height: .6rem; margin-top: .5rem; border-radius: 2px; background: var(--ok); }
.diag-row.warn .ic { background: var(--warn-dot); }
.diag-row.fail .ic { background: var(--bad); }
.diag-row h4 { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .25rem; font-size: 1rem; }
.diag-row p { font-size: .97rem; }
.log-foot { border-top: 1px solid var(--line); background: var(--ground); padding: .95rem 1.4rem; font-size: .97rem; color: var(--ink-2); }
.log-foot strong { color: var(--ink); }
.example-flag { display: inline-block; margin-bottom: .6rem; padding: .15rem .55rem; border: 1px solid var(--line-2); background: #fff; color: var(--warn); border-radius: 4px; font-size: .82rem; font-weight: 600; }
.exlist { display: flex; flex-direction: column; font-weight: 700; line-height: 1.45; }
.ovl-card { position: relative; width: min(100%, 58rem); max-height: 100%; overflow: auto; background: var(--ground); border-radius: var(--r-lg); padding: 3.75rem 1rem 1rem; }

/* Maintenance windows */
.mw-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.mw-card.mw-active { border-color: var(--warn-dot); }
.mw-card.mw-upcoming { border-color: #f1b8cb; }
.mw-card.mw-past { background: var(--ground-2); }
.mw-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .5rem; }
.mw-title { font-size: 1.1rem; margin-bottom: .2rem; }
.mw-when { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mw-reason { color: var(--ink-2); margin: 0; }
.mw-details { margin-top: .75rem; padding: .65rem .85rem; background: var(--ground); border-radius: var(--r); font-size: .94rem; color: var(--ink-2); }
.mw-empty { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.15rem 1.3rem; }
.mw-empty p { color: var(--ink-2); }

/* Old helpers still referenced by some templates */
.next-up-sec { padding-bottom: 0; }
.next-up { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.next-up .chip { margin-bottom: .75rem; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }


/* =====================================================================
   07  LIVE ALERT FEED
   Styled only through the existing contract: .feed, #ss-feed-live,
   #ss-feed-list, #ss-feed-foot, li > .f-l (b, span, .f-pill) + .f-r,
   tiers t-tor t-sev t-ff t-wat t-oth, states t-none and t-down.
   ===================================================================== */
.feed {
  background: var(--panel);
  color: var(--panel-tx);
  border: 1px solid var(--panel-ln);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: .97rem;
  line-height: 1.4;
  box-shadow: var(--shadow);
  min-width: 0;
}
.feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--panel-ln);
}
.feed-top b { font-weight: 600; color: #fff; font-size: 1rem; }
.feed-top span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font);
  font-size: .8rem;
  color: var(--panel-mu);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.feed-top span[data-state="down"] { color: var(--a-sev); }

.feed ul {
  list-style: none;
  margin: 0;
  padding: .7rem;
  display: grid;
  gap: .45rem;
  min-height: 10rem;
  align-content: start;
}
.feed li {
  --c: var(--a-oth);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .3rem 1rem;
  padding: .75rem .9rem;
  background: var(--panel-2);
  border: 1px solid var(--panel-ln);
  border-left: 4px solid var(--c);
  border-radius: 4px;
}
.feed li.t-tor { --c: var(--a-tor); }
.feed li.t-sev { --c: var(--a-sev); }
.feed li.t-ff  { --c: var(--a-ff); }
.feed li.t-wat { --c: var(--a-wat); }
.feed li.t-oth { --c: var(--a-oth); }

.feed .f-l { min-width: 0; }
.feed .f-l b { display: block; color: var(--c); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.feed .f-l span { display: block; margin-top: .15rem; color: #fff; font-size: .9rem; overflow-wrap: anywhere; }
.feed .f-l .f-pill {
  display: inline-block;
  margin-top: .45rem;
  padding: .1rem .45rem;
  background: var(--panel-3);
  border: 1px solid var(--panel-ln);
  border-radius: 3px;
  color: var(--panel-tx);
  font-family: var(--mono);
  font-size: .74rem;
}
.feed .f-r {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--panel-tx);
  background: var(--panel-3);
  border: 1px solid var(--panel-ln);
  border-radius: 3px;
  padding: .28rem .55rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.feed .f-r:empty { display: none; }
.feed .f-r::before { content: "EXP "; color: var(--panel-mu); }

.feed li.t-none { display: block; border-left: 1px solid var(--panel-ln); padding: 1.1rem; }
.feed li.t-none .f-l b { color: var(--panel-tx); }
.feed li.t-none .f-l span { color: var(--panel-mu); }
.feed li.t-none.t-down { border-left: 4px solid var(--a-sev); }
.feed li.t-none.t-down .f-l b { color: var(--a-sev); }

.feed-foot {
  padding: .6rem 1.1rem;
  border-top: 1px solid var(--panel-ln);
  font-size: .85rem;
  color: var(--panel-mu);
}


/* =====================================================================
   08  OVERLAYS
   ===================================================================== */
.lbx, .ovl {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 2rem);
  background: rgba(11, 33, 36, .82);
}
.lbx.open, .ovl.open { display: flex; }
.lbx img { max-width: 100%; max-height: 100%; width: auto; border-radius: var(--r); }
.lbx-x, .ovl-x {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
}
.lbx-x::before, .lbx-x::after, .ovl-x::before, .ovl-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.lbx-x::after, .ovl-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lbx-x:hover, .ovl-x:hover { color: var(--pink-dk); }


/* =====================================================================
   09  RESPONSIVE
   ===================================================================== */
@media (max-width: 75rem) {
  .brand .vt { display: none; }
  .toplinks a { padding: 0 .55rem; font-size: .94rem; }
  .toplinks a::after { left: .55rem; right: .55rem; }
}

/* Below 62 rem the nav gets its own row and scrolls sideways if needed */
@media (max-width: 61.99rem) {
  :root { --head-h: 0rem; }
  .topbar { position: static; }
  .topbar-in { flex-wrap: wrap; padding-top: .55rem; min-height: 0; }
  .top-cta { margin-left: auto; }
  .toplinks {
    order: 3;
    width: calc(100% + 2 * var(--gutter));
    margin: .3rem calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .toplinks::-webkit-scrollbar { display: none; }
  .toplinks a { min-height: 2.75rem; flex: none; }

  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 62rem) {
  .hx-grid { grid-template-columns: minmax(0, 1fr); }
  .wg-top,
  .lr-in,
  .go-in { grid-template-columns: minmax(0, 1fr); }
  .onair-in { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .tabs-on .tabs {
    flex-direction: row;
    overflow-x: auto;
    margin: 1rem calc(-1 * var(--gutter)) .25rem;
    padding: 0 var(--gutter) .25rem;
    scrollbar-width: none;
  }
  .tabs-on .tabs::-webkit-scrollbar { display: none; }
  .tabs [role="tab"] { width: auto; flex: none; }
  .pane-txt { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 48rem) {
  .flow-steps { grid-template-columns: minmax(0, 1fr); }
  .flow-steps li,
  .flow-steps li + li { padding: 1.25rem 0 1.5rem 3.5rem; border-left: 0; border-top: 1px solid var(--line); }
  .flow-steps li:first-child { border-top: 2px solid var(--ink); }
  .flow-steps li:not(:last-child)::after { display: none; }
  .flow-n { position: absolute; left: 0; top: 1.25rem; font-size: 1.9rem; }
  .field-in { grid-template-columns: minmax(0, 1fr); }
  .field-col { padding-right: 0; }
  .field-col + .field-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 2.25rem; padding-top: 2.25rem; }
  .wg-shots { grid-template-columns: minmax(0, 1fr); }
  .lr-items { grid-template-columns: minmax(0, 1fr); }
  .lr-items li, .lr-items li:nth-child(even) { padding: .9rem 0; border-left: 0; }
}

@media (max-width: 62rem) {
  .split, .split-wide, .split-rail, .dl-hero, .noai-in, .essay-part { grid-template-columns: minmax(0, 1fr); }
  .split-head { align-items: start; }
  .rail-sticky { position: static; }
  .ruled-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruled-4 > * + * { padding-left: 0; border-left: 0; }
  .ruled-4 > :nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--line-2); }
  .els { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways, .nnl { grid-template-columns: minmax(0, 1fr); }
  .nnl-col, .nnl-col + .nnl-col { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .log-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-cell:nth-child(2) { border-right: 0; }
  .log-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .gallery-2, .compare, .rel-imgs, .ruled-2, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .ruled-2 > :nth-child(even) { padding-left: 0; border-left: 0; }
  .index > div { grid-template-columns: minmax(0, 1fr); }
  .stage-mosaic { grid-template-columns: minmax(0, 1fr); }
  .stage-mosaic > figure { max-width: 14rem; margin-inline: auto; }
  .speed-row { grid-template-columns: minmax(0, 1fr) auto; }
  .speed-track { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 30rem) {
  .ruled-4, .els, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .ruled-4 > :nth-child(even) { padding-left: 0; border-left: 0; }
  .el-tall { grid-row: auto; }
  .log-top { flex-direction: column; }
  .log-score { text-align: left; }
  .log-top, .diag, .log-foot, .log-cell { padding-inline: 1rem; }
  .sx-tools { flex-direction: column; align-items: stretch; }
  .sx-tools .tabs { width: 100%; }
  .sx-tools .tab { flex: 1; padding: 0 .4rem; }
  .mw-top { flex-direction: column; }
  .kv { flex-direction: column; gap: .1rem; }
  .kv .v { text-align: left; }
  .spec > div { flex-direction: column; gap: .1rem; }
  .spec dd { text-align: left; }
  .qa-a-inner { padding-right: 0; }
  .ovl-card { padding-inline: .5rem; }
  .way .btn, .way .btn-line { width: 100%; white-space: normal; height: auto; padding-block: .6rem; }
  .hero h1, .hx-title { overflow-wrap: anywhere; }
}

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .brand .name { font-size: 1.12rem; }
  .brand .bolt { width: 44px; height: 44px; }
  .top-cta { padding: 0 .9rem; font-size: .94rem; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-title { letter-spacing: -.03em; }
  .letter { padding: 1.25rem; }
}


/* =====================================================================
   10  REDUCED MOTION AND PRINT
   The wind field draws one still frame under reduced motion (site.js).
   The only other movement is the feed's row entrance.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .feed li.f-in { animation: ss-feed-in .4s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes ss-feed-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .wind, .topbar, .site-foot, .lbx, .ovl, .feed { display: none; }
  html, body { background: #fff; }
}
