/* BetWiser — part of the SportsCalendar / SportsTips family
   Family base: navy slate #1e2330, gold #C9A227
   BetWiser signature: the "edge" mint for value/probability accents */

:root {
  --ink:    #13161f;   /* page background, a step deeper than the panel navy */
  --panel:  #1e2330;   /* family navy — header, cards */
  --line:   #2e3547;
  --gold:   #C9A227;   /* family accent */
  --mint:   #3ddc97;   /* BetWiser's own accent */
  --text:   #e9ecf3;
  --muted:  #8a94ab;
  --display: "Archivo", "Arial Black", sans-serif;
  --body:    "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }

.brand {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 80%;
  font-size: 26px;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.brand span { color: var(--gold); }
.brand em {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-left: 22px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: #fff; border-bottom-color: var(--mint); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 28px; max-width: 720px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 10px;
  font-weight: 600;
}
.hero h1, .analysis h1 {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 78%;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.04;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hl { color: var(--gold); }
.lede { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- day sections / event grid ---------- */
.day { margin: 40px 0; }
.day-h {
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin: 0 0 18px;
}

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

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover, .card:focus-visible { border-color: var(--mint); transform: translateY(-2px); }

.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 99px;
  padding: 3px 10px;
}
.ko { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.vs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-family: var(--display); font-stretch: 82%; font-weight: 800; font-size: 19px; margin: 0 0 6px; line-height: 1.25; }
.vs b { color: var(--mint); font-weight: 800; font-size: 14px; }
.vs.big { font-size: clamp(26px, 4.5vw, 42px); text-transform: none; }

.venue { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.read { color: var(--mint); font-size: 13px; font-weight: 600; margin: 8px 0 0; }
.card h3 { margin: 0 0 8px; font-family: var(--display); font-stretch: 84%; font-size: 18px; line-height: 1.3; }

/* ---------- single analysis ---------- */
.analysis { max-width: 760px; padding: 48px 0 20px; }
.meta-line { color: var(--muted); font-size: 14px; margin: 0 0 30px; }

.prose h2 {
  font-family: var(--display);
  font-stretch: 82%;
  font-weight: 800;
  font-size: 22px;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: #cdd3e0; }
.prose ul { padding-left: 22px; }
.prose strong { color: #fff; }
.prose em { color: var(--mint); font-style: normal; }

.note {
  margin: 40px 0 10px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
}
.note strong { color: var(--text); }

.back a { color: var(--mint); text-decoration: none; font-weight: 600; }

/* ---------- empty state ---------- */
.empty { margin: 60px 0; padding: 36px; background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; max-width: 620px; }
.empty h2 { font-family: var(--display); margin-top: 0; }
.empty code { background: var(--ink); padding: 2px 7px; border-radius: 4px; color: var(--mint); }

/* ---------- footer ---------- */
.foot { margin-top: 80px; border-top: 1px solid var(--line); background: var(--panel); padding: 28px 0 20px; }
.rg { color: var(--muted); font-size: 13px; max-width: 860px; }
.rg a { color: var(--mint); }
.rg strong { color: var(--text); }
.fineprint { color: #5b637a; font-size: 12px; margin-top: 14px; }

@media (max-width: 600px) {
  .top-inner { flex-direction: column; align-items: flex-start; }
  .nav a { margin-left: 0; margin-right: 18px; }
  .hero { padding-top: 36px; }
}

/* ---------- implied probability bars (BetWiser signature) ---------- */
.prob { margin-top: 10px; }
.prob-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--ink);
}
.prob-bar .p-home { background: var(--mint); }
.prob-bar .p-draw { background: var(--line); }
.prob-bar .p-away { background: var(--gold); }
.prob-nums {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.prob-nums .margin { letter-spacing: 2px; text-transform: uppercase; font-size: 10px; }

/* ---------- odds snapshot panel on event pages ---------- */
.odds-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 0 0 32px;
}
.odds-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.odds-cell {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.odds-cell b { font-size: 14px; }
.odds-cell .price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}
.odds-cell .ip { font-size: 12px; color: var(--muted); }
.big-bar { height: 12px; }
.odds-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.tz-note { font-size: 12px; color: #5b637a; }

/* ---------- live generation ---------- */
.gen-status { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mint); flex: none;
  animation: bw-pulse 1.2s ease-in-out infinite;
}
@keyframes bw-pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.7);} }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.done-dot { color: var(--mint); font-weight: 700; }
.racing-teaser { margin: 56px 0 20px; }

/* ---------- homepage filter & day collapse ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.fchip {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.fchip span { color: #5b637a; font-weight: 400; margin-left: 3px; }
.fchip:hover, .fchip:focus-visible { border-color: var(--mint); color: var(--text); }
.fchip.active { border-color: var(--gold); color: var(--gold); }
.fchip.active span { color: var(--gold); }

.f-hide { display: none !important; }

.day-toggle { display: flex; justify-content: space-between; align-items: baseline; cursor: pointer; user-select: none; }
.day-toggle:hover, .day-toggle:focus-visible { color: var(--text); }
.day-count { font-size: 11px; letter-spacing: 1px; color: #5b637a; }
.day-count .chev { display: inline-block; transition: transform .15s ease; color: var(--mint); margin-left: 4px; }
.day.collapsed .grid { display: none; }
.day.collapsed .day-count .chev { transform: rotate(-90deg); }

/* ---------- locked / closed event panel ---------- */
.locked {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 22px 24px;
}
.locked h2 { margin-top: 0; border: none; padding-left: 0; }
.locked a { color: var(--mint); }

/* ---------- network bar & cross-site CTAs ---------- */
.netbar { background: #0e1118; border-bottom: 1px solid var(--line); }
.netbar-inner { display: flex; align-items: center; gap: 18px; padding: 7px 20px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.net-label { color: #5b637a; }
.netbar a { color: var(--muted); text-decoration: none; }
.netbar a b, .net-here b { color: var(--gold); font-weight: 700; }
.netbar a:hover, .netbar a:focus-visible { color: #fff; }
.net-here { color: var(--text); border-bottom: 2px solid var(--mint); padding-bottom: 2px; }

.network-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 36px 0 0; }
.net-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; text-decoration: none; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.net-card:hover, .net-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.net-kicker { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mint); }
.net-card strong { font-family: var(--display); font-stretch: 82%; font-size: 18px; }
.net-card strong b { color: var(--gold); }
.net-desc { font-size: 13px; color: var(--muted); }
