@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800;900&family=EB+Garamond:wght@400;500;600&display=swap");
/* Leo — shared stylesheet */
:root {
  /* Palette: warm editorial — cream ground, deep navy, gold accent.
     Navy carries every text/link role (14:1 on cream); gold is decorative
     fill only, since gold-on-cream fails text contrast. */
  --bg: #F5F0E8;
  --bg-card: #FDFBF7;
  --bg-elev: #EDE6D9;
  --border: #DED4C2;
  --text: #2A2620;
  --text-dim: #675D4F;
  --accent: #C9A84C;        /* gold  — fills, bars, decoration */
  --accent2: #1A2535;       /* navy  — links, active states, primary */
  --accent3: #4A6478;       /* steel — tertiary */
  --navy-deep: #141D29;
  --gold-deep: #7A5D14;     /* gold that passes as text on cream */
  --warn: #7A5D14;
  --danger: #A63A2E;
  --good: #2F6E4A;
  --radius: 14px;
  --shadow-sm: 0 8px 24px rgba(42,38,32,.07);
  --shadow-md: 0 18px 48px rgba(42,38,32,.11);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav {
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(15,23,42,.08);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(58,45,118,.05);
}
.nav-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 8px; height: 60px;
}
.nav-links { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: none; box-shadow: none;
  color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.nav-toggle:hover { transform: none; filter: none; }
.brand { font-weight: 850; font-size: 1.18rem; color: var(--text); margin-right: 20px; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.brand .brand-ly { color: var(--accent2); }
.brand .brand-dia { color: var(--accent); }
nav a.navlink {
  color: var(--text-dim); padding: 7px 12px; border-radius: 9px; font-size: .94rem; font-weight: 600;
}
nav a.navlink:hover { color: var(--text); background: var(--bg-elev); text-decoration: none; }
nav a.navlink.active { color: var(--accent2); background: rgba(26,37,53,.07); }
nav a.navlink-cta {
  margin-left: auto; background: var(--accent2); color: #fff; font-weight: 800;
  white-space: nowrap; box-shadow: 0 8px 18px rgba(26,37,53,.18);
}
nav a.navlink-cta:hover { filter: brightness(1.06); color: #fff; text-decoration: none; }
nav a.navlink-cta.active { background: var(--navy-deep); color: #fff; }

/* Layout */
main { max-width: 1180px; margin: 0 auto; padding: 34px 20px 68px; }
h1 { font-size: 1.8rem; margin-bottom: 6px; letter-spacing: -.035em; line-height: 1.14; }
h2 { font-size: 1.3rem; margin: 30px 0 12px; letter-spacing: -.02em; }
h3 { font-size: 1.06rem; margin: 18px 0 8px; }
.subtitle { color: var(--text-dim); margin-bottom: 24px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 7px; }

/* Hero (homepage) */
.hero, .hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; margin-bottom: 8px;
}
@media (max-width: 720px) { .hero, .hero-grid { grid-template-columns: 1fr; } }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.hero h1 { font-size: clamp(2rem,4vw,2.8rem); }

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

.card {
  background: rgba(253,251,247,.94); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p { color: var(--text-dim); font-size: .95rem; }
.card:hover { border-color: rgba(26,37,53,.26); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: rgba(255,255,255,.6); }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
tr:hover td { background: var(--bg-elev); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Forms */
label { display: block; font-size: .84rem; color: var(--text-dim); margin-bottom: 4px; font-weight: 650; }
input, select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: rgba(255,255,255,.88); color: var(--text);
  font-size: .95rem;
}
input:focus, select:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(26,37,53,.09); }
.field { margin-bottom: 14px; }
button, .btn {
  background: var(--accent2); color: #ffffff; border: none; border-radius: 10px;
  padding: 10px 18px; font-size: .94rem; font-weight: 750; cursor: pointer;
  display: inline-block; box-shadow: 0 8px 18px rgba(26,37,53,.16);
}
button:hover, .btn:hover { filter: brightness(1.06); text-decoration: none; transform: translateY(-1px); }
button.secondary, .btn.secondary { background: rgba(255,255,255,.88); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.blue { background: var(--accent3); }

/* Badges & results */
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: .76rem; font-weight: 700; }
.badge.pos { background: rgba(30,142,62,.12); color: var(--good); }
.badge.neg { background: rgba(207,34,46,.10); color: var(--danger); }
.badge.neutral { background: rgba(26,37,53,.09); color: var(--accent2); }
.result-box {
  background: rgba(255,255,255,.82); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-top: 14px; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.result-box strong { color: var(--accent); }
.big-num { font-size: 1.6rem; font-weight: 800; }
.pos-text { color: var(--good); }
.neg-text { color: var(--danger); }
.dim { color: var(--text-dim); }
.small { font-size: .84rem; }

/* Trust badge */
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.82);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .88rem;
  box-shadow: var(--shadow-sm);
}
.trust-badge b { color: var(--accent); }

/* Odds page */
.game-card { margin-bottom: 18px; }
.game-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.game-head .matchup { font-weight: 750; font-size: 1.05rem; }

/* Shared presentation rhythm for analytical pages. Keep long-form body copy
   readable, while centering page introductions, controls, and matchup titles. */
main.container > .eyebrow,
main.container > h1,
main.container > h1 + p { text-align:center; }
main.container > .controls { justify-content:center; }
.matchup-title-center { text-align:center; }
.matchup-title-center .matchup { color:var(--text); text-decoration:none; }
.matchup-title-center .matchup:hover { color:var(--accent2); text-decoration:underline; }
.game-head.matchup-title-center {
  display:grid; grid-template-columns:1fr auto 1fr; align-items:baseline;
}
.game-head.matchup-title-center .matchup { grid-column:2; text-align:center; }
.game-head.matchup-title-center .small { grid-column:3; justify-self:end; text-align:right; }
.best-odds { background: rgba(201,168,76,.14); border-radius: 4px; }
.notice {
  background: rgba(255,255,255,.82); border: 1px solid var(--border); border-left: 4px solid var(--accent2);
  border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: .92rem; color: var(--text-dim);
  box-shadow: var(--shadow-sm);
}
.notice.warn { border-left-color: var(--warn); }
.notice.pink { border-left-color: var(--accent); }

/* Lead capture / membership upsell boxes */
.lead-box {
  border: 1px solid rgba(201,168,76,.45); border-radius: var(--radius); background: rgba(253,251,247,.94);
  padding: 18px; margin: 18px 0; box-shadow: var(--shadow-sm);
}
.lead-box form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lead-box input[type=email] { flex: 1; min-width: 200px; }
.member-tease {
  border: 1px dashed var(--accent); border-radius: var(--radius); background: rgba(201,168,76,.05);
  padding: 16px 18px; margin: 16px 0;
}
.member-tease .lock { font-size: 1.1rem; }

/* Free vs member comparison table */
.cmp-table th, .cmp-table td { text-align: center; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table td.yes { color: var(--good); font-weight: 700; }
.cmp-table td.member-col { background: rgba(201,168,76,.05); }

/* Articles */
article.post { margin-bottom: 36px; }
article.post p { margin-bottom: 12px; color: var(--text); }
article.post .meta { color: var(--text-dim); font-size: .85rem; margin-bottom: 12px; }

footer {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 20px;
  text-align: center; color: var(--text-dim); font-size: .85rem;
  background: rgba(255,255,255,.45);
}
.loading { color: var(--text-dim); padding: 24px 0; }

/* Mobile nav menu */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 8px 12px 14px;
  }
  .nav-links.open { display: flex; }
  nav a.navlink { padding: 12px 10px; border-radius: 8px; }
  nav a.navlink-cta { margin: 8px 0 0; text-align: center; }
  .nav-drop { display: block; }
}
@media (max-width: 640px) {
  main { padding: 20px 14px 48px; }
}

/* Lab dropdown */
.nav-drop { position: relative; display: inline-block; }
.nav-drop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 185px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md); z-index: 60; padding: 6px 0; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu, .nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 8px 14px; color: var(--text); font-size: .92rem; white-space: nowrap; }
.nav-drop-menu a:hover { background: var(--bg-elev); color: var(--accent2); text-decoration: none; }
@media (max-width: 760px) { .nav-drop-menu { position: fixed; left: 10px; right: 10px; top: auto; min-width: 0; box-shadow: var(--shadow-md); } .nav-drop-menu a { padding: 13px 16px; font-size: 1rem; border-bottom: 1px solid var(--border); } .nav-drop-menu a:last-child { border-bottom: none; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Sport selector in nav */
.nav-sport-selector { display: inline-flex; gap: 4px; margin: 0 12px; border-left: 1px solid var(--border); padding-left: 12px; }
.nav-sport { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: .85rem; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: all 0.2s; }
.nav-sport:hover { border-color: var(--accent); color: var(--text); }
.nav-sport.active { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .nav-sport-selector { gap: 2px; margin: 0 8px; padding-left: 8px; }
  .nav-sport { padding: 3px 8px; font-size: .78rem; }
}


/* Display type: serif headings against the sans UI, matching the reference. */
h1, h2, .score-hero h1 { font-family:"EB Garamond", Georgia, "Times New Roman", serif; font-weight:600; letter-spacing:-.01em; }
.eyebrow { font-family:"Onest",sans-serif; letter-spacing:.14em; text-transform:uppercase; font-size:.7rem; font-weight:700; color:var(--gold-deep); }


/* Phones: nothing may drag the page sideways. The nav used to do exactly that
   because renderNav never emitted the .nav-toggle / .nav-links markup this
   file's mobile rules target, so every tab laid out inline past the viewport.
   Markup is fixed; these are the guards that keep it fixed. */
html, body { max-width: 100%; overflow-x: hidden; }
.nav-inner { max-width: 100%; }
@media (max-width: 760px) {
  .nav-inner { padding: 0 14px; gap: 6px; }
  .brand { margin-right: 10px; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav-links { z-index: 40; max-height: calc(100vh - 60px); overflow-y: auto; }
  /* .nav-drop is a wrapper span around the Lab link, so without this it sits
     at a different rhythm than its siblings in the stacked panel. */
  .nav-drop, .nav-drop > .navlink { display: block; width: 100%; }
  .nav-links > .navlink, .nav-drop > .navlink { padding: 12px 10px; }
  .nav-links { gap: 0; }
  .nav-links > .navlink:not(.navlink-cta), .nav-drop { border-bottom: 1px solid var(--border); }
  .nav-links > .navlink-cta { margin-top: 12px; padding: 14px 10px; }
}
