/* elrnd.com — "The 11:55 Edition".
   A daily research journal that goes to press at 11:55 Prague.
   Light (warm paper) is canonical; dark is the night edition.
   System fonts only, no external requests. */

:root {
  --paper: #FBFAF7;
  --paper-high: #FFFFFF;
  --tint: #F3F1EA;
  --ink: #17191E;
  --ink-2: #494E58;
  --ink-3: #666B75;        /* spec #878C96 darkened for AA 4.5:1 on paper AND on --tint (4.73) */
  --rule: #DEDBD2;
  --rule-heavy: #17191E;
  --grid: rgba(23, 25, 30, 0.10);
  --forecast: #2740CE;     /* ultramarine — brand accent AND forecast series */
  --actual: #C34A16;       /* vermillion — actual series */
  --late: #B7231B;

  --sans: "Helvetica Neue", -apple-system, "Segoe UI", Roboto, "Arial Nova", Arial, sans-serif;
  --serif: "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --sec: clamp(4rem, 8vw, 7rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121317;
    --paper-high: #1A1C22;
    --tint: #17181D;
    --ink: #E9E7E0;
    --ink-2: #A9ACB4;
    --ink-3: #7E838E;      /* spec #6E727C lifted one step for AA 4.5:1 on #121317 */
    --rule: #2A2C33;
    --rule-heavy: #E9E7E0;
    --grid: rgba(233, 231, 224, 0.10);
    --forecast: #7D93FF;
    --actual: #EE8A4C;
    --late: #F0584C;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(39, 64, 206, 0.14); }
@media (prefers-color-scheme: dark) {
  ::selection { background: rgba(125, 147, 255, 0.22); }
}
:focus-visible { outline: 2px solid var(--forecast); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--paper-high); color: var(--ink); padding: 8px 14px;
  border: 1px solid var(--rule); font: 13px var(--mono);
}
.skip:focus-visible { left: 8px; top: 8px; }

/* Visually hidden, available to assistive tech. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* The journal's signature double rule: 2px heavy over 1px hairline, 3px apart. */
.rule-double {
  height: 6px;
  border-top: 2px solid var(--rule-heavy);
  border-bottom: 1px solid var(--rule);
}

/* ---------- masthead (printed, not sticky) ---------- */

