/* ============================================================================
   wc-dashboard.css — World Cup Heat Stress dashboard — LIGHT THEME
   Perryweather light styling. Neutral charts (no policy/risk coloring).
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  font-family: 'Proxima Nova', var(--pw-font-body);
  -webkit-font-smoothing: antialiased;
  color: #16202C;
}
body.wc-page {
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(34,186,207,0.07), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(255,227,126,0.08), transparent 55%),
    #EEF2F6;
  background-attachment: fixed;
  min-height: 100vh;
}
#root { min-height: 100vh; }

.wc-shell { max-width: 1480px; margin: 0 auto; padding: 28px 36px 80px; }

/* ── Top bar ─────────────────────────────────────────────── */
.wc-topbar {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #DCE2E8;
  flex-wrap: wrap;
}
.wc-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wc-brand-divider { width: 1px; height: 40px; background: #E3E8ED; margin: 0 6px; flex-shrink: 0; }
.wc-partners { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.wc-partner-logo { display: block; }
.wc-partner-logo.ksi { height: 44px; width: auto; }
.wc-brand-mark { width: 26px; height: 44px; flex-shrink: 0; display: block; }
.wc-brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-eyebrow {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: #306491;
}
.wc-presented {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 13px; color: #5B6878;
}
.wc-title {
  margin: 0;
  font-family: 'Proxima Nova', var(--pw-font-display);
  font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: -0.6px; color: #16202C;
}
.wc-topbar-spacer { flex: 1 1 40px; }

.wc-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wc-control-group { display: flex; flex-direction: column; gap: 6px; }
.wc-control-label {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: #6B7682;
}
.wc-seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: #FFFFFF;
  border: 1px solid #DCE2E8;
  border-radius: 100px;
  box-shadow: 0 1px 2px rgba(16,32,48,0.04);
}
.wc-seg-btn {
  appearance: none; border: 0; background: transparent;
  padding: 8px 18px; border-radius: 100px; cursor: pointer;
  font-family: 'Proxima Nova', var(--pw-font-body);
  font-weight: 600; font-size: 14px; letter-spacing: -0.1px;
  color: #5A6671;
  transition: color 140ms var(--pw-ease), background 140ms var(--pw-ease);
  white-space: nowrap;
}
.wc-seg-btn:hover { color: #16202C; }
.wc-seg-btn.active { color: #0F151E; background: var(--pw-bolt-grad); font-weight: 700; box-shadow: 0 1px 3px rgba(16,32,48,0.18); }
.wc-seg.units .wc-seg-btn { padding: 8px 14px; }

/* ── Summary bar ─────────────────────────────────────────── */
.wc-summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 22px 0 6px;
}
.wc-summary-date {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 14px; color: #4A5560;
}
.wc-summary-date strong { color: #16202C; font-weight: 700; }
.wc-rollup { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wc-rollup-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 13px; color: #4A5560;
}
.wc-rollup-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.wc-rollup-item strong { color: #16202C; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Country section ─────────────────────────────────────── */
.wc-section { margin-top: 34px; }
.wc-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.wc-section-flag { font-size: 24px; line-height: 1; }
.wc-section-title {
  margin: 0; font-family: 'Proxima Nova', var(--pw-font-display);
  font-weight: 700; font-size: 20px; letter-spacing: -0.3px; color: #16202C;
}
.wc-section-count {
  font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 13px;
  color: #6B7682;
  padding: 3px 10px; border: 1px solid #DCE2E8; border-radius: 100px;
}
.wc-section-rule { flex: 1; height: 1px; background: #DCE2E8; }

.wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 18px;
}

/* ── Stadium card ────────────────────────────────────────── */
.wc-card {
  background: #FFFFFF;
  border: 1px solid #E3E8ED;
  border-radius: 12px;
  padding: 0 0 18px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 0;
  cursor: pointer; position: relative;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16,32,48,0.04);
  transition: border-color 160ms var(--pw-ease), transform 160ms var(--pw-ease), box-shadow 160ms var(--pw-ease);
}
.wc-card:hover {
  border-color: #C2CCD6;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -18px rgba(16,32,48,0.32);
}

/* banner: full-width photo covering the top of the card, head overlays it */
.wc-card-banner { position: relative; height: 138px; flex-shrink: 0; background: #121A24; }
.wc-card-photo { position: absolute; inset: 0; display: block; }
.wc-card-photo image-slot { display: block; width: 100%; height: 100%; background: #EFF3F7; }
.wc-card-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wc-banner-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; display: block;
  background: linear-gradient(180deg, rgba(15,21,30,0.88) 0%, rgba(15,21,30,0.66) 42%, rgba(15,21,30,0.28) 74%, rgba(15,21,30,0.08) 100%);
}
.wc-card-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 16px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.wc-card-id { min-width: 0; flex: 1; }
.wc-card-venue {
  font-family: 'Proxima Nova', var(--pw-font-display);
  font-weight: 700; font-size: 23px; line-height: 1.12; letter-spacing: -0.4px; color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(10,16,24,0.45);
}
.wc-card-city {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 3px;
}

/* match info — now top-right */
.wc-card-match {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  text-align: right; max-width: 58%;
}
.wc-match-stage {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #8FD0EC;
  white-space: nowrap;
}
.wc-match-time {
  font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12.5px; color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.wc-match-teams {
  font-family: 'Proxima Nova', var(--pw-font-body); font-size: 13.5px; font-weight: 700; color: #FFFFFF;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(10,16,24,0.4);
}
.wc-match-time strong { color: #FFFFFF; font-weight: 700; }
.wc-match-warn {
  margin-top: 1px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 100px;
  background: #FBE7E4; border: 1px solid #F0B8B0; color: #C0392B;
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap;
}
.wc-match-warn svg { width: 13px; height: 13px; }
.wc-match-ok {
  margin-top: 1px; display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; color: #6B7682;
}
.wc-match-ok svg { width: 14px; height: 14px; color: #4FA85C; }

/* reading: two-column current + gameday stats (no chart) */
.wc-statgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 14px 22px 0; margin: 0 0 0; border-top: 0;
}
.wc-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wc-stat + .wc-stat { padding-left: 18px; border-left: 1px solid #ECEFF3; }
.wc-stat-label {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #7A8694;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wc-stat-val {
  display: flex; align-items: center; flex-wrap: wrap; column-gap: 9px; row-gap: 5px;
  font-family: 'Proxima Nova', var(--pw-font-display);
  font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: -1.2px; color: #16202C;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.wc-stat-num { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.wc-stat-u { font-size: 19px; font-weight: 400; letter-spacing: -0.4px; color: #5A6671; }
.wc-stat-sub { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12.5px; color: #5A6671; }
.wc-stat-sub strong { color: #16202C; font-weight: 700; }

/* risk pill (standard WBGT/Heat-Index categories) */
.wc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 100px; border: 1px solid;
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: 0.9px; text-transform: uppercase;
  white-space: nowrap; width: fit-content;
}
.wc-pill .wc-pill-dot { width: 8px; height: 8px; border-radius: 50%; }
.wc-pill.green  { color: #2F7D3A; background: #EAF6EC; border-color: #BFE3C4; }
.wc-pill.green  .wc-pill-dot { background: #4FA85C; }
.wc-pill.yellow { color: #8A7212; background: #FBF6DC; border-color: #E7DC8C; }
.wc-pill.yellow .wc-pill-dot { background: #CAB62E; }
.wc-pill.orange { color: #B5660F; background: #FBEFDD; border-color: #E9CE9C; }
.wc-pill.orange .wc-pill-dot { background: #D6953A; }
.wc-pill.red    { color: #C0392B; background: #FBE7E4; border-color: #F0B8B0; }
.wc-pill.red    .wc-pill-dot { background: #E05D4E; }
.wc-pill.black  { color: #fff; background: #8A2A1E; border-color: #7A1F16; }
.wc-pill.black  .wc-pill-dot { background: #FBE7E4; }

/* ── Chart visuals (shared) ──────────────────────────────── */
.wc-grid        { stroke: #E6EBF0; stroke-width: 1; }
.wc-axis        { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; fill: #7A8694; }
.wc-axis-day    { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; font-weight: 700; fill: #41505E; }
.wc-day-divider { stroke: #CDD6DF; stroke-width: 1; stroke-dasharray: 2 4; }
.wc-crosshair   { stroke: #16202C; stroke-width: 1; opacity: 0.35; }
.wc-hover-dot   { fill: #fff; stroke: #3E6E96; stroke-width: 2; filter: drop-shadow(0 1px 3px rgba(16,32,48,0.25)); }
.wc-peak-band   { fill: rgba(62,110,150,0.07); stroke: rgba(62,110,150,0.4); stroke-width: 1.25; stroke-dasharray: 4 4; pointer-events: none; }

.wc-chart-frame { position: relative; }
.wc-chart-svg { display: block; width: 100%; height: 300px; cursor: crosshair; user-select: none; }

.wc-tooltip {
  position: absolute; pointer-events: none;
  background: #FFFFFF; border: 1px solid #DCE2E8;
  border-radius: 10px; padding: 9px 11px 8px; min-width: 122px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 12px 28px -8px rgba(16,32,48,0.28); z-index: 6;
  transition: opacity 120ms var(--pw-ease);
}
.wc-tooltip-date {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-weight: 700; font-size: 11px; line-height: 16px; letter-spacing: 0.7px; text-transform: uppercase; color: #16202C;
  white-space: nowrap;
}
.wc-tooltip-card { width: 100%; background: #F4F7FA; border-radius: 8px; padding: 7px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wc-tooltip-row { display: flex; align-items: center; gap: 8px; }
.wc-tooltip-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid; flex-shrink: 0; }
.wc-tooltip-temp { font-family: 'Proxima Nova', var(--pw-font-body); font-weight: 700; font-size: 18px; color: #16202C; }
.wc-tooltip-unit { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 11px; color: #7A8694; }

/* ── Threshold gauge (modal readout) ─────────────────────── */
.wc-gauge { display: flex; flex-direction: column; gap: 10px; }
.wc-gauge-track { position: relative; height: 18px; overflow: visible; }
.wc-gauge-segs { display: flex; height: 100%; border-radius: 100px; box-shadow: inset 0 0 0 1px #DCE2E8; }
.wc-gauge-seg { flex: 1; height: 100%; border-right: 1px solid rgba(255,255,255,0.7); opacity: 0.32; transition: opacity 200ms var(--pw-ease), height 200ms var(--pw-ease); }
.wc-gauge-seg.active { opacity: 1; height: calc(100% + 8px); align-self: center; position: relative; z-index: 1; }
.wc-gauge-seg:first-child { border-top-left-radius: 100px; border-bottom-left-radius: 100px; }
.wc-gauge-seg:last-child { border-right: 0; border-top-right-radius: 100px; border-bottom-right-radius: 100px; }
.wc-gauge-seg.s0 { background: #5EC269; }
.wc-gauge-seg.s1 { background: #E0C53A; }
.wc-gauge-seg.s2 { background: #D6953A; }
.wc-gauge-seg.s3 { background: #E05D4E; }
.wc-gauge-seg.s4 { background: #8A2A1E; }
.wc-gauge-marker {
  position: absolute; top: -6px; bottom: -6px; width: 6px; background: #16202C; border-radius: 4px;
  transform: translateX(-50%); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(16,32,48,0.4);
  transition: left 240ms var(--pw-ease); pointer-events: none; z-index: 2;
}
.wc-gauge-labels { display: flex; font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; color: #8A94A0; }
.wc-gauge-labels span { flex: 1; text-align: center; transition: color 200ms var(--pw-ease); }
.wc-gauge-labels span.active { color: #16202C; font-weight: 700; }

/* ── Detail modal ────────────────────────────────────────── */
.wc-scrim {
  position: fixed; inset: 0; background: rgba(22,32,44,0.42);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  display: none; z-index: 100; align-items: flex-start; justify-content: center;
  padding: 48px 28px; overflow-y: auto;
}
.wc-scrim.open { display: flex; animation: wc-scrim-in 200ms var(--pw-ease); }
@keyframes wc-scrim-in { from { opacity: 0; } to { opacity: 1; } }
.wc-modal {
  width: 100%; max-width: 1120px; background: #FFFFFF;
  border: 1px solid #DCE2E8; border-radius: 16px;
  padding: 30px 32px 36px; position: relative;
  box-shadow: 0 32px 80px -16px rgba(16,32,48,0.32);
  animation: wc-modal-in 240ms var(--pw-ease);
  display: flex; flex-direction: column; gap: 22px;
}
@keyframes wc-modal-in { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.wc-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wc-modal-titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wc-modal-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #306491; }
.wc-modal-title { margin: 0; font-family: 'Proxima Nova', var(--pw-font-display); font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -0.6px; color: #16202C; }
.wc-modal-sub { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 14px; color: #6B7682; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-modal-sub .sep { width: 3px; height: 3px; border-radius: 50%; background: #C2CCD6; }
.wc-modal-close {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid #DCE2E8; background: #FFFFFF; color: #5A6671; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background 140ms var(--pw-ease);
}
.wc-modal-close:hover { background: #F0F3F6; }
.wc-modal-close svg { width: 22px; height: 22px; }

/* in-modal metric + unit toggles (independent of the page) */
.wc-modal-tools {
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  padding-bottom: 20px; margin-top: -4px;
  border-bottom: 1px solid #ECEFF3;
}
.wc-modal-tools-spacer { flex: 1 1 24px; }

/* big readout strip */
.wc-readout {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  padding: 18px 22px; background: #F4F7FA; border: 1px solid #E6EBF0; border-radius: 12px;
}
.wc-readout-now { display: flex; align-items: baseline; gap: 4px; font-family: 'Proxima Nova', var(--pw-font-display); font-weight: 400; font-size: 58px; line-height: 1; letter-spacing: -2px; color: #16202C; font-variant-numeric: tabular-nums; }
.wc-readout-now .u { font-size: 30px; color: #5A6671; }
.wc-readout-col { display: flex; flex-direction: column; gap: 8px; }
.wc-readout-gauge { flex: 1; min-width: 280px; }
.wc-readout-label { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: #7A8694; }

/* panels in modal */
.wc-panel {
  background: #F7F9FB; border: 1px solid #E6EBF0; border-radius: 12px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.wc-panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-panel-head h3 { margin: 0; font-family: 'Proxima Nova', var(--pw-font-body); font-weight: 600; font-size: 18px; letter-spacing: 0.3px; color: #16202C; }
.wc-panel-head .wc-panel-icon { width: 18px; height: 18px; color: #306491; }
.wc-panel-head .wc-panel-spacer { flex: 1; }
.wc-panel-meta { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; color: #6B7682; }
.wc-seg.compact { padding: 2px; }
.wc-seg.compact .wc-seg-btn { padding: 6px 12px; font-size: 13px; }
.wc-chart-inner { background: #FFFFFF; border: 1px solid #E6EBF0; border-radius: 8px; padding: 14px; }

/* historical data source chip (PW station coverage) */
.wc-hist-source {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(96,177,215,0.10); border: 1px solid rgba(96,177,215,0.4);
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1px; color: #2E5876;
}
.wc-hist-source svg { flex-shrink: 0; opacity: 0.8; }
.wc-hist-source.muted { background: #F0F3F6; border-color: #DCE3E9; color: #5A6878; }

/* source row: brand logo + chip */
.wc-src-row { display: flex; align-items: center; gap: 14px; }
.wc-src-logo { height: 18px; width: auto; display: block; flex-shrink: 0; }
.wc-src-logo.nws { height: 30px; border-radius: 50%; }

/* history empty state */
.wc-hist-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 44px 20px; text-align: center;
  background: #FFFFFF; border: 1px dashed #D5DDE4; border-radius: 8px;
  color: #8B97A3;
}
.wc-hist-empty svg { opacity: 0.55; margin-bottom: 4px; }
.wc-hist-empty-title {
  font-family: 'Proxima Nova', var(--pw-font-body);
  font-size: 16px; font-weight: 700; color: #5A6878;
}
.wc-hist-empty-sub {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 13px; color: #8B97A3;
}

/* card forecast-source caption */
.wc-card-src {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 22px 0;
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px; color: #7A8794;
}
.wc-card-src svg { flex-shrink: 0; opacity: 0.7; }

/* metric pill next to card stat values — high-visibility */
.wc-metric-pill {
  display: inline-block; padding: 3px 9px;
  border-radius: 100px;
  background: rgba(96,177,215,0.14); border: 1px solid rgba(63,121,160,0.45);
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: #2E5876; white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* guidance meta line + audience seg row */
.wc-guidance-meta {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 12px; color: #7A8794; margin-top: -2px;
}

/* in-panel selectors row (history metric/units) */
.wc-panel-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* next-match block in modal header */
.wc-modal-next {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  text-align: right; margin-left: auto; padding-right: 6px; flex-shrink: 0;
}
.wc-mn-stage {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #306491;
}
.wc-mn-teams {
  font-family: 'Proxima Nova', var(--pw-font-body);
  font-size: 14px; font-weight: 700; color: #16202C; line-height: 1.25;
}
.wc-mn-time { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12.5px; color: #5A6671; }
.wc-mn-time strong { color: #16202C; font-weight: 700; }
.wc-mn-stats { display: flex; gap: 18px; margin-top: 6px; }
.wc-mn-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.wc-mn-stat-lbl {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 10px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: #7A8694;
}
.wc-mn-stat strong {
  font-family: 'Proxima Nova', var(--pw-font-body);
  font-size: 17px; font-weight: 700; color: #16202C; font-variant-numeric: tabular-nums;
}
@media (max-width: 880px) { .wc-modal-next { display: none; } }

/* “Up next” badge on card match block */
.wc-next-badge {
  display: inline-block; width: fit-content; padding: 3px 9px; border-radius: 100px;
  background: var(--pw-bolt-grad); color: #0F151E;
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  margin-bottom: 2px;
}

/* completed-game styling in the schedule table */
.wc-table tbody tr.done td { color: #6B7886; }
.wc-table tbody tr.done td .wc-score { color: #16202C; font-weight: 700; }
.wc-ft-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  background: #EDF1F5; border: 1px solid #DCE3E9;
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; color: #5A6878;
}
.wc-peak-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #7A8794;
}

/* kickoff marker on forecast chart */
.wc-ko-line { stroke: #16202C; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.75; }
.wc-ko-dot { fill: #16202C; stroke: #FFFFFF; stroke-width: 2; }
.wc-ko-pill { fill: #16202C; opacity: 0.92; }
.wc-ko-text {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; fill: #FFFFFF;
}

/* intro strip under the header */
.wc-intro {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 16px 0 0;
}
.wc-intro-copy {
  margin: 0; max-width: 880px; flex: 1 1 480px;
  font-family: 'Proxima Nova', var(--pw-font-body);
  font-size: 14.5px; line-height: 1.55; color: #41505E;
  text-wrap: pretty;
}
.wc-intro-copy strong { color: #16202C; }

/* data source attribution line */
.wc-sources {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  flex-basis: 100%; margin-top: 2px;
}
.wc-source-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 12.5px; color: #5A6671;
}
.wc-source-item strong { color: #16202C; font-weight: 700; }
.wc-source-logo { display: block; height: 15px; width: auto; flex-shrink: 0; }
.wc-source-logo.round { height: 24px; border-radius: 50%; }

/* metric definition drawer */
.wc-defs-drawer { margin-top: 16px; }
.wc-defs-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 12px 18px; cursor: pointer;
  background: #FFFFFF; border: 1px solid #E3E8ED; border-radius: 12px;
  font-family: 'Proxima Nova', var(--pw-font-body);
  font-size: 13.5px; font-weight: 700; color: #2E5876; text-align: left;
  box-shadow: 0 1px 2px rgba(16,32,48,0.04);
  transition: border-color 140ms var(--pw-ease);
}
.wc-defs-toggle:hover { border-color: #C6D2DC; }
.wc-defs-chev { flex-shrink: 0; transition: transform 180ms var(--pw-ease); }
.wc-defs-chev.open { transform: rotate(180deg); }

/* metric definition cards */
.wc-defs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px;
  margin-top: 10px;
  animation: wc-defs-in 200ms var(--pw-ease);
}
@keyframes wc-defs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .wc-defs { animation: none; } }
.wc-def {
  background: #FFFFFF; border: 1px solid #E3E8ED; border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 1px 2px rgba(16,32,48,0.04);
}
.wc-def-term {
  display: inline-block; width: fit-content; padding: 4px 11px; border-radius: 100px;
  background: rgba(96,177,215,0.14); border: 1px solid rgba(63,121,160,0.45);
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: #2E5876;
}
.wc-def-body {
  margin: 0; font-family: 'Proxima Nova', var(--pw-font-body);
  font-size: 13.5px; line-height: 1.5; color: #41505E; text-wrap: pretty;
}
.wc-def-link {
  font-family: 'Proxima Nova', var(--pw-font-ui);
  font-size: 12.5px; font-weight: 700; color: #306491; text-decoration: none;
  margin-top: auto;
}
.wc-def-link:hover { text-decoration: underline; }

/* about cards (page footer) */
.wc-about {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid #E3E8ED;
}
.wc-about-card {
  background: #FFFFFF; border: 1px solid #E3E8ED; border-radius: 12px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px rgba(16,32,48,0.04);
}
.wc-about-logo { display: block; height: 26px; width: auto; align-self: flex-start; }
.wc-about-logo.ksi { height: 44px; }
/* live conditions indicator */
.wc-live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2FA45B; margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(47,164,91,0.45);
  animation: wc-live-pulse 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .wc-live-dot { animation: none; } }
@keyframes wc-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,164,91,0.45); }
  60% { box-shadow: 0 0 0 6px rgba(47,164,91,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,164,91,0); }
}

/* guidance */
.wc-guidance { display: flex; flex-direction: column; gap: 8px; }
.wc-guidance-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wc-guidance-row .wc-panel-spacer { flex: 1; }
.wc-guidance-row h3 { margin: 0; font-family: 'Proxima Nova', var(--pw-font-body); font-weight: 600; font-size: 16px; color: #16202C; }
.wc-guidance-body { margin: 0; font-family: 'Proxima Nova', var(--pw-font-body); font-size: 15px; line-height: 1.55; color: #41505E; white-space: pre-line; }

/* activity-guidelines key */
.wc-key { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.wc-key-item {
  flex: 1; min-width: 150px; display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; background: #FFFFFF; border: 1px solid #E6EBF0; border-radius: 8px;
}
.wc-key-item.active { border-color: #16202C; box-shadow: 0 0 0 1px #16202C; }
.wc-key-swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.wc-key-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wc-key-label { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12.5px; font-weight: 700; color: #16202C; }
.wc-key-range { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 12px; color: #6B7682; white-space: nowrap; }

/* facts */
.wc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: #E6EBF0; border: 1px solid #E6EBF0; border-radius: 10px; overflow: hidden; }
.wc-fact { background: #FFFFFF; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.wc-fact-label { font-family: 'Proxima Nova', var(--pw-font-ui); font-size: 11px; letter-spacing: 0.6px; text-transform: uppercase; color: #7A8694; }
.wc-fact-value { font-family: 'Proxima Nova', var(--pw-font-body); font-size: 17px; font-weight: 700; color: #16202C; }
.wc-fact-value .small { font-size: 13px; font-weight: 400; color: #5A6671; }

.wc-modal-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }

/* ── Match schedule table ────────────────────────────────── */
.wc-table-wrap { overflow-x: auto; border: 1px solid #E6EBF0; border-radius: 10px; }
.wc-table { width: 100%; border-collapse: collapse; font-family: 'Proxima Nova', var(--pw-font-ui); }
.wc-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: #7A8694; padding: 12px 16px; background: #F4F7FA; border-bottom: 1px solid #E6EBF0;
  white-space: nowrap;
}
.wc-table td {
  font-size: 14px; color: #2B3744; padding: 13px 16px; border-bottom: 1px solid #EEF1F5;
  vertical-align: middle;
}
.wc-table tbody tr:last-child td { border-bottom: 0; }
.wc-table td.nowrap, .wc-table th.nowrap { white-space: nowrap; }
.wc-table .num, .wc-table th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: #16202C; }
.wc-table td:nth-child(4) { font-weight: 600; color: #16202C; }

@media (max-width: 920px) {
  .wc-shell { padding: 20px 16px 60px; }
  .wc-grid { grid-template-columns: 1fr; }
  .wc-modal-two { grid-template-columns: 1fr; }
  .wc-modal { padding: 22px 16px 28px; }
  .wc-modal-title { font-size: 24px; }
  .wc-readout-gauge { min-width: 0; }
}

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  .wc-shell { padding: 14px 12px 48px; }
  .wc-topbar { flex-wrap: wrap; gap: 12px; row-gap: 14px; }

  /* segmented controls: full-width, evenly divided, comfortable tap targets */
  .wc-controls { width: 100%; gap: 10px; }
  .wc-control-group { flex: 1 1 0; min-width: 0; }
  .wc-seg { display: flex; width: 100%; }
  .wc-seg-btn { flex: 1 1 0; min-width: 0; padding: 10px 4px; font-size: 12.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wc-seg.units .wc-seg-btn { padding: 10px 4px; }
  .wc-seg.compact .wc-seg-btn { padding: 8px 4px; font-size: 12px; }

  /* modal: tighter chrome, stacked control rows */
  .wc-modal { padding: 16px 12px 24px; border-radius: 12px; }
  .wc-modal-tools { gap: 10px; }
  .wc-modal-tools .wc-control-group { flex: 1 1 100%; }
  .wc-modal-tools-spacer { display: none; }
  .wc-panel { padding: 14px 12px; }
  .wc-chart-inner { padding: 10px 6px 8px; }
  .wc-panel-head { flex-wrap: wrap; row-gap: 10px; }
  .wc-panel-tools { width: 100%; }
  .wc-panel-tools .wc-seg { flex: 1 1 0; }
  .wc-guidance-row { row-gap: 10px; }
  .wc-guidance-row .wc-seg { width: 100%; }

  /* schedule table scrolls sideways instead of crushing columns */
  .wc-table { min-width: 560px; }
  .wc-table th, .wc-table td { padding: 10px 12px; }

  .wc-hist-source { font-size: 11px; padding: 5px 10px; }
  .wc-src-row { flex-wrap: wrap; gap: 10px; }

  /* slimmer chart tooltip so it doesn't cover the plot */
  .wc-tooltip { min-width: 0; padding: 6px 8px 6px; gap: 4px; border-radius: 8px; }
  .wc-tooltip-date { font-size: 9.5px; letter-spacing: 0.4px; line-height: 12px; }
  .wc-tooltip-card { padding: 5px 8px; }
  .wc-tooltip-temp { font-size: 15px; }
  .wc-tooltip-unit { font-size: 9.5px; }
  .wc-tooltip-dot { width: 8px; height: 8px; }
}
