/* ─── Orb Analytics – Design System (Light Theme) ────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@1,400;1,700&family=Roboto+Slab:wght@100..900&family=Inter:wght@300;400;500;600&family=Audiowide&family=DM+Sans:ital,wght@0,400;0,700;0,800;0,900;1,700;1,800&display=swap');

:root {
  --purple-950: #0B0019;
  --purple-900: #1A0038;
  --purple-800: #280058;
  --purple-700: #3C0183;
  --purple-600: #9A29E9;
  --purple-500: #8520FE;
  --purple-400: #A052FE;
  --purple-300: #8C2CFE;
  --purple-200: #EEE1FF;
  --purple-100: #F8F2FF;

  --gold:    #D97706;
  --green:   #10B981;
  --red:     #DC2626;
  --blue:    #0284C7;

  --gray-950: #09090B;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #71717A;
  --gray-500: #1F2937;
  --gray-400: #374151;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  --bg:      #FFFFFF;
  --surface: #FFFFFF;
  --card:    #FFFFFF;
  --border:  #D4D4D8;
  --text:    #3F3F46;
  --muted:   #9A29E9;
  --accent:  var(--purple-600);

  --font-display: 'Roboto Slab', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    var(--font-body);

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --nav-height: 76px;
  --transition: 0.2s ease;
  --glow: 0 2px 12px rgba(0,0,0,0.08);
  --hover-tint: rgba(133, 32, 254, 0.08);
  --hover-border: var(--purple-400);
}

/* ── Page spacing scale ──────────────────────────────────────────
   ONE gap between stacked cards/containers on every page (and between
   cards inside card grids), and one space above each page's first block.
   Section labels and meta lines stay attached to their card; the stack gap
   goes between whole blocks. */
