.live-page { width: var(--page); margin: 0 auto; }
.live-page [hidden] { display: none !important; }
.live-page.page-columns, .live-page .page-columns, #live-explorer.page-columns { display: block !important; }
.live-page .page-columns > * { grid-column: auto !important; }
.live-heading { max-width: 780px; margin: 3rem 0 1.5rem; }
.live-heading .eyebrow { color: var(--gold); margin-bottom: .7rem; }
.live-heading a { color: var(--gold); }
.live-heading h1 { color: var(--paper); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.06; margin: 0 0 1rem; }
.live-heading h1 em { color: var(--gold); }
.live-heading > p:last-child { max-width: 62ch; color: var(--soft); font-size: 1.05rem; }
.live-loading { color: var(--soft); font-size: .85rem; }
.live-page button { font-family: var(--sans); }
.live-page button:focus-visible, .live-page input:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }

.live-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 0 0 1.5rem; }
.live-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1rem 1.1rem; border: 1px solid var(--night-line); border-radius: 10px; }
.live-stats dd { margin: 0; color: var(--gold); font-family: var(--serif); font-size: 2rem; font-weight: 650; line-height: 1.1; }
.live-stats dt { margin-top: .3rem; color: var(--soft); font-size: .8rem; font-weight: 400; }

.live-panel {
  position: relative; margin-bottom: 1.5rem; padding: 1.75rem;
  border-radius: var(--radius); background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.live-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: var(--rainbow); }
.live-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1rem; }
.live-panel .eyebrow { margin-bottom: .35rem; }
.live-panel h2 { margin: 0 0 .4rem; padding: 0; border: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.live-sub { max-width: 62ch; margin: 0; color: var(--muted); font-size: .88rem; }
.live-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; max-width: 440px; margin: 0; padding: 0; list-style: none; font-size: .8rem; }
.live-legend li, .live-tip-row { display: inline-flex; align-items: center; gap: .4rem; }
.live-legend i, .live-tip-row i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }

.live-player { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .9rem; }
#live-play { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); color: var(--gold); font-size: 1rem; cursor: pointer; }
.live-slider { flex: 1; min-width: 200px; }
.live-slider input { width: 100%; accent-color: var(--purple); }
.live-now { min-width: 260px; margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--ink); }
.live-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.live-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; }
.live-map { height: clamp(420px, 60vh, 600px); border: 1.5px solid var(--ink); border-radius: 10px; background: #e8e2d4; z-index: 0; }
.live-map .leaflet-tile-pane { filter: sepia(.3) saturate(.75) contrast(.95); }
.live-town {
  max-height: clamp(420px, 60vh, 600px); overflow-y: auto; padding: 1.1rem 1.2rem;
  border: 1px solid var(--paper-line); border-left: 6px solid var(--region, var(--gold)); border-radius: 8px; background: #fffaf0;
}
.live-town .eyebrow { font-size: .68rem; margin-bottom: .3rem; }
.live-town h3 { margin: 0 0 .2rem; padding: 0; border: 0; font-size: 1.6rem; color: var(--ink); }
.live-town-meta, .live-town-hint { margin: 0 0 .8rem; color: var(--muted); font-size: .8rem; }
.live-venue { margin-bottom: .8rem; }
.live-venue-name { margin: 0 0 .2rem; font-weight: 700; font-size: .85rem; }
.live-venue ul { margin: 0; padding-left: 1rem; font-size: .76rem; color: var(--ink); }

.live-chart-wrap { overflow-x: auto; }
#live-chart { display: block; }
.live-grid line { stroke: #e6dccb; }
.live-grid text { fill: var(--muted); font-family: var(--mono); font-size: 11px; }
.live-gap { fill: rgba(31, 24, 48, .05); }
.live-gap-label { fill: var(--muted); font-family: var(--sans); font-size: 12px; font-style: italic; }
.live-hit { fill: transparent; cursor: pointer; }
.live-bar.is-current .live-hit { fill: rgba(255, 199, 44, .35); }
.live-tip {
  position: absolute; z-index: 5; min-width: 200px; padding: .7rem .85rem; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-size: .8rem; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.live-tip strong { display: block; font-family: var(--serif); font-size: 1rem; }
.live-tip-sub { display: block; color: var(--soft); font-size: .72rem; margin-bottom: .3rem; }
.live-tip-row { display: grid; grid-template-columns: 12px 1fr auto; gap: .5rem; }
.live-tip-row b { font-family: var(--mono); font-weight: 500; }

.live-method { max-width: 90ch; margin: 1.75rem 0; color: var(--soft); font-size: .82rem; }
.live-method a { color: var(--gold); }
.live-sources { padding: 1.15rem 1.5rem; border: 1px solid var(--night-line); border-radius: var(--radius); }
.live-sources summary { cursor: pointer; font-size: .9rem; }
.live-sources h3 { color: var(--gold); font-size: 1.3rem; margin: 1.5rem 0 .4rem; }
.live-table-wrap { overflow-x: auto; }
.live-table { width: 100%; border-collapse: collapse; color: var(--paper); font-size: .78rem; }
.live-table th, .live-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--night-line); text-align: left; vertical-align: top; }
.live-table th[scope="col"] { color: var(--soft); font-weight: 500; }
.live-table a { color: var(--gold); }
.live-signoff { margin: 2rem 0; text-align: center; font-family: var(--serif); font-size: 1.2rem; }

@media (max-width: 1020px) {
  .live-body { grid-template-columns: minmax(0, 1fr); }
  .live-town { max-height: 360px; }
  .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .live-panel { padding: 1.1rem; }
  .live-map { height: 52vh; min-height: 320px; }
  .live-now { min-width: 0; width: 100%; }
  .live-stats dd { font-size: 1.6rem; }
}
.live-map .leaflet-control-attribution { background: rgba(255, 245, 225, .92); }
.live-map .leaflet-control-attribution a { color: #005a7e; }
.live-tour { flex-basis: 100%; margin: .2rem 0 0; font-size: .82rem; font-weight: 600; }
.live-tour a { color: var(--purple); }
