/* The {{live-forecast}} embed. Colours follow the site's greyscale tokens (theme/style.css).
   The forecast pages are wide (maps, seat lists), so the embed widens past the text column. */

.live-forecast {
  --lf-wide: min(76rem, 100vw - 3rem);
  width: var(--lf-wide);
  margin: 2rem calc((100% - var(--lf-wide)) / 2) 2.5rem;
  font-family: var(--sans);
}

.lf-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.live-forecast .lf-status {
  flex: 1 1 18rem;
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  line-height: 1.5;
}
.lf-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--faint);
  vertical-align: 0.05em;
}
.lf-live .lf-dot {
  background: var(--fg);
  animation: lf-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes lf-pulse { from { opacity: 0.25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lf-live .lf-dot { animation: none; } }

.lf-tabs { display: flex; gap: 0.25rem; }
.lf-tabs button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  cursor: pointer;
}
.lf-tabs button:hover { color: var(--fg); }
.lf-tabs button[aria-selected="true"] { color: var(--fg); border-color: var(--rule); }
.lf-tabs button:focus-visible,
.lf-open:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.lf-tabs button[hidden] { display: none; }

.live-forecast .lf-open { color: var(--muted); text-decoration: none; }
.live-forecast .lf-open:hover { color: var(--fg); }

.lf-frame {
  display: block;
  width: 100%;
  height: min(88vh, 72rem);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
}
.lf-frame[hidden] { display: none; }
