/* Live Updates listing + event pages. Theme tokens throughout (--ink, --muted, --line, --soft, --card-bg, --red,
   --red-text); the older .live-feed-page / .update rules in style.css are refined here for the timeline. */

.news-inner .live-page { padding-block: 18px 48px; }
.news-inner .live-heading { margin-bottom: 22px; }
.news-inner .live-heading h1 { display: flex; align-items: center; gap: 12px; }
.news-inner .live-heading p { font-size: 14px; }

.live-pulse { position: relative; display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.live-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; animation: live-ping 1.6s ease-out infinite; }
.live-heading .live-pulse { width: 14px; height: 14px; }
@keyframes live-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* Status badges */
.live-status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 4px; font: 800 11px/1.3 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.live-status.is-live { background: var(--red); color: #fff; }
.live-status.is-live .live-pulse { width: 7px; height: 7px; background: #fff; }
.live-status.is-live .live-pulse::after { border-color: #fff; }
.live-status.is-upcoming { background: rgba(26, 144, 208, .12); color: #0f5f8a; border: 1px solid rgba(26, 144, 208, .35); }
.live-status.is-paused { background: rgba(247, 146, 39, .14); color: #8a4b05; border: 1px solid rgba(247, 146, 39, .4); }
.live-status.is-completed { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* Listing groups + cards */
.live-group + .live-group { margin-top: 34px; }
.live-group-title { position: relative; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: calc(19px * var(--reading-scale, 1)); font-weight: 800; color: var(--ink); }
.live-group-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px; background: var(--red); }
.live-group:not(.is-live) .live-group-title::after { background: var(--muted); }
.live-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.live-group.is-live .live-cards { grid-template-columns: minmax(0, 1fr); }
.live-card { min-width: 0; }
.live-card-link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.live-card.is-live .live-card-link { border-left: 4px solid var(--red); }
.live-card.is-completed .live-card-link { background: var(--soft); }
.live-card-link:hover { border-color: var(--red); box-shadow: 0 8px 22px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.live-card-link:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.live-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.live-card-place { font: 600 12px/1.4 system-ui, sans-serif; color: var(--muted); }
.live-card-title { margin: 0; font-size: calc(18px * var(--reading-scale, 1)); font-weight: 800; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; transition: color .15s; }
.live-card.is-live .live-card-title { font-size: calc(21px * var(--reading-scale, 1)); }
.live-card-link:hover .live-card-title { color: var(--red-text); }
.live-card-latest { display: grid; gap: 4px; padding: 10px 12px; border-radius: 6px; background: var(--soft); }
.live-card.is-completed .live-card-latest { background: var(--card-bg); }
.live-card-latest time { font: 800 12px/1.4 system-ui, sans-serif; color: var(--red-text); }
.live-card-text { font-size: calc(14px * var(--reading-scale, 1)); line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.live-card-headline { font-size: calc(15px * var(--reading-scale, 1)); font-weight: 750; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.live-card-latest .live-card-text { -webkit-line-clamp: 2; }
.live-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: auto; font: 500 12px/1.5 system-ui, sans-serif; color: var(--muted); }
.live-card-meta i { margin-right: 3px; }
.live-card-cta { font-weight: 800; color: var(--red-text); white-space: nowrap; }

/* Event header */
.live-event-head { display: grid; justify-items: start; gap: 10px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.live-event-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; background: var(--red); }
.news-inner .live-event-head h1 { margin: 0; font-size: calc(32px * var(--reading-scale, 1)); font-weight: 800; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.live-event-subtitle { margin: 0; font-size: calc(16px * var(--reading-scale, 1)); line-height: 1.7; color: var(--muted); }
.live-event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font: 500 13px/1.5 system-ui, sans-serif; color: var(--muted); }
.live-event-meta i { margin-right: 4px; color: var(--red-text); }
.live-event-description { margin: 4px 0 0; }

/* Timeline */
.news-inner .live-page .live-feed-page { max-width: none; margin: 0; padding: 4px 20px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); }
.live-timeline-note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font: 700 12px/1.4 system-ui, sans-serif; color: var(--red-text); }
.live-timeline .updates-list { list-style: none; margin: 0; padding: 0; }
.news-inner .live-page .live-feed-page .update { grid-template-columns: 14px 92px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-inner .live-page .live-feed-page .update:last-child { border-bottom: 0; }
.news-inner .live-page .update > i { width: 12px; height: 12px; margin-top: 4px; background: var(--red); box-shadow: 0 0 0 4px rgba(213, 42, 49, .18); }
.news-inner .live-page .update:not(:last-child)::after { left: 5px; top: 34px; bottom: -6px; border-left: 2px solid rgba(213, 42, 49, .28); }
.live-update-time time { display: grid; gap: 2px; }
.news-inner .live-page .update time b { font: 800 14px/1.3 system-ui, sans-serif; color: var(--red-text); font-variant-numeric: tabular-nums; }
.live-update-time time small { font: 600 11px/1.3 system-ui, sans-serif; color: var(--muted); }
.news-inner .live-page .live-feed-page .update .article-body { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.news-inner .live-page .live-feed-page .update .article-body > :first-child { margin-top: 0; }
.news-inner .live-page .live-feed-page .update .article-body > :last-child { margin-bottom: 0; }
.news-inner .live-page .live-feed-page .update p { font-size: calc(16px * var(--reading-scale, 1)); line-height: 1.75; font-weight: 400; }
.news-inner .live-page .live-feed-page .update p strong { font-weight: 800; }
.news-inner .live-page .live-feed-page .update .article-body p { margin: 0 0 8px; }
.news-inner .live-page .live-feed-page .update .article-body p:has(> strong:only-child) { font-size: calc(17px * var(--reading-scale, 1)); line-height: 1.55; margin-bottom: 6px; }
.news-inner .live-page .live-feed-page .live-update-card.is-pinned { margin: 12px -10px; padding: 16px 10px; border: 1px solid rgba(26, 144, 208, .35); border-left: 4px solid var(--brand-blue); background: rgba(26, 144, 208, .06); }
.news-inner .live-page .live-feed-page .live-update-card.is-highlighted:not(.is-pinned) { margin: 0 -10px; padding-inline: 10px; border-left: 3px solid var(--brand-orange); background: rgba(247, 146, 39, .07); }
.live-timeline-empty { padding: 28px 0; text-align: center; color: var(--muted); }


/* Dark theme: tints that were fixed light colours */
html[data-theme="dark"] .live-status.is-upcoming { color: #7cc4ec; }
html[data-theme="dark"] .live-status.is-paused { color: #f8b86b; }
html[data-theme="dark"] .news-inner .public-chip-pinned { color: #9fd3f0; background: rgba(26, 144, 208, .16); border-color: rgba(26, 144, 208, .45); }
html[data-theme="dark"] .news-inner .public-chip-key { color: #f8c77a; background: rgba(247, 146, 39, .16); border-color: rgba(247, 146, 39, .45); }
html[data-theme="dark"] .live-card-link:hover { box-shadow: none; }

@media (max-width: 800px) {
  .live-group.is-live .live-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
}
@media (max-width: 520px) {
  .news-inner .live-page { padding-top: 12px; }
  .live-card-link { padding: 16px; }
  .live-card.is-live .live-card-title { font-size: calc(19px * var(--reading-scale, 1)); }
  .news-inner .live-event-head h1 { font-size: calc(25px * var(--reading-scale, 1)); }
  .news-inner .live-page .live-feed-page { padding: 4px 14px 12px; }
  .news-inner .live-page .live-feed-page .update { grid-template-columns: 12px minmax(0, 1fr); gap: 4px 12px; }
  .news-inner .live-page .live-feed-page .update .live-update-time { grid-column: 2; }
  .news-inner .live-page .live-feed-page .update .article-body { grid-column: 2; }
  .news-inner .live-page .update > i { grid-row: 1 / span 2; }
  .live-update-time time { display: flex; align-items: baseline; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-pulse::after { animation: none; }
  .live-card-link { transition: none; }
  .live-card-link:hover { transform: none; }
}
