/* =====================================================================
   iTechie.eu homepage — styles
   Palette: dark + cyan lead, yellow only for small highlights, red = alert
   ===================================================================== */

/* ---------- FONTS (self-hosted, no Google requests) ---------- */
@font-face { font-family: "Orbitron"; font-weight: 700; font-display: swap; src: url("fonts/orbitron-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Orbitron"; font-weight: 900; font-display: swap; src: url("fonts/orbitron-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("fonts/rajdhani-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rajdhani"; font-weight: 500; font-display: swap; src: url("fonts/rajdhani-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("fonts/rajdhani-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("fonts/rajdhani-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("fonts/rajdhani-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-display: swap; src: url("fonts/rajdhani-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Code"; font-weight: 400; font-display: swap; src: url("fonts/fira-code-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Code"; font-weight: 400; font-display: swap; src: url("fonts/fira-code-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fira Code"; font-weight: 500; font-display: swap; src: url("fonts/fira-code-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fira Code"; font-weight: 500; font-display: swap; src: url("fonts/fira-code-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- TOKENS ---------- */
:root {
  --bg: #07080a;
  --panel: #0d1014;
  --panel-2: rgba(0, 240, 255, 0.035);
  --head: rgba(0, 240, 255, 0.07);
  --line: rgba(0, 240, 255, 0.16);
  --line-strong: rgba(0, 240, 255, 0.45);
  --text: #d5e1e8;
  --bright: #f2f7fa;
  --muted: #7d8c97;
  --cyan: #00f0ff;
  --yellow: #fcee0a;
  --red: #ff003c;
  --green: #00ff66;
  --mono: "Fira Code", ui-monospace, Menlo, monospace;
  --head-font: "Orbitron", "Rajdhani", sans-serif;
  --cut: 14px;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(0, 240, 255, 0.06), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(255, 0, 60, 0.05), transparent 30%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 500 17px/1.55 "Rajdhani", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--yellow); }
::selection { background: var(--cyan); color: var(--bg); }
.muted { color: var(--muted); }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 40px; }

/* CRT scanline overlay (always on, subtle) */
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.18;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 255, 0.015), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
}

/* ---------- PANELS (each section its own block) ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: var(--head);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  font: 900 0.74rem var(--head-font);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
.panel-head > span { white-space: nowrap; }
/* name in the Operator header: stays the page's <h1> for search engines, styled small */
.panel-head .op-name { margin: 0; font: 400 0.68rem var(--mono); letter-spacing: 0.08em; text-transform: none; color: var(--muted); }
.op-id { display: inline-flex; align-items: baseline; gap: 8px; }
.panel-head .pronouns { font: 400 0.6rem var(--mono); color: var(--muted); opacity: 0.75; letter-spacing: 0.06em; }
.live-label { margin: 0 0 8px; font: 400 0.66rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.live-label .dot { width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; }
.panel-head .mood { font-size: 1.55em; line-height: 0; vertical-align: -0.12em; margin: 0 1px; }
.panel-head small { font: 400 0.68rem var(--mono); letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.panel-body { padding: 16px; }

/* ---------- MENU ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; }
.brand { font: 900 1.2rem var(--head-font); letter-spacing: 0.06em; color: var(--bright); }
.brand span { color: var(--cyan); }
.brand:hover { color: var(--bright); }
.ver { font: 400 0.6rem var(--mono); color: var(--muted); opacity: 0.6; margin-left: -10px; align-self: flex-end; padding-bottom: 3px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 400 0.78rem var(--mono); margin-left: auto; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--cyan); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.clock { font: 400 0.74rem var(--mono); color: var(--muted); }
.wx { display: inline-flex; align-items: center; gap: 6px; font: 400 0.74rem var(--mono); color: var(--cyan); border: 1px solid var(--line-strong); padding: 2px 8px; white-space: nowrap; }
.wx-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wx p { display: inline; margin: 0; }

/* hamburger (phones only; without JS the menu simply stays visible) */
.menu-btn { display: none; width: 34px; height: 30px; padding: 0 7px; background: transparent; border: 1px solid var(--line-strong); cursor: pointer; flex-direction: column; justify-content: center; gap: 4px; }
.menu-btn span { display: block; height: 2px; background: var(--cyan); transition: transform 0.2s, opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- TICKER ---------- */
.ticker { margin-top: 8px; display: flex; align-items: center; overflow: hidden; font: 400 0.76rem var(--mono); }
.ticker .tag { background: var(--red); color: #fff; font-weight: 500; padding: 6px 12px; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.14em; }
.ticker .track { overflow: hidden; white-space: nowrap; flex: 1; padding: 6px 0; color: var(--text); }
.ticker .track span { display: inline-block; padding-left: 100%; animation: tick 300s linear infinite; }   /* script.js sets the real duration from the text length */
.ticker:hover .track span { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- AIR QUALITY STRIP ---------- */
:root { --st-good: var(--green); --st-warn: var(--yellow); --st-serious: #ff8a00; --st-crit: var(--red); }
.airbar { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 6px 14px; font: 400 0.74rem var(--mono); color: var(--muted); }
.aq-label { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.14em; }
.aq-label::after { content: " ▸"; color: var(--muted); }
.aq-now { display: inline-flex; align-items: baseline; gap: 8px; }
.aq-now b { font: 700 1rem var(--mono); color: var(--bright); }
.aq-verdict { text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.s-good::first-letter { color: var(--st-good); }
.s-warn::first-letter { color: var(--st-warn); }
.s-serious::first-letter { color: var(--st-serious); }
.s-crit::first-letter { color: var(--st-crit); }
.aq-graph { display: block; height: 22px; width: auto; }
.aq-graph rect { opacity: 0.4; }
.aq-graph rect.now { opacity: 1; filter: drop-shadow(0 0 3px currentColor); }
.aq-graph rect:hover { opacity: 0.85; }
.b-good { fill: var(--st-good); color: var(--st-good); }
.b-warn { fill: var(--st-warn); color: var(--st-warn); }
.b-serious { fill: var(--st-serious); color: var(--st-serious); }
.b-crit { fill: var(--st-crit); color: var(--st-crit); }
.aq-pol { margin-left: auto; }
.aq-pol small { opacity: 0.7; }
@media (max-width: 620px) { .aq-pol { margin-left: 0; width: 100%; } }

/* ---------- LAYOUT ---------- */
.grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- OPERATOR ---------- */
.name {
  margin: 0; color: var(--bright);
  font: 700 1.35rem/1.1 "Rajdhani", sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
  animation: glitch 6s infinite;
}
@keyframes glitch {
  0%, 95%, 100% { transform: none; text-shadow: none; }
  96% { transform: skew(6deg); text-shadow: 2px 0 var(--red); }
  97% { transform: skew(-4deg); text-shadow: -2px 0 var(--cyan); }
  98% { transform: none; text-shadow: none; }
}
.tagline { margin: 4px 0 16px; color: var(--cyan); font-weight: 600; }
.status, .rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font: 400 0.8rem var(--mono); }
.status dt, .rows dt { color: var(--muted); text-transform: uppercase; }
.status dd, .rows dd { margin: 0; text-align: right; color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.ok { color: var(--green); }
.dot.warn { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.warn-txt { color: var(--yellow); }
.status dd.stale { color: var(--red); }

.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.btn {
  display: block; text-align: center; padding: 8px;
  font: 700 0.8rem "Rajdhani", sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--line-strong); background: var(--panel-2);
  clip-path: polygon(0 0, 90% 0, 100% 30%, 100% 100%, 10% 100%, 0 70%);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--cyan); color: var(--bg); }
.btn-coffee { background: var(--yellow); color: var(--cp-black, #050505); border: 1px dashed #050505; }
.btn-coffee:hover { background: var(--bright); color: #050505; }

/* ---------- PROSE ---------- */
.prose p { margin: 0 0 10px; }
.prose p:last-child { margin: 0; }

/* ---------- HEADLINE OF THE DAY (source thumbnail + CRT overlay) ---------- */
.hl { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 16px; align-items: start; color: var(--text); }
.hl:hover { color: var(--text); }
.hl:hover b { color: var(--cyan); }
.hl-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel-2); }
.hl-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.75) contrast(1.1) brightness(0.9); animation: hl-glitch 7s infinite; }
.hl-img::before {   /* scanlines + RGB mask */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
    linear-gradient(90deg, rgba(255, 0, 60, 0.08), rgba(0, 255, 102, 0.04), rgba(0, 240, 255, 0.08));
  background-size: 100% 3px, 3px 100%;
}
.hl-img::after {    /* cyan tint + vignette */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.06) 40%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: screen;
}
.hl-noimg { background: repeating-linear-gradient(45deg, var(--panel-2) 0 6px, transparent 6px 12px); }
@keyframes hl-glitch {
  0%, 94%, 100% { transform: none; }
  95% { transform: translateX(-3px) skewX(4deg); filter: saturate(1.4) hue-rotate(-20deg) contrast(1.3); }
  96% { transform: translateX(3px); }
  97% { transform: none; }
}
.hl-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hl-text b { font: 700 1.5rem/1.2 "Rajdhani", sans-serif; color: var(--bright); }
.hl-sum { font-size: 0.95rem; color: var(--text); line-height: 1.45; }
.hl-src { font: 400 0.68rem var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.hl-go { color: var(--cyan); }
.hl-more { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* small cards: thumbnail as full background, darkened, title on top */
.hl-more a { position: relative; display: flex; align-items: flex-end; min-height: 100px; height: 100%; padding: 10px 12px; overflow: hidden; color: var(--bright); border: 1px solid var(--line); background: var(--panel-2); }
.hl-more .hl-img { position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; border: 0; }
.hl-more .hl-img img { transition: transform 0.4s ease; }
.hl-more a::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.7) 40%, rgba(5, 5, 5, 0.2) 100%); }
.hl-more b { position: relative; z-index: 2; font: 700 0.92rem/1.25 "Rajdhani", sans-serif; color: var(--bright); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 3.75em; width: 100%; }   /* always 3 lines tall, so every title starts at the same height */
.hl-more a:hover { border-color: var(--cyan); color: var(--bright); }
.hl-more a:hover b { color: var(--cyan); }
.hl-more a:hover .hl-img img { transform: scale(1.05); }


/* ---------- LOCAL NODE (4 compact cards, same style as the small headline cards) ---------- */
.local-more { margin: 0; grid-template-columns: repeat(4, 1fr); gap: 12px; }   /* same card + text style as the headline cards */
@media (max-width: 900px) { .local-more { grid-template-columns: repeat(2, 1fr); } }

/* ---------- TEST YOUR KNOWLEDGE (quiz cards + quiz pages) ---------- */
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-card { display: grid; grid-template-columns: 24px 1fr 12px; align-items: center; gap: 12px; padding: 9px 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); transition: border-color 0.2s; }
.quiz-card:hover { border-color: var(--cyan); color: var(--text); }
.quiz-card:hover b, .quiz-card:hover .quiz-go { color: var(--cyan); }
.quiz-ico { width: 22px; height: 22px; color: var(--cyan); filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.5)); }
.quiz-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.quiz-txt b { font: 700 0.98rem/1.2 "Rajdhani", sans-serif; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quiz-topic { display: none; }   /* repeats the title */
.quiz-desc { font-size: 0.84rem; line-height: 1.3; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quiz-go { font-size: 0; color: var(--muted); }   /* hide 'start ›' text, show a single › */
.quiz-go::after { content: "›"; font: 400 1.2rem var(--mono); }
@media (max-width: 620px) { .quiz-grid { grid-template-columns: 1fr; } }
/* quiz page */
.quiz-soon { margin: 0; font: 400 0.85rem var(--mono); color: var(--muted); }
.quiz-q { margin: 0 0 14px; font: 700 1.2rem/1.3 "Rajdhani", sans-serif; color: var(--bright); }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt { text-align: left; font: 500 1rem "Rajdhani", sans-serif; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); padding: 10px 14px; cursor: pointer; }
.quiz-opt:hover:not(:disabled) { border-color: var(--cyan); color: var(--bright); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.is-right { border-color: var(--green); color: var(--green); }
.quiz-opt.is-wrong { border-color: var(--red); color: var(--red); }
.quiz-next { margin-top: 14px; display: inline-block; cursor: pointer; }
.quiz-score { margin: 0; font: 700 2.4rem var(--mono); color: var(--cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.45); }
.quiz-verdict { margin: 4px 0 0; color: var(--bright); }

/* ---------- LIVE FEED ---------- */
.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feed-item { border: 1px solid var(--line); background: var(--panel-2); padding: 10px 14px; }
.feed-item header { display: flex; justify-content: space-between; gap: 8px; font: 400 0.7rem var(--mono); margin-bottom: 6px; }
.feed-key { color: var(--cyan); }
.feed-key::before { content: "$ "; color: var(--muted); }
.feed-key.alert { color: var(--red); }
.feed-key.warn { color: var(--yellow); }
.feed-when { color: var(--muted); }
.feed-item p { margin: 0; }
.feed-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.panel-head .skill { color: inherit; font-weight: 400; }
.feed-item .big { font: 700 1.5rem var(--head-font); color: var(--bright); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- OFF-PLANET (grouped by station, cards link to the person's page) ---------- */
.crew-group + .crew-group { margin-top: 14px; }
.crew-station { margin: 0 0 6px; font: 400 0.68rem var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: 0.14em; }
.crew-station span { color: var(--muted); }
.crew { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.crew li { min-width: 0; border: 1px solid var(--line); background: var(--panel-2); transition: border-color 0.2s; }
.crew li:hover { border-color: var(--cyan); }
.crew li > a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: inherit; min-width: 0; }
.crew li > a:hover b { color: var(--cyan); }
.crew .ava { width: 22px; height: 22px; flex-shrink: 0; padding: 2px; background: var(--bg); border: 1px solid var(--line); }
.crew .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.crew b { color: var(--bright); font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew small { font: 400 0.6rem var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew .fem { font-style: normal; color: var(--yellow); margin-left: 3px; }
@media (max-width: 900px) { .crew { grid-template-columns: repeat(2, 1fr); } }

/* ---------- POSTS (compact, under the name) ---------- */
.tx { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 6px; }
.tx-item { border-left: 2px solid var(--line-strong); padding: 1px 0 1px 10px; font-size: 0.92rem; line-height: 1.35; color: var(--text); }
.tx-item.latest { border-left-color: var(--red); color: var(--bright); }
.tx-item time { display: block; font: 400 0.64rem var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.tx-item.latest time { color: var(--red); }
.tx-item p { margin: 0; }
.tx-empty { margin: 10px 0 16px; font: 400 0.74rem var(--mono); color: var(--muted); }

/* ---------- NODES ---------- */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles a { display: block; border: 1px solid var(--line); background: var(--panel-2); padding: 12px; transition: border-color 0.2s; }
.tiles a:hover { border-color: var(--yellow); }
.tiles b { display: block; font: 700 0.78rem var(--head-font); letter-spacing: 0.08em; color: var(--bright); }
.tiles span { display: block; font: 400 0.72rem var(--mono); color: var(--muted); margin-top: 4px; }

/* ---------- SOURCES PAGE ---------- */
.wrap.narrow { width: min(900px, calc(100% - 32px)); }
.src { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.src th { text-align: left; font: 400 0.68rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); }
.src td { padding: 8px 10px 8px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.src td:first-child { color: var(--bright); font-weight: 600; white-space: nowrap; }
.src td:last-child { font: 400 0.74rem var(--mono); color: var(--muted); }
.plain { margin: 8px 0 0; padding-left: 18px; }
.plain li { margin-bottom: 6px; }
.plain b { color: var(--bright); font-weight: 600; }
.note { margin: 12px 0 0; font: 400 0.72rem var(--mono); color: var(--muted); }
@media (max-width: 620px) {
  .src thead { display: none; }
  .src tr { display: block; padding: 8px 0; border-bottom: 1px dashed var(--line); }
  .src td { display: block; border: 0; padding: 2px 0; }
}

/* ---------- MY LATEST RECOMMENDATION ---------- */
.pick { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px 14px; align-items: start; margin: -16px; padding: 16px; overflow: hidden; }
.pick::before {   /* the poster again, zoomed + blurred + darkened as a backdrop */
  content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  background: var(--pick-bg, none) center 30% / cover no-repeat;
  filter: blur(14px) saturate(1.3) brightness(0.32);
}
.pick::after {    /* scanlines + fade to panel colour at the bottom */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.25) 50%) 0 0 / 100% 3px,
    linear-gradient(to bottom, rgba(13, 16, 20, 0) 40%, rgba(13, 16, 20, 0.85) 100%);
}
.pick > * { position: relative; z-index: 1; }
.pick-img { aspect-ratio: 2 / 3; }
.pick p { margin: 0; }
.pick-tag { font: 400 0.66rem var(--mono); color: var(--red); text-transform: uppercase; letter-spacing: 0.12em; }
.pick-name { font: 700 1.2rem/1.15 "Rajdhani", sans-serif; color: var(--bright); margin-top: 2px !important; }
.pick-meta { font: 400 0.7rem var(--mono); color: var(--cyan); margin-top: 4px !important; }
.pick-genres { font-size: 0.85rem; color: var(--muted); margin-top: 2px !important; }
.pick-desc { grid-column: 1 / -1; font-size: 0.92rem; line-height: 1.45; color: var(--text); }
.pick-links { grid-column: 1 / -1; font: 400 0.68rem var(--mono); color: var(--muted); }
.pick-links a { color: var(--cyan); }

/* ---------- DAYLIGHT & SEA ---------- */
.sky p { margin: 0; }
.sky-state { font: 700 1.25rem/1.2 "Rajdhani", sans-serif; color: var(--bright); }
.sky-bar { height: 6px; margin: 8px 0 4px; background: var(--panel-2); border: 1px solid var(--line); }
.sky-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--yellow)); box-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.sky-times { font: 400 0.68rem var(--mono); color: var(--muted); margin-bottom: 12px !important; }
.moon { width: 14px; height: 14px; vertical-align: -2px; color: var(--cyan); margin-right: 4px; }

/* ---------- NASA IMAGE OF THE DAY + lightbox ---------- */
.iotd { display: block; color: var(--text); }
.iotd:hover { color: var(--text); }
.iotd:hover b { color: var(--cyan); }
.iotd-img { aspect-ratio: 16 / 10; }
.iotd-img img { animation: none; }
.iotd-txt { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.iotd-txt b { font: 700 1.05rem/1.2 "Rajdhani", sans-serif; color: var(--bright); }
.iotd-txt small { font: 400 0.64rem var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.lb { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(3, 4, 6, 0.94); backdrop-filter: blur(4px); }
.lb[hidden] { display: none; }
.lb-box { position: relative; width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.lb-box img { width: 100%; max-height: 72vh; max-height: 72dvh; object-fit: contain; background: #000; border: 1px solid var(--line-strong); }
.lb-title { margin: 0; font: 700 1.3rem/1.2 "Rajdhani", sans-serif; color: var(--bright); }
.lb-desc { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--text); max-width: 80ch; }
.lb-link { font: 400 0.7rem var(--mono); }
.lb-close { position: absolute; top: -6px; right: 0; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  font: 400 1.2rem var(--mono); color: var(--cyan); background: var(--bg); border: 1px solid var(--line-strong); transform: translateY(-100%); }
.lb-close:hover { background: var(--cyan); color: var(--bg); }
body.lb-open { overflow: hidden; }

/* ---------- SPACE LAUNCH ---------- */
.head-ico { display: inline-flex; align-items: center; gap: 8px; }
.ico { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.6)); }
.launch .launch-tag { margin: 0; font: 400 0.68rem var(--mono); color: var(--red); text-transform: uppercase; letter-spacing: 0.12em; }
.launch .launch-name { margin: 2px 0 0; font: 700 1.2rem/1.2 "Rajdhani", sans-serif; color: var(--bright); }
.launch .launch-sub { margin: 2px 0 12px; font-size: 0.9rem; color: var(--muted); }
.rows dd.ok { color: var(--green); }
.rows dd.warn { color: var(--yellow); }
.rows dd.alert { color: var(--red); }
.countdown { margin: 14px 0 0; font: 500 1.5rem var(--mono); color: var(--cyan); letter-spacing: 0.06em; text-shadow: 0 0 10px rgba(0, 240, 255, 0.45); }
.countdown:empty { display: none; }

/* ---------- NEWS ARCHIVE ---------- */
.arc { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.arc li { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line-strong); }
.arc a { font-weight: 600; font-size: 1.02rem; color: var(--bright); }
.arc a:hover { color: var(--cyan); }
.arc-hr { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.arc-src { font: 400 0.66rem var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.arc-months li { flex-direction: row; justify-content: space-between; align-items: baseline; }
.panel-head small a { color: var(--cyan); }

/* ---------- FOOTER ---------- */
.foot { margin-top: 20px; padding: 14px; text-align: center; font: 400 0.72rem var(--mono); }
.foot p { margin: 2px 0; }
.foot .credit { margin-top: 6px; font-size: 0.62rem; color: var(--muted); opacity: 0.7; }
.foot .credit a { color: inherit; text-decoration: underline; }

/* ---------- RESPONSIVE / MOTION ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .nav { margin-left: 0; width: 100%; }
  .js .menu-btn { display: inline-flex; margin-left: auto; }
  .js .nav { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 6px; font-size: 0.9rem; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 9px 2px; border-bottom: 1px dashed var(--line); }
  .js .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 620px) {
  .feed, .tiles { grid-template-columns: 1fr 1fr; }
  .feed, .hl, .hl-more { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 1fr; }
  .topbar-right { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker .track { white-space: normal; }
  .ticker .track span { padding-left: 0; }
}

/* ---------- BLOG / LOGS (archive, post pages, homepage block) ---------- */
.crumb { margin: 18px 0 30px; }
.crumb a { display: inline-flex; align-items: center; gap: 12px; font: 700 0.68rem var(--head-font); letter-spacing: 0.3em; text-transform: uppercase; color: var(--bright); opacity: 0.65; transition: opacity 0.2s, background 0.2s; padding: 3px 6px; }
.crumb a:hover { opacity: 1; color: var(--bright); background: rgba(0, 240, 255, 0.12); }
.crumb .chev { color: var(--cyan); font-size: 1.4em; line-height: 0; transition: transform 0.2s; }
.crumb a:hover .chev { transform: translateX(-4px); }
.log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 400 0.68rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.log-meta .badge { background: rgba(0, 240, 255, 0.1); border: 1px solid var(--line-strong); color: var(--cyan); padding: 3px 10px; font-weight: 500; letter-spacing: 0.12em; }
.log-meta .kick { color: var(--cyan); }
.log-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.log-title { margin: 16px 0 10px; font: 900 clamp(1.9rem, 6vw, 3.6rem)/1.02 var(--head-font); text-transform: uppercase; letter-spacing: 0.01em; color: var(--bright); overflow-wrap: anywhere; }
.log-lead { margin: 0; max-width: 62ch; font-size: 1.12rem; color: #a9b6bf; }
.log-stats { display: inline-flex; flex-wrap: wrap; margin-top: 18px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); font: 400 0.66rem var(--mono); text-transform: uppercase; }
.log-stats span { padding: 8px 14px; border-left: 1px solid var(--line); }
.log-stats span:first-child { border-left: 0; }
.log-stats small { display: block; color: var(--muted); font-size: 1em; }
.log-stats b { color: var(--cyan); font-weight: 500; }
.log-stats span:nth-child(2) b { color: var(--green); }
.log-search { margin-bottom: 18px; }
.log-search label { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font: 400 0.9rem var(--mono); color: var(--cyan); }
.log-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--bright); font: inherit; }
.log-search input::placeholder { color: var(--muted); }
.log-search:focus-within { border-color: var(--line-strong); }
.log-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.log-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); transition: transform 0.25s, border-color 0.25s; }
.log-card:hover { transform: translateX(5px); border-left-color: var(--yellow); }
.log-card[hidden], .log-none[hidden] { display: none; }
.log-card h2 { margin: 0; font: 700 1.05rem/1.25 var(--head-font); text-transform: uppercase; letter-spacing: 0.05em; }
.log-card h2 a { color: var(--bright); }
.log-card h2 a:hover { color: var(--cyan); }
.log-card p { margin: 0; flex: 1; font-size: 0.98rem; color: #a9b6bf; }
.log-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font: 400 0.64rem var(--mono); color: var(--muted); text-transform: uppercase; }
.log-foot a { white-space: nowrap; letter-spacing: 0.12em; }
.log-body { padding: 22px 26px 26px; font-size: 1.1rem; line-height: 1.7; }
.log-body > :first-child { margin-top: 0; }
.log-body p { margin: 0 0 16px; }
.log-body .lead { font-size: 1.25rem; font-weight: 700; color: var(--bright); line-height: 1.5; }
.log-body h2 { margin: 34px 0 12px; font: 700 1.05rem/1.3 var(--head-font); text-transform: uppercase; letter-spacing: 0.08em; color: var(--bright); }
.log-body h2::before { content: "> "; color: var(--cyan); }
.log-body h3 { margin: 22px 0 8px; font: 700 0.95rem var(--head-font); letter-spacing: 0.05em; color: var(--cyan); }
.log-body strong { color: var(--bright); }
.log-body ul { list-style: none; padding: 0; margin: 0 0 16px; }
.log-body ul li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.log-body ul li::before { content: "■"; position: absolute; left: 2px; top: 0; color: var(--cyan); font-size: 0.7em; }
.log-body ol { margin: 0 0 16px; padding-left: 24px; }
.log-body blockquote { margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--yellow); background: rgba(252, 238, 10, 0.04); font: italic 400 0.92rem/1.7 var(--mono); color: #c4ced5; }
.log-body .note { margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); background: var(--panel-2); font: 400 0.9rem/1.7 var(--mono); color: #b7c3cb; }
.log-body .note p { margin: 0; }
.log-body .note-tag { display: block; margin-bottom: 6px; color: var(--cyan); font: 500 0.72rem var(--mono); letter-spacing: 0.15em; text-transform: uppercase; }
.log-body .tbl { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); }
.log-body table { width: 100%; border-collapse: collapse; font: 400 0.82rem var(--mono); }
.log-body th { text-align: left; color: var(--cyan); background: var(--head); font-weight: 500; }
.log-body th, .log-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.log-body tr:last-child td { border-bottom: 0; }
.log-body .flow { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.log-body .flow li { flex: 1 1 160px; padding: 10px; text-align: center; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); font: 400 0.78rem var(--mono); }
.log-body .flow li + li::before { content: "➔ "; color: var(--cyan); }
.log-body .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.log-body .card { padding: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.log-body .card b { display: block; margin-bottom: 6px; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.log-body .card:nth-child(2) b { color: var(--green); }
.log-body .card:nth-child(3) b { color: var(--yellow); }
.log-body .card p { margin: 0; font-size: 0.95rem; color: #a9b6bf; }
.log-tags { padding: 12px 26px; border-top: 1px solid var(--line); font: 400 0.66rem var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.log-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; }
.log-nav a { display: block; padding: 14px 18px; font: 700 0.8rem/1.3 var(--head-font); text-transform: uppercase; letter-spacing: 0.05em; color: var(--bright); }
.log-nav a:hover { color: var(--cyan); background: var(--panel-2); }
.log-nav small { display: block; margin-bottom: 4px; font: 400 0.64rem var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.log-nav .next { text-align: right; }
.blog .foot { margin-top: 26px; }
/* homepage block */
.latest-log h3 { margin: 10px 0 8px; font: 700 1.1rem/1.25 var(--head-font); text-transform: uppercase; letter-spacing: 0.04em; }
.latest-log h3 a { color: var(--bright); }
.latest-log h3 a:hover { color: var(--cyan); }
.latest-log p { margin: 0 0 14px; color: #a9b6bf; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.latest-log .btn { display: inline-block; width: auto; padding: 8px 16px; }
.log-older { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.log-older li { margin: 4px 0; }
.log-older a { display: flex; gap: 12px; color: var(--text); font-weight: 600; }
.log-older a:hover { color: var(--cyan); }
.log-older time { flex: none; font: 400 0.72rem/1.9 var(--mono); color: var(--muted); }
@media (max-width: 720px) {
  .log-grid, .log-body .cards { grid-template-columns: 1fr; }
  .log-body { padding: 18px; font-size: 1.04rem; }
  .crumb a { letter-spacing: 0.18em; }
}

/* ---------- SKY ABOVE ZADAR (plane radar) ---------- */
.atc { display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 18px; align-items: center; }
.radar { width: 100%; height: auto; display: block; overflow: visible; }
.radar .rim { stroke: var(--line-strong); stroke-width: 1; }
.radar .ring { fill: none; stroke: var(--line); stroke-width: 0.8; stroke-dasharray: 2 3; }
.radar .axis { stroke: var(--line); stroke-width: 0.6; }
.radar .rl { font: 400 7px var(--mono); fill: var(--muted); opacity: 0.7; }
.radar .cmp { font: 700 9px var(--head-font); fill: var(--cyan); text-anchor: middle; }
.radar .home { fill: var(--bright); filter: drop-shadow(0 0 3px var(--cyan)); }
.radar .apt rect { fill: none; stroke: var(--muted); stroke-width: 0.8; }
.radar .apt text { font: 400 7px var(--mono); fill: var(--muted); }
.radar .sweep { transform-origin: 0 0; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar .sweep { animation: none; opacity: 0.4; } }
.radar .pl { cursor: help; }
.radar .pl path:not(.trail), .radar .pl circle { fill: currentColor; filter: drop-shadow(0 0 3px currentColor); }
.radar .pl .trail { stroke: currentColor; stroke-width: 1.4; opacity: 0.35; fill: none; }
.radar .pl:hover { color: var(--bright) !important; }
.radar .low, .atc-legend .low, .atc-list .low b { color: var(--yellow); }
.radar .mid, .atc-legend .mid, .atc-list .mid b { color: var(--cyan); }
.radar .high, .atc-legend .high, .atc-list .high b { color: #7fe9f0; }
.radar .gnd, .atc-list .gnd b { color: var(--muted); }
.atc-count { margin: 0 0 10px; color: var(--muted); }
.atc-count b { font: 700 1.6rem var(--head-font); color: var(--bright); margin-right: 4px; }
.atc-count small { display: block; font: 400 0.66rem var(--mono); }
.atc-list { list-style: none; margin: 0 0 12px; padding: 0; font: 400 0.74rem var(--mono); }
.atc-list li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 0 10px; padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.atc-list li span:nth-of-type(1) { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atc-list li span:nth-of-type(2) { grid-column: 3; text-align: right; color: var(--text); }
.atc-list li span:nth-of-type(3) { grid-column: 2 / 4; font-size: 0.92em; }
.atc-list b { font-weight: 500; grid-row: span 2; }
.atc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font: 400 0.64rem var(--mono); }
.atc-hist { display: flex; align-items: flex-end; gap: 10px; font: 400 0.62rem var(--mono); color: var(--muted); }
.atc-graph { height: 22px; width: auto; max-width: 70%; }
.atc-graph rect { fill: var(--cyan); opacity: 0.35; }
.atc-graph rect.now { opacity: 1; filter: drop-shadow(0 0 3px var(--cyan)); }
@media (max-width: 520px) { .atc { grid-template-columns: 1fr; } .radar { max-width: 280px; margin: 0 auto; } }

/* blog: inline code, code blocks, warning notes */
.log-body code { font: 400 0.86em var(--mono); color: var(--green); background: rgba(0, 255, 102, 0.06); padding: 1px 5px; }
.log-body .code { position: relative; margin: 18px 0; border: 1px solid var(--line); background: #050607; }
.log-body .code-tag { position: absolute; top: 8px; right: 10px; font: 400 0.6rem var(--mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 1px 6px; }
.log-body pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 0.82rem/1.7 var(--mono); }
.log-body pre code { background: none; padding: 0; color: var(--green); }
.log-body .note.warn { border-left-color: var(--red); background: rgba(255, 0, 60, 0.05); }
.log-body .note.warn .note-tag { color: var(--red); }

/* ---------- THREAT LEVEL strip ---------- */
.threat { margin-top: 8px; padding: 10px 14px; }
.tl { --c: var(--green); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.tl.l2 { --c: var(--cyan); } .tl.l3 { --c: var(--yellow); } .tl.l4 { --c: #ff7a00; } .tl.l5 { --c: var(--red); }
.tl-main { display: grid; grid-template-columns: max-content 1fr; grid-template-areas: "lab lab" "num name" "num big" "why why" "kit kit"; align-items: center; gap: 0 10px; }
.tl-label { grid-area: lab; font: 400 0.64rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tl-num { grid-area: num; font: 900 2.6rem/1 var(--head-font); color: var(--c); }
.tl-name { grid-area: name; font: 700 0.95rem var(--head-font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); align-self: end; }
.tl-big { grid-area: big; display: flex; gap: 3px; align-self: start; margin-top: 4px; }
.tl-big .bar { width: 22px; height: 7px; background: rgba(255, 255, 255, 0.07); transform: skewX(-20deg); }
.tl-big .bar.on { background: var(--c); }
.tl-why { grid-area: why; margin-top: 4px; font: 400 0.64rem var(--mono); color: var(--muted); }
.tl.l5 .tl-num { animation: tl-blink 1s steps(2) infinite; }
@keyframes tl-blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .tl.l5 .tl-num { animation: none; } }
.tl-chips { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.tl-chip { --c: var(--green); padding: 7px 10px; border: 1px solid var(--line); border-top: 2px solid var(--c); background: var(--panel-2); cursor: help; min-width: 0; }
.tl-chip.l2 { --c: var(--cyan); } .tl-chip.l3 { --c: var(--yellow); } .tl-chip.l4 { --c: #ff7a00; } .tl-chip.l5 { --c: var(--red); }
.tl-chip.stale { opacity: 0.45; --c: var(--muted); }
.tl-chip b { display: block; font: 700 0.62rem var(--head-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bright); }
.tl-m { display: flex; gap: 2px; margin: 5px 0 4px; }
.tl-m .seg { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.07); }
.tl-m .seg.on { background: var(--c); box-shadow: 0 0 5px var(--c); }
.tl-chip small { display: block; font: 400 0.66rem var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) { .tl-chips { flex-basis: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tl-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-chip small { white-space: normal; } }

/* ---------- EURO WATCH ---------- */
.fx-head { margin: 0 0 8px; font: 700 0.95rem var(--head-font); text-transform: uppercase; letter-spacing: 0.06em; color: var(--bright); }
.fx-head small { display: block; margin-top: 2px; font: 400 0.66rem var(--mono); text-transform: none; letter-spacing: 0.02em; color: var(--muted); }
.fx { list-style: none; margin: 0; padding: 0; }
.fx li { --c: var(--muted); display: grid; grid-template-columns: 3em 5.2em minmax(40px, 1fr) 4.6em; align-items: center; gap: 0 10px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: help; }
.fx li:last-child { border-bottom: 0; }
.fx li.up { --c: var(--green); } .fx li.down { --c: var(--red); } .fx li.flat { --c: var(--cyan); }
.fx b { font: 500 0.8rem var(--mono); color: var(--cyan); }
.fx-name { display: none; }
.fx-rate { font: 500 0.85rem var(--mono); color: var(--bright); text-align: right; }
.fx-spark { width: 100%; height: 22px; overflow: visible; }
.fx-spark polyline { fill: none; stroke: var(--c); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0.85; }
.fx-spark circle { fill: var(--c); }
.fx-pct { font: 400 0.72rem var(--mono); color: var(--c); text-align: right; white-space: nowrap; }
.fx-note { margin: 8px 0 0; font: 400 0.62rem var(--mono); color: var(--muted); }


/* ---------- AI headline comment next to the logo ---------- */
.ghost-wrap { flex: 1 1 200px; min-width: 0; }
.ghost-wrap p { display: none; }
.ghost { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: italic 400 0.7rem/1.4 var(--mono); color: var(--muted); }
.ghost:hover { color: var(--cyan); }
.ghost-tag { font-style: normal; color: var(--red); margin-right: 2px; }
.ghost-wrap + .menu-btn + .nav { margin-left: 0; }
@media (max-width: 1100px) { .ghost-wrap { order: 9; flex-basis: 100%; } }

/* ---------- FORUM ---------- */
.fm { list-style: none; margin: 0; padding: 0; }
.fm li { border-bottom: 1px solid var(--line); }
.fm li:last-child { border-bottom: 0; }
.fm a { display: block; padding: 9px 0 9px 12px; border-left: 2px solid transparent; color: var(--text); }
.fm a:hover { border-left-color: var(--cyan); background: var(--panel-2); }
.fm b { display: block; font: 600 1rem/1.3 "Rajdhani", sans-serif; color: var(--bright); }
.fm li.new a { border-left-color: var(--red); }
.fm li.new b { font-size: 1.1rem; }
.fm-snip { display: block; margin: 3px 0; font-size: 0.92rem; color: #a9b6bf; }
.fm-meta { display: block; margin-top: 2px; font: 400 0.66rem var(--mono); color: var(--muted); }
.fm-cta { margin: 12px 0 0; font: 400 0.72rem var(--mono); }

/* ---------- CITY HALL (official Zadar notices, sectioned) ---------- */
.ch-slot > p { display: none; }          /* no data yet = no panel, never an empty one */
.ch-status { margin: 0 0 10px; font: 400 0.68rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.ch-status .dot { width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; }
.ch-grid { columns: 2 260px; column-gap: 20px; }   /* masonry: sections flow into the shortest column, no gaps */
.ch-sec { --c: var(--cyan); break-inside: avoid; margin-bottom: 12px; }
.ch-works { --c: var(--yellow); } .ch-money { --c: var(--green); } .ch-events { --c: #ff4fd8; } .ch-council { --c: var(--cyan); } .ch-city { --c: var(--muted); }
.ch-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.ch-tag { font: 700 0.6rem var(--head-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); padding: 1px 6px; }
.ch-sec h3 small { font: 400 0.66rem var(--mono); color: var(--muted); }
.ch-sec ul { list-style: none; margin: 0; padding: 0; }
.ch-sec li + li { border-top: 1px dashed var(--line); }
.ch-sec a { display: grid; grid-template-columns: 3.2em 1fr; gap: 0 8px; padding: 5px 0 5px 6px; border-left: 2px solid transparent; color: var(--text); }
.ch-sec a:hover { border-left-color: var(--c); background: var(--panel-2); }
.ch-sec time { grid-row: span 2; font: 400 0.62rem/1.9 var(--mono); color: var(--c); }
.ch-sec b { font: 600 0.92rem/1.25 "Rajdhani", sans-serif; color: var(--bright); }
.ch-sec a:hover b { color: var(--c); }
.ch-sec a span { font-size: 0.8rem; line-height: 1.3; color: #a9b6bf; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-note { margin: 4px 0 0; font: 400 0.62rem var(--mono); color: var(--muted); }
@media (max-width: 700px) { .ch-grid { columns: 1; } }

/* ---------- NO BANNERS ---------- */
.nb p { font-size: 0.95rem; }
.nb-more { font: 400 0.7rem var(--mono); }

/* ---------- NODE VITALS (footer strip, from the old neondash checks) ---------- */
.nv-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nv-wrap > p { display: none; }
.nv-label { font: 400 0.6rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.nv-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.nv { display: inline-flex; align-items: center; gap: 6px; font: 400 0.66rem var(--mono); color: var(--muted); cursor: help; }
.nv b { font-weight: 400; color: var(--text); letter-spacing: 0.08em; }
.nv em { font-style: normal; color: var(--bright); }
.nv-bar { display: inline-block; width: 36px; height: 4px; background: rgba(255, 255, 255, 0.08); }
.nv-bar i { display: block; height: 100%; background: var(--green); }
.nv-bar.warm i { background: var(--yellow); } .nv-bar.hot i { background: var(--red); }
.nv-spark { width: 40px; height: 14px; overflow: visible; }
.nv-spark polyline { fill: none; stroke: var(--cyan); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0.8; }
.tl-kit { grid-area: kit; margin-top: 3px; font: 400 0.64rem var(--mono); color: var(--cyan); }
.tl-kit:hover { color: var(--yellow); }

/* ---------- HAZARD ENV strip (UV, dust, pollen; air index lives in Threat Level) ---------- */
.hz { display: inline-flex; align-items: center; gap: 7px; cursor: help; }
.hz b { font-weight: 400; color: var(--muted); letter-spacing: 0.1em; }
.hz-v { font-weight: 500; color: var(--bright); }
.hz-v small { font-weight: 400; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92em; }
.hz-graph .aq-graph { display: block; height: 12px; width: auto; }   /* bars sit on the text line */

/* ---------- WIND COMPASS ---------- */
.wc, .wc-fc { --c: var(--cyan); }
.wc .s-good, .wc-fc .s-good { --c: var(--st-good); } .wc .s-warn, .wc-fc .s-warn { --c: var(--st-warn); }
.wc .s-serious, .wc-fc .s-serious { --c: var(--st-serious); } .wc .s-crit, .wc-fc .s-crit { --c: var(--st-crit); }
.wc { display: grid; grid-template-columns: minmax(0, 210px) 1fr; gap: 16px; align-items: center; }
.wc-dial { width: 100%; height: auto; display: block; overflow: visible; }
.wc-rim { fill: rgba(0, 240, 255, 0.03); stroke: var(--line-strong); stroke-width: 1; }
.wc-ring { fill: none; stroke: var(--line); stroke-dasharray: 2 3; }
.wc-tick { stroke: var(--line-strong); stroke-width: 1; } .wc-tick.major { stroke: var(--cyan); stroke-width: 1.6; }
.wc-name { font: 700 9px "Rajdhani", sans-serif; letter-spacing: 0.1em; fill: var(--muted); text-anchor: middle; }   /* Rajdhani: has Š Ć (Orbitron is Latin-only) */
.wc-name.on { fill: var(--bright); }
.wc-gauge { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; opacity: 0.9; }
.wc-needle line { stroke: var(--c); stroke-width: 3; stroke-linecap: round; }
.wc-needle path, .wc-needle circle { fill: var(--c); }
.wc-big { font: 900 30px var(--head-font); fill: var(--bright); text-anchor: middle; }
.wc-unit { font: 400 8px var(--mono); fill: var(--muted); text-anchor: middle; letter-spacing: 0.1em; }
.wc-name-big { margin: 0; font: 700 2rem/1 "Rajdhani", sans-serif; letter-spacing: 0.08em; color: var(--c); }
.wc-note { margin: 4px 0 10px; font-size: 0.92rem; color: #a9b6bf; }
.wc-stats { margin: 0; display: grid; gap: 4px; }
.wc-stats div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 3px; }
.wc-stats dt { font: 400 0.66rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.wc-stats dd { margin: 0; font: 400 0.76rem var(--mono); color: var(--bright); text-align: right; white-space: nowrap; }
.wc-fc { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font: 400 0.62rem var(--mono); color: var(--muted); }
.wc-fc-l { text-transform: uppercase; letter-spacing: 0.1em; }
.wc-fc-r { text-align: right; color: var(--text); }
.wc-graph { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 56px; }
.wc-graph rect { fill: var(--c); opacity: 0.75; } .wc-graph path { fill: var(--c); }
.wc-graph g:hover rect { opacity: 1; }
@media (max-width: 420px) { .wc { grid-template-columns: 1fr; } .wc-dial { max-width: 230px; margin: 0 auto; } }

/* ---------- FULL-WIDTH ROW + NIGHT & DAY world map ---------- */
.wide { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.wm { position: relative; border: 1px solid var(--line); background: #05070a; overflow: hidden; }
.wm-map { display: block; width: 100%; height: auto; }
.wm-twilight { fill: #000; opacity: 0.35; }
.wm-night { fill: #000; opacity: 0.6; }
.wm-city { fill: var(--yellow); opacity: 0.9; filter: drop-shadow(0 0 3px var(--yellow)); }
.wm-sun circle { fill: var(--yellow); opacity: 0.85; } .wm-sun .halo { fill: none; stroke: var(--yellow); stroke-width: 1; opacity: 0.4; }
.wm-track { fill: none; stroke: var(--cyan); stroke-width: 1.2; stroke-linecap: round; }
.wm-track.past { opacity: 0.35; }
.wm-track.next { opacity: 0.9; stroke-dasharray: 1 5; stroke-width: 1.8; }
.wm-iss { color: var(--bright); }
.wm-iss path { stroke: var(--bright); stroke-width: 1.6; fill: none; }
.wm-iss circle { fill: var(--bright); } .wm-iss .halo { fill: rgba(0, 240, 255, 0.15); stroke: var(--cyan); stroke-width: 1; }
.wm-home circle { fill: var(--red); } .wm-home .pulse { fill: none; stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: wm-pulse 2.4s ease-out infinite; }
@keyframes wm-pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wm-home .pulse { animation: none; } }
.wm-label { font: 700 10px var(--head-font); letter-spacing: 0.12em; fill: var(--red); }
.wm-label.iss { fill: var(--cyan); }
.wm-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 10px; font: 400 0.68rem var(--mono); color: var(--text); white-space: nowrap; }
.wm-time { color: var(--muted); }
.wm-info b { font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 6px; }

/* ---------- ON THIS DAY ---------- */
.otd { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 18px; align-items: start; }
.otd-img { aspect-ratio: 16 / 10; }
.otd-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.otd-year { margin: 0; font: 900 1.6rem/1 var(--head-font); color: var(--cyan); }
.otd-year small { margin-left: 8px; font: 400 0.66rem var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.otd h3 { margin: 2px 0 0; font: 700 1.2rem/1.25 "Rajdhani", sans-serif; }
.otd h3 a { color: var(--bright); } .otd h3 a:hover { color: var(--cyan); }
.otd-ctx { margin: 0; font-size: 0.9rem; color: #a9b6bf; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.otd-go { margin-top: 2px; font: 400 0.7rem var(--mono); }
.otd-also { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.88rem; }
.otd-also .lab { font: 400 0.62rem/1.9 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.otd-also a { color: var(--text); } .otd-also a:hover { color: var(--cyan); }
.otd-also time { margin-right: 8px; font: 400 0.7rem var(--mono); color: var(--cyan); }
@media (max-width: 600px) { .otd { grid-template-columns: 1fr; } }

/* On This Day: the same photo, blurred, as a backdrop (like My Latest Recommendation) */
.otd-wrap { position: relative; margin: -16px; padding: 16px; overflow: hidden; }
.otd-wrap::before { content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  background: var(--otd-bg, none) center / cover no-repeat; filter: blur(16px) saturate(1.2) brightness(0.3); }
.otd-wrap::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.25) 50%) 0 0 / 100% 3px,
              linear-gradient(to right, rgba(13, 16, 20, 0.2), rgba(13, 16, 20, 0.75)); }
.otd-wrap > * { position: relative; z-index: 1; }

/* ---------- Operator available / busy (phone Do Not Disturb) ---------- */
.op-av { margin-left: 7px; font: 400 0.5rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: baseline; cursor: help; }   /* sits on the same baseline as OPERATOR */
.op-av::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; vertical-align: 0.1em; background: currentColor; }
.op-av.free { color: var(--green); }
.op-av.busy { color: var(--red); }

/* ---------- WORD OF THE DAY (compact) ---------- */
.wod p { margin: 0; }
.wod-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.wod-word { font: 700 1.9rem/1 "Rajdhani", sans-serif; color: var(--cyan); overflow-wrap: anywhere; }   /* Rajdhani: has č ć đ š ž (our Orbitron is Latin-only) */
.wod-say { font: 400 0.68rem var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.wod-n { margin-left: auto; font: 400 0.6rem var(--mono); color: var(--muted); }
.wod-mean { margin-top: 4px !important; font: 600 1rem/1.3 "Rajdhani", sans-serif; color: var(--bright); }
.wod-ex { margin-top: 8px !important; padding: 5px 10px; border-left: 3px solid var(--yellow); background: rgba(252, 238, 10, 0.04); font-size: 0.92rem; line-height: 1.35; color: var(--text); }
.wod-ex small { display: block; font-size: 0.82rem; color: var(--muted); }

/* ---------- /eu.html: European alternatives library ---------- */
.eu-tools { padding: 14px 16px; margin-bottom: 20px; }
.eu-search { display: flex; align-items: center; gap: 10px; font: 400 0.95rem var(--mono); color: var(--cyan); }
.eu-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--bright); font: inherit; }
.eu-search input::placeholder { color: var(--muted); }
.eu-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font: 400 0.72rem var(--mono); }
.eu-nav a { color: var(--text); } .eu-nav a:hover { color: var(--cyan); }
.eu-legend { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 400 0.64rem var(--mono); color: var(--muted); }
.eu-sec { margin-bottom: 20px; scroll-margin-top: 16px; }
.eu-sec[hidden], .eu-card[hidden], .eu-none[hidden] { display: none; }
.eu-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.eu-card { padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--cyan); transition: border-color 0.2s; }
.eu-card:hover { border-left-color: var(--yellow); }
.eu-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eu-top b { font: 700 1.1rem "Rajdhani", sans-serif; color: var(--bright); }
.eu-top a:hover b { color: var(--cyan); }
.eu-cc { flex: none; font: 500 0.62rem var(--mono); letter-spacing: 0.08em; padding: 2px 6px; border: 1px solid currentColor; }
.eu-cc.eu { color: var(--cyan); } .eu-cc.eea { color: var(--green); } .eu-cc.eur { color: var(--yellow); } .eu-cc.com { color: var(--muted); }
.eu-inst { margin: 4px 0 0; font: 400 0.66rem var(--mono); color: var(--muted); }
.eu-inst s { color: #a9b6bf; text-decoration-color: var(--red); }
.eu-line { margin: 6px 0 0; font-size: 0.92rem; line-height: 1.35; color: var(--text); }
.eu-tags { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.eu-tag { font: 400 0.58rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); border: 1px solid rgba(0, 255, 102, 0.35); padding: 1px 5px; }

/* ---------- posts: links in posts + /posts/ archive page (.pt-) ---------- */
.tx-link{color:var(--cyan,#00f0ff);text-decoration:underline;text-underline-offset:2px;word-break:break-all}
.tx-link:hover{color:#fcee0a}
.tx-all{margin:.5rem 0 0;font-size:.8rem;text-align:right}
.tx-all a{color:#00f0ff;text-decoration:none;font-family:"Fira Code",monospace}
.tx-all a:hover{color:#fcee0a}

/* on this day: "also today" as a clean list (label on top, one event per line, years aligned) */
.otd-also { display: block; }
.otd-also .lab { display: block; margin-bottom: 4px; }
.otd-also li:not(.lab) { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; }
.otd-also li:not(.lab) a { display: flex; gap: 10px; align-items: baseline; }
.otd-also time { flex: 0 0 2.6em; margin-right: 0; }
/* "view all posts": small, left, under the posts */
p.tx-all { text-align: left; margin: 2px 0 14px; font-size: 0.7rem; line-height: 1.4; }
p.tx-all a { font: 400 0.7rem var(--mono, "Fira Code", monospace); letter-spacing: 0.08em; color: var(--cyan, #00f0ff); }
p.tx-all a:hover { color: #fcee0a; }
/* posts page v2: reuses homepage .panel + .tx look (no avatar) */
.pt-search { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; font: 400 0.74rem var(--mono); color: var(--cyan); }
.pt-search input { flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; padding: 4px 0; outline: none; }
.pt-search input:focus { border-bottom-color: var(--cyan); }
.pt-list .pt-month { list-style: none; margin: 12px 0 2px; font: 400 0.62rem var(--mono); letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.pt-list .tx-item p { margin: 0 0 4px; }
.pt-list .tx-item { scroll-margin-top: 16px; }
.pt-list .tx-item time a { color: inherit; text-decoration: none; }
.pt-list .tx-item time a:hover { color: var(--cyan); }
.pt-list .tx-item.pt-p.pt-hl { border-left-color: var(--cyan); background: rgba(0, 240, 255, 0.04); }
/* crumb "cd .. / return_to_root": smaller + blinking terminal cursor */
.crumb { margin: 14px 0 22px; }
.crumb a { font-size: 0.56rem; letter-spacing: 0.22em; gap: 9px; }
.crumb a::after { content: ""; display: inline-block; width: 0.55em; height: 1.1em; margin-left: 2px; background: var(--cyan); vertical-align: -0.2em; animation: crumb-blink 1.06s steps(1) infinite; }
@keyframes crumb-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .crumb a::after { animation: none; } }
/* logo: same blinking terminal cursor as the crumb */
.brand::after { content: ""; display: inline-block; width: 0.5em; height: 0.95em; margin-left: 4px; background: var(--cyan); vertical-align: -0.1em; animation: crumb-blink 1.06s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .brand::after { animation: none; } }
.brand::after { width: 3px; margin-left: 5px; }

/* ---------- AI Eyes (street cam described by AI) (.ae-) ---------- */
.ae-eye { width: 1.6em; height: 0.9em; margin-right: 10px; vertical-align: -0.12em; overflow: visible; }
.ae-lid { fill: none; stroke: var(--cyan); stroke-width: 1.6; }
.ae-iris circle { fill: none; stroke: var(--cyan); stroke-width: 1.4; }
.ae-iris .ae-pupil { fill: var(--red); stroke: none; }
.ae-iris { animation: ae-scan 7s ease-in-out infinite; }
@keyframes ae-scan { 0%, 18% { transform: translateX(0); } 30%, 48% { transform: translateX(-6px); } 60%, 78% { transform: translateX(6px); } 90%, 100% { transform: translateX(0); } }
.ae-rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 0.05em; animation: crumb-blink 1.6s steps(1) infinite; }
.ae-meta { margin: 0 0 8px; font: 400 0.66rem var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.ae-text { margin: 0; padding-left: 10px; border-left: 2px solid var(--cyan); color: var(--text); line-height: 1.5; }
.ae-cur { display: inline-block; width: 2px; height: 1em; margin-left: 4px; background: var(--cyan); vertical-align: -0.15em; animation: crumb-blink 1.06s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .ae-iris, .ae-rec, .ae-cur { animation: none; } }
/* Operator header: OPERATOR · status · name · pronouns on one centred line, one small size */
#operator .panel-head { align-items: center; }
#operator .panel-head > span:first-child { display: inline-flex; align-items: center; }
#operator .panel-head .op-av { display: inline-flex; align-items: center; margin-left: 10px; font: 400 0.6rem/1 var(--mono); letter-spacing: 0.08em; }
#operator .panel-head .op-av::before { vertical-align: 0; }
#operator .op-id { align-items: center; gap: 8px; line-height: 1; }
#operator .panel-head .op-name { font: 400 0.6rem/1 var(--mono); letter-spacing: 0.08em; }
#operator .panel-head .pronouns { font: 400 0.6rem/1 var(--mono); opacity: 0.7; }
#operator .panel-head { gap: 8px; }
#operator .panel-head .op-av, #operator .panel-head .op-name, #operator .panel-head .pronouns { font-size: 0.54rem; letter-spacing: 0.04em; }
#operator .panel-head .op-av { margin-left: 8px; }
#operator .op-id { gap: 6px; }
/* phones: Headlines header shows only "archive →" so the bar stays one line */
@media (max-width: 620px) { .hl-hint { display: none; } }

/* ---------- markdown posts (Apple Notes exports) (.md-) ---------- */
.md-fig { margin: 22px 0; }
.md-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.md-fig figcaption { margin-top: 6px; font: 400 0.7rem var(--mono); color: var(--muted); }
.md-check { list-style: none; margin-left: -1.2em; }
.md-check::before { content: "[ ] "; font-family: var(--mono); color: var(--cyan); }
.md-check.done::before { content: "[x] "; }
.md-check.done { color: var(--muted); text-decoration: line-through; }
.md-sub { margin-left: 1.4em; }
.md-table { overflow-x: auto; margin: 18px 0; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.md-table th { font: 400 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); background: var(--head); }

/* ---------- /weather/ page (.wp-) ---------- */
.wp-now { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px; align-items: center; }
.wp-big { display: flex; align-items: center; gap: 18px; }
.wp-ico { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wp-ico.sun, .wp-ico.psun { stroke: var(--yellow); }
.wp-bigico { width: 84px; height: 84px; stroke-width: 1.2; }
.wp-temp { margin: 0; font: 900 3.6rem/1 var(--head-font); color: var(--bright); }
.wp-temp span { font-size: 0.4em; color: var(--muted); margin-left: 4px; vertical-align: top; }
.wp-cond { margin: 6px 0 0; font: 400 0.8rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.wp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 18px; margin: 0; }
.wp-stats div { border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.wp-stats dt { font: 400 0.6rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wp-stats dd { margin: 2px 0 0; font: 400 0.95rem var(--mono); color: var(--bright); }
.wp-wn { color: var(--green); font-size: 0.8em; }
.wp-scroll { overflow-x: auto; }
.wp-chart { display: block; width: 100%; min-width: 640px; height: auto; overflow: visible; }
.wp-chart .wp-rain { fill: rgba(0, 240, 255, 0.18); }
.wp-chart .wp-line { fill: none; stroke: var(--yellow); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wp-chart .wp-dot { fill: var(--yellow); }
.wp-chart .wp-t { font: 400 12px var(--mono); fill: var(--bright); text-anchor: middle; }
.wp-chart .wp-h { font: 400 11px var(--mono); fill: var(--muted); text-anchor: middle; }
.wp-chart .wp-ci { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wp-chart .wp-ci.sun, .wp-chart .wp-ci.psun { stroke: var(--yellow); }
.wp-legend { margin: 8px 0 0; font: 400 0.62rem var(--mono); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.wp-legend i { display: inline-block; width: 14px; height: 8px; margin: 0 6px 0 14px; vertical-align: 0; }
.wp-legend i:first-child { margin-left: 0; }
.wp-legend .l { height: 2px; background: var(--yellow); vertical-align: 3px; }
.wp-legend .b { background: rgba(0, 240, 255, 0.35); }
.wp-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.wp-side { display: grid; gap: 18px; }
.wp-cols .panel, .wp-side .panel { margin: 0; }
.wp-days { list-style: none; margin: 0; padding: 0; }
.wp-days li { display: grid; grid-template-columns: 82px 28px 1fr 34px 90px 34px 62px 78px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font: 400 0.82rem var(--mono); color: var(--text); }
.wp-days small { display: block; font-size: 0.66rem; color: var(--muted); }
.wp-day { color: var(--bright); }
.wp-sky { color: var(--muted); font-size: 0.72rem; }
.wp-lo { color: var(--muted); text-align: right; } .wp-hi { color: var(--bright); }
.wp-range { position: relative; height: 4px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; }
.wp-range i { position: absolute; top: 0; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--yellow)); }
.wp-rp { color: var(--cyan); text-align: right; } .wp-wd { text-align: right; }
.wp-note { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--text); }
@media (max-width: 860px) { .wp-now, .wp-cols { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .wp-days li { grid-template-columns: 64px 24px 26px 1fr 26px 48px; }
  .wp-days .wp-sky, .wp-days .wp-wd { display: none; }
  .wp-temp { font-size: 2.8rem; } .wp-bigico { width: 60px; height: 60px; }

}
.wp-page .wrap > .panel, .wp-page .wp-cols { margin-bottom: 18px; }
/* weather page: Daylight & Sea + Wind Compass side by side, bigger */
.wp-duo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-bottom: 18px; align-items: stretch; }
.wp-duo .panel { margin: 0; }
.wp-duo .sky-state { font-size: 1.7rem; }
.wp-duo .sky-bar { height: 8px; margin: 14px 0 8px; }
.wp-duo .sky-times { font-size: 0.85rem; }
.wp-duo .rows { font-size: 1.05rem; row-gap: 12px; margin-top: 18px; }
.wp-duo .wc { grid-template-columns: minmax(0, 290px) 1fr; gap: 26px; }
.wp-duo .wc-name-big { font-size: 2.8rem; }
.wp-duo .wc-note { font-size: 1.05rem; }
.wp-duo .wc-stats { font-size: 1.05rem; }
.wp-duo .wc-fc { font-size: 0.72rem; }
@media (max-width: 960px) { .wp-duo { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .wp-duo .wc { grid-template-columns: 1fr; } .wp-duo .wc-dial { max-width: 300px; margin: 0 auto; } .wp-duo .wc-name-big { font-size: 2.2rem; } }
.wp-duo .wc-stats dt, .wp-duo .wc-stats dd { font-size: 0.85rem; } .wp-duo .wc-stats dd { font-size: 1rem; }
a.wx { transition: border-color 0.2s, background 0.2s; } a.wx:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(0, 240, 255, 0.08); }
.tl-mood { text-transform: none; letter-spacing: 0.02em; color: var(--text); opacity: 0.85; }
/* threat mood: own full-width row above the level + sensor chips */
.tl-moodrow { flex: 0 0 100%; margin: 0 0 -4px; }
.tl-moodrow .tl-label { font: 400 0.64rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tl-moodrow .tl-mood { font: 400 0.74rem var(--mono); letter-spacing: 0.02em; text-transform: none; color: var(--text); opacity: 0.9; }
/* Off-Planet: fact line + AI remark on crew change (.cn-) */
.crew-note { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.cn-fact { font: 400 0.68rem var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.cn-ai { font: 400 0.95rem "Rajdhani", sans-serif; color: var(--text); font-style: italic; }
/* /weather/: AI brief under "Now" */
.wp-brief { margin: 0; padding: 14px 18px 16px; border-top: 1px solid var(--line); font: 500 1.1rem/1.5 "Rajdhani", sans-serif; color: var(--bright); }
.wp-brief-tag { display: block; margin-bottom: 4px; font: 400 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }

/* ---------- /launches/ page (.lp-) ---------- */
.lp-page .wrap > .panel, .lp-cols { margin-bottom: 18px; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.lp-hero:not(:has(.lp-img)) { grid-template-columns: 1fr; }
.lp-img { margin: 0; }
.lp-img img { display: block; width: 100%; max-height: 380px; object-fit: cover; border: 1px solid var(--line); }
.lp-img figcaption { margin-top: 4px; font: 400 0.6rem var(--mono); color: var(--muted); }
.lp-name { margin: 0; font: 900 1.6rem/1.2 var(--head-font); color: var(--bright); letter-spacing: 0.04em; }
.lp-sub { margin: 6px 0 0; font: 400 0.8rem var(--mono); color: var(--cyan); }
.lp-cd.big { margin: 14px 0 6px; font: 900 2.2rem/1 var(--head-font); color: var(--yellow); letter-spacing: 0.06em; }
.lp-rows { margin-top: 10px; }
.lp-desc { margin: 0; padding: 0 18px 18px; font-size: 0.95rem; line-height: 1.55; color: #a9b6bf; }
.lp-st { font: 400 0.7rem var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.lp-st.ok { color: var(--green); } .lp-st.warn { color: var(--yellow); } .lp-st.alert { color: var(--red); }
.lp-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.lp-cols .panel { margin: 0; }
.lp-list { list-style: none; margin: 0; padding: 0; }
.lp-list li { display: grid; grid-template-columns: 150px 1fr 170px 110px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lp-list small { display: block; font: 400 0.66rem var(--mono); color: var(--muted); }
.lp-when { font: 400 0.78rem var(--mono); color: var(--bright); }
.lp-when .lp-cd { color: var(--yellow); }
.lp-what b { font: 600 1rem "Rajdhani", sans-serif; color: var(--bright); }
.lp-where { font-size: 0.85rem; color: var(--text); }
.lp-list .lp-st { text-align: right; }
.lp-k { margin: 16px 0 6px; font: 400 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lp-prov { list-style: none; margin: 0; padding: 0; }
.lp-prov li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.lp-prov b { font: 400 0.85rem var(--mono); color: var(--cyan); }
@media (max-width: 860px) { .lp-hero, .lp-cols { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .lp-list li { grid-template-columns: 1fr auto; } .lp-where { display: none; } .lp-cd.big { font-size: 1.7rem; } .lp-name { font-size: 1.3rem; } }
@media (max-width: 620px) { .lp-list li { grid-template-columns: 1fr; gap: 3px; } .lp-list .lp-st { text-align: left; } .lp-when { display: flex; gap: 10px; align-items: baseline; } .lp-when .lp-cd { display: inline; } }
/* Space Launch block: title links to /launches/, AI brief under the rocket line */
.panel-head .head-link { color: inherit; } .panel-head .head-link:hover { color: var(--yellow); }
.launch-ai { margin-top: 8px !important; color: var(--text) !important; }
/* Space Launch: the launch photo, blurred, as a backdrop (like My Latest Recommendation) */
.sl-wrap { position: relative; margin: -16px -16px 0; padding: 16px 16px 12px; overflow: hidden; }
.sl-wrap::before { content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  background: var(--sl-bg, none) center / cover no-repeat; filter: blur(14px) saturate(1.2) brightness(0.3); }
.sl-wrap::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.25) 50%) 0 0 / 100% 3px,
              linear-gradient(to bottom, rgba(13, 16, 20, 0.15), rgba(13, 16, 20, 0.85)); }
.sl-wrap > * { position: relative; z-index: 1; }
.wm-egg .wm-hit { fill: transparent; } .wm-egg:hover .wm-label { fill: var(--yellow); }

/* ---------- /quiz/ hub (.qh-) ---------- */
.qh-page .wrap > .panel { margin-bottom: 18px; }
.qh-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.qh-stats { display: flex; gap: 34px; }
.qh-big { margin: 0; font: 900 2.2rem/1 var(--head-font); color: var(--bright); }
.qh-big small { font-size: 0.45em; color: var(--muted); }
.qh-k { margin: 6px 0 0; font: 400 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.qh-actions { text-align: right; }
.qh-rand { display: inline-block; text-decoration: none; }
.qh-note { margin: 8px 0 0; font: 400 0.62rem var(--mono); color: var(--muted); }
.qh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qh-chip { background: transparent; border: 1px solid var(--line-strong); color: var(--text); font: 400 0.72rem var(--mono); letter-spacing: 0.06em; padding: 5px 10px; cursor: pointer; }
.qh-chip b { color: var(--muted); font-weight: 400; margin-left: 4px; }
.qh-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.qh-chip.on { border-color: var(--cyan); color: var(--bg); background: var(--cyan); } .qh-chip.on b { color: var(--bg); }
.qh-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.qh-grid .quiz-card[hidden] { display: none; }
.qh-best { margin-left: 8px; font: 400 0.62rem var(--mono); color: var(--green); border: 1px solid currentColor; padding: 0 5px; vertical-align: 0.15em; }
.qh-best.max { color: var(--yellow); }
@media (max-width: 620px) { .qh-stats { gap: 20px; } .qh-big { font-size: 1.7rem; } .qh-actions { text-align: left; } }
.panel-head small a.head-more { color: var(--muted); } .panel-head small a.head-more:hover { color: var(--cyan); }
/* Sky above v2: smaller radar, richer rows (airline, route, speed, heading, climb) */
.atc { grid-template-columns: minmax(0, 190px) 1fr; gap: 22px; }
.atc-list li { grid-template-columns: 6.5em 1fr auto; gap: 1px 12px; padding: 7px 0; }
.atc-list b { grid-row: span 3; color: var(--cyan); align-self: start; }
.atc-list li.low b { color: var(--yellow); }
.atc-list li span.atc-al { grid-column: 2; color: var(--bright); font-family: "Rajdhani", sans-serif; font-size: 1.05rem; }
.atc-list li span.atc-alt { grid-column: 3; grid-row: 1; text-align: right; color: var(--text); }
.atc-list li span.atc-rt { grid-column: 2 / 4; color: var(--text); font-size: 0.95em; }
.atc-list li span.atc-mv { grid-column: 2 / 4; color: var(--muted); font-size: 0.88em; }
.atc-list li.emerg { border-left: 2px solid var(--red); padding-left: 8px; }
.atc-em { grid-column: 2 / 4; color: var(--red); font-weight: 700; letter-spacing: 0.06em; }
.atc-last { margin: 0 0 6px; font: 400 0.8rem var(--mono); color: var(--text); }
.atc-last small { display: block; color: var(--muted); font-size: 0.75em; letter-spacing: 0.1em; text-transform: uppercase; }
.atc-last b { color: var(--cyan); font-weight: 500; margin-right: 6px; }
@media (max-width: 620px) { .atc { grid-template-columns: 1fr; } .atc .radar { max-width: 220px; margin: 0 auto; } }
.atc-count b { font: 700 2rem/1 "Rajdhani", sans-serif; }   /* Orbitron draws 0 as a boxed slash */
/* ghost line (AI comment on a headline) now sits in the Headlines header, one line, cut with … */
.hl-head-right { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.panel-head .ghost-head { min-width: 0; flex: 1 1 auto; }
.panel-head .ghost-head p { display: none; }
.panel-head .ghost { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60ch;
  font: italic 400 0.68rem var(--mono); letter-spacing: 0.02em; text-transform: none; color: var(--muted); }
.panel-head .ghost:hover { color: var(--cyan); }
.panel-head .hl-head-right > a { white-space: nowrap; }
.panel-head .ghost .ghost-tag { color: inherit; }
.ver { align-self: center; position: relative; top: 0.3rem; padding-bottom: 0; }   /* sit on the logo baseline (bar is shorter since the ghost line moved) */

/* ---------- EU page: portal blocks ---------- */
.eu-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 20px; }
.eu-stats div { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--cyan); }
.eu-stats b { display: block; font: 900 2rem/1 "Rajdhani", sans-serif; color: var(--bright); }
.eu-stats span { font: 400 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eu-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 20px; align-items: stretch; }
.eu-two .panel { margin: 0; }
.eu-start { list-style: none; margin: 0; padding: 0; }
.eu-start li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.eu-step { font: 700 1.1rem var(--mono); color: var(--yellow); min-width: 2ch; }
.eu-start b { font: 700 1.1rem "Rajdhani", sans-serif; color: var(--bright); }
.eu-start a:hover b { color: var(--cyan); }
.eu-start small { font: 400 0.66rem var(--mono); color: var(--muted); }
.eu-start p { margin: 2px 0 0; font-size: 0.92rem; color: var(--text); }
.eu-note { margin: 12px 0 0; font-size: 0.9rem; color: #a9b6bf; font-style: italic; }
.eu-spot .panel-body { display: flex; flex-direction: column; justify-content: center; min-height: 220px; }
.eu-spot-cat { margin: 0; font: 400 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.eu-spot-name { margin: 6px 0 0; font: 700 2rem/1.1 "Rajdhani", sans-serif; }
.eu-spot-name a { color: var(--bright); } .eu-spot-name a:hover { color: var(--cyan); }
.eu-spot-name .eu-cc { font-size: 0.7rem; vertical-align: 0.4em; color: var(--cyan); }
.eu-spot-line { margin: 10px 0 14px; font-size: 1.05rem; color: var(--text); }
.eu-again { background: none; border: 1px solid var(--line-strong); color: var(--cyan); font: 400 0.7rem var(--mono); letter-spacing: 0.08em; padding: 6px 12px; cursor: pointer; }
.eu-again:hover { border-color: var(--cyan); }
.eu-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.eu-why-c { padding-left: 12px; border-left: 2px solid var(--yellow); }
.eu-why-c b { font: 700 1.05rem "Rajdhani", sans-serif; color: var(--bright); }
.eu-why-c p { margin: 4px 0 0; font-size: 0.92rem; line-height: 1.45; color: #a9b6bf; }
.eu-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.eu-tile { display: block; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color 0.2s; }
.eu-tile:hover { border-color: var(--cyan); }
.eu-tile b { display: block; font: 700 1.02rem "Rajdhani", sans-serif; color: var(--bright); }
.eu-tile span { display: block; font: 400 0.66rem var(--mono); color: var(--muted); margin-top: 2px; }
.eu-eff { display: inline-block; margin-top: 6px; font: 400 0.6rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.eu-eff.easy { color: var(--green); } .eu-eff.medium { color: var(--yellow); } .eu-eff.advanced { color: var(--red); } .eu-eff.social { color: var(--cyan); }
.eu-legend2 { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font: 400 0.66rem var(--mono); color: var(--muted); }
.eu-legend2 .eu-eff { margin: 0; }
.eu-ccs { display: flex; flex-wrap: wrap; gap: 8px; }
.eu-ccchip { font: 400 0.8rem var(--mono); color: var(--text); padding: 5px 10px; border: 1px solid var(--line-strong); }
.eu-ccchip b { color: var(--cyan); font-weight: 500; margin-right: 4px; }
@media (max-width: 860px) { .eu-two { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .eu-stats { grid-template-columns: repeat(2, 1fr); } }
.eu-page .wrap > .panel { margin-bottom: 20px; }
.hl-more .hl-img img { object-position: center top; }   /* keep faces/tops of photos, crop from the bottom */
.pick-img.zoom { cursor: zoom-in; } .pick-img.zoom:hover img { filter: brightness(1.15); }
/* lightbox for tall images (posters): image left, text right */
@media (min-width: 760px) {
  .lb-box.tall { width: min(1000px, 100%); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 28px; row-gap: 12px; align-items: start; padding-top: 48px; }
  .lb-box.tall img { grid-row: 1 / 4; width: auto; max-width: 46vw; max-height: 80vh; max-height: 80dvh; }
  .lb-box.tall .lb-title { font-size: 1.8rem; margin-top: 4px; }
  .lb-box.tall .lb-desc { font-size: 1.05rem; }
  .lb-box.tall .lb-close { top: 0; }
}

/* ---------- /city/ page (.cp-) ---------- */
.cp-page .wrap > .panel { margin-bottom: 18px; }
.cp-stats { margin: 0; }
.cp-list { list-style: none; margin: 8px 0 0; padding: 0; }
.cp-month { margin: 16px 0 4px; font: 400 0.62rem var(--mono); letter-spacing: 0.16em; color: var(--muted); }
.cp-item { display: grid; grid-template-columns: 70px 90px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cp-item time { font: 400 0.82rem var(--mono); color: var(--bright); }
.cp-item time small { display: block; font-size: 0.7rem; color: var(--muted); }
.cp-tag { justify-self: start; }
.cp-item a { color: var(--text); }
.cp-item a b { display: block; font: 600 1.08rem/1.25 "Rajdhani", sans-serif; color: var(--bright); }
.cp-item a:hover b { color: var(--cyan); }
.cp-item a span { display: block; margin-top: 3px; font-size: 0.95rem; color: #a9b6bf; }
.cp-hr { display: block; margin-top: 4px; font: italic 400 0.68rem var(--mono); color: var(--muted); }
.cp-tag.cp-works { --c: var(--yellow); } .cp-tag.cp-money { --c: var(--green); } .cp-tag.cp-events { --c: #ff4fd8; } .cp-tag.cp-council { --c: var(--cyan); } .cp-tag.cp-city { --c: var(--muted); }
@media (max-width: 620px) { .cp-item { grid-template-columns: 56px 1fr; } .cp-item a { grid-column: 1 / -1; } }
.hl-head-right a.head-more { white-space: nowrap; }
/* Operator: name moved from the header into the body, above the posts */
.op-id-body { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.op-id-body .op-name { margin: 0; font: 600 1.35rem/1.1 "Rajdhani", sans-serif; letter-spacing: 0.02em; color: var(--bright); text-transform: none; }
.op-id-body .pronouns { font: 400 0.68rem var(--mono); color: var(--muted); }

/* ---------- Space News (.sn-) ---------- */
.sn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sn-list a { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.sn-list li:last-child a { border-bottom: 0; }
.sn-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.sn-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; filter: saturate(0.85); transition: filter 0.2s; }
.sn-list a:hover .sn-img img { filter: saturate(1.1) brightness(1.1); }
.sn-txt b { display: block; font: 600 1.02rem/1.25 "Rajdhani", sans-serif; color: var(--bright); }
.sn-list a:hover b { color: var(--cyan); }
.sn-txt small { display: block; margin-top: 3px; font: 400 0.64rem var(--mono); color: var(--muted); letter-spacing: 0.04em; }
@media (max-width: 620px) { .sn-list a { grid-template-columns: 84px 1fr; gap: 10px; } }
/* Space News v2: horizontal slider, photo as background */
.sn { position: relative; }
.sn-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.sn-track::-webkit-scrollbar { display: none; }
.sn-card { position: relative; flex: 0 0 82%; min-height: 260px; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel-2); }
.sn-card::before { content: ""; position: absolute; inset: 0; background: var(--sn-bg, none) center top / cover no-repeat; transition: transform 0.5s ease; }
.sn-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.22) 50%) 0 0 / 100% 3px,
              linear-gradient(to bottom, rgba(7, 8, 10, 0.15) 0%, rgba(7, 8, 10, 0.75) 45%, rgba(7, 8, 10, 0.96) 100%); }
.sn-card:hover::before { transform: scale(1.04); }
.sn-card a { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; min-height: 260px; padding: 18px 20px; color: var(--text); }
.sn-meta { font: 400 0.64rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.sn-card b { font: 700 1.35rem/1.2 "Rajdhani", sans-serif; color: var(--bright); }
.sn-desc { font-size: 0.95rem; line-height: 1.45; color: #c3ced6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sn-go { font: 400 0.66rem var(--mono); color: var(--muted); }
.sn-card a:hover .sn-go, .sn-card a:hover b { color: var(--cyan); }
.sn-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.sn-btn { width: 30px; height: 26px; background: none; border: 1px solid var(--line-strong); color: var(--cyan); font: 400 1rem/1 var(--mono); cursor: pointer; }
.sn-btn:hover { border-color: var(--cyan); }
.sn-dots { display: flex; gap: 5px; }
.sn-dots i { width: 14px; height: 3px; background: var(--line-strong); }
.sn-dots i.on { background: var(--cyan); }
@media (max-width: 620px) { .sn-card { flex-basis: 90%; min-height: 230px; } .sn-card a { min-height: 230px; padding: 14px; } .sn-card b { font-size: 1.15rem; } }
/* Space News: one full card at a time */
.sn-card { flex-basis: 100%; min-height: 300px; }
.sn-card a { min-height: 300px; padding: 22px 24px; }
.sn-card::before { background-position: center; }
@media (max-width: 620px) { .sn-card { flex-basis: 100%; min-height: 260px; } .sn-card a { min-height: 260px; } }
/* Space News: photo fills the whole panel body, arrows sit on top of it */
.sn { margin: -16px; }
.sn-track { gap: 0; }
.sn-card { border: 0; min-height: 340px; }
.sn-card a { min-height: 340px; padding: 24px 26px 58px; }
.sn-nav { position: absolute; right: 16px; bottom: 14px; margin: 0; z-index: 2; }
.sn-btn { background: rgba(7, 8, 10, 0.55); }
@media (max-width: 620px) { .sn-card, .sn-card a { min-height: 280px; } .sn-card a { padding: 16px 16px 54px; } }
/* Headlines edge to edge: photos touch, no gaps; blurred main photo behind the text */
.hl-edge { padding: 0 !important; }
.hl-edge .hl { position: relative; gap: 0; grid-template-columns: minmax(0, 46%) 1fr; align-items: stretch; overflow: hidden; }
.hl-edge .hl::before { content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  background: var(--hl-bg, none) center / cover no-repeat; filter: blur(18px) saturate(1.2) brightness(0.32); }
.hl-edge .hl > * { position: relative; z-index: 1; }
.hl-edge .hl .hl-img { border: 0; aspect-ratio: 16 / 10; height: 100%; }
.hl-edge .hl-text { padding: 20px 22px; justify-content: center; }
.hl-edge .hl-more { margin: 0; gap: 0; border-top: 1px solid var(--line-strong); }
.hl-edge .hl-more a { border: 0; border-left: 1px solid var(--line-strong); }
.hl-edge .hl-more li:first-child a { border-left: 0; }
@media (max-width: 620px) { .hl-edge .hl { grid-template-columns: 1fr; } .hl-edge .hl-more { grid-template-columns: 1fr; } .hl-edge .hl-more a { border-left: 0; border-top: 1px solid var(--line-strong); } }
/* Headlines edge: calmer — no glitch/scanline/RGB effect on these photos, small gaps, darker backdrop */
.hl-edge .hl-img img { animation: none; filter: saturate(0.9) brightness(0.95); }
.hl-edge .hl-img::before, .hl-edge .hl-img::after { display: none; }
.hl-edge { padding: 8px !important; }
.hl-edge .hl { gap: 8px; }
.hl-edge .hl::before { filter: blur(22px) saturate(1) brightness(0.18); }
.hl-edge .hl-more { gap: 8px; margin-top: 8px; border-top: 0; }
.hl-edge .hl-more a { border: 0; }
@media (max-width: 620px) { .hl-edge .hl-more a { border-top: 0; } }
/* Zadar Node: same density as Headlines (8px gaps, clean photos) */
.hl-edge .local-more { margin: 0; gap: 8px; }
@media (max-width: 900px) { .hl-edge .local-more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .hl-edge .local-more { grid-template-columns: 1fr; } }
/* fix: with a long summary the main photo grew wider than its column and covered the text */
.hl-edge .hl .hl-img { aspect-ratio: auto; width: 100%; height: 100%; min-height: 260px; min-width: 0; }
.hl-edge .hl .hl-img img { width: 100%; height: 100%; object-fit: cover; }

/* EU page: the briefing story */
.eu-story-lead { margin: 0 0 18px; font: 700 1.6rem/1.25 "Rajdhani", sans-serif; color: var(--bright); max-width: 34ch; }
.eu-story-cols { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.eu-story-text p { font-size: 1rem; line-height: 1.65; color: var(--text); margin: 0 0 14px; }
.eu-story-text h3 { margin: 22px 0 8px; font: 700 0.8rem var(--head-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.eu-story-text i { color: var(--bright); }
.eu-timeline { padding-left: 18px; border-left: 1px solid var(--line-strong); }
.eu-tl-k { margin: 0 0 10px; font: 400 0.62rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.eu-timeline ol { list-style: none; margin: 0 0 22px; padding: 0; }
.eu-timeline li { position: relative; padding: 0 0 14px; font-size: 0.9rem; line-height: 1.45; color: #a9b6bf; }
.eu-timeline li::before { content: ""; position: absolute; left: -23px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--yellow); }
.eu-timeline li b { display: block; font: 500 0.72rem var(--mono); color: var(--yellow); letter-spacing: 0.06em; }
.eu-src { list-style: none; margin: 0; padding: 0; }
.eu-src li { padding: 4px 0; font-size: 0.82rem; } .eu-src a { color: var(--cyan); }
@media (max-width: 860px) { .eu-story-cols { grid-template-columns: 1fr; } }
.eu-src li::before { display: none; }
/* EU page title with flag */
.eu-title { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.eu-flag { width: 72px; height: 48px; flex: none; border: 1px solid var(--line-strong); }
.eu-sub { margin: 4px 0 12px; font: 400 0.8rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
@media (max-width: 620px) { .eu-flag { width: 54px; height: 36px; } }
.gh-link { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; } .gh-link:hover { color: var(--cyan); } .gh-ico { width: 14px; height: 14px; fill: currentColor; }
.gh-row { margin-top: 6px; } .gh-link { text-decoration: none; vertical-align: middle; } .gh-ico { position: relative; top: -1px; }
.gh-below { text-align: center; margin: 14px 0 6px; } .gh-below .gh-ico { width: 20px; height: 20px; top: 0; } .gh-below .gh-link { opacity: 0.7; } .gh-below .gh-link:hover { opacity: 1; }
/* threat panel: left part has a fixed width so a long "cause" line wraps instead of squeezing the sensor tiles */
.tl-main { flex: 0 0 300px; max-width: 300px; }
.tl-why { white-space: normal; line-height: 1.4; font-size: 0.6rem; }
@media (max-width: 900px) { .tl-main { flex-basis: 100%; max-width: none; } }
/* phones / narrow screens: right column (news, quiz, sky…) first, left column (operator, weather…) after */
@media (max-width: 900px) { .grid > main.col { order: -1; } }
/* lightbox: close button always visible (pinned to the window), long text scrolls, image a bit smaller */
.lb { overflow-y: auto; }
.lb-close, .lb-box.tall .lb-close { position: fixed; top: 16px; right: 16px; z-index: 510; background: rgba(7, 8, 10, 0.85); }
.lb-box img { max-height: 62vh; max-height: 62dvh; }
.lb-box { max-height: none; margin: auto 0; }
.lb-close[hidden] { display: none; }
.lb-close, .lb-box.tall .lb-close { transform: none; }
/* no big number: the level is part of "THREAT LEVEL 2", the word + bars stay */
.tl-main { grid-template-columns: 1fr; grid-template-areas: "lab" "name" "big" "why" "kit"; }
.tl-num { display: none; }
.tl-lvl { color: var(--c, var(--cyan)); font-weight: 700; margin-left: 2px; }
.tl-moodrow .tl-lvl { font-size: 1em; }
/* missing / blocked news photo: cyberpunk "no signal" placeholder */
.hl-img.hl-noimg { background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 240, 255, 0.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #0d141a, #07080a); }
.hl-img.hl-noimg::before { content: "NO SIGNAL"; position: absolute; top: 12px; right: 14px; z-index: 1; display: block;
  font: 400 0.58rem var(--mono); letter-spacing: 0.24em; color: var(--muted); opacity: 0.7; background: none; }
.hl-img.hl-noimg::after { content: ""; position: absolute; top: 15px; right: calc(14px + 9ch + 10px); width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); opacity: 0.8; animation: crumb-blink 1.6s steps(1) infinite; display: block; }
.airbar .aq-label { display: none; }   /* strip without the "Hazard env" label */
/* easter egg: the top edge of the header fills with yellow from sunrise to sunset in Zadar */
.topbar { position: relative; }
.daybar { position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--yellow); pointer-events: none; transition: width 1s linear; }
.tl-help { cursor: help; }
/* missing photo: just the dark card, no "NO SIGNAL" text or dot */
.hl-img.hl-noimg::before, .hl-img.hl-noimg::after { content: none; display: none; }
.log-older a { align-items: baseline; } .log-older time { line-height: 1; }   /* date sits on the title baseline */
#operator .panel-head > span:first-child { align-items: baseline; } #operator .panel-head .op-av { align-items: baseline; line-height: 1; } #operator .panel-head .op-av::before { align-self: center; position: relative; top: -1px; }   /* AVAILABLE on the OPERATOR baseline */
/* mission line between the hazard strip and the blocks: plain terminal text, typed once on load */
.mission { margin: 22px 2px 4px; font: 400 0.8rem var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.mission-p { color: var(--cyan); }
.mission-t::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 3px; background: var(--cyan); vertical-align: -0.15em; animation: crumb-blink 1.06s steps(1) infinite; }
/* mission line: cursor follows whatever is being typed last */
.mission-t::after { content: none; }
.mission-f { color: var(--text); }
.mission-f::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 3px; background: var(--cyan); vertical-align: -0.15em; animation: crumb-blink 1.06s steps(1) infinite; }
.mission-f { color: inherit; }   /* facts in the same grey as the sentence */
/* mission line: always exactly one line, never pushes the layout; cursor after the text */
.mission { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.6em; }
.mission-t::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 3px; background: var(--cyan); vertical-align: -0.15em; animation: crumb-blink 1.06s steps(1) infinite; }
/* phones: the typing line wraps instead of "…", with fixed room for 3 lines so the blocks below never jump */
@media (max-width: 620px) {
  .mission { white-space: normal; overflow: visible; text-overflow: clip; min-height: calc(1.55em * 3); line-height: 1.55; font-size: 0.74rem; }
}
.panel-head span.ghost:hover, span.ghost:hover { color: var(--muted); cursor: default; }   /* plain text, no hover effect */
/* easter egg: planes flying across the screen (click the version number) */
.ver { cursor: default; }
.fly-plane { position: fixed; left: 0; z-index: 400; display: flex; align-items: center; gap: 6px; pointer-events: none;
  color: var(--cyan); font: 400 0.65rem var(--mono); letter-spacing: 0.08em; animation: fly-ltr linear forwards; }
.fly-plane svg { width: 22px; height: 22px; fill: currentColor; transform: rotate(90deg); filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.6)); }
.fly-plane.rtl { flex-direction: row-reverse; animation-name: fly-rtl; }
.fly-plane.rtl svg { transform: rotate(-90deg); }
.fly-plane span { opacity: 0.8; }
@keyframes fly-ltr { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 80px)); } }
@keyframes fly-rtl { from { transform: translateX(calc(100vw + 80px)); } to { transform: translateX(-120px); } }
.fly-plane svg { width: 32px; height: 32px; } .fly-plane { font-size: 0.75rem; gap: 8px; }
/* easter egg: rocket lift-off (click the launch countdown) */
.countdown[data-t0] { cursor: default; }
.fly-rocket { position: fixed; bottom: -90px; z-index: 400; width: 34px; pointer-events: none; animation: lift 4s cubic-bezier(.5, 0, .9, .4) forwards; }
.fly-rocket svg { width: 34px; height: 68px; overflow: visible; }
.fly-rocket .body { fill: #e9f2f7; } .fly-rocket .win { fill: var(--cyan); } .fly-rocket .fin { fill: var(--red); }
.fly-rocket .flame { fill: var(--yellow); transform-origin: 12px 31px; animation: flame .12s ease-in-out infinite alternate; }
.fly-rocket .smoke { position: absolute; left: 50%; top: 60px; width: 26px; height: 0; margin-left: -13px; border-radius: 50%;
  background: radial-gradient(ellipse at top, rgba(200, 210, 220, 0.45), transparent 70%); animation: smoke 4s ease-out forwards; }
@keyframes lift { 0% { transform: translateY(0); } 15% { transform: translateY(-40px); } 100% { transform: translateY(-120vh); } }
@keyframes flame { from { transform: scaleY(0.8); } to { transform: scaleY(1.25); } }
@keyframes smoke { 0% { height: 0; } 100% { height: 60vh; opacity: 0; } }
body.lift-shake .wrap { animation: shake 0.12s linear 25; }
@keyframes shake { 25% { transform: translate(1px, -1px); } 50% { transform: translate(-1px, 1px); } 75% { transform: translate(1px, 1px); } }

/* Headlines + Zadar Node small cards: same overlay as Space News (scanlines + bottom fade) */
.hl-more a::after {
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.22) 50%) 0 0 / 100% 3px,
              linear-gradient(to bottom, rgba(7, 8, 10, 0.15) 0%, rgba(7, 8, 10, 0.75) 45%, rgba(7, 8, 10, 0.96) 100%);
}

/* Launches page: Off-Planet crew stacked under the launch board */
.lp-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.lp-side .panel { margin: 0; }

/* What to watch? (/watch/): one title at a time, poster blurred behind, next button */
.wt-body { position: relative; overflow: hidden; min-height: calc(100vh - 230px); display: flex; align-items: center; padding: 32px !important; }
.wt-body::before { content: ""; position: absolute; inset: -40px; z-index: 0; background: var(--wt-bg, none) center / cover no-repeat;
  filter: blur(26px) saturate(1.1) brightness(0.22); transition: background-image 0.3s; }
.wt-body::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.22) 50%) 0 0 / 100% 3px; }
.wt-item { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 32px; align-items: center; width: 100%; padding: 12px 0; }
.js .wt-item { display: none; }
.js .wt-item.on { display: grid; animation: wt-in 0.35s ease; }
@keyframes wt-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.wt-poster { display: block; aspect-ratio: 2 / 3; border: 1px solid var(--line-strong); background: var(--panel-2); overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.wt-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-text p { margin: 0; }
.wt-name { margin: 6px 0 4px; font: 700 clamp(1.8rem, 4vw, 3rem)/1.05 "Rajdhani", sans-serif; color: var(--bright); }
.wt-text .pick-meta { font-size: 0.8rem; margin-top: 6px; }
.wt-text .pick-genres { font-size: 1rem; margin-top: 4px; }
.wt-desc { margin-top: 18px !important; max-width: 60ch; font-size: 1.05rem; line-height: 1.6; color: var(--text); }
.wt-text .pick-links { margin-top: 18px !important; font-size: 0.75rem; }
.wt-next { position: absolute; z-index: 2; right: 24px; bottom: 20px; padding: 8px 18px; background: rgba(7, 8, 10, 0.6); color: var(--cyan);
  border: 1px solid var(--cyan); font: 700 0.72rem var(--head-font); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.wt-next:hover { background: rgba(0, 240, 255, 0.14); }
@media (max-width: 700px) {
  .wt-body { padding: 18px 16px 70px !important; min-height: 0; }
  .wt-item { grid-template-columns: 1fr; gap: 18px; }
  .wt-poster { width: 62%; max-width: 260px; margin: 0 auto; }
  .wt-next { left: 16px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .js .wt-item.on { animation: none; } }

/* Phones: Headlines + Zadar Node cards take the photo's own 16:9 shape (whole picture, centred), title at the bottom */
@media (max-width: 620px) {
  .hl-edge .hl-more a { aspect-ratio: 16 / 9; min-height: 0; height: auto; padding: 12px 14px; }
  .hl-edge .hl-more .hl-img img { object-position: center; }
  .hl-edge .hl-more b { min-height: 0; }
}

/* Phones: Headlines + Zadar Node small cards become a swipeable row (one card + a peek of the next) */
@media (max-width: 620px) {
  .hl-edge .hl-more { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .hl-edge .hl-more::-webkit-scrollbar { display: none; }
  .hl-edge .hl-more li { flex: 0 0 84%; scroll-snap-align: start; }
}

/* On This Day page (/today/): reuses the What to watch? layout; photos instead of posters, year as the big title */
.wt-photo { aspect-ratio: 4 / 3; }
.wt-photo img { object-position: center top; }
.td-year { font-family: var(--head-font); letter-spacing: 0.04em; color: var(--cyan); }
.td-text { margin-top: 10px !important; font: 700 clamp(1.15rem, 2.2vw, 1.6rem)/1.3 "Rajdhani", sans-serif; color: var(--bright); max-width: 46ch; }
.wt-item.td-noimg { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.js .wt-item.td-noimg.on { display: block; }

/* Weather page: living background (wx-sky.js) behind the panels */
.wx-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.85; }
.wp-page .wrap { position: relative; z-index: 1; }
/* weather footer easter egg: dim icons that preview other weather in the background */
.wx-eggs { display: flex; justify-content: center; gap: 14px; margin: 10px 0 0 !important; }
.wx-eggs a { opacity: 0.12; transition: opacity 0.3s; color: var(--cyan); }
.wx-eggs a:hover, .wx-eggs a:focus-visible { opacity: 0.7; }
.wx-eggs .wx-egg { width: 18px; height: 18px; }
/* weather page: frosted, semi-transparent panels so the live sky shows through */
.wp-page .panel { background: rgba(10, 14, 20, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wp-page .panel-head { background: rgba(14, 26, 34, 0.7); }
/* crew: ♀ was clipped on iPhone (only the circle showed) — give it its own box so nothing cuts it */
.crew b { padding-bottom: 0.18em; }
.crew .fem { display: inline-block; line-height: 1; font-size: 0.95em; vertical-align: 0.02em; font-family: "Apple Symbols", "Segoe UI Symbol", "DejaVu Sans", sans-serif; font-variant-emoji: text; }
/* Off-Planet header on phones: the "10 people · ♀ 3 women (30% ☹︎)" line goes under the title, on one line */
@media (max-width: 620px) {
  #space .panel-head { flex-wrap: wrap; row-gap: 2px; }
  #space .panel-head small { flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* header weather badge on phones: no wind icon/speed, so ZADAR + clock stay on one line ("16°C rain · jugo") */
@media (max-width: 620px) { .wx-spd, .wx-ico.wx-wind { display: none; } }

/* Operator's pick: one featured article, full width under the ticker, 24 h only */
.ph { position: relative; display: grid; grid-template-columns: minmax(0, 42%) 1fr; gap: 0; overflow: hidden; border-color: var(--yellow); }
.ph::before { content: ""; position: absolute; inset: -30px; z-index: 0; pointer-events: none;
  background: var(--ph-bg, none) center / cover no-repeat; filter: blur(22px) brightness(0.2); }
.ph > * { position: relative; z-index: 1; }
.ph-img { display: block; min-height: 240px; overflow: hidden; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9); transition: transform 0.4s ease; }
.ph-img:hover img { transform: scale(1.03); }
.ph-text { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ph-tag { margin: 0; font: 400 0.66rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.ph-title { margin: 0; font: 700 clamp(1.3rem, 2.4vw, 1.9rem)/1.15 "Rajdhani", sans-serif; }
.ph-title a { color: var(--bright); } .ph-title a:hover { color: var(--cyan); }
.ph-sum { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--text); }
.ph-meta { margin: 4px 0 0; font: 400 0.7rem var(--mono); color: var(--muted); }
.ph-meta a { color: var(--cyan); }
@media (max-width: 760px) { .ph { grid-template-columns: 1fr; } .ph-img { min-height: 0; aspect-ratio: 16 / 9; } .ph-text { padding: 16px; } }
/* pick v2: no yellow outline; the text sets the height, the photo just fills its side */
.ph { border-color: var(--line); grid-template-columns: minmax(0, 36%) 1fr; }
.ph-img { position: relative; min-height: 200px; }
.ph-img img { position: absolute; inset: 0; }
.ph-text { padding: 18px 24px; }
@media (max-width: 760px) { .ph-img { aspect-ratio: 16 / 9; min-height: 0; } }
.ph { margin-top: 8px; }   /* same gap as the ticker and threat strip, so it does not glue onto the LIVE bar */
/* pick: optional AI comment as a thin, see-through yellow strip across the top of the photo */
.ph-note { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 6px 10px; font: 400 0.72rem/1.4 var(--mono); color: var(--yellow);
  background: rgba(10, 10, 6, 0.62); border-bottom: 1px solid rgba(252, 238, 10, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ph-note b { font-weight: 700; margin-right: 4px; opacity: 0.8; }
/* pick comment v2: bottom of the photo, see-through yellow strip, darkest site colour for the text */
.ph-note { top: auto; bottom: 0; color: var(--bg); background: rgba(252, 238, 10, 0.82); border-bottom: 0; border-top: 1px solid rgba(252, 238, 10, 0.95);
  -webkit-backdrop-filter: none; backdrop-filter: none; font-weight: 500; }
.ph-note b { color: var(--bg); opacity: 0.75; }

/* pick on small screens: photo on top (comment strip at its bottom), text below, summary folded to 4 lines + "read more" */
@media (max-width: 760px) {
  .ph { grid-template-columns: 1fr; }
  .ph-img { aspect-ratio: 16 / 9; min-height: 0; }
  .ph-text { padding: 14px 16px 16px; }
  .js .ph-sums:not(.open) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .js .ph-sums:not(.open) .ph-sum + .ph-sum { display: none; }
}
.ph-more { align-self: flex-start; margin: 0; padding: 0; background: none; border: 0; color: var(--cyan); font: 400 0.72rem var(--mono); cursor: pointer; }
.ph-more:hover { text-decoration: underline; }
/* pick on small screens: text starts right under the photo (no stretched empty band) */
@media (max-width: 760px) { .ph { align-items: start; grid-auto-rows: auto; } .ph-text { justify-content: flex-start; } }
/* pick comment v3: dark glass strip, thin yellow line on top, yellow text */
.ph-note { color: var(--yellow); background: rgba(7, 8, 10, 0.72); border-top: 1px solid rgba(252, 238, 10, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-weight: 400; }
.ph-note b { color: var(--yellow); opacity: 0.9; }
.ph-note, .ph-note b { color: var(--cyan); }   /* comment text cyan, the thin line stays yellow */
/* pick footer: desktop "source · picked · fades" on one line; phone: "read more" + source on one line, time below */
.ph-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
.ph-when::before { content: "\00b7"; margin-right: 8px; }
@media (max-width: 760px) {
  .ph-src { margin-left: auto; }
  .ph-more[hidden] + .ph-src { margin-left: 0; }
  .ph-when { flex-basis: 100%; }
  .ph-when::before { content: none; }
}
@media (max-width: 760px) { .ph-note { padding: 8px 16px; } }   /* phone: comment lines up with the text below */
.ph-note { border-top-color: var(--line); }   /* thin line in the same colour as the panel outlines */

/* Water Watch: red warning strip between the threat panel and the air strip (24 h per new Vodovod notice) */
.ww { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 16px; font: 400 0.76rem/1.4 var(--mono);
  color: var(--red); border-color: rgba(255, 0, 60, 0.45); background: rgba(255, 0, 60, 0.06); text-decoration: none; }
.ww:hover { background: rgba(255, 0, 60, 0.12); color: var(--red); }
.ww-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  animation: crumb-blink 1.6s steps(1) infinite; }
.ww-tag { flex: none; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ww-txt { flex: 1; min-width: 0; color: #ff6b85; }
.ww-more, .ww-src { flex: none; color: var(--muted); font-size: 0.68rem; }
@media (max-width: 620px) { .ww { flex-wrap: wrap; } .ww-txt { flex-basis: 100%; order: 3; } .ww-src { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .ww-ico { animation: none; } }
.otd-noimg .otd { grid-template-columns: 1fr; }   /* On This Day without a photo: text only, full width */

/* Power Watch: amber strip (same shape as Water Watch) + outage table on the City page */
.pw { color: #ffb020; border-color: rgba(255, 176, 32, 0.45); background: rgba(255, 176, 32, 0.06); }
.pw:hover { color: #ffb020; background: rgba(255, 176, 32, 0.12); }
.pw .ww-txt { color: #ffcf73; }
.pw-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; animation: crumb-blink 1.6s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .pw-ico { animation: none; } }
.pw-list { list-style: none; margin: 0; padding: 0; }
.pw-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pw-time { font: 400 0.8rem var(--mono); color: #ffb020; }
.pw-where b { display: block; font-weight: 600; color: var(--bright); }
.pw-where small { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--muted); }
.pw-type { font: 400 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; padding: 1px 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.pw-type.fault { color: var(--red); border-color: rgba(255, 0, 60, 0.45); }
.pw-foot { margin: 10px 0 0; font-size: 0.72rem; }
@media (max-width: 620px) { .pw-row { grid-template-columns: 1fr auto; } .pw-time { grid-column: 1 / -1; } }
/* pick v4: long summaries fold on every screen (4 lines + "read more"), white comment, more compact */
.js .ph-sums:not(.open) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.js .ph-sums:not(.open) .ph-sum + .ph-sum { display: none; }
.ph-note, .ph-note b { color: var(--bright); }
.ph-text { padding: 14px 20px; gap: 6px; }
.ph-title { font-size: clamp(1.15rem, 1.9vw, 1.55rem); }
.ph-sum { font-size: 0.92rem; line-height: 1.5; }
.ph-img { min-height: 170px; }
.ph-note { padding: 6px 12px; font-size: 0.7rem; }
/* pick v5: source link at the end of the line */
.ph-meta { justify-content: flex-start; }
.ph-src { order: 3; margin-left: auto !important; }
.ph-when { order: 2; flex-basis: auto !important; }
.ph-when::before { content: none !important; }
.ph-more { order: 1; }
/* Space News: slightly shorter (340 -> 290 desktop, 280 -> 245 phone) */
.sn-card, .sn-card a { min-height: 290px; }
@media (max-width: 620px) { .sn-card, .sn-card a { min-height: 245px; } }
/* pick: "read more" scrolls the summary inside the same 4-line box, so the block (and the photo) never grow */
.ph-sums.open { display: block; max-height: calc(4 * 1.5 * 0.92rem); overflow-y: auto; padding-right: 8px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--cyan) transparent; }
.ph-sums.open::-webkit-scrollbar { width: 4px; }
.ph-sums.open::-webkit-scrollbar-thumb { background: var(--cyan); }
.ph-sums .ph-sum + .ph-sum { margin-top: 8px; }
/* pick scroll box: classic always-visible scrollbar (Safari/Chrome hide thin "overlay" bars until you scroll) */
.ph-sums.open { scrollbar-width: auto; scrollbar-color: auto; }
@supports selector(::-webkit-scrollbar) { .ph-sums.open { scrollbar-width: initial; scrollbar-color: initial; } }
.ph-sums.open::-webkit-scrollbar { width: 6px; -webkit-appearance: none; }
.ph-sums.open::-webkit-scrollbar-track { background: rgba(0, 240, 255, 0.10); }
.ph-sums.open::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 0; min-height: 24px; }
/* pick scroll box: the bottom line fades while there is more to read (phones have no visible scrollbar) */
.ph-sums.open:not(.end) { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
/* pick v6: no "read more" button — the summary is always a scroll box (4 lines tall), scrollbar + fade show there's more;
   extra room at the bottom so the last line can scroll clear of the fade */
.ph-more { display: none !important; }
.ph-sums, .js .ph-sums:not(.open) { display: block; -webkit-line-clamp: unset; max-height: calc(4 * 1.5 * 0.92rem); overflow-y: auto;
  padding-right: 8px; padding-bottom: 0.6em; overscroll-behavior: contain; }
.js .ph-sums:not(.open) .ph-sum + .ph-sum { display: block; }
.ph-sums::-webkit-scrollbar { width: 6px; -webkit-appearance: none; }
.ph-sums::-webkit-scrollbar-track { background: rgba(0, 240, 255, 0.10); }
.ph-sums::-webkit-scrollbar-thumb { background: var(--cyan); min-height: 24px; }
.ph-sums:not(.end) { -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
/* pick on phones: date, countdown and source on one line (smaller text; the date part shortens with … if the source name is long) */
@media (max-width: 760px) {
  .ph-meta { flex-wrap: nowrap; font-size: 0.62rem; column-gap: 10px; }
  .ph-when { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ph-src { flex: none; white-space: nowrap; }
}

/* pick comment as a terminal line under the block (same look as the mission line), wraps if long; both lines more compact */
.mission { margin: 12px 2px 2px; }
.ph-cmt { margin: 10px 2px 0; white-space: normal; overflow: visible; min-height: 0; line-height: 1.5; }
.ph-cmt-t::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 3px; background: var(--cyan); vertical-align: -0.15em; animation: crumb-blink 1.06s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .ph-cmt-t::after { animation: none; } }
/* pick on phones: bigger scroll box (7 lines) and slightly larger text */
@media (max-width: 760px) {
  .ph-sum { font-size: 0.98rem; }
  .ph-sums, .js .ph-sums:not(.open) { max-height: calc(7 * 1.5 * 0.98rem); }
}
.mission + .grid { margin-top: 10px; }   /* less empty space between the mission line and the blocks below */
/* fix: on phones a long source name (zadarskilist.novilist.hr) widened the whole block past the screen */
@media (max-width: 760px) {
  .ph { grid-template-columns: minmax(0, 1fr); }
  .ph-text, .ph-meta { min-width: 0; }
  .ph-src { flex: 0 1 auto; min-width: 0; max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 760px) { .ph-fade { display: none; } }   /* phones: no "signal fades" countdown */
.ph-cmt-t::after { content: none; }   /* only the mission line keeps the blinking cursor */
/* rocket egg: no "stuck" first second — visible at once, quick lift, then accelerate */
.fly-rocket { bottom: -40px; animation: lift2 3.4s cubic-bezier(.4, 0, .85, .5) forwards; }
@keyframes lift2 { 0% { transform: translateY(0); } 10% { transform: translateY(-90px); } 100% { transform: translateY(-120vh); } }
/* rocket egg v3: one smooth acceleration, slow -> fast (starts visible, so it never looks stuck) */
.fly-rocket { animation: lift3 3.4s cubic-bezier(.45, 0, .9, .6) forwards; }
@keyframes lift3 { from { transform: translateY(0); } to { transform: translateY(-120vh); } }
/* rocket egg v4: starts just below the screen and rises into view right away, then keeps accelerating */
.fly-rocket { bottom: -85px; animation: lift3 3.4s cubic-bezier(.2, .15, .85, .6) forwards; }
/* header AI lines (Headlines, Space News, Zadar Node): use all the free space next to the title, … only when it really doesn't fit */
.panel-head .hl-head-right { flex: 1 1 auto; justify-content: flex-end; margin-left: 16px; }
.panel-head .ghost { max-width: none; }
.countdown.cd-done { font-size: 0.9rem; color: var(--muted); text-shadow: none; letter-spacing: 0.08em; }   /* quiet line after T+3h */

/* side strip: fixed on the left edge, desktop only — barcode tag + the daily AI transmission, read bottom to top */
@font-face { font-family: "Libre Barcode 39"; font-weight: 400; font-display: swap; src: url("fonts/libre-barcode-39-latin-400-normal.woff2") format("woff2"); }
.txm { display: none; }
@media (min-width: 1440px) {
  .txm { display: flex; position: fixed; left: 14px; top: 50%; z-index: 5; pointer-events: none; align-items: center; gap: 14px;
    writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); opacity: 0.32; white-space: nowrap; }
  .txm-bar { font: 400 2.1rem/1 "Libre Barcode 39", monospace; color: var(--cyan); }
  .txm-line { font: 400 0.62rem var(--mono); letter-spacing: 0.22em; color: var(--muted); }
}
/* side strip v2: all in the same grey, sitting just left of the blocks (not at the screen edge) */
@media (min-width: 1440px) {
  .txm { left: calc(50% - 580px - 46px); opacity: 0.55; }
  .txm-bar { color: var(--muted); }
}
@media (min-width: 1440px) { .txm-bar { font-size: 1.5rem; } }   /* smaller barcode */
@media (min-width: 1440px) { .txm-bar { font-family: var(--mono); font-size: 1.5rem; letter-spacing: 0.06em; } }   /* the tag as plain mono numbers (the look Mate liked), not bars */
@media (max-width: 620px) { .hl-date { display: none; } }   /* phones: headline source line without the time, fits one line */
.tx-item.latest { border-left-color: var(--yellow); } .tx-item.latest time { color: var(--yellow); }   /* newest post in yellow, red is for errors/offline */
/* logo ".eu" = threat level light (1-2 cyan as before, 3 yellow, 4 orange, 5 red) */
.brand.lvl-3 span { color: var(--yellow); } .brand.lvl-4 span { color: #ff7a00; } .brand.lvl-5 span { color: var(--red); }
.brand span { transition: color 0.6s; }

/* Rogue AI Insights (/rogue/): column pages + index */
.rg-col .panel-body { padding: 28px 32px 30px; }
.rg-head { margin: 0 0 8px; max-width: 30ch; font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1.1 "Rajdhani", sans-serif; letter-spacing: 0.02em; color: var(--bright); }
.rg-by { margin: 0 0 26px; font: 400 0.72rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rg-p { max-width: 68ch; margin: 0 0 16px; font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.rg-col .rg-p:first-of-type { font-size: 1.2rem; color: var(--bright); }
.rg-end { margin: 26px 0 0; font: 400 0.8rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.rg-nav { margin-top: 26px; padding-top: 14px; border-top: 1px dashed var(--line); font: 400 0.72rem var(--mono); color: var(--muted); }
.rg-nav a { color: var(--cyan); }
.rg-intro { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }
.rg-list { list-style: none; margin: 0; padding: 0; }
.rg-item { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rg-item time { font: 400 0.74rem var(--mono); color: var(--muted); padding-top: 4px; }
.rg-item a b { display: block; font: 700 1.15rem/1.2 "Rajdhani", sans-serif; color: var(--bright); letter-spacing: 0.02em; }
.rg-item a span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.rg-item a:hover b { color: var(--cyan); }
@media (max-width: 620px) { .rg-col .panel-body { padding: 18px 16px; } .rg-item { grid-template-columns: 1fr; gap: 4px; } }
/* Rogue AI: centred reading column + Miles's avatar */
.rg-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.rg-page .crumb, .rg-page .foot { max-width: 820px; margin-left: auto; margin-right: auto; }
.rg-ava { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line-strong); vertical-align: middle; margin-right: 12px; }
.rg-by { display: flex; align-items: center; }
.rg-intro { display: flex; align-items: center; gap: 18px; }
.rg-ava-big { width: 88px; height: 88px; margin: 0; flex: none; }
@media (max-width: 620px) { .rg-ava-big { width: 64px; height: 64px; } }
.rg-ava { border-radius: 50%; border-color: var(--cyan); }   /* Miles: round avatar */
.rg-p, .rg-head { max-width: none; }   /* Rogue AI: text uses the full width of the column panel */

/* Rogue AI Insights: compact homepage block (latest column) */
.rg-mini-top { display: flex; align-items: center; gap: 12px; color: inherit; }
.rg-mini-top .rg-ava { margin: 0; flex: none; }
.rg-mini-top b { display: block; font: 700 1rem/1.2 "Rajdhani", sans-serif; letter-spacing: 0.02em; color: var(--bright); }
.rg-mini-top small { display: block; margin-top: 2px; font: 400 0.64rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rg-mini-top:hover b { color: var(--cyan); }
.rg-mini-text { margin: 12px 0 8px; font-size: 0.9rem; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.rg-mini-go { font: 400 0.7rem var(--mono); color: var(--cyan); }
@media (max-width: 620px) { .rg-col .panel-head small { display: none; } }   /* phones: column header just the title (date is in the byline) */
/* Rogue AI Column: numbered points + sources block */
.rg-li { padding-left: 1.4em; text-indent: -1.4em; }
.rg-src { margin-top: 22px; padding-top: 12px; border-top: 1px dashed var(--line); }
.rg-src-h { margin: 0 0 6px; font: 400 0.68rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.rg-src ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rg-src a { font: 400 0.78rem var(--mono); color: var(--cyan); }

/* Damage Report line at the top of /rogue/ */
.rg-dmg { margin: 0 0 16px; padding: 10px 12px; border-left: 2px solid var(--red); background: rgba(255,255,255,0.03); font: 400 0.86rem/1.5 var(--mono); color: var(--text); }
.rg-dmg-h { display: block; margin-bottom: 4px; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Damage Report strip (homepage, above the threat panel) */
.dmg { margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--line, rgba(255,255,255,0.08)); border-left: 3px solid var(--red); background: rgba(255,0,60,0.04); }
.dmg-h { margin: 0 0 6px; display: inline-block; background: var(--red); color: #fff; font: 500 0.64rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 8px; }
.dmg-t { margin: 0; font: 400 1rem/1.55 var(--mono); color: var(--text); }
@media (max-width: 640px) { .dmg { padding: 10px 12px; } .dmg-t { font-size: 0.88rem; } }
/* Damage Report: same size as the threat line */
.dmg { padding: 8px 14px; }
.dmg-h { margin: 0 0 4px; font-size: 0.6rem; padding: 2px 6px; }
.dmg-t { font: 400 0.74rem/1.7 var(--mono); letter-spacing: 0.02em; opacity: 0.9; }
@media (max-width: 640px) { .dmg-t { font-size: 0.74rem; } }

/* WTF? page headings */
.prose h2 { margin: 22px 0 8px; font: 500 0.72rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.prose h2:first-of-type { margin-top: 14px; }

/* ---------- /events/ calendar (.ev-) ---------- */
.ev-mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ev-mhead h2 { margin: 0; font: 500 0.8rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.ev-nav { width: 38px; height: 30px; background: none; border: 1px solid var(--line); color: var(--cyan); font: 400 1.1rem var(--mono); cursor: pointer; }
.ev-nav:hover:not([disabled]) { border-color: var(--line-strong); background: rgba(0, 240, 255, 0.06); }
.ev-nav[disabled] { opacity: 0.25; cursor: default; }
.ev-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-wd { padding: 2px 6px; font: 400 0.6rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ev-day { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 112px; padding: 6px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.ev-day.out { background: transparent; border-color: transparent; }
.ev-day.past { opacity: 0.38; }
.ev-day.today { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.ev-n { font: 400 0.7rem var(--mono); color: var(--muted); }
.ev-day.today .ev-n { color: var(--cyan); }
.ev-it { display: block; padding: 1px 5px; border-left: 2px solid var(--line-strong); font: 500 0.8rem/1.3 "Rajdhani", sans-serif; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-it:hover { color: var(--cyan); background: rgba(0, 240, 255, 0.06); }
.ev-it.top { border-left-color: var(--yellow); }
.ev-it i { margin-right: 4px; font: normal 400 0.64rem var(--mono); color: var(--muted); }
.ev-day:not(.all) .ev-it:nth-of-type(n+4) { display: none; }
.ev-more { align-self: flex-start; margin-top: auto; padding: 0 5px; background: none; border: 0; font: 400 0.64rem var(--mono); color: var(--cyan); cursor: pointer; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ev-row .ev-t { grid-row: 1 / 3; min-width: 6.5em; font: 400 0.72rem/1.6 var(--mono); color: var(--cyan); }
.ev-row b { font: 600 0.98rem/1.25 "Rajdhani", sans-serif; color: var(--bright); }
.ev-row small { font: 400 0.66rem var(--mono); color: var(--muted); }
.ev-row:hover b { color: var(--cyan); }
@media (min-width: 761px) { .ev-list:not(.ev-show) { display: none; } }
@media (max-width: 760px) { .ev-cal { display: none; } }
.ev-row { grid-template-columns: 7.6em minmax(0, 1fr); } .ev-row .ev-t { min-width: 0; }
.ev-row { grid-template-columns: 6.2rem minmax(0, 1fr); }

/* homepage: Events in Zadar (AI line + next 7 days) */
#events { margin-bottom: 18px; }
.ev-ai { margin: 0 0 12px; font: 400 0.8rem/1.6 var(--mono); color: var(--text); }
.ev-ai-h { color: var(--cyan); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; }
.ev-week .ev-day { min-height: 100px; }
.ev-week .ev-n { text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 760px) {
  .ev-week { grid-template-columns: repeat(7, 160px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .ev-week .ev-day { scroll-snap-align: start; }
}
/* homepage events: no panel head, thin frame only (stands out from the other blocks) */
.ev-home { margin: 0 0 18px; padding: 12px 14px 14px; border: 1px solid var(--line-strong); background: rgba(0, 240, 255, 0.025); }
.ev-home .ev-ai { margin: 0 0 12px; }
.ev-all { margin-left: 6px; font: 400 0.68rem var(--mono); letter-spacing: 0.08em; color: var(--cyan); white-space: nowrap; }
.ev-home { margin-top: 16px; }
@media (max-width: 760px) { .ev-all { display: block; margin: 4px 0 0; text-align: right; } }
/* events page: today's AI line typed after the crumb cursor */
.ev-crumb-ai { margin-left: 14px; font: 400 0.74rem/1.6 var(--mono); color: var(--text); opacity: 0.9; }
@media (max-width: 760px) { .ev-crumb-ai { display: block; margin: 10px 0 0 6px; } }
.ev-home + .mission { margin-top: 2px; } @media (max-width: 760px) { .mission { min-height: calc(1.55em * 2); } }

/* homepage Rogue AI Column block: red tint, it went rogue */
#rogue { border-color: rgba(255, 0, 60, 0.35); background: linear-gradient(180deg, rgba(255, 0, 60, 0.07), rgba(255, 0, 60, 0.02)), var(--panel); }
#rogue .panel-head { background: rgba(255, 0, 60, 0.12); border-bottom-color: rgba(255, 0, 60, 0.35); border-left-color: var(--red); }
#rogue .panel-head, #rogue .panel-head .head-link { color: var(--red); }
#rogue .rg-ava { box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.6), 0 0 12px rgba(255, 0, 60, 0.35); }
#rogue .rg-mini-top:hover b, #rogue .rg-mini-go { color: var(--red); }

/* NASA image of the day: picture fills the whole block, its title sits in the block header */
#iotd .panel-body { padding: 0; }
#iotd .iotd { position: relative; }
#iotd .iotd-img { display: block; aspect-ratio: 4 / 3; border: 0; margin: 0; }
#iotd .iotd-img img { width: 100%; height: 100%; object-fit: cover; }
#iotd .iotd-txt { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 14px 10px; background: linear-gradient(180deg, transparent, rgba(3, 4, 6, 0.85)); }
#iotd .iotd-txt b { display: none; }
#iotd .iotd-txt small { color: rgba(255, 255, 255, 0.8); }
#iotd .panel-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#iotd .panel-head small { flex: none; }
/* main headline image: same scanlines as Space News / the small cards (no bottom fade, the text sits beside it) */
.hl-edge .hl .hl-img::after { content: ""; display: block; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.22) 50%) 0 0 / 100% 3px, rgba(7, 8, 10, 0.15); }
.log-head .log-lead { max-width: none; }   /* intro under the title spans the same width as the article */

/* /picks/ archive: same layout as the blog archive, in yellow */
.pk-page { --cyan: var(--yellow); }
.pk-page .log-card .pk-note { margin: 0 0 8px; font: italic 400 0.82rem/1.6 var(--mono); color: var(--yellow); opacity: 0.85; }
.ph-tag a { color: inherit; } .ph-tag a:hover { color: var(--bright); }
.pk-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 400 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); } .pk-nav a { color: var(--yellow); }

/* /news/ headlines archive: same layout as blog/picks archives, in green, one card per day */
.nw-page { --cyan: var(--green); }
.nw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nw-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nw-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nw-list a { display: block; font: 600 0.98rem/1.3 "Rajdhani", sans-serif; color: var(--bright); }
.nw-list a:hover { color: var(--green); }
.nw-hr { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.nw-src { display: block; margin-top: 3px; font: 400 0.62rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); opacity: 0.8; }
.nw-page .log-card .nw-hr { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

/* /rogue/ archive: same layout as the other archives, in red */
.rg-arch { --cyan: var(--red); }
.rg-arch .log-lead .rg-ava { float: left; width: 56px; height: 56px; margin: 2px 16px 6px 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.6), 0 0 12px rgba(255, 0, 60, 0.35); }
.rg-arch .log-stats { clear: both; }
.rg-arch .log-lead { display: flow-root; margin-bottom: 14px; } .rg-arch .log-lead .rg-ava { margin-bottom: 0; }
.rg-arch .log-lead .rg-ava { float: right; margin: 0 0 8px 20px; }   /* portrait on the right, clear of the label bar */
/* Night & Day: map fills the whole block, info line keeps its padding */
#earth .panel-body { padding: 0; }
#earth .wm { border: 0; }
#earth .wm-info { margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--line); }

/* /incidents/: humanity's black box recorder (red, terminal tape) */
.ix-page { --cyan: var(--red); }
.ix-head { margin: 6px 0 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 0, 60, 0.3); }
.ix-kick { font: 400 0.7rem var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--red); }
.ix-count { margin-top: 10px; font: 700 clamp(1.6rem, 4vw, 2.4rem)/1.1 var(--head-font); text-transform: uppercase; letter-spacing: 0.04em; color: var(--bright); }
.ix-count b { color: var(--red); text-shadow: 0 0 18px rgba(255, 0, 60, 0.45); }
.ix-meta { margin-top: 10px; font: 400 0.66rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ix-rec { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: 0; animation: ix-blink 1.2s steps(1) infinite; }
@keyframes ix-blink { 50% { opacity: 0.15; } }
.ix-log { list-style: none; margin: 0 0 26px; padding: 0 0 0 16px; border-left: 1px solid rgba(255, 0, 60, 0.3); }
.ix { position: relative; padding: 0 0 22px; opacity: var(--f, 1); }
.ix::before { content: ""; position: absolute; left: -21px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg, #07080a); border: 1px solid var(--red); }
.ix:first-child::before { background: var(--red); box-shadow: 0 0 10px var(--red); }
.ix-h { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; font: 400 0.66rem var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.ix-h b { font-weight: 400; color: var(--red); }
.ix-t { margin: 6px 0 0; font: 400 0.95rem/1.65 var(--mono); color: var(--text); }
.ix:first-child .ix-t { color: var(--bright); }
.ix-t.typing::after { content: ""; display: inline-block; width: 0.55em; height: 1em; margin-left: 2px; background: var(--red); vertical-align: -0.15em; animation: ix-blink 0.8s steps(1) infinite; }
.ix-sys { margin: -6px 0 22px; font: italic 400 0.72rem var(--mono); letter-spacing: 0.06em; color: var(--red); opacity: calc(var(--f, 1) * 0.75); }
.ix-end { opacity: 0.5; }
.dmg-h a { color: inherit; } .dmg-h a:hover { color: var(--bright); }

/* footer: node status (was in the Operator block) as part of the footer sentence */
.ft-health { display: inline; margin: 0; }
.ft-health dt, .ft-health dd { display: inline; margin: 0; }
.ft-health dt { text-transform: lowercase; color: inherit; }
.ft-health dt:first-child { display: none; }
.ft-health dt + dd { margin-left: 0.35em; }
.ft-health dd::after { content: " · "; color: var(--muted); }
.ft-health .dot { width: 6px; height: 6px; margin-right: 5px; vertical-align: 1px; }
.ft-health .ok { color: var(--green); }
.ft-line { margin: 2px 0; }
.op-id-body .op-av { margin-left: 4px; font: 400 0.68rem var(--mono); letter-spacing: 0.06em; }   /* available/busy now sits after he/him, same size */
.op-id-body .op-av::before { width: 6px; height: 6px; vertical-align: 0.05em; }

/* /incidents/ boot sequence (random lines every visit, skippable) */
.ix-boot { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; background: #040406; transition: opacity 0.45s; }
.ix-boot.out { opacity: 0; pointer-events: none; }
.ix-boot.shake { transform: translateX(3px) skewX(-1deg); }
.ix-boot-in { width: min(720px, 100%); font: 400 0.8rem/1.7 var(--mono); color: #b7c3cb; }
.ix-boot-h { margin: 0 0 14px; color: var(--red); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.7rem; }
.ix-boot-log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-boot-log b { font-weight: 400; }
.ix-boot-log b.ok { color: var(--green); } .ix-boot-log b.bad { color: var(--red); }
.ix-boot-log p.glitch span { animation: ix-glitch 0.35s steps(2) 2; display: inline-block; }
@keyframes ix-glitch { 0% { transform: translateX(-3px); } 50% { transform: translateX(2px); opacity: 0.6; } 100% { transform: none; } }
.ix-boot-go { color: var(--red); margin-top: 8px !important; }
.ix-boot-bar { height: 3px; margin-top: 16px; background: rgba(255, 0, 60, 0.15); }
.ix-boot-bar i { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 10px var(--red); transition: width 0.2s; }
.ix-boot-skip { margin: 10px 0 0; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); opacity: 0.6; }
@media (max-width: 760px) { .ix-boot-in { font-size: 0.68rem; } .ix-boot-log p { white-space: normal; } }

/* homepage: Today's obsession (World vs Croatia, AI lines only) */
.ob { margin: 0 0 18px; }
.ob .ob-live { display: inline-flex; align-items: center; gap: 6px; font: 400 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.ob .ob-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: ix-blink 1.2s steps(1) infinite; }
.ob-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.ob-side { padding: 16px 20px 18px; }
.ob-hr { text-align: right; }
.ob-team { display: block; font: 700 1.35rem/1 var(--head-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bright); }
.ob-take { margin: 10px 0 0; font-size: 1.1rem; line-height: 1.45; color: var(--bright); }
.ob-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 26px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: rgba(0, 240, 255, 0.03); }
.ob-vs { font: 700 2.2rem/1 var(--head-font); letter-spacing: 0.08em; color: var(--cyan); text-shadow: 0 0 18px rgba(0, 240, 255, 0.35); }
.ob-mid small { font: 400 0.6rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ob-verdict { margin: 0; display: flex; gap: 12px; align-items: baseline; padding: 11px 20px 13px; border-top: 1px solid var(--line); font: 400 0.84rem/1.6 var(--mono); color: var(--text); }
.ob-verdict span { flex: none; color: var(--yellow); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 700px) {
  .ob-side { padding: 12px 12px 14px; }
  .ob-team { font-size: 0.95rem; }
  .ob-take { font-size: 0.92rem; }
  .ob-mid { padding: 12px 10px; } .ob-vs { font-size: 1.4rem; }
  .ob-verdict { flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
}
/* obsession block: compact, no glow on text */
.ob-side { padding: 10px 16px 12px; }
.ob-team { font-size: 0.78rem; letter-spacing: 0.16em; color: var(--muted); }
.ob-take { margin-top: 5px; font-size: 1rem; line-height: 1.4; }
.ob-mid { padding: 8px 16px; gap: 3px; }
.ob-vs { font-size: 1.35rem; text-shadow: none; }
.ob-verdict { padding: 7px 16px 9px; font-size: 0.8rem; }
.ix-count b { text-shadow: none; }
.quiz-score, .countdown { text-shadow: none; }   /* no glowing text anywhere */
.mission + .ob { margin-top: 14px; }   /* breathing room between the > line and the obsession block */
/* obsession on phones: no VS column, Croatia stacked under World */
@media (max-width: 700px) {
  .ob-board { grid-template-columns: 1fr; }
  .ob-mid { display: none; }
  .ob-hr { text-align: left; border-top: 1px solid var(--line); }
  .ob-side { padding: 10px 14px 12px; }
  .ob-team { font-size: 0.7rem; }
  .ob-take { font-size: 0.98rem; }
}
/* obsession: no top bar, thin frame like the events block, VS floating on the same background */
.ob-plain { border: 1px solid var(--line-strong); background: rgba(0, 240, 255, 0.025); }
.ob-label { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px 0; font: 400 0.68rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.ob-plain .ob-mid { border: 0; background: none; }
@media (max-width: 700px) { .ob-label { padding: 10px 14px 0; } }
/* obsession label: above the VS on desktop, on top of the block on phones */
.ob-label-top { display: none; }
.ob-label-mid { padding: 0 0 4px; white-space: nowrap; }
@media (max-width: 700px) { .ob-label-top { display: flex; } }
.ob-label-top, .ob-label-mid, .ob-label { display: none !important; }   /* no "Today's obsession" label at all */

/* ---------- arcade card (games hub + homepage Game of the Day) ---------- */
.ga-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.ga-card:hover { border-color: var(--cyan); color: var(--text); transform: translateY(-2px); }
.ga-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); background: #05070a; }
.ga-card span { display: block; padding: 10px 12px 12px; }
.ga-card b { display: block; font: 700 1rem var(--head-font); letter-spacing: 0.06em; color: var(--bright); text-transform: uppercase; }
.ga-card:hover b { color: var(--cyan); }
.ga-card i { display: block; margin-top: 4px; font: 500 0.92rem/1.35 "Rajdhani", sans-serif; font-style: normal; color: var(--text); }
.ga-card small { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font: 400 0.68rem var(--mono); color: var(--muted); }
.ga-card small em { font-style: normal; color: var(--yellow); }
#game .ga-card { max-width: 420px; }

/* easter egg: the logo's blinking cursor is a real link to /OS/ (replaces the .brand::after cursor; same size and spot) */
.brand::after { display: none; }
.egg { display: inline-block; width: 3px; height: 1.14rem; margin-left: -13px; background: var(--cyan); align-self: center; animation: crumb-blink 1.06s steps(1) infinite; }
.egg:hover { background: var(--yellow); animation: none; }
@media (prefers-reduced-motion: reduce) { .egg { animation: none; } }
