/* getmockpro.com shared stylesheet. docs/plans/web-redesign.md.
 *
 * ONE source for every page's look: the 5 Hermes page generators (via
 * ~/.hermes/scripts/page_shell.py) and, later, the share-page Functions.
 * Ships by RELEASE (web_deploy.py deploys origin/main web/), so a class must be
 * on main before any generator emits it. Adding classes is safe; renaming or
 * removing one breaks live pages until the generators follow.
 *
 * Tokens mirror the app: frontend/constants/colors.ts and positions.ts. Badge
 * text is a lighter tint of the app's position color so 11px labels pass
 * WCAG AA on the dark badge backgrounds.
 */

:root {
  --bg: #0B0B0B;
  --card: #121212;
  --card-line: #1F1F1F;
  --surface: #1A1A1A;
  --line: #2A2A2A;
  --text: #F2F2F2;
  --body: #d1d5db;
  --muted: #9ca3af;
  --green: #22c55e;
  --green-dark: #15803d;
  --green-tint: #0f2b1e;
  --up: #86efac;
  --down: #fca5a5;
  --radius: 16px;
  --pad-x: 40px;
  --max: 1120px;
  color-scheme: dark;
}
@media (max-width: 720px) { :root { --pad-x: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.55;
}
a { color: var(--green); }
a:hover { color: #4ade80; }
img { max-width: 100%; }
h1, h2, h3 { color: var(--text); margin: 0; letter-spacing: -0.3px; }
h1 { font-size: 46px; line-height: 1.1; font-weight: 800; letter-spacing: -0.8px; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
@media (max-width: 720px) { h1 { font-size: 31px; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Site header ---------- */
.site-header { border-bottom: 1px solid var(--card-line); background: var(--bg); }
.site-header .bar { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 24px; flex: 1; font-size: 14px; font-weight: 500; }
.nav a { color: var(--body); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 600; }
.btn-get {
  margin-left: auto; background: var(--green); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
.btn-get:hover { color: var(--bg); background: #4ade80; }
.nav-chips { display: none; }
@media (max-width: 720px) {
  .site-header .nav { display: none; }
  .nav-chips {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--pad-x) 12px;
    white-space: nowrap; font-size: 14px; font-weight: 500; scrollbar-width: none;
  }
  .nav-chips a { color: var(--body); text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
  .nav-chips a[aria-current="page"] { color: var(--bg); background: var(--text); border-color: var(--text); font-weight: 600; }
}

/* ---------- Hero ---------- */
.hero { background: #0f1f17; border-bottom: 1px solid #1a3326; }
.hero > .wrap { padding-top: 40px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.hero .crumbs { font-size: 13px; color: #a7c4b2; display: flex; gap: 8px; flex-wrap: wrap; }
.hero .crumbs a { color: inherit; }
.eyebrow { color: var(--up); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.lead { color: #dbe7df; font-size: 17px; max-width: 720px; }
.hero h1 { color: #FFFFFF; }
/* Team pages: the team color comes in as inline --team-bg (generator-picked, AA-checked). */
.hero--team { background: var(--team-bg, #0f1f17); border-bottom-color: rgba(255,255,255,0.12); }
.hero--team .crumbs, .hero--team .lead { color: rgba(255,255,255,0.85); }
@media (max-width: 720px) {
  .hero > .wrap { padding-top: 24px; padding-bottom: 26px; }
  .lead { font-size: 15px; }
}

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile b { color: #FFFFFF; font-size: 28px; font-weight: 800; line-height: 1.1; }
.tile span { color: rgba(255,255,255,0.82); font-size: 13px; line-height: 1.35; }
@media (max-width: 720px) {
  .tiles { gap: 8px; }
  .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 10px 12px; }
  .tile b { font-size: 22px; }
}

/* Every pick a team holds, by round (team pages). */
.pick-strip { overflow-x: auto; padding-bottom: 4px; }
.pick-strip .rounds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pick-strip .round { display: flex; flex-direction: column; gap: 6px; }
.pick-strip .round > span { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; }
.pk { border-radius: 10px; padding: 8px 10px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.14); }
.pk b { display: block; color: #FFFFFF; font-size: 16px; font-weight: 800; line-height: 1.2; }
.pk small { display: block; color: rgba(255,255,255,0.8); font-size: 11px; line-height: 1.3; min-height: 14px; }
.pk--first { background: var(--green); border-color: var(--green); }
.pk--first b, .pk--first small { color: var(--bg); }
.pk--gone { background: transparent; border-style: dashed; border-color: rgba(255,255,255,0.35); }
.pk--gone b { text-decoration: line-through; color: rgba(255,255,255,0.8); }
@media (max-width: 720px) { .pick-strip .rounds { grid-template-columns: repeat(7, minmax(84px, 1fr)); } }

/* ---------- Layout: main + right rail (rail stacks under main on phones) ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 44px; padding-bottom: 64px; }
.layout > main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.layout > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.section { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; flex-direction: column; gap: 4px; }
.section-head p { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .layout { padding-top: 28px; padding-bottom: 40px; } }

.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); }
.card--pad { padding: 24px; }
@media (max-width: 720px) { .card--pad { padding: 18px; } }
.note { color: var(--muted); font-size: 13px; }
.fine { border-top: 1px solid var(--card-line); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.fine h2 { font-size: 16px; }
.fine p { color: var(--muted); font-size: 14px; }

/* ---------- Rows: picks, board ranks (wrap on phones, never clip) ---------- */
.rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.row {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 8px;
  padding: 12px 20px; border-top: 1px solid var(--card-line);
}
.row:first-child { border-top: 0; }
.row--hl { background: var(--green-tint); }
.row .rk { width: 30px; color: var(--text); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.row .who { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; }
.row .who a, .row .who b { color: var(--text); font-weight: 600; text-decoration: none; }
.row .who a:hover { text-decoration: underline; }
.row .who span { color: var(--muted); font-size: 13px; }
.row .avg { width: 44px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.row .mv { width: 40px; text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); }
.row .mv.up { color: var(--up); }
.row .mv.down { color: var(--down); }
.row .tm { width: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.row .tm small { color: var(--muted); font-size: 11px; line-height: 1.2; }
.row .range { flex: 0 0 200px; }
@media (max-width: 720px) {
  .row { padding: 12px 14px; }
  .row .range { flex-basis: calc(100% - 44px); margin-left: 44px; }
  .row--pick .range { flex-basis: calc(100% - 92px); margin-left: 92px; }
}

/* Range bar: board-rank spread. Generator sets left/width (%) inline on .seg and left on .dot. */
.range { display: flex; flex-direction: column; gap: 3px; }
.range .bar { position: relative; height: 10px; }
.range .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: var(--line); }
.range .seg { position: absolute; top: 3px; height: 4px; border-radius: 2px; background: var(--green-dark); min-width: 2px; }
.range .dot { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 4px; background: var(--text); }
.range small { color: var(--muted); font-size: 11px; }
.range--lg .bar { height: 12px; }
.range--lg .bar::before { top: 4px; height: 4px; border-radius: 2px; }
.range--lg .seg { top: 2px; height: 8px; border-radius: 4px; }
.range--lg .dot { top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; }
.range--lg .ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* Dot plot: one dot per board (player pages). */
.dotplot { position: relative; height: 92px; }
.dotplot .band { position: absolute; top: 0; bottom: 18px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.dotplot .band:nth-child(even) { background: rgba(34,197,94,0.07); }
.dotplot .band span { position: absolute; top: 6px; left: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.dotplot .axis { position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: var(--line); }
.dotplot .avgline { position: absolute; top: 18px; bottom: 18px; width: 2px; margin-left: -1px; background: var(--text); }
.dotplot .pt { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; background: var(--green); border: 2px solid var(--card); }
.dotplot .tick { position: absolute; bottom: 0; color: var(--muted); font-size: 11px; transform: translateX(-50%); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }

/* ---------- Badges and chips ---------- */
.pos { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; min-width: 30px; text-align: center; background: #2d2f33; color: #d1d5db; }
.pos-QB { background: #3d1c1c; color: #fca5a5; }
.pos-RB, .pos-FB { background: #1a3330; color: #5eead4; }
.pos-WR { background: #1c2d4d; color: #93c5fd; }
.pos-TE { background: #2a1f4d; color: #c4b5fd; }
.pos-OT, .pos-OG, .pos-OL, .pos-IOL, .pos-C { background: #3d3010; color: #fde047; }
.pos-EDGE { background: #3d1a2e; color: #f9a8d4; }
.pos-DL, .pos-DT, .pos-IDL, .pos-DE, .pos-NT { background: #3d2510; color: #fdba74; }
.pos-LB, .pos-ILB, .pos-OLB { background: #1a3326; color: #86efac; }
.pos-CB, .pos-S, .pos-FS, .pos-SS, .pos-DB { background: #152e3d; color: #7dd3fc; }

/* Team chip: background/color set inline by the generator (contrast-checked). */
.team-chip { display: inline-block; width: 44px; text-align: center; font-weight: 800; font-size: 11px; padding: 4px 0; border-radius: 6px; border: 1px solid rgba(255,255,255,0.14); background: #2A2A2A; color: #FFFFFF; text-decoration: none; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.team-grid .team-chip { width: auto; padding: 10px 0; font-size: 12px; border-radius: 8px; }

.pill-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links a { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--card-line); border-radius: 999px; padding: 8px 14px 8px 8px; color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.source-chips a { color: var(--body); text-decoration: none; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; }
.source-chips a:hover { color: var(--text); border-color: var(--muted); }

/* Position filter (big board). Works without JS: every row is in the HTML; site.js hides. */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filters button { flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 999px; cursor: pointer; background: var(--card); color: var(--body); border: 1px solid var(--line); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters:not(.ready) { display: none; }
.row[hidden] { display: none; }

/* Side lists (division, nearby, movers). */
.side-list { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.side-list h2 { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding-bottom: 6px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--card-line); text-decoration: none; color: var(--text); font-size: 14px; font-weight: 500; }
.side-list a > :nth-child(2) { flex: 1; min-width: 0; }
.side-list .meta { color: var(--muted); font-size: 13px; font-weight: 400; }
.side-links { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; font-size: 14px; }
.side-links a { text-decoration: none; }

/* ---------- App CTA ---------- */
.cta-card { overflow: hidden; display: flex; flex-direction: column; border-radius: 18px; }
.cta-card .shot { background: var(--green-tint); padding: 22px 22px 0; height: 220px; overflow: hidden; display: flex; justify-content: center; }
.cta-card .shot img { width: 180px; align-self: flex-start; border-radius: 18px 18px 0 0; border: 1px solid var(--line); }
.cta-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
.cta-card h2 { font-size: 19px; line-height: 1.3; }
.cta-card p { font-size: 14px; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stores a { background: var(--text); color: var(--bg); text-decoration: none; font-weight: 700; font-size: 13px; padding: 11px 10px; border-radius: 10px; text-align: center; }
.stores a:hover { background: #FFFFFF; color: var(--bg); }
/* Phones: the rail card is replaced by an inline card placed in the main column. */
.cta-inline { display: none; }
@media (max-width: 720px) {
  .layout > aside .cta-card { display: none; }
  .cta-inline { display: flex; gap: 16px; align-items: center; padding: 20px; }
  .cta-inline img { width: 84px; height: 150px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); }
  .cta-inline > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .cta-inline h2 { font-size: 17px; line-height: 1.3; }
  .cta-inline p { font-size: 14px; }
  .cta-inline .btn-get { margin: 0; text-align: center; padding: 12px 14px; }
}

/* Sticky bottom bar, phones only, dismissible (site.js remembers it). */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    align-items: center; gap: 10px; background: var(--card); border-top: 1px solid var(--line);
    padding: 10px 12px calc(14px + env(safe-area-inset-bottom)) 16px;
  }
  .sticky-cta[hidden] { display: none; }
  .sticky-cta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .sticky-cta b { color: var(--text); font-size: 14px; }
  .sticky-cta span { color: var(--muted); font-size: 12px; }
  .sticky-cta .btn-get { margin: 0; padding: 12px 14px; }
  .sticky-cta button { width: 44px; height: 44px; background: transparent; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
  body.has-sticky { padding-bottom: 76px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--card-line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 14px; }
.site-footer nav a { color: var(--body); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { color: var(--muted); font-size: 13px; }

/* Plain tables that remain (fallback): scroll inside their box, never the page. */
.table-wrap { overflow-x: auto; }
