/* Design pass (Nov 2026): one accent (our purple), a condensed athletic display face
   for headings and numbers, ruled section headers, and icon tiles. Loaded after each
   page's inline styles so it can override them. */
:root {
  --accent: #6C3CE1;
  --accent-2: #A487F7;      /* the accent as text on the dark background (readable contrast) */
  --accent-bg: rgba(108, 60, 225, 0.14);
  --purple: #6C3CE1;
  --display: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --text-3: #848D97;   /* passes contrast on the cards (QA, Nov 2026) */
}

/* Display type */
h1, h2, .brand-name, .display { font-family: var(--display); }
h1 {
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em;
  font-size: clamp(2.5rem, 12vw, 3.6rem); line-height: 0.95;
}
h1 .grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-2); }
.brand-name { font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; }
.logo { background: var(--accent); }

/* Section headers: uppercase with a hairline running to the edge */
section h2 {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.65rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.05;
}
section h2::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: var(--border); }
.cta-end h2 { justify-content: center; font-size: 1.5rem; }
.cta-end h2::after { display: none; }
section { border-top: 0; }
.eyebrow {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 10px;
}
.day { font-family: var(--display); font-size: 1.05rem !important; letter-spacing: 0.08em !important; }

/* One accent for actions and links */
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 1; filter: brightness(1.08); border-color: var(--accent); }
.tweet-foot a, .more a, .btn-note a, .links a, .help a, .sub a, .note a { color: var(--accent-2) !important; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.jump a:hover, .tile:hover { border-color: var(--accent); }
.pill { border-color: rgba(164, 135, 247, 0.35); color: var(--accent-2); background: var(--accent-bg); }
.tag { border-color: rgba(164, 135, 247, 0.35); color: var(--accent-2); }
.badge { background: var(--accent); }

/* Numbers in the display face */
.pick-gain, .gain, .rfp, .stat b, .inj li span:last-child {
  font-family: var(--display); font-weight: 800; letter-spacing: 0.01em;
}
.pick-gain, .gain, .inj li span:last-child { color: var(--accent-2); font-size: 1.5rem; line-height: 1; }
.inj li span:last-child { font-size: 1.15rem; }
.pick-gain small, .rfp small { font-family: 'Inter', sans-serif; }
.rfp { font-size: 1.5rem; line-height: 1; }
.stat b { font-size: 2.6rem; color: var(--accent-2); }
.pick-name, .rname { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.01em; }

/* Icon tiles (homepage) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 112px; padding: 14px 8px; border-radius: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, transform .15s;
}
.tile:active { transform: scale(.98); }
.tile svg { width: 28px; height: 28px; color: var(--accent-2); }
.tile span {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.follow-bar { margin-top: 10px; width: 100%; font-family: var(--display); font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; }

/* Homepage: 5 alerts on a phone, 6 on wider screens so the grid fills evenly */
@media (max-width: 599px) { #feed > .tweet:nth-child(6) { display: none; } }

/* ── Wider screens ─────────────────────────────────────────────
   Phones keep the single column. From tablet width the container
   grows and lists become grids; from laptop width the homepage hero
   splits and How it works gets a sidebar. Paragraphs keep a readable
   line length at every width. */
.lede, .sub, .how p, .help p, .help li, .legal p, .legal li { max-width: 44rem; }

@media (min-width: 600px) {
  .wrap { max-width: 920px; padding: 0 24px; }
  #feed, #list .feed, .picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
  #list .feed > .day, .picks > li:not(.pick) { grid-column: 1 / -1; }
  #thread { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 28px; align-items: start; }
  #injuries { columns: 2; column-gap: 28px; }
  #injuries details { break-inside: avoid; }
  footer nav { gap: 8px 28px; }
}

@media (min-width: 1000px) {
  .wrap { max-width: 1180px; padding: 0 40px; }
  header { padding-top: 28px; }
  .hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 64px 0 48px; }
  .hero-split h1 { font-size: 4.6rem; }
  .hero-split .tiles { margin-top: 0; }
  .tile { min-height: 132px; }
  h1 { font-size: 4rem; }
  #injuries { columns: 3; }
  .help-layout { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }
  .toc { position: sticky; top: 24px; padding-top: 28px; }
  .toc .jump { flex-direction: column; align-items: stretch; margin-top: 0; }
  .toc .jump a { border-radius: 10px; padding: 10px 14px; font-size: 0.95rem; }
  .cta-end { padding: 48px 0; }
}

/* ── Professional pass (layout + components) ───────────────── */

/* Header: brand, main nav and Follow on wider screens; brand + Home on phones */
.site-header { display: flex; align-items: center; gap: 28px; padding: 20px 0 8px; }
.site-header .back { margin-left: auto; }
.topnav, .nav-follow { display: none; }
@media (min-width: 760px) {
  .site-header { padding: 22px 0 10px; border-bottom: 1px solid var(--border); }
  .topnav { display: flex; gap: 4px; margin-left: 8px; }
  .topnav a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
  .topnav a:hover { color: var(--text); background: var(--surface); }
  .topnav a[aria-current="page"] { color: var(--text); background: var(--accent-bg); }
  .nav-follow { display: inline-flex; margin-left: auto; align-items: center; padding: 9px 16px; border-radius: 10px;
    background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
  .nav-follow:hover { filter: brightness(1.08); }
  .site-header .back { display: none; }
}

/* Section header with a "See all" link on the right */
.sec-head { display: flex; align-items: center; gap: 16px; }
.sec-head h2 { flex: 1; }
.sec-link { color: var(--accent-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
@media (min-width: 600px) { .see-all { display: none !important; } }

/* Alert cards: structured, equal height in the grid */
.acard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.ac-top { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.ac-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.ac-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.k-out .ac-status i { background: #F85149; }
.k-gtd .ac-status i { background: #D29922; }
.k-back .ac-status i { background: #3FB950; }
.ac-time { margin-left: auto; color: var(--text-3); white-space: nowrap; }
.ac-player { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.ac-name { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.05; }
.ac-team { color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
.ac-fp { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; color: var(--text); }
.ac-fp small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--text-2); }
.ac-news { color: var(--text-2); font-size: 0.93rem; margin-top: 8px; }
.ac-picks { list-style: none; margin-top: 12px; border-top: 1px solid var(--border); }
.ac-picks li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.ac-pn { font-weight: 600; }
.ac-picks .pill { margin-top: 0; font-size: 0.7rem; white-space: nowrap; }
.ac-pd { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--accent-2); }
.ac-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--text-3); }
.ac-foot a { color: var(--accent-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
#feed, #list .feed { align-items: stretch !important; }

/* Homepage tiles: three across on phones; a list with descriptions on laptops */
.tile-text { display: flex; flex-direction: column; gap: 4px; }
.tile-desc { display: none; }
@media (min-width: 1000px) {
  .hero-split { align-items: center; padding: 56px 0 40px; }
  .hero-split h1 { font-size: 4.2rem; }
  .hero-split .tiles { grid-template-columns: 1fr; gap: 10px; }
  .hero-split .tile { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 0; padding: 16px 18px; gap: 16px; }
  .hero-split .tile svg { width: 26px; height: 26px; flex: none; }
  .hero-split .tile::after { content: "→"; margin-left: auto; color: var(--text-3); font-size: 1.1rem; }
  .hero-split .tile:hover::after { color: var(--accent-2); }
  .tile-desc { display: block; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--text-2); text-transform: none; letter-spacing: 0; font-weight: 400; }
  .tile-text > span { font-size: 1.2rem; }
}

/* Buttons that shouldn't stretch edge to edge on wide screens */
@media (min-width: 600px) {
  .cta-end .btn, #more { max-width: 380px; margin-left: auto; margin-right: auto; }
  #thread { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) {
  #on-x { max-width: 380px; margin-left: auto; margin-right: auto; }
  .picks { align-items: stretch !important; }
  .pick { display: flex; flex-direction: column; }
  .pick .pill { align-self: flex-start; margin-top: auto; padding-top: 1px; }
  .pick-why { margin-bottom: 8px; }
}
@media (min-width: 1000px) {
  .legend { grid-template-columns: repeat(3, 1fr); }
}

/* Homepage value points */
.values { display: grid; gap: 10px; padding: 8px 0 20px; }
.value { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.value svg { width: 22px; height: 22px; color: var(--accent-2); flex: none; margin-top: 2px; }
.value b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
.value span { display: block; color: var(--text-2); font-size: 0.9rem; margin-top: 2px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* Pickups page: tag key inline */
.tagkey { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--text-2); font-size: 0.85rem; }
.tagkey b { color: var(--text); font-weight: 600; }

/* ── QA fixes (Nov 2026) ── */
/* Phones: the main menu as a scrollable row under the logo (it was hidden, leaving only "Home") */
@media (max-width: 759px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .site-header .back { display: none; }
  .topnav { display: flex; order: 3; width: 100%; gap: 4px; overflow-x: auto; margin: 0 -8px; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
  .topnav a[aria-current="page"] { color: var(--text); background: var(--accent-bg); }
}
/* Bigger tap targets */
.ac-foot a, .sec-link { display: inline-block; padding: 6px 0; margin: -6px 0; }
footer nav a { display: inline-block; padding: 6px 0; }
/* Links inside running text are underlined */
.legal p a, .legal li a { text-decoration: underline; text-underline-offset: 2px; }
.legal .updated { color: var(--text-2); }

/* Alerts page: filters, search and sort */
.feed-controls { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.feed-controls .chips { margin-top: 0; }
.chip span { margin-left: 4px; font-weight: 500; }
.feed-tools { display: flex; gap: 10px; }
.feed-tools input, .feed-tools select {
  font: inherit; font-size: 0.95rem; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
.feed-tools input { flex: 1; min-width: 0; }
.feed-tools input:focus, .feed-tools select:focus { outline: none; border-color: var(--accent); }
.feed-tools select { flex: none; }
@media (min-width: 760px) {
  .feed-controls { flex-direction: row; align-items: center; justify-content: space-between; }
  .feed-tools input { width: 260px; flex: none; }
}
.k-exit .ac-status i { background: #F85149; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }

/* My players: star toggle */
.star { flex: none; background: none; border: 0; padding: 4px; margin: -4px 2px -4px -4px; cursor: pointer; font-size: 1.15rem; line-height: 1;
  color: var(--text-3); min-width: 30px; min-height: 30px; border-radius: 8px; }
.star:hover { color: var(--accent-2); background: var(--accent-bg); }
.star[aria-pressed="true"] { color: #F2C14E; }
.ac-player { align-items: center; }
.ac-picks .star { font-size: 0.95rem; min-width: 26px; min-height: 26px; }

/* Ownership + small notes */
.owned { color: var(--text-3); font-size: 0.8rem; white-space: nowrap; }
.note-scoring { color: var(--text-3); font-size: 0.82rem; margin-top: 8px; max-width: 44rem; }

/* Homepage: your players, search */
.mine { margin-top: 4px; }
.mine-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.mine-list li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.mine-list .who { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.mine-list .what { color: var(--text-2); font-size: 0.88rem; }
.mine-list .when { margin-left: auto; color: var(--text-3); font-size: 0.8rem; white-space: nowrap; }
.mine-list .s-out { color: #FF7B72; font-weight: 700; } .mine-list .s-gtd { color: #E3B341; font-weight: 700; } .mine-list .s-ok { color: #56D364; font-weight: 700; }
@media (min-width: 760px) { .mine-list { grid-template-columns: repeat(2, 1fr); } }
.hero-search { display: flex; gap: 8px; margin-top: 18px; max-width: 30rem; }
.hero-search input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.hero-search input:focus { outline: none; border-color: var(--accent); }
.hero-search button { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 0 16px; min-height: 44px; cursor: pointer; }

/* Tonight */
.games { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 760px) { .games { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.game { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.game-head { display: flex; align-items: center; gap: 10px; }
.game-teams { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: 0.01em; }
.game-time { margin-left: auto; color: var(--text-2); font-size: 0.85rem; white-space: nowrap; }
.game-state { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
.game-state.live { background: rgba(248,81,73,.15); color: #FF7B72; } .game-state.final { background: var(--surface); color: var(--text-2); }
.game-players { list-style: none; margin-top: 10px; }
.game-players > li { border-top: 1px solid var(--border); padding: 10px 0; }
.gp-top { display: flex; align-items: center; gap: 8px; }
.gp-name { font-weight: 700; }
.gp-team { color: var(--text-2); font-size: 0.8rem; }
.gp-status { font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.gp-status.OUT { color: #FF7B72; } .gp-status.DOUBTFUL { color: #FFA657; } .gp-status.QUESTIONABLE { color: #E3B341; }
.gp-fp { margin-left: auto; font-family: var(--display); font-weight: 700; color: var(--text); white-space: nowrap; }
.gp-fp small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.7rem; color: var(--text-2); }
.gp-picks { color: var(--text-2); font-size: 0.85rem; margin-top: 4px; padding-left: 34px; }
.gp-picks b { color: var(--text); font-weight: 600; } .gp-picks .d { color: var(--accent-2); font-weight: 700; }
.game-quiet { color: var(--text-3); font-size: 0.88rem; margin-top: 10px; }
.mine-row { background: rgba(242,193,78,.06); }

/* Pickups: losing minutes */
.losing { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 760px) { .losing { grid-template-columns: repeat(2, 1fr); } }
.losing > li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.losing .back-who { font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.losing .back-when { color: var(--text-2); font-size: 0.85rem; }
.losing ul { list-style: none; margin-top: 8px; }
.losing ul li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 0.93rem; }
.losing .minus { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #FF7B72; }
.tiles { grid-template-columns: repeat(2, 1fr); }
.tiles .tile { min-height: 96px; }