:root { --stack-gap: 1rem; --page-top: 1.5rem; }
@media (min-width: 769px) { :root { --stack-gap: 1.25rem; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .section-title { font-family: 'DM Sans', sans-serif; }

/* ─── Dark theme ─────────────────────────────────────────────────── */
body.dark {
  --bg:      #121214;
  --surface: #1C1C1F;
  --card:    #202024;
  --border:  #303036;
  --text:    #F4F4F5;
  --muted:   #A1A1AA;
  --purple-300: #B174FB;

  --gray-50:  #232327;
  --gray-100: #28282D;
  --gray-200: #34343A;
  --gray-300: #45454C;
  --gray-400: #71717A;
  --gray-500: #9CA3AF;
  --gray-600: #A1A1AA;
  --gray-700: #C4C4CC;

  --red:     #EF4444;
}

body.dark .nav { background: #121214; }
body.dark .form-select option { background: var(--surface); color: var(--text); }
body.dark .form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }
body.dark .form-input[type="date"] { color-scheme: dark; }
body.dark .nav-links a:hover,
body.dark .nav-links a.active { color: var(--text); background: rgba(133,32,254,0.18); }

/* ─── Theme toggle ───────────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
  font-size: 1rem;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--hover-border); background: var(--hover-tint); }
.nav-theme-toggle { display: none; }

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.orb-logo-img { width: 40px; height: 40px; object-fit: contain; }

.nav-logo-center {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo-text { font-family: 'DM Sans', sans-serif; font-weight: 800; font-style: italic; letter-spacing: -0.01em; font-size: 1.6rem; color: #3F3F46; white-space: nowrap; }
body.dark .nav-logo-text { color: var(--text); }
.nav-logo-accent { color: var(--purple-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--text); background: var(--gray-100); }
.nav-links a.active { color: var(--purple-600); background: var(--gray-100); font-weight: 600; }

.nav-social { display: flex; align-items: center; gap: 0.5rem; }
.nav-social a { color: #3F3F46; transition: var(--transition); display: flex; align-items: center; padding: 0.3rem; border-radius: var(--radius-sm); }
body.dark .nav-social a { color: var(--text); }
.nav-social a:hover { color: var(--purple-500); background: var(--hover-tint); }
body.dark .nav-social a:hover { color: var(--purple-500); background: var(--hover-tint); }
.nav-social svg { width: 19px; height: 19px; fill: currentColor; }

/* Substack icon — same proportions & light-fill / orange-stroke treatment as .substack-btn */
.nav-social a.nav-substack {
  width: 2.25rem; height: 2.25rem; padding: 0; justify-content: center;
  color: #FF6719; background: #FFF1E7; border: 1px solid #FF6719;
}
.nav-social a.nav-substack svg { width: 16px; height: 16px; }
.nav-social a.nav-substack:hover { color: #FF6719; background: #FFE4D1; }
body.dark .nav-social a.nav-substack { color: #FF9A5C; background: rgba(255,103,25,0.18); border-color: rgba(255,103,25,0.5); }
body.dark .nav-social a.nav-substack:hover { color: #FF9A5C; background: rgba(255,103,25,0.28); }

/* ─── Page Shell ─────────────────────────────────────────────────── */
.page { min-height: calc(100vh - var(--nav-height)); }

.container { max-width: 1360px; margin: 0 auto; padding: 0 2rem; }

/* ─── App layout (sidebar + content) ────────────────────────────── */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

/* ─── Sidebar ────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 150;
  transition: transform 0.25s ease;
}

body.dark .sidebar { background: var(--surface); border-right-color: var(--border); }

.sidebar-inner {
  padding: 1rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-footer {
  margin-top: auto;
  padding: 0.85rem 0.7rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Auth block (signed-in / signed-out share one column layout) */
.sidebar-auth-group { display: flex; flex-direction: column; gap: 0.5rem; }

/* Signed-in account chip — Google-style avatar + name + email */
.sidebar-account { display: flex; align-items: center; gap: 0.5rem; padding: 0.05rem 0.15rem 0.1rem; }
.sidebar-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-600); color: #fff;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; user-select: none;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-account-text { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.sidebar-account-name,
.sidebar-account-email {
  font-family: var(--font-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-account-name  { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.sidebar-account-email { font-size: 0.7rem;    font-weight: 400; color: var(--gray-600); letter-spacing: -0.01em; }

/* One shared button treatment for the whole footer */
.sidebar-btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray-600);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.sidebar-btn:hover { border-color: var(--hover-border); background: var(--hover-tint); color: var(--text); }
.sidebar-btn--primary { background: var(--purple-600); border-color: var(--purple-600); color: #fff; }
.sidebar-btn--primary:hover { background: var(--purple-500); border-color: var(--purple-500); color: #fff; }
.sidebar-btn--ghost { border-color: var(--purple-600); color: var(--purple-600); }
.sidebar-btn--ghost:hover { background: var(--hover-tint); border-color: var(--purple-600); color: var(--purple-600); }
.sidebar-btn--danger:hover { border-color: var(--red); background: transparent; color: var(--red); }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: #3F3F46;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
body.dark .sidebar-link { color: var(--text); }

.sidebar-link:hover {
  color: var(--text);
  background: var(--gray-100);
}

.sidebar-link.active {
  color: var(--purple-600);
  background: var(--gray-100);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--purple-600);
}

.sidebar-link.soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.sidebar-icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icon svg { width: 23px; height: 23px; stroke: currentColor; }

.sidebar-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.sidebar-soon {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}

/* Main content area */
.sidebar-content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 149;
}

.sidebar-overlay.open { display: block; }

/* Mobile toggle button */
.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  flex-shrink: 0;
  transition: var(--transition);
}

.sidebar-toggle:hover { border-color: var(--hover-border); background: var(--hover-tint); }

.sidebar-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

body.dark .sidebar-toggle { color: var(--text); }

/* ── Page header top row (the Scoreboard pattern) ────────────────
   Menu button (shown on phones only) + small section label on the left,
   an optional action (Refresh, Show Tracker) on the right, title below. */
.page-header-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.page-header-lead { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.page-header-lead .section-label { margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* A title directly under the row keeps the label's usual spacing. */
.page-header-top + .section-title { margin-top: 0.4rem; }

/* Row of toggles/filters under a page header (e.g. Today's Picks / Model
   History + sport filter). On phones the rows stack, start at the page's
   side margin, and a row wider than the screen scrolls inside itself. */
.page-controls { display: flex; gap: var(--stack-gap) 0.75rem; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: var(--stack-gap); }
@media (max-width: 768px) {
  .page-controls { flex-direction: column; align-items: flex-start; }
  .page-controls > * { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .page-controls > *::-webkit-scrollbar { display: none; }
  .page-controls .main-tab { white-space: nowrap; flex-shrink: 0; }
}

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--hover-border); box-shadow: var(--glow); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary { background: var(--purple-600); color: white; }
.btn-primary:hover { background: var(--purple-500); box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--gray-600); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--hover-border); background: var(--hover-tint); }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.75rem; }

/* ─── Tabs ───────────────────────────────────────────────────────── */
.tab-bar { display: flex; gap: 0.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.25rem; }
.tab-btn { flex: 1; padding: 0.45rem 1rem; border: none; background: transparent; color: var(--gray-600); font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); white-space: nowrap; }
.tab-btn.active { background: var(--purple-600); color: white; box-shadow: var(--glow); }
.tab-btn:hover:not(.active) { color: var(--text); background: var(--hover-tint); }

/* ─── Badges ─────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.badge-live    { background: rgba(239,68,68,0.12);   color: #B91C1C; border: 1px solid rgba(239,68,68,0.35); padding: 0.3rem 0.85rem; gap: 0.4rem; }
.badge-final   { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--border); }
.badge-pre     { background: var(--gray-100); color: var(--purple-600); border: 1px solid var(--border); }
.badge-win     { background: rgba(16,185,129,0.12);  color: #065F46; border: 1px solid rgba(16,185,129,0.35); min-width: 3.25rem; justify-content: center; }
.badge-loss    { background: rgba(239,68,68,0.12);   color: #B91C1C; border: 1px solid rgba(239,68,68,0.35); min-width: 3.25rem; justify-content: center; }
.badge-push    { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.badge-pending { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--border); }
.badge-pick    { background: rgba(124,58,237,0.10); color: var(--purple-600); border: 1px solid var(--purple-300); }

body.dark .badge-pick { background: rgba(124,58,237,0.22); color: #C4B5FD; border-color: rgba(167,139,250,0.45); }
body.dark .badge-confidence { background: rgba(16,185,129,0.18); color: #6EE7B7; border-color: rgba(52,211,153,0.45); }
/* Light-theme badge-win/loss/push/live use dark text (#065F46/#B91C1C) meant
   for a white background -- nearly unreadable against a dark card, reading
   as muted/washed-out. Swap in the same bright-pastel-on-tinted-background
   treatment already used for badge-confidence/badge-pick above. */
body.dark .badge-live { background: rgba(239,68,68,0.18); color: #F87171; border-color: rgba(248,113,113,0.45); }
body.dark .badge-win  { background: rgba(16,185,129,0.18); color: #34D399; border-color: rgba(52,211,153,0.45); }
body.dark .badge-loss { background: rgba(239,68,68,0.18);  color: #F87171; border-color: rgba(248,113,113,0.45); }
body.dark .badge-push { background: rgba(217,119,6,0.2);   color: #FBBF24; border-color: rgba(251,191,36,0.45); }

/* ─── Live dot ───────────────────────────────────────────────────── */
.live-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

/* ─── Section heading ────────────────────────────────────────────── */
.section-label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--purple-600); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
.section-title { font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1.15; letter-spacing: -0.01em; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-600); letter-spacing: 0.04em; text-transform: uppercase; }

.form-input, .form-select {
  background-color: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.6rem 0.9rem;
  transition: var(--transition);
  width: 100%;
  outline: none;
}
.form-input:focus, .form-select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(109,40,217,0.08); background-color: var(--surface); }
.form-select option { background: var(--surface); color: var(--text); }

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
}

.form-input[type="date"] {
  color-scheme: light;
  cursor: pointer;
}
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  padding: 2px;
  transition: var(--transition);
}
.form-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background: var(--hover-tint);
}

/* ─── Table ──────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--gray-600); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); background: var(--gray-50); }
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

/* ─── Stat card ──────────────────────────────────────────────────── */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: border-color var(--transition), box-shadow var(--transition); }
.stat-card:hover { border-color: var(--hover-border); box-shadow: var(--glow); }
.stat-card .stat-label { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--gray-600); letter-spacing: 0.08em; text-transform: uppercase; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-sub { font-size: 0.875rem; color: var(--gray-600); }
.stat-positive { color: var(--green); }
.stat-negative { color: var(--red); }
.stat-neutral  { color: var(--text); }