.masthead { padding-top: 18px; }
.masthead-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 1rem;
}
.brand { margin: 0 0 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark { font: 800 21px/1 var(--sans); letter-spacing: 0.04em; color: var(--ink); }
.brand-by { font: 11.5px/1.5 var(--mono); color: var(--ink-3); }
.brand-by-below { display: none; margin: -6px 0 12px; grid-column: 1 / -1; }
.clock {
  margin: 0 0 14px; font: 13px/1 var(--mono); color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.clock .clock-late { color: var(--late); }
.masthead-rule { grid-column: 1 / -1; transform-origin: left; animation: rule-draw 900ms var(--ease-out) both; }
@keyframes rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 700px) {
  .brand-by-inline { display: none; }
  .brand-by-below { display: block; }
  .clock .clock-tz { display: none; }
}
/* Narrow phones: the clock keeps bare HH:MM:SS — the gate/T− story lives in
   the countdown pane. The brand wordmark must never be the track that
   absorbs clock growth. */
@media (max-width: 480px) {
  .clock .clock-seg { display: none; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); }
.issue-line {
  margin: 0 0 1.6rem; font: 11px/1 var(--mono); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.16em;
  opacity: 0; animation: fade-in 500ms ease both 250ms;
}
.hero h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--forecast); }
.hl { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hl-in { display: inline-block; animation: line-rise 700ms var(--ease-out) both; }
.hl:nth-child(2) .hl-in { animation-delay: 90ms; }
@keyframes line-rise { from { transform: translateY(112%); } to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero .sub {
  margin: 0; max-width: 62ch;
  font: clamp(1.06rem, 1.5vw, 1.25rem)/1.65 var(--serif);
  color: var(--ink-2);
  opacity: 0; animation: fade-in 500ms ease both 250ms;
}
.hero-colophon { display: none; }

/* ---------- tagline bands ---------- */

.tagline-band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(2.2rem, 4.5vw, 3.5rem) 1.25rem; margin-top: var(--sec); }
.tagline {
  margin: 0 auto; max-width: 34em; text-align: center;
  font: italic clamp(1.5rem, 3vw, 2.4rem)/1.35 var(--serif);
  color: var(--ink); letter-spacing: -0.005em;
}
/* Wrap-safe underline: real text-decoration follows every wrapped line
   (an absolutely-positioned ::after only underlined the last fragment on
   mobile). The reveal animates the decoration color instead of scaleX. */
.tagline em {
  font-style: normal; color: var(--forecast);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  text-decoration-color: transparent;
  transition: text-decoration-color 500ms var(--ease-std) 200ms;
}
.tagline-band.is-in .tagline em { text-decoration-color: var(--forecast); }
@media (max-width: 640px) { .tagline { max-width: 20em; } }

/* ---------- sections + folio rail ---------- */

.section { padding: var(--sec) 0 0; }
.folio {
  margin: 0 0 1.4rem; font: 11px/1 var(--mono); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.12;
}
.lead {
  margin: 0 0 1rem; max-width: 62ch;
  font: clamp(1.06rem, 1.5vw, 1.25rem)/1.65 var(--serif);
  color: var(--ink-2);
}
.lead strong { color: var(--ink); }
.note { color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.mono-note { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); }

/* ---------- tabs (text-only, on the hairline) ---------- */

.tabs {
  position: relative; display: flex; margin: 2.2rem 0 0;
  border-bottom: 1px solid var(--rule);
}
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-2); padding: 15px 18px; min-height: 44px;
}
.tab:hover { background: var(--tint); color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab-ink {
  position: absolute; bottom: -1px; height: 2px; background: var(--ink);
  left: 0; width: 0; pointer-events: none;
}
.tabs.ready .tab-ink { transition: left 240ms var(--ease-std), width 240ms var(--ease-std); }
@media (max-width: 640px) {
  .tabs { width: 100%; }
  .tab { flex: 1 1 0; text-align: center; padding-inline: 4px; }
}

/* ---------- market panel ---------- */

.market { margin: 2.4rem 0 1rem; }
.market[hidden] { display: none; }
.market.panel-in { animation: fade-in 160ms ease both; }
.market-head { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.market-title { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }
.chip {
  margin: 0; font: 12px/1.4 var(--mono); color: var(--ink-2);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em; white-space: nowrap;
}
.cu { font-variant-numeric: tabular-nums; }

figure.pane { margin: 0 0 2.6rem; }
.fig-cap {
  margin: 0 0 0.9rem; font: 11px/1.5 var(--mono); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.fig-cap .fig-unit { color: var(--ink-3); letter-spacing: 0.08em; text-transform: none; }

/* Fig. 1 pane: faint wash inside a hairline frame */
.tomorrow-frame {
  position: relative; overflow: hidden;
  background: var(--tint); border: 1px solid var(--rule);
  padding: 1.1rem 1.1rem 0.8rem;
}
.press-rule {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--ink); z-index: 3; pointer-events: none;
}
.press-in > .note, .press-in > .legend { opacity: 0; animation: fade-in 300ms ease both 550ms; }

/* ---------- charts (publication figures) ---------- */

.chart { position: relative; width: 100%; height: 300px; }
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart canvas.overlay { pointer-events: none; }
.chart .tip {
  position: absolute; top: 10px; right: 8px; display: none; z-index: 2;
  pointer-events: none; white-space: nowrap;
  background: var(--paper-high); border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(23, 25, 30, 0.06);
  padding: 7px 10px;
  font: 12px/1.6 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.tip strong { color: var(--ink); font-weight: 700; }
.tip .sw { display: inline-block; width: 14px; height: 2px; margin-right: 7px; vertical-align: middle; }
.tip .tv { color: var(--ink); }

.legend { margin-top: 0.8rem; display: flex; gap: 1.4rem; flex-wrap: wrap; font: 12px/1.4 var(--mono); color: var(--ink-2); }
.key::before {
  content: ""; display: inline-block; width: 18px; height: 2px;
  margin-right: 7px; vertical-align: middle;
}
.key-forecast::before { background: var(--forecast); }
.key-actual::before { background: var(--actual); }

.pane-note { border-top: 1px solid var(--rule); margin: 1rem 0 0; padding-top: 0.7rem; }
.fn-no { font-family: var(--mono); color: var(--ink-3); margin-right: 2px; }

.footnotes { border-top: 1px solid var(--rule); margin-top: 1.2rem; padding-top: 0.8rem; }
.fn-head {
  margin: 0 0 0.6rem; font: 11px/1 var(--mono); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.fn-list { margin: 0; padding: 0; list-style: none; counter-reset: fn 1; }
.fn-list li {
  counter-increment: fn; position: relative;
  padding-left: 1.6rem; margin-bottom: 0.45rem;
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.fn-list li::before {
  content: counter(fn); position: absolute; left: 0; top: 0.1em;
  font: 11px/1.6 var(--mono); color: var(--ink-3);
}
.fn-list strong { color: var(--ink); }

/* ---------- gate rail (day timeline 00:00 → 14:00) ---------- */

.gate-rail { position: relative; height: 56px; margin-top: 1rem; font-variant-numeric: tabular-nums; }
.gate-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--rule); }
.gr-fill { position: absolute; left: 0; top: 20px; height: 1px; background: var(--ink); opacity: 0.25; width: 0; }
.gr-now { position: absolute; top: 14px; width: 1px; height: 13px; background: var(--forecast); transition: left 600ms ease-out; }
.gr-tick { position: absolute; top: 15px; }
.gr-tick i { display: block; width: 1px; height: 11px; background: var(--ink); }
.gr-pub i { width: 2px; background: var(--forecast); }
.gr-res i { background: var(--ink-3); }
/* Three label rows so nothing collides: publish above the track,
   auction-close on the first row below, result on the second. */
.gr-lab {
  position: absolute; font: 10px/1 var(--mono); color: var(--ink-3); white-space: nowrap;
}
.gr-pub .gr-lab { right: 0; top: -13px; text-align: right; }
.gr-close .gr-lab { right: 0; top: 16px; text-align: right; }
.gr-res .gr-lab { right: 0; top: 29px; text-align: right; }
.gr-start { position: absolute; left: 0; top: 31px; font: 10px/1 var(--mono); color: var(--ink-3); }
@media (max-width: 640px) {
  .gr-res .gr-lab, .gr-start { display: none; }
  .gate-rail { height: 46px; }
}

.margin-note { margin-top: 1.4rem; }
.mn-head {
  margin: 0 0 0.5rem; font: 11px/1.5 var(--mono); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.16em;
}
.mn-text { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-2); }

/* ---------- countdown (split-flap) ---------- */

.countdown { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 10px; }
.countdown .big {
  font: 500 clamp(2.6rem, 9vw, 5.5rem)/1 var(--mono);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--ink);
}
.countdown .big.late { color: var(--late); }
.big .fc { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.big .fd { width: 1ch; }
.big .fstack { display: block; }
.big .fstack span { display: block; height: 1em; line-height: 1; }
.countdown .small {
  color: var(--ink-2); font-size: 13px; font-family: var(--mono);
  margin: 1rem auto 0; max-width: 34em; line-height: 1.6;
}
@media (max-width: 640px) { .countdown .big { font-size: 12vw; } }

/* ---------- what we do: three ruled columns, no boxes ---------- */

.cols3 { margin: 2rem 0 1.4rem; }
.col { border-top: 1px solid var(--ink); padding-top: 1.1rem; margin-top: 1.6rem; }
.col-main { border-top: 3px solid var(--forecast); }
.cols3 .col:first-child { margin-top: 0; }
.col h3 { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.col-main h3 { color: var(--forecast); }
.col p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.mailto-note { border-top: 1px solid var(--rule); padding-top: 0.9rem; max-width: 62ch; }

@media (min-width: 900px) {
  .cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .col { margin-top: 0; padding-inline: 2.5rem; }
  .cols3 .col:first-child { padding-left: 0; }
  .cols3 .col:last-child { padding-right: 0; }
  .col + .col { border-left: 1px solid var(--rule); }
}

/* ---------- the people and the machine ---------- */

@media (min-width: 980px) {
  .leads2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .leads2 .lead { max-width: 38ch; }
}
.closing-note { margin-top: 1rem; }

/* ---------- footer (colophon) ---------- */

footer { margin-top: var(--sec); padding-bottom: 3rem; }
footer .rule-double { margin-bottom: 1.6rem; }
#updated-note { margin: 0 0 1.2rem; }
#updated-note:empty { display: none; }
.foot-grid .note { margin: 0 0 0.9rem; max-width: 62ch; }
.partner { color: var(--ink-3); font-size: 12px; }
@media (min-width: 900px) {
  .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; align-items: start; }
  .foot-grid .note { margin: 0; }
  .partner { justify-self: end; text-align: right; }
}

/* ---------- scroll reveals ---------- */

.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 550ms var(--ease-std), transform 550ms var(--ease-std);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- ≥1440px: the bound-document rail ---------- */

@media (min-width: 1440px) {
  .section-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 2.5rem; }
  .rail { border-right: 1px solid var(--rule); }
  .rail .folio { position: sticky; top: 2rem; margin: 0; }
  .section-body { max-width: none; }
  .lead { max-width: 68ch; }

  /* margin note takes its place beside Fig. 1 */
  .pane-tomorrow { display: grid; grid-template-columns: minmax(0, 1fr) 230px; column-gap: 2.2rem; grid-template-rows: auto auto; }
  .pane-tomorrow .fig-cap { grid-column: 1; }
  .pane-tomorrow .tomorrow-frame { grid-column: 1; }
  .pane-tomorrow .margin-note { grid-column: 2; grid-row: 1 / 3; margin-top: 0; border-left: 1px solid var(--rule); padding-left: 1.6rem; }
}

/* ---------- ≥1800px: the plate spread ---------- */

@media (min-width: 1800px) {
  .wrap { max-width: 1560px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); column-gap: 3rem; align-items: end; }
  .hero-colophon[hidden] { display: none; }
  .hero-colophon {
    display: block; border-left: 1px solid var(--rule); padding-left: 2rem;
    font: 12px/2 var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums;
  }
  .hero-colophon span { display: block; }

  .figures { display: grid; grid-template-columns: 5fr 7fr; column-gap: 2.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 2.2rem; margin-bottom: 2.2rem; }
  .figures figure.pane { margin-bottom: 0; min-height: 420px; }
  .pane-tomorrow { display: block; }
  .pane-tomorrow .margin-note { border-left: 0; padding-left: 0; margin-top: 1.4rem; }
  .tomorrow-frame { min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
  .tomorrow-frame .gate-rail { margin-top: auto; }
  .countdown .big { font-size: 5.5rem; }
  .leads2 .lead { max-width: 42ch; }
  .cols3 .col { padding-inline: 5rem; }
  .cols3 .col:first-child { padding-left: 0; }
  .cols3 .col:last-child { padding-right: 0; }
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .chart { height: 220px; }
  .chart .tip { font-size: 11px; }
  .market-head { margin-bottom: 1.2rem; }
}

/* ---------- reduced motion: everything instant ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* v1 atmosphere — "Living Paper" (assets/bg.js). Double-guarded:
   html.fx-atmo + the no-preference query; reduced motion = exact v0. */
@media (prefers-reduced-motion: no-preference) {
  :root { --topo-alpha: 1; }  /* the ONE watermark knob */

  html.fx-atmo #bg-topo {
    position: fixed; left: 0; right: 0; top: 0;
    height: calc(100vh + 360px);
    z-index: -1; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent);
    mask-image: linear-gradient(180deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent);
  }

  html.fx-atmo .section h2.reveal { position: relative; }
  html.fx-atmo .section h2.reveal::after {
    content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
    background: var(--rule-heavy); transform: scaleX(0); transform-origin: left;
    transition: transform 500ms var(--ease-out) 80ms;
  }
  html.fx-atmo .section h2.reveal.is-in::after { transform: scaleX(1); }

  html.fx-atmo .pane-note, html.fx-atmo .footnotes, html.fx-atmo .mailto-note {
    border-top: 0;
    background: linear-gradient(var(--rule), var(--rule)) top left / 0% 1px no-repeat;
    transition: background-size 600ms var(--ease-out);
  }
  html.fx-atmo .pane-note.rd-in, html.fx-atmo .footnotes.rd-in,
  html.fx-atmo .mailto-note.rd-in { background-size: 100% 1px; }

  /* forced colors: background-image hairlines vanish there — restore real borders */
  @media (forced-colors: active) {
    html.fx-atmo .pane-note, html.fx-atmo .footnotes, html.fx-atmo .mailto-note {
      border-top: 1px solid CanvasText; background: none;
    }
  }

  /* clean zones: the proof figure and the small print sit on local paper so the
     watermark never competes with content (soft halo keeps the edge watermarked) */
  html.fx-atmo .pane-history .chart { background: var(--paper); box-shadow: 0 0 18px 12px var(--paper); }
  html.fx-atmo .footnotes { background-color: var(--paper); }
  html.fx-atmo footer { background: var(--paper); }

  /* own keyframe name: same-name animation never restarts, so the replay
     needs a distinct one (css-animations-1) */
  html.fx-atmo .masthead-rule.rule-replay { animation: rule-draw-replay 600ms var(--ease-out); }
  @keyframes rule-draw-replay { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  html.fx-atmo .press-stamp {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    pointer-events: none;
    font: 10px var(--mono); letter-spacing: 0.08em; padding: 3px 6px;
    border: 1px solid currentColor; color: var(--forecast);
    transform: rotate(-4deg);
    animation: stamp-in 180ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  @keyframes stamp-in {
    from { opacity: 0; transform: rotate(-4deg) scale(1.25); }
    to { opacity: 0.95; transform: rotate(-4deg) scale(1); }
  }
  /* the pinned annotation owns the corner: tooltip paints over the stamp */
  html.fx-atmo .chart .tip { z-index: 3; }
  @media (max-width: 640px) {
    html.fx-atmo .press-stamp { font-size: 9px; top: 8px; right: 8px; }
  }

  /* pre-gate breath: the page's sole infinite animation. filter:opacity()
     multiplies with the opacity property, so app.js's inline opacity still wins */
  html.fx-atmo .tomorrow-frame:has(.countdown) .gr-now { animation: gr-breath 4s ease-in-out infinite; }
  @keyframes gr-breath { 0%, 100% { filter: opacity(1); } 50% { filter: opacity(0.55); } }

  html.fx-atmo { --deboss: 23, 25, 30; --deboss-a: 0.10; }
  html.fx-atmo .tomorrow-frame:has(> .tomorrow-body.press-in) { animation: deboss 500ms var(--ease-out) both; }
  @keyframes deboss {
    from { box-shadow: inset 0 1px 6px rgba(var(--deboss), var(--deboss-a)); }
    to { box-shadow: inset 0 1px 6px rgba(var(--deboss), calc(var(--deboss-a) / 2)); }
  }

  html.fx-atmo .tabs.ready .tab-ink {
    transition: left 260ms var(--ease-std), width 260ms var(--ease-std);
  }

  html.fx-atmo a { transition: text-decoration-thickness 120ms ease, text-underline-offset 120ms ease; }
  html.fx-atmo a:hover { text-underline-offset: 3px; }

  @media (prefers-color-scheme: dark) {
    html.fx-atmo { --deboss: 0, 0, 0; --deboss-a: 0.35; }
    html.fx-atmo .clock { text-shadow: 0 0 8px rgba(125, 147, 255, 0.22); }
    html.fx-atmo .clock .clock-late { text-shadow: none; } /* alarm red stays clean */
  }

  @media (min-width: 1440px) {
    @supports (animation-timeline: view()) {
      html.fx-atmo .rail { position: relative; }
      html.fx-atmo .rail::after {
        content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 1px;
        background: var(--rule-heavy); transform-origin: top;
        animation: rail-fill linear both; animation-timeline: view();
      }
      @keyframes rail-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    }
  }
}

/* ---------- coming-soon frozen tabs + trading-desk lead (post-v1) ---------- */
.tab-soon, .tab-soon:hover { background: none; color: var(--ink-3); opacity: 0.55; cursor: default; }
.tab-soon .soon {
  font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase;
  margin-left: 6px; color: var(--ink-3);
}
.lead-desk { margin-top: 1.4rem; max-width: 62ch; }

/* ---------- brand mark (vector redraw of the hodie.cz "D" logo) ---------- */
.logo-mark {
  height: 23px; width: auto; margin-right: 9px;
  vertical-align: -4px; flex: none;
}
.logo-mark .lg-ink { fill: var(--ink); }
.logo-mark .lg-acc { fill: var(--forecast); }
