/* Baseball Prop Edge
   Night-game navy and brand red. Reads like a stat sheet: ruled lists, plain
   numbers, condensed headings. Containers are flat; color is for meaning. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-800.woff") format("woff"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0d1424;
  --surface: #131c2f;
  --surface-2: #1a2540;
  --line: #233049;
  --line-soft: #1b263b;
  --text: #e8edf5;
  --muted: #a0adc0;
  --dim: #75839a;
  --red: #e0283a;
  --red-text: #ff6b78;
  --gold: #f0b429;
  --green: #3cc584;
  --blue: #5e8ff0;

  /* Older names still used in a few inline styles and templates. */
  --night: var(--bg); --night-2: #0f1728; --dugout: var(--surface); --steel: var(--surface); --steel-2: var(--surface-2);
  --line-2: var(--line); --chalk: var(--text); --red-hot: var(--red-text); --amber: var(--gold);

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 8px;
  --wrap: 1180px;
  --gutter: 20px;
  --tabbar: 0px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --head: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar);
}
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 0.75em; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--gold); color: #111; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ type */

.display { font-family: var(--head); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1; letter-spacing: 0; }
.title { font-family: var(--head); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.05; }
.subhead { font-weight: 700; font-size: 1.05rem; }
.kicker { display: block; margin-bottom: 6px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.lede { max-width: 60ch; color: var(--muted); font-size: 1.04rem; }
.fine { color: var(--dim); font-size: 0.84rem; }
.fine a { color: var(--muted); }

/* --------------------------------------------------------------- masthead */

.masthead { background: #060a13; border-bottom: 1px solid var(--line-soft); }
.masthead-link { display: block; width: min(100%, 900px); margin-inline: auto; }
.masthead-link img { display: block; width: 100%; height: auto; aspect-ratio: 1824 / 500; }

.navbar { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.navbar-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; min-height: 54px; }
.nav-brand { display: none; align-items: center; }
.nav-brand img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; align-items: stretch; gap: 0; margin: 0 0 0 -12px; padding: 0; list-style: none; }
.nav-links a, .nav-account a:not(.btn), .nav-account button {
  position: relative; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.nav-links a img { display: none; }
.nav-links a:hover, .nav-account a:not(.btn):hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--red); }
.pro-tag { color: var(--gold); font-size: 0.72rem; font-weight: 700; }
.nav-account { display: flex; align-items: center; gap: 4px; }
.nav-account .btn { align-self: center; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c81f30; }
.btn-gold { background: var(--gold); color: #1d1503; }
.btn-gold:hover { background: #f6c44f; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- layout */

main { padding: 32px 0 64px; }
.stack { display: grid; gap: 22px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head p { margin: 4px 0 0; color: var(--muted); max-width: 62ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 22px; }

/* ------------------------------------------------------------------- hero */

.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 36px; align-items: end; }
.page-hero .lede { margin-top: 12px; margin-bottom: 0; }
.hero-aside { display: grid; gap: 4px; justify-items: end; text-align: right; }
.hero-aside .title { font-size: 1.6rem; }

/* Status line under a heading: plain text, not tags. */
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; color: var(--muted); font-size: 0.92rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.92rem; }
.chip b { color: var(--text); font-weight: 700; }
.chip-live { color: var(--text); font-weight: 600; }
.chip-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip-wait { color: var(--gold); font-weight: 600; }

/* ------------------------------------------------------------- notices */

.notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice-icon { display: none; }
.notice strong { display: block; font-weight: 700; }
.notice p { margin: 2px 0 0; color: var(--muted); font-size: 0.94rem; }

.flash-stack { display: grid; gap: 10px; margin-bottom: 20px; }
.flash { padding: 11px 14px; border-radius: var(--radius-sm); border-left: 3px solid var(--blue); background: var(--surface); font-weight: 600; }
.flash.error { border-left-color: var(--red); }
.flash.success { border-left-color: var(--green); }

/* --------------------------------------------------------- offseason hero */

.season-break { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.countdown { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.countdown strong { font-family: var(--head); font-size: clamp(3.6rem, 9vw, 5.4rem); font-weight: 700; line-height: 0.9; }
.countdown span { color: var(--muted); max-width: 18ch; line-height: 1.3; }
.record-strip { display: grid; }
.record-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.record-row span { color: var(--muted); font-size: 0.9rem; }
.record-row span b { display: block; color: var(--text); font-size: 1rem; }
.record-row strong { font-family: var(--head); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.record-strip .fine { margin-top: 10px; }

/* ------------------------------------------------------------ grades */

.grade {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 4px;
  font-family: var(--head); font-weight: 700; font-size: 1.15rem; line-height: 1; border: 1px solid var(--line);
}
.grade-elite { color: var(--gold); border-color: rgba(240, 180, 41, 0.55); }
.grade-strong { color: var(--green); border-color: rgba(60, 197, 132, 0.5); }
.grade-lean { color: #9dbbf7; border-color: rgba(94, 143, 240, 0.45); }
.grade-pass { color: var(--dim); border-color: transparent; }
.grade-sm { min-width: 34px; height: 26px; font-size: 0.98rem; }
.grade-xl { min-width: 54px; height: 46px; font-size: 1.7rem; }

/* ------------------------------------------- strength bar (one per market) */

.meter { --v: 50%; display: block; }
.meter-track { position: relative; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.meter-track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--blue); border-radius: 3px; }
.meter-warm .meter-track::before { background: var(--gold); }
.meter-hot .meter-track::before { background: var(--red); }
.meter-ball, .meter-scale { display: none; }
.meter-thin .meter-track { height: 4px; }

/* ---------------------------------------------------------- top of board */

.leaders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.leader { display: grid; gap: 14px; align-content: start; padding: 20px 22px; }
.leader + .leader { border-left: 1px solid var(--line); }
.leader-market { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.leader-market em { font-style: normal; color: var(--dim); font-size: 0.84rem; }
.player-line { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.avatar {
  display: grid; place-items: center; min-width: 42px; height: 30px; padding: 0 6px; border-radius: 4px;
  background: var(--surface-2); color: var(--muted); font-family: var(--head); font-weight: 700; font-size: 0.95rem;
}
.avatar-lg { min-width: 64px; height: 44px; font-size: 1.3rem; }
.player-name { font-family: var(--head); font-weight: 700; font-size: 1.55rem; line-height: 1.05; }
.player-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; color: var(--muted); font-size: 0.86rem; }
.player-meta b { color: var(--text); font-weight: 600; }
.leader-odds { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.big-pct { font-family: var(--head); font-size: 3rem; font-weight: 700; line-height: 0.95; font-variant-numeric: tabular-nums; }
.big-pct small { display: block; margin-top: 2px; font-family: var(--font); color: var(--muted); font-size: 0.84rem; font-weight: 400; }
.leader-cta { justify-self: start; }

/* Reasons, written as two short sentences. */
.why { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.why p { margin: 0 0 3px; }
.why b { color: var(--text); font-weight: 600; }
.why .against b { color: var(--text); }
.why-empty { color: var(--dim); font-size: 0.9rem; margin: 0; }

/* ------------------------------------------------------------ tabs */

.seg { display: inline-flex; gap: 2px; border-bottom: 1px solid var(--line); }
.seg .short { display: none; }
.seg button, .seg a {
  position: relative; min-height: 40px; padding: 8px 12px; border: 0; background: transparent; color: var(--muted);
  font-weight: 600; font-size: 0.94rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.seg button:hover, .seg a:hover { color: var(--text); }
.seg [aria-pressed="true"], .seg [aria-selected="true"] { color: var(--text); }
.seg [aria-pressed="true"]::after, .seg [aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--red); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.search {
  flex: 1 1 240px; max-width: 320px; min-height: 40px; padding: 8px 12px 8px 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--night-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a0adc0' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11.5 11.5 3.5 3.5'/%3E%3C/svg%3E") 12px 50% no-repeat;
}
.search::placeholder { color: var(--dim); }

/* ------------------------------------------------------------- the board */

.board { overflow: hidden; }
.board-head, .board-row {
  display: grid; align-items: center; gap: 14px;
  grid-template-columns: 34px minmax(190px, 1.7fr) minmax(140px, 1.2fr) 52px 64px repeat(2, 44px) 40px;
  padding: 10px 16px;
}
.board-head { color: var(--dim); font-size: 0.8rem; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--night-2); }
.board-row { border-bottom: 1px solid var(--line-soft); }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: rgba(255, 255, 255, 0.015); }
.rank { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--dim); font-variant-numeric: tabular-nums; text-align: center; }
.rank-top { color: var(--red-text); }
.board-player a { font-weight: 600; text-decoration: none; }
.board-player a:hover { text-decoration: underline; text-underline-offset: 3px; }
.board-player .player-meta { margin-top: 1px; font-size: 0.82rem; }
.board-prob { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.board-proj { font-variant-numeric: tabular-nums; color: var(--muted); }
.board-other { display: grid; justify-items: center; gap: 0; font-size: 0.7rem; color: var(--dim); }
.board-other .grade { border-color: transparent; height: 22px; }
.save-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--dim); cursor: pointer; text-decoration: none; font-size: 1.05rem; }
.save-btn:hover { border-color: var(--line); color: var(--text); }
.save-btn[aria-pressed="true"] { color: var(--gold); }
.save-form { margin: 0; }
.board-empty { padding: 24px 16px; color: var(--muted); }

.locked { display: grid; gap: 10px; justify-items: start; padding: 22px 16px 24px; border-top: 1px solid var(--line); background: var(--night-2); }
.locked-rows { display: none; }
.locked strong { font-family: var(--head); font-size: 1.4rem; font-weight: 700; }
.locked p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ------------------------------------------------------------- top picks */

.pick-list { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pick { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px; gap: 14px 22px; align-items: start; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.pick:last-child { border-bottom: 0; }
.pick .rank { font-size: 2rem; line-height: 1; text-align: left; }
.pick-body { display: grid; gap: 12px; min-width: 0; }
.pick-score { display: grid; justify-items: end; gap: 6px; text-align: right; }
.pick-score .big-pct { font-size: 2.6rem; }
.pick-score small { color: var(--muted); font-size: 0.84rem; }
.pick-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--muted); font-size: 0.88rem; }
.pick-foot b { color: var(--text); }
.pick-foot a { color: var(--text); font-weight: 600; }
.pick.is-extra { display: none; }
.pick-list[data-count="5"] .pick[data-pos="4"], .pick-list[data-count="5"] .pick[data-pos="5"] { display: grid; }
.pick-list[data-count="10"] .pick.is-extra { display: grid; }
.market-panel[hidden] { display: none; }

/* ---------------------------------------------------------- stat strips */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tile { padding: 18px 20px; }
.tile + .tile { border-left: 1px solid var(--line); }
.tile strong { display: block; font-family: var(--head); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tile span { display: block; margin-top: 6px; color: var(--text); font-weight: 600; font-size: 0.9rem; }
.tile small { display: block; margin-top: 2px; color: var(--dim); font-size: 0.8rem; }
.tile-accent strong { color: var(--gold); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ------------------------------------------------------------ results */

.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.result-card { padding: 18px 20px; }
.result-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.result-card header strong { font-family: var(--head); font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.result-list { display: grid; margin: 0; padding: 0; list-style: none; }
.result-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.result-item:last-child { border-bottom: 0; }
.result-item .rank { font-size: 1.05rem; }
.result-item b { display: block; font-weight: 600; line-height: 1.25; }
.result-item small { color: var(--dim); font-size: 0.8rem; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 0.86rem; white-space: nowrap; }
.pill-win { color: var(--green); }
.pill-loss { color: var(--red-text); }
.pill-out { color: var(--dim); font-weight: 600; }
.pill-wait { color: var(--gold); font-weight: 600; }

/* -------------------------------------------------------- performance */

.split-bars { display: grid; gap: 12px; }
.split-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 58px; gap: 12px; align-items: center; font-weight: 600; font-size: 0.92rem; }
.split-row small { display: block; color: var(--dim); font-size: 0.74rem; font-weight: 400; }
.bar { position: relative; height: 10px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--red); }
.bar-gold i { background: var(--gold); }
.bar-blue i { background: var(--blue); }
.split-row strong { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

.calib { display: grid; gap: 8px; }
.calib-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 0.84rem; }
.calib-row > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.calib-bars { display: grid; gap: 3px; }
.calib-bars .bar { height: 7px; }
.calib-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.84rem; }
.legend i { display: inline-block; width: 12px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: 1px; }

.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.checklist li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line-soft); color: #d3dceb; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--green); font-weight: 700; }

.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.two-col > *, .three-col > *, .result-grid > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

/* ------------------------------------------------------------- player */

.player-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.player-hero .avatar-lg { display: none; }
.player-hero .display { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.grade-trio { display: grid; grid-template-columns: repeat(3, minmax(104px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.grade-cell { display: grid; justify-items: start; gap: 4px; padding: 12px 14px; }
.grade-cell + .grade-cell { border-left: 1px solid var(--line); }
.grade-cell span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.grade-cell .grade { border-color: transparent; padding: 0; min-width: 0; justify-content: start; font-size: 1.8rem; height: auto; }
.grade-cell small { color: var(--dim); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.fact { padding: 14px 16px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact span { display: block; color: var(--muted); font-size: 0.82rem; }
.fact strong { display: block; margin-top: 2px; font-family: var(--head); font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fact small { color: var(--dim); font-size: 0.8rem; }
.deflist { display: grid; margin: 0; }
.deflist div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.deflist div:last-child { border-bottom: 0; }
.deflist dt { color: var(--muted); }
.deflist dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.market-why h3 { margin: 16px 0 6px; font-size: 0.98rem; font-weight: 700; }
.market-why h3:first-of-type { margin-top: 10px; }
.market-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.market-row strong { font-family: var(--head); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.market-row .meter { grid-column: 1 / -1; }

/* ------------------------------------------------------------ weather */

.weather-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.weather-card { display: grid; gap: 16px; padding: 20px; align-content: start; }
.weather-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.weather-teams { font-family: var(--head); font-weight: 700; font-size: 1.6rem; display: flex; align-items: center; gap: 8px; line-height: 1.05; }
.weather-score { display: grid; justify-items: end; text-align: right; }
.weather-score strong { font-family: var(--head); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.weather-score small { display: block; font-size: 0.78rem; color: var(--dim); }
.weather-score.good strong { color: var(--red-text); }
.weather-score.bad strong { color: #9dbbf7; }
.stadium { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #0a1220; border: 1px solid var(--line-soft); }
.stadium img { display: block; width: 100%; height: auto; }
.stadium svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wind-label { fill: #fff; font: 700 15px var(--font); }
.boosts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.boost { padding: 10px 4px; text-align: center; }
.boost + .boost { border-left: 1px solid var(--line-soft); }
.boost span { display: block; color: var(--dim); font-size: 0.78rem; }
.boost strong { font-family: var(--head); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.up-txt { color: var(--green); }
.down-txt { color: var(--red-text); }
.mini-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; font-size: 0.86rem; }
.mini-facts span { color: var(--dim); display: block; }
.mini-facts b { font-weight: 600; }
.beneficiaries { display: grid; }
.beneficiaries a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.beneficiaries a:last-child { border-bottom: 0; }
.beneficiaries a:hover b { text-decoration: underline; }
.beneficiaries small { display: block; color: var(--dim); font-size: 0.8rem; }

/* ----------------------------------------------------------- pitch dna */

.dna-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.dna-layout > *, .dna-work > *, .dna-view { min-width: 0; }
.dna-side { padding: 16px; position: sticky; top: 70px; }
.dna-side ol { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.dna-side button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; text-align: left; cursor: pointer; }
.dna-side button:hover { background: rgba(255, 255, 255, 0.02); }
.dna-side button span:first-child { color: var(--dim); font-weight: 700; font-size: 0.84rem; }
.dna-side b { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.dna-side small { color: var(--dim); font-size: 0.78rem; }
.dna-side strong { font-family: var(--head); font-size: 1.2rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.dna-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; }
.field label { color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.field input, .field select, select.input { min-height: 44px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--night-2); color: var(--text); }
.dna-view[hidden], .dna-detail[hidden] { display: none; }
.dna-pitcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px; }
.pitch-mix { display: grid; gap: 8px; margin-top: 14px; }
.pitch-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 0.88rem; }
.pitch-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.dna-work { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.hitter-list { display: grid; gap: 0; padding: 8px 12px; align-content: start; }
.hitter-list button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.hitter-list button[aria-pressed="true"] { background: var(--surface-2); }
.hitter-list b { display: block; font-weight: 600; font-size: 0.92rem; }
.hitter-list small { color: var(--dim); font-size: 0.78rem; }
.hitter-list strong { font-family: var(--head); font-size: 1.2rem; color: var(--gold); font-weight: 700; }
.dna-detail { padding: 20px; }
.dna-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dna-table th { text-align: left; color: var(--dim); font-size: 0.8rem; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dna-table td { padding: 10px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.dna-table td:first-child { font-weight: 600; }
.dna-detail .dna-table td:first-child { min-width: 180px; }
.dna-detail .dna-table { min-width: 560px; }
.dna-table small { display: block; color: var(--dim); font-size: 0.76rem; }
.conf { display: inline-block; margin-left: 6px; font-size: 0.74rem; font-weight: 600; }
.conf-high { color: var(--green); }
.conf-medium { color: var(--gold); }
.conf-low { color: #f0965a; }
.conf-estimate { color: var(--dim); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------- premium */

.premium-hero { display: grid; justify-items: start; gap: 12px; padding: 4px 0 8px; }
.price-tag { font-family: var(--head); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { color: var(--muted); font-size: 0.9rem; font-weight: 600; border-bottom-color: var(--line); }
.compare thead th:last-child { color: var(--gold); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--dim); }
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-card { padding: 20px 22px; background: none; border: 0; border-radius: 0; }
.feature-card + .feature-card { border-left: 1px solid var(--line); }
.feature-card img { display: none; }
.feature-card h3 { font-family: var(--head); font-size: 1.45rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }
.upsell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; border-left: 3px solid var(--gold); background: var(--surface); }
.upsell strong { display: block; font-family: var(--head); font-size: 1.5rem; font-weight: 700; }
.upsell p { margin: 2px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- auth */

.auth { display: grid; place-items: center; padding: 16px 0 40px; }
.auth-card { width: min(100%, 420px); padding: 28px; display: grid; gap: 16px; }
.auth-card h1 { font-size: 2.2rem; }
.auth-card form { display: grid; gap: 14px; }
.divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; color: var(--dim); font-size: 0.84rem; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); }
.google-btn { background: #fff; color: #1f1f1f; }
.google-btn:hover { background: #f1f3f4; }
.google-btn svg { width: 18px; height: 18px; }
.auth-foot { text-align: center; color: var(--muted); font-size: 0.94rem; }
.auth-foot a { color: var(--text); font-weight: 700; }

/* -------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); background: #0a101d; padding: 28px 0 34px; color: var(--dim); font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-footer strong { color: var(--muted); display: block; margin-bottom: 8px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); line-height: 1.6; }

.tabbar { display: none; }
.more-sheet[hidden] { display: none; }

.empty { display: grid; justify-items: start; gap: 8px; padding: 32px 24px; }
.empty p { color: var(--muted); max-width: 56ch; margin: 0; }

/* ========================================================== responsive */

@media (max-width: 1100px) {
  .board-head, .board-row { grid-template-columns: 30px minmax(170px, 1.6fr) minmax(120px, 1.2fr) 52px 60px 40px; }
  .board-other { display: none; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(4) { border-left: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; --tabbar: calc(60px + env(safe-area-inset-bottom)); }
  .masthead { display: none; }
  .navbar-inner { min-height: 52px; align-items: center; }
  .nav-brand { display: flex; }
  .nav-links { display: none; }
  .nav-account .hide-sm { display: none; }

  .tabbar {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; color: var(--dim); font-size: 0.7rem; font-weight: 600; text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--text); }
  .tabbar [aria-current="page"] svg { color: var(--red-text); }
  .more-sheet { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(var(--tabbar) + 8px); padding: 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; }
  .more-sheet a { display: flex; justify-content: space-between; align-items: center; padding: 13px 12px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
  .more-sheet a:last-child { border-bottom: 0; }

  main { padding-top: 22px; }
  .page-hero { grid-template-columns: 1fr; }
  .hero-aside { justify-items: start; text-align: left; }
  .season-break { grid-template-columns: 1fr; padding: 22px; }
  .leaders { grid-template-columns: 1fr; }
  .leader + .leader { border-left: 0; border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tiles-3 { grid-template-columns: 1fr; }
  .tiles-3 .tile + .tile { border-left: 0; border-top: 1px solid var(--line); }
  .result-grid, .three-col, .two-col { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .feature-card + .feature-card { border-left: 0; border-top: 1px solid var(--line); }
  .checklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .board-head { display: none; }
  .board-row { grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: "rank player grade" "rank prob save"; gap: 6px 12px; padding: 12px 14px; }
  .board-row .rank { grid-area: rank; align-self: start; text-align: left; }
  .board-row .board-player { grid-area: player; min-width: 0; }
  .board-row .board-prob { grid-area: prob; }
  .board-row .board-grade { grid-area: grade; justify-self: end; }
  .board-row .board-proj { display: none; }
  .board-row .board-save { grid-area: save; justify-self: end; }

  .pick { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px 12px; padding: 16px; }
  .pick .rank { font-size: 1.6rem; }
  .pick-body { display: contents; }
  .pick .player-line { grid-column: 2; grid-row: 1; }
  .pick .player-line .avatar { display: none; }
  .pick-score { grid-column: 3; grid-row: 1; gap: 2px; }
  .pick-score .grade { display: none; }
  .pick-score .big-pct { font-size: 2.1rem; }
  .pick .meter, .pick .why, .pick .why-empty, .pick .pick-foot { grid-column: 2 / -1; }

  .player-hero { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(4) { border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dna-layout, .dna-work, .dna-controls, .dna-pitcher { grid-template-columns: 1fr; }
  .dna-side { position: static; overflow: hidden; }
  .dna-side ol { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 4px; }
  .notice { grid-template-columns: 1fr; }
  .upsell { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 11px 8px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .panel-pad, .leader, .result-card, .weather-card { padding: 16px; }
  .tile { padding: 14px 16px; }
  .big-pct { font-size: 2.6rem; }
  .weather-grid { grid-template-columns: 1fr; }
  .mini-facts { grid-template-columns: 1fr 1fr; }
  .seg { width: 100%; }
  .seg button, .seg a { flex: 1; justify-content: center; padding-inline: 6px; }
  .seg .long { display: none; }
  .seg .short { display: inline; }
  .search { max-width: none; }
  .grade-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