/* ─── Empty state ────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 3rem 1.5rem; color: var(--gray-600); text-align: center; }
.empty-state svg { opacity: 0.35; }
.empty-state p { font-size: 0.875rem; }

/* ─── Spinner ────────────────────────────────────────────────────── */
.spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--purple-500); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 3rem; color: var(--gray-600); font-size: 0.875rem; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 1.5rem 2rem; text-align: center; color: var(--gray-600); font-size: 0.8125rem; margin-top: 4rem; }

/* ─── Site-wide disclaimer ───────────────────────────────────────── */
.disclaimer-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-top: var(--stack-gap);
}
.disclaimer-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.disclaimer-text { font-size: 0.8125rem; line-height: 1.65; color: var(--gray-600); }
.disclaimer-text p + p { margin-top: 0.75rem; }

/* ─── Novig paid-partnership disclosure ──────────────────────────── */
.disclaimer-block.partner-disclosure { margin-top: var(--stack-gap); }
.partner-disclosure-text { font-size: 0.875rem; line-height: 1.65; color: var(--text); }
.partner-disclosure-text strong { font-weight: 700; }
.partner-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--text);
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}
.partner-label-row { margin-top: 0.5rem; }
/* Promo card: the label and fine print get their own strip under the image so they never cover the ad */
.email-signup-sponsor { display: flex; flex-direction: column; }
.email-signup-sponsor > a { flex: none; display: block; }
.promo-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 0.6rem 0.75rem 0.75rem; }
.promo-fineprint { margin: 0; font-size: 0.75rem; line-height: 1.45; color: var(--gray-600); }
.promo-fineprint a { color: inherit; text-decoration: underline; }

