/* /live: every Santa truck out tonight. Loaded after site.css and track.css (the festive truck and the night colours live there). */
.lv { padding-top: 24px; padding-bottom: 32px; display: grid; gap: 14px; min-width: 0; }
.lv h1 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.4rem); overflow-wrap: anywhere; }
.lv-lede { margin: 0; max-width: 40em; color: var(--muted); }
.lv-filter { margin: 0; font-weight: 700; }
.lv-count { margin: 0; min-height: 1.4em; font-weight: 800; font-size: 1.15rem; color: var(--navy); overflow-wrap: anywhere; }
.lv-main { display: grid; gap: 14px; min-width: 0; }
.lv-main[hidden], .lv-map-wrap[hidden], .lv-list[hidden], .lv-note[hidden], .lv-empty[hidden] { display: none; }
.lv-map-wrap { min-width: 0; }
.lv-map { width: 100%; height: clamp(300px, 56vh, 560px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f3eee3; }
.lv-note { margin: 0; color: var(--muted); font-size: 0.95rem; }

.lv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.lv-row { min-width: 0; }
.lv-item, .lv-up-card {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; color: var(--navy); text-decoration: none;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere;
}
.lv-item:hover, .lv-up-card:hover { border-color: var(--red); }
.lv-item:focus-visible, .lv-up-card:focus-visible, .lv-pin:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--navy); }
.lv-name { font-family: var(--serif, Fraunces, Georgia, serif); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.lv-town, .lv-truck { color: var(--muted); }
.lv-truck { font-weight: 700; }
.lv-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; padding: 2px 11px 2px 9px; border-radius: 999px; font-weight: 800; font-size: 0.95rem; }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.lv-road { color: var(--pine); background: var(--ok-bg); }
.lv-break { color: #6b4a00; background: var(--warn-bg); }
.lv-soon { color: var(--navy); background: var(--info-bg); }
.lv-pin { display: block; cursor: pointer; text-decoration: none; border-radius: 8px; }

.lv-empty { display: grid; gap: 10px; padding: 16px 18px; min-width: 0; }
.lv-empty-pic { display: block; margin: -4px -6px 4px; }
.lv-empty-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1063; border-radius: 10px; }
.lv-empty h2, .lv-empty h3, .lv-empty p { margin: 0; }
.lv-empty h2 { font-size: 1.35rem; }
.lv-empty h3 { margin-top: 6px; font-size: 1.1rem; }
.lv-empty .btn { justify-self: start; max-width: 100%; }
.lv-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lv-up-item { min-width: 0; }
.lv-up-card { background: var(--snow); }
.lv-when { font-weight: 700; margin-top: 2px; }
.lv-up-now { align-self: flex-start; background: var(--navy); color: #fff; font-weight: 800; font-size: 0.9rem; padding: 2px 10px; border-radius: 999px; }
.lv-updated { margin: 0; }
.lv-prefs { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.lv-prefs .tr-nm { max-width: 100%; }

@media (min-width: 900px) {
  .lv-main { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
  .lv-map-wrap { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 12px; }
  .lv-main > .lv-list { grid-column: 2; grid-row: 1; max-height: min(70vh, 640px); overflow-y: auto; padding: 2px; }
  .lv-main > .lv-note { grid-column: 2; grid-row: 2; }
  .lv-map-wrap[hidden] ~ .lv-list { grid-column: 1 / -1; max-height: none; }
  .lv-up { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Night colours (the page goes dark with data-theme="night", as on the resident page). */
html[data-theme="night"]:not(.a11y-contrast) .lv-count, html[data-theme="night"]:not(.a11y-contrast) .lv-item, html[data-theme="night"]:not(.a11y-contrast) .lv-up-card { color: var(--night-cream); }
html[data-theme="night"]:not(.a11y-contrast) .lv-item, html[data-theme="night"]:not(.a11y-contrast) .lv-up-card { background: var(--night-raise); border-color: var(--night-edge); }
html[data-theme="night"]:not(.a11y-contrast) .lv-item:hover, html[data-theme="night"]:not(.a11y-contrast) .lv-up-card:hover { border-color: var(--gold); }
html[data-theme="night"]:not(.a11y-contrast) .lv-item:focus-visible, html[data-theme="night"]:not(.a11y-contrast) .lv-up-card:focus-visible { border-color: var(--gold); }
html[data-theme="night"]:not(.a11y-contrast) .lv-road { color: #7fe0b0; background: #12291f; }
html[data-theme="night"]:not(.a11y-contrast) .lv-break { color: #f2c46d; background: #2b2410; }
html[data-theme="night"]:not(.a11y-contrast) .lv-soon { color: #d3dcec; background: #1f3350; }
html[data-theme="night"]:not(.a11y-contrast) .lv-up-now { background: var(--gold); color: var(--navy); }
html[data-theme="night"]:not(.a11y-contrast) .lv-map { border-color: var(--night-edge); background: #0b1422; }
html[data-theme="night"]:not(.a11y-contrast) .lv-filter a { color: var(--gold); }

/* Less motion: the page itself has nothing that moves; the trucks jump (live/markers.ts) and the glow stops (track.css). */
@media (prefers-reduced-motion: reduce) { .lv-item, .lv-up-card { transition: none; } }
