/* The long-range card and the crystal ball (static/longrange.js), on the
   event page and the front page.

   long_range: dashed edges, like the long-range day boxes elsewhere.
   crystal_ball / super_crystal_ball: deliberately unlike every forecast
   card on the page, so nobody mistakes one for a forecast: a violet glow
   and a crystal ball. The super one is deeper and starrier.

   Colours are tokens, so the front page's day theme gets a violet that
   reads on light ground. */

:root {
  --lr-violet: #8b5cf6;
  --lr-violet-soft: #a78bfa;
  --lr-cyan: #22d3ee;
  --lr-pink: #ec4899;
  --lr-ink: #ddd6fe;          /* violet words on the glow */
  --lr-edge: color-mix(in srgb, #a78bfa 50%, var(--glass-edge, #3a434f));
  --lr-chip-bg: color-mix(in srgb, #a78bfa 12%, transparent);
  --lr-chip-edge: color-mix(in srgb, #a78bfa 34%, transparent);
  --lr-title: linear-gradient(90deg, #f5f0ff, #c4b5fd 55%, #67e8f9);
  --lr-title-super: linear-gradient(90deg, #fdf4ff, #d8b4fe 45%, #f9a8d4);
  --lr-star: rgb(255 255 255 / 60%);
}
:root[data-theme='light'] {
  --lr-ink: #5b21b6;
  --lr-edge: color-mix(in srgb, #7c3aed 40%, transparent);
  --lr-chip-bg: color-mix(in srgb, #7c3aed 9%, transparent);
  --lr-chip-edge: color-mix(in srgb, #7c3aed 30%, transparent);
  --lr-title: linear-gradient(90deg, #4c1d95, #7c3aed 55%, #0e7490);
  --lr-title-super: linear-gradient(90deg, #581c87, #9333ea 45%, #be185d);
  --lr-star: rgb(124 58 237 / 35%);
}

.lr-card[hidden] { display: none; }
.lr-card.is-long_range { border-style: dashed; }
.lr-card h2 { margin: 0; }
.lr-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.lr-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.lr-titles { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.8rem; }
.lr-intro { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.9rem; }
.lr-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ the glow */

.lr-card.is-crystal_ball,
.lr-card.is-super_crystal_ball {
  --lr-glow: var(--lr-violet);
  --lr-glow-2: var(--lr-cyan);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lr-edge);
  background:
    radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--lr-glow) 14%, transparent), transparent 60%),
    radial-gradient(70% 60% at 100% 100%, color-mix(in srgb, var(--lr-glow-2) 6%, transparent), transparent 60%),
    var(--card);
  box-shadow: 0 10px 34px -22px color-mix(in srgb, var(--lr-glow) 60%, transparent);
}
.lr-card.is-super_crystal_ball {
  --lr-glow: #a855f7;
  --lr-glow-2: var(--lr-pink);
  background:
    radial-gradient(1px 1px at 12% 22%, var(--lr-star), transparent),
    radial-gradient(1px 1px at 78% 14%, var(--lr-star), transparent),
    radial-gradient(1.5px 1.5px at 64% 38%, var(--lr-star), transparent),
    radial-gradient(1px 1px at 90% 62%, var(--lr-star), transparent),
    radial-gradient(1px 1px at 33% 8%, var(--lr-star), transparent),
    radial-gradient(100% 80% at 0% 0%, color-mix(in srgb, var(--lr-glow) 19%, transparent), transparent 62%),
    radial-gradient(80% 70% at 100% 100%, color-mix(in srgb, var(--lr-glow-2) 8%, transparent), transparent 60%),
    var(--card);
}
.is-crystal_ball h2, .is-super_crystal_ball h2 {
  background: var(--lr-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.is-super_crystal_ball h2 { background-image: var(--lr-title-super); }
.lr-opens-text { width: 100%; color: var(--muted); font-size: 0.8rem; }

/* What is there for whoever wants it, folded away. */
.lr-fold { margin-top: 0.9rem; font-size: 0.84rem; }
.lr-fold > summary { cursor: pointer; width: max-content; font-weight: 700; color: var(--lr-ink); }
.lr-fold[open] > summary { margin-bottom: 0.5rem; }
.lr-fold .lr-sources, .lr-fold .lr-charts { margin-top: 0.5rem; }

.lr-ball { width: 3.4rem; height: 3.4rem; flex: none; overflow: visible; }
.lr-orb { filter: drop-shadow(0 0 6px rgb(167 139 250 / 55%)); }
.lr-mist {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.38;
  stroke-width: 2.6;
  stroke-linecap: round;
  animation: lr-drift 7s ease-in-out infinite alternate;
}
.lr-mist.is-2 { stroke-opacity: 0.28; animation-duration: 9s; animation-direction: alternate-reverse; }
.lr-spark { fill: #fde68a; animation: lr-twinkle 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.lr-spark.is-2 { animation-delay: 1.3s; }
@keyframes lr-drift { from { transform: translateX(-2.5px); } to { transform: translateX(2.5px); } }
@keyframes lr-twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .lr-mist, .lr-spark { animation: none; }
}

.lr-warn { margin: 0.1rem 0 0.7rem; color: var(--text); font-size: 0.95rem; line-height: 1.55; max-width: 62rem; }
.lr-but {
  margin: 0 0 0.9rem;
  color: var(--lr-ink);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
}

/* ------------------------------------------------------------ pills */

.lr-icon { display: inline-flex; width: 1em; height: 1em; flex: none; }
.lr-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lr-chips, .lr-verdicts, .lr-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.lr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--lr-chip-edge);
  border-radius: 999px;
  background: var(--lr-chip-bg);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.lr-chip.is-ghost { background: transparent; color: var(--muted); }
.lr-chip[data-tone='warm'] { --tone: #fb923c; }
.lr-chip[data-tone='cool'] { --tone: #60a5fa; }
.lr-chip[data-tone='wet'] { --tone: #38bdf8; }
.lr-chip[data-tone='dry'] { --tone: #fbbf24; }
.lr-chip[data-tone='good'] { --tone: #4ade80; }
.lr-chip[data-tone='bad'] { --tone: #f472b6; }
.lr-chip[data-tone] {
  border-color: color-mix(in srgb, var(--tone) 55%, transparent);
  background: color-mix(in srgb, var(--tone) 14%, transparent);
}
.lr-chip[data-tone] .lr-icon { color: var(--tone); }
.lr-opens { color: var(--lr-ink); }
.lr-opens .lr-icon { color: var(--lr-ink); }

.lr-verdict {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--band, var(--surface-2));
  color: var(--band-ink, var(--text-strong));
  font-size: 0.92rem;
  font-weight: 800;
}

/* ------------------------------------------------------------ the weeks */

.lr-weeks { display: grid; gap: 1.1rem; }
.lr-week {
  display: grid;
  grid-template-columns: minmax(9.5rem, max-content) 1fr;
  gap: 0.4rem 1.1rem;
  align-items: start;
}
.lr-when { display: grid; gap: 0.2rem; }
.lr-when small { color: var(--muted); font-size: 0.78rem; }
.lr-dates { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.lr-date {
  padding: 0.12rem 0.5rem;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.86rem;
  white-space: nowrap;
}
.lr-dates .lr-icon { color: var(--lr-ink); }
.lr-what { display: grid; gap: 0.5rem; min-width: 0; }

/* The share of comparable days in each band. */
.lr-bar {
  display: flex;
  height: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}
.lr-seg { flex: 0 0 0; min-width: 0; }
.lr-seg + .lr-seg { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--card) 70%, transparent); }

.lr-sources, .lr-charts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 1rem;
}
.lr-source {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 10px;
  border: 1px dashed var(--lr-chip-edge);
  font-size: 0.8rem;
  color: var(--muted);
}
.lr-source b { color: var(--text); }
.lr-source em {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--lr-ink);
}
.lr-charts .lr-buttons { gap: 0.6rem; }
.lr-out { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.lr-out small { font-size: 0.66rem; font-weight: 800; opacity: 0.7; }
.lr-note { width: 100%; color: var(--muted); font-size: 0.74rem; }

/* ------------------------------------------------------------ big picture */

.lr-big {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--lr-chip-edge);
}
.lr-big h3 { margin: 0; }
.lr-block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; margin-bottom: 0.5rem; }
.lr-block-head b { font-size: 0.92rem; }
.lr-regime-bar { height: 0.6rem; }
.lr-seg.is-nao_plus, .lr-key.is-nao_plus::before { background: #4f7fe0; }
.lr-seg.is-nao_minus, .lr-key.is-nao_minus::before { background: #3fae6a; }
.lr-seg.is-blocking, .lr-key.is-blocking::before { background: #d9534f; }
.lr-seg.is-atlantic_ridge, .lr-key.is-atlantic_ridge::before { background: #8e4fc4; }
.lr-seg.is-none, .lr-key.is-none::before { background: var(--n-600, #3a434f); }
.lr-legend { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.lr-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lr-key b { color: var(--text); }
.lr-key::before { content: ''; width: 0.6rem; height: 0.6rem; border-radius: 2px; }
.lr-lead { margin: 0.55rem 0 0; font-size: 0.9rem; }

.lr-chip.is-nao { font-weight: 800; }
.lr-chip.is-nao.is-negative { --tone: #60a5fa; border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: color-mix(in srgb, var(--tone) 16%, transparent); }
.lr-chip.is-nao.is-positive { --tone: #fb923c; border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: color-mix(in srgb, var(--tone) 16%, transparent); }

/* The NAO gauge: -2 on the left, +2 on the right. */
.lr-gauge { position: relative; height: 1.4rem; margin: 0.3rem 0 0.2rem; max-width: 34rem; }
.lr-gauge-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.5rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, color-mix(in srgb, var(--muted) 45%, transparent) 50%, #f97316);
  opacity: 0.55;
}
.lr-gauge-zero { position: absolute; left: 50%; top: 0.15rem; bottom: 0.15rem; width: 2px; background: var(--muted); }
.lr-gauge-range {
  position: absolute;
  top: 50%;
  height: 0.9rem;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1.5px solid var(--lr-ink);
  background: color-mix(in srgb, var(--lr-violet-soft) 20%, transparent);
}
.lr-gauge-mark {
  position: absolute;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f5f0ff, #a78bfa 45%, #4c1d95);
  box-shadow: 0 0 10px rgb(167 139 250 / 70%);
}
.lr-gauge-ends {
  display: flex;
  justify-content: space-between;
  max-width: 34rem;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lr-explain { margin: 0 0 0.6rem; max-width: 46rem; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------ small print */

.lr-how { margin-top: 1rem; font-size: 0.78rem; color: var(--muted); }
.lr-how summary { cursor: pointer; font-weight: 700; color: var(--lr-ink); }
.lr-how p { margin: 0.5rem 0 0; line-height: 1.5; max-width: 52rem; }
.lr-credits { margin: 0.5rem 0 0; padding-left: 1.1rem; line-height: 1.5; }

/* A sample far away: today's weather there, one click away. */
.lr-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--lr-chip-edge);
  color: var(--muted);
  font-size: 0.9rem;
}
.ev-preview .press { margin-left: 0.6rem; vertical-align: middle; }

/* ------------------------------------------------------------ front page */

/* The featured con, crystal ball first: kept quiet, a line in its card
   with a thin violet rule on the left. */
/* The front page's crystal ball wears the forecast's layout (home.css
   .feat-now/.feat-days); only the orb, the tile's violet edge and the
   caption say it is the crystal ball. */
.lr-feat-score { box-shadow: inset 0 0 0 2px var(--lr-edge, rgb(167 139 250 / 70%)), inset 0 1px 0 rgb(255 255 255 / 30%); }
.lr-feat-orb { display: grid; place-items: center; }
.lr-feat-orb .lr-orb-mini { width: 2.6rem; height: 2.6rem; box-shadow: 0 0 14px rgb(167 139 250 / 40%); }
.lr-feat-caption { color: var(--lr-ink); font-weight: 700; }
.lr-feat-text { margin: 0; color: var(--muted); font-size: 0.86rem; max-width: 30rem; }
.lr-feat .lr-chips { justify-content: flex-end; }
.lr-feat-bar.lr-bar { height: 2.5rem; border-radius: 9px; }
.lr-feat-bar .lr-seg { display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; }
@media (max-width: 640px) { .lr-feat .lr-chips { justify-content: flex-start; } }

/* A list row's crystal ball. */
.lr-pill {
  position: relative;
  z-index: 2; /* over the row's stretched link */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.8rem 0.3rem 0.4rem;
  border: 1px solid var(--lr-edge);
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--lr-violet) 22%, transparent), color-mix(in srgb, var(--lr-cyan) 8%, transparent));
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}
.lr-pill.is-super_crystal_ball { background: linear-gradient(90deg, color-mix(in srgb, #a855f7 26%, transparent), color-mix(in srgb, var(--lr-pink) 10%, transparent)); }
.lr-pill:hover { border-color: var(--lr-violet-soft); }
.lr-pill-words { display: grid; text-align: left; }
.lr-pill-words small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lr-ink); }
.lr-pill-words b { font-size: 0.84rem; }
.lr-pill-words b::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--band, var(--muted));
}
.lr-orb-mini {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f5f0ff, #a78bfa 38%, #4c1d95 80%, #1e1b4b);
  box-shadow: 0 0 10px rgb(167 139 250 / 55%);
}
.ov-row-weather .lr-row-crystal { display: grid; justify-items: end; gap: 0.25rem; }
.ov-row-weather .lr-row-crystal .ov-status { margin: 0; }
@media (max-width: 760px) {
  .ov-row-weather .lr-row-crystal { justify-items: start; }
}

/* The fourteen-days line on the front page: beyond fourteen days is the
   crystal ball, in its violet. */
.ahead-ball {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f5f0ff, #a78bfa 38%, #4c1d95 80%, #1e1b4b);
  box-shadow: 0 0 16px rgb(167 139 250 / 65%);
}
.ahead-marks li[data-align='end'] .ahead-ball { justify-self: end; }

@media (max-width: 520px) {
  .lr-week { grid-template-columns: 1fr; }
}

/* ======================================================================
   The event page's Crystal ball tab (2026-11-24): the front page's slots.
   ====================================================================== */
.lr-slots { display: grid; gap: 1rem; }
.lr-slots[hidden] { display: none; }
.lr-s-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; }
.lr-s-head h2 { margin: 0; font-size: 1.15rem; color: var(--lr-ink); }
.lr-s-head .lr-orb-mini { width: 1.3rem; height: 1.3rem; }
.lr-s-count { margin-left: auto; font-size: 0.95rem; font-weight: 700; color: var(--text-strong); }
/* .lr-s-now is laid out by .fw-main (style.css, round 11). */
.lr-s-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.1rem;
  min-width: 7.4rem;
  padding: 0.6rem 1rem 0.7rem;
  border-radius: var(--radius-small, 12px);
  background: color-mix(in srgb, var(--c, var(--inset)) 16%, var(--surface-2));
  color: var(--text-strong);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c, var(--muted)) 70%, transparent), 0 0 0 3px rgb(167 139 250 / 25%);
}
.lr-s-tile small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; white-space: nowrap; }
.lr-s-tile b { font-size: 2.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lr-s-tile span { font-size: 0.9rem; font-weight: 800; color: color-mix(in srgb, var(--c, var(--muted)) 70%, var(--text-strong)); }
.lr-s-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.lr-s-fact { display: grid; align-content: start; gap: 0.2rem; padding: 0.65rem 0.75rem; border-radius: var(--radius-small, 12px); background: var(--inset); }
.lr-s-fact dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lr-s-fact dd { margin: 0; display: grid; gap: 0.15rem; }
.lr-s-fact dd b { font-size: 0.98rem; line-height: 1.25; color: var(--text-strong); }
.lr-s-fact dd span { font-size: 0.78rem; color: var(--muted); }
.lr-s-fact.tone-warm dd b { color: color-mix(in srgb, #e8590c 75%, var(--text-strong)); }
.lr-s-fact.tone-cool dd b { color: color-mix(in srgb, #1c7ed6 75%, var(--text-strong)); }
.lr-s-fact.tone-wet dd b { color: color-mix(in srgb, #1971c2 70%, var(--text-strong)); }
.lr-s-fact.tone-dry dd b { color: color-mix(in srgb, #b7791f 75%, var(--text-strong)); }
.lr-s-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 1rem; margin-bottom: 0.45rem; }
.lr-s-label p { margin: 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lr-s-label span { font-size: 0.76rem; color: var(--muted); }
.lr-s-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-columns: auto; grid-auto-columns: minmax(2.4rem, 1fr); gap: 0.45rem; align-items: end; }
.lr-s-day { display: grid; gap: 0.25rem; text-align: center; }
.lr-s-name { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.lr-s-pill {
  height: 1.15rem;
  border-radius: 999px;
  background:
    repeating-linear-gradient(135deg, rgb(124 58 237 / 62%) 0 3px, transparent 3px 9px),
    var(--c, var(--inset));
}
.lr-s-pill.is-rain {
  height: 0.6rem;
  background:
    repeating-linear-gradient(135deg, rgb(124 58 237 / 45%) 0 2px, transparent 2px 7px),
    color-mix(in srgb, var(--c, var(--inset)) 70%, var(--inset));
}
.lr-s-day.role-arrival .lr-s-pill, .lr-s-day.role-departure .lr-s-pill { opacity: 0.55; }
.lr-s-keys { display: grid; gap: 0.25rem; padding-right: 0.2rem; text-align: left; }
.lr-s-keys span { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.lr-s-keys span:nth-child(1) { height: 0.9rem; }
.lr-s-keys span:nth-child(2) { height: 1.15rem; display: flex; align-items: center; }
.lr-s-keys span:nth-child(3) { height: 0.6rem; display: flex; align-items: center; }
.lr-s-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.lr-disclaimer { margin: 0 0 0.8rem; padding: 0.5rem 0.7rem; border-radius: 10px; border: 1.5px dashed rgb(139 92 246 / 70%); background: rgb(139 92 246 / 8%); font-size: 0.86rem; color: var(--text); }
@media (max-width: 640px) {
  .lr-s-keys { display: none; }
  .lr-s-count { margin-left: 0; width: 100%; }
}

/* Hover cards (static/tips.js), as on the front page (home.css). */
.has-tip { cursor: help; }
.day-tip {
  position: fixed;
  z-index: 2500;
  max-width: min(19rem, calc(100vw - 16px));
  padding: 0.65rem 0.8rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--glass-edge);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 10px 30px rgb(0 0 0 / 22%);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
}
.day-tip[hidden] { display: none; }
.day-tip::after {
  content: '';
  position: absolute;
  left: var(--arrow, 50%);
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1px solid var(--glass-edge);
  border-bottom: 1px solid var(--glass-edge);
  transform: translateX(-50%) rotate(45deg);
}
.day-tip.is-below::after { bottom: auto; top: -6px; transform: translateX(-50%) rotate(225deg); }
.day-tip-head { margin: 0 0 0.4rem; color: var(--muted); }
.day-tip-head b { color: var(--text-strong); }
.day-tip-verdict { margin: 0 0 0.45rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; }
.day-tip-verdict b { color: var(--text-strong); font-size: 0.92rem; }
.day-tip-score { padding: 0.05rem 0.45rem; border-radius: 6px; background: var(--c, var(--inset)); color: var(--c-ink, var(--text-strong)); font-weight: 800; }
.day-tip-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.2rem 0.7rem; }
.day-tip-list dt { color: var(--muted); }
.day-tip-list dd { margin: 0; color: var(--text-strong); }
.day-tip-warn { margin: 0.55rem 0 0; padding: 0.45rem 0.55rem; border-radius: 8px; border: 1.5px dashed rgb(139 92 246 / 75%); background: rgb(139 92 246 / 10%); color: var(--text); }
.day-tip-warn b { color: var(--lr-ink, #5b21b6); }
/* The disclaimer once: under the summary (settled 2026-11-24). */
.lr-disclaimer { display: none; }

/* ======================================================================
   When the hourly forecast opens (2026-11-28): the server's estimate,
   counted down live (longrange.js countTo / opensLine / gate). A violet
   chip on the front page, a banner on the Crystal ball tab, the countdown
   on the closed Forecast tab.
   ====================================================================== */
.fw-opens-clock {
  flex: none;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.2 2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fw-opens-clock.is-big { width: 2.2rem; height: 2.2rem; }
.fw-opens {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: start;
  width: fit-content;
  margin: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgb(139 92 246 / 14%);
  box-shadow: inset 0 0 0 1.5px rgb(139 92 246 / 45%);
  color: var(--lr-ink);
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fw-opens.is-days { margin: 0.45rem 0 0.15rem; }
.fw-opens.is-status { margin: 0.6rem 0; font-size: 0.95rem; }

/* The banner atop the Crystal ball tab. */
.fw-gate {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-small, 12px);
  background: rgb(139 92 246 / 12%);
  box-shadow: inset 0 0 0 1.5px rgb(139 92 246 / 50%);
  color: var(--lr-ink);
}
.fw-gate-words { display: grid; gap: 0.15rem; min-width: 0; }
.fw-gate-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.fw-gate-count { font-size: 1.35rem; font-weight: 800; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.fw-gate-text { font-size: 0.82rem; color: var(--muted); }

/* The closed Forecast tab: not just grey, it says when. */
.ev-tabs a.is-off.is-opening { opacity: 1; filter: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.ev-tabs a.is-off.is-opening .tab-name { opacity: 0.55; }
.ev-tabs a.is-opening .tab-sub {
  display: inline-block !important;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgb(139 92 246 / 16%);
  color: var(--lr-ink);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