/* ─── Pick card odds source ("Odds via DraftKings") ──────────────── */
.odds-source { font-size: 0.75rem; color: var(--gray-600); text-align: center; margin-top: -0.25rem; }

/* ─── Email Signup ───────────────────────────────────────────────── */
.email-signup {
  display: grid;
  /* minmax(0, ...) lets both columns shrink; with plain 1fr the signup card's
     min-content width squeezed the promo to ~25px at 769-1100px. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--stack-gap);
  margin: var(--stack-gap) 0;
  min-height: 280px;
  align-items: stretch;
}
.email-signup-sponsor {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
/* The promos are square: keep the box square (no cropping of the offer or
   fine print), and reveal the image only once js/novig-promos.js's pick has
   loaded so no other image can flash first. */
.email-signup-sponsor img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.email-signup-sponsor img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .email-signup-sponsor img { transition: none; } }
.email-signup-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 2.5rem;
  text-align: center;
  gap: 0;
}
.email-signup-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin-bottom: 0.6rem;
}
/* Narrow desktop (sidebar visible): two columns are tight, so stack the form.
   The one-row form needs ~1110px; 1199px leaves headroom for font differences. */
@media (min-width: 769px) and (max-width: 1199px) {
  .email-signup-cta { padding: 2rem 1.25rem; }
  .email-signup-form { flex-direction: column; }
  .email-signup-input { width: 100%; }
}
@media (max-width: 768px) {
  .email-signup { grid-template-columns: 1fr; min-height: unset; }
  .email-signup-sponsor { min-height: 200px; }
  .email-signup-cta { padding: 2rem 1.5rem; }
}
.email-signup-title { font-family: 'DM Sans', sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; line-height: 1.15; }
.email-signup-sub { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; max-width: 320px; line-height: 1.55; }
.email-signup-form { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.email-signup-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  outline: none;
  transition: var(--transition);
}
.email-signup-input::placeholder { color: var(--muted); }
.email-signup-input:focus { border-color: var(--purple-600); background: var(--surface); }
.email-signup-btn { background: var(--purple-600); color: white; border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; padding: 0.6rem 1.25rem; cursor: pointer; white-space: nowrap; transition: var(--transition); text-decoration: none; display: inline-flex; align-items: center; }
.email-signup-btn:hover { opacity: 0.85; }
.email-signup-disclaimer { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .nav {
    padding: 0 0.75rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    padding-left: calc(0.75rem + env(safe-area-inset-left, 0px));
    padding-right: calc(0.75rem + env(safe-area-inset-right, 0px));
    height: 68px;
    position: sticky;
    top: 0;
  }
  .nav-links { display: none; }
  .container {
    padding-left: calc(1rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1rem + env(safe-area-inset-right, 0px));
  }
  .section-title { font-size: 1.5rem; }
  .nav-logo-text { font-size: 0.95rem; }
  .orb-logo-img { width: 36px; height: 36px; }
  .nav-social { display: none; }
  .nav-theme-toggle { display: flex; }
  #theme-toggle { display: none; }
  .email-signup-form { flex-direction: column; }
  .email-signup-input { width: 100%; }

  /* Sidebar mobile -- sits flush against the left edge, so it (and its
     toggle button) needs its own left-edge safe-area padding on notched
     phones in landscape, same reasoning as .nav above. */
  .sidebar {
    position: fixed;
    top: 68px;
    left: 0;
    height: calc(100vh - 68px);
    padding-left: env(safe-area-inset-left, 0px);
    transform: translateX(-100%);
    z-index: 150;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .sidebar-content { width: 100%; }
}