/* ============================================================
   de-pages.css - the navy layer for the server-rendered content
   pages on fantasy.draftedge.com:

     /draft-rankings/        (Bootstrap + Velzon app.min.css + jQuery)
     /rookie-rankings/       (Bootstrap + Velzon app.min.css)
     /nfl-schedule-strength/ (no framework at all)

   Loaded LAST on each of those pages so it wins over the framework
   without !important, except where it has to out-shout a Bootstrap
   utility that ships !important of its own (those are marked).

   PALETTE + SHAPE TOKENS come from de-header.css :root, which all three
   pages already load. There are NO colour literals in this file.

   ELEVATION RUNS LIGHTER. --bg-deep is DARKER than the page: it is the
   footer plinth, a table-header strip, an input well. Never a card.
   Cards lift with --bg-card, cards-on-cards with --bg-card-hover.

   GOLD IS MONEY ONLY: the Draft Kit buy buttons and the unlock panel.
   Never decorative. Green survives only as --pos.

   STAT COLOUR IS TAILS-ONLY: good tail --pos, bad tail --neg, the
   middle stays neutral. The rankings page's JS still emits Bootstrap's
   four-step .text-info/.text-success/.text-warning/.text-danger; the
   mapping at the bottom of this file collapses that rainbow to the two
   tails without touching a line of JS or a single number.
   ============================================================ */

/* ============================================================
   PAGE SHELL
   ============================================================ */

/* Border-box reset. REQUIRED here, not optional: these pages do NOT load
   home-v2.css, which is where the site's `*{box-sizing:border-box}` lives.
   Without it every `width:100%` element that also carries padding measures
   wider than its container. Measured live 2026-08-14: .de-wrap computed to
   411px inside a 390px viewport, and both /rookie-rankings/ and
   /nfl-schedule-strength/ scrolled horizontally by 36px on a phone. Scoped to
   .de-navy so it cannot reach the legacy pages that have not been converted. */
body.de-navy,
body.de-navy *,
body.de-navy *::before,
body.de-navy *::after { box-sizing: border-box; }

body.de-navy {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.de-navy h1, .de-navy h2, .de-navy h3, .de-navy h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.de-navy img { max-width: 100%; }
.de-navy a:focus-visible,
.de-navy button:focus-visible,
.de-navy select:focus-visible,
.de-navy input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The Velzon shell painted this pure black. */
.de-navy .main-content { background: var(--bg-dark); padding-bottom: 64px; }

/* Velzon paints a fixed body::before wash keyed to [data-layout-mode]; the
   old inline block was overriding it with a literal. Neutralised here so the
   page background is the token and nothing else. */
.de-navy::before { background-color: var(--bg-dark) !important; background-image: none !important; }

/* Bootstrap/Velzon background utilities that the card templates still emit.
   All three ship !important, so these have to as well. */
.de-navy .bg-body  { background-color: var(--bg-card) !important; }
.de-navy .bg-light { background-color: var(--bg-card) !important; }
.de-navy .bg-soft-dark { background-color: var(--bg-card-hover) !important; }

/* /draft-rankings/ unlock panel wrapper: an overflow guard only, so the
   page itself never scrolls sideways. */
.de-navy .dr-unlock-wrap { margin-top: 34px; }
.de-navy .dr-unlock-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* One page width for all three pages, matching the landing page's .wrap.
   Previously /assets/css/home.css (a legacy landing sheet these pages had
   no other use for) was silently setting this to 1200px. */
.de-navy .container,
.de-navy .de-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.de-navy .de-wrap { position: relative; }

.de-navy .de-lede {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 68ch;
  margin: 0 0 8px;
  font-size: 16px;
}
.de-navy .de-stamp {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 28px;
}
.de-navy .de-note {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 74ch;
  margin: 26px 0 0;
}

/* Body links: the underline is the affordance, no rogue hue. */
.de-navy .de-links,
.de-navy .de-body-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border-color);
  text-underline-offset: 3px;
  transition: color var(--t), text-decoration-color var(--t);
}
.de-navy .de-body-link:hover { color: var(--accent-hover); text-decoration-color: var(--accent-hover); }
.de-navy .de-links {
  display: block; color: var(--text-secondary); font-weight: 400;
  text-decoration: none; font-size: 14px; line-height: 1.8;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline);
}
.de-navy .de-links a {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--border-color); text-underline-offset: 3px;
}
.de-navy .de-links a:hover { color: var(--accent-hover); text-decoration-color: var(--accent-hover); }

/* ============================================================
   PROMO STRIP
   promo-strip.php ships its own inline <style> in the BODY, so it always
   comes after this file. `body .de-promo-strip` (0,1,1) beats its
   `.de-promo-strip` (0,1,0) on specificity regardless of order, and
   loses to the landing page's `.de-home .de-promo-strip` (0,2,0), so the
   homepage is untouched.
   Orange, not gold: gold belongs to the buy button, and two golds side
   by side fight each other.
   ============================================================ */
body .de-promo-strip {
  background: var(--promo);
  color: var(--on-promo);
  font-family: var(--font-body);
}
body .de-promo-strip:hover { color: var(--on-promo); }
body .de-promo-cd { background: var(--tint-accent); }

/* ============================================================
   HERO
   Was a photographic band (background.webp) with heavy text shadows,
   which is why these pages read as a different product. Same navy glow
   the landing hero uses. Copy and links are untouched.
   ============================================================ */
.de-navy .de-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--hairline);
}
.de-navy .de-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glow-navy);
  pointer-events: none;
}
.de-navy .de-hero-in { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.de-navy .de-hero h1 {
  font-size: clamp(31px, 4.6vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 16px;
  max-width: 20ch;
}
.de-navy .de-hero-sub {
  color: var(--text-secondary);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  max-width: 58ch;
  margin: 0 0 24px;
}
.de-navy .de-hero-fine {
  color: var(--text-muted);
  font-size: 13px;
  margin: 16px 0 0;
  max-width: 58ch;
}
.de-navy .de-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Freshness pill: --warn dot on a hairline pill, the landing page's
   .hero-pill exactly. Never green, never gold. */
.de-navy .de-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; border-radius: var(--pill);
  border: 1px solid var(--border-color); background: var(--bg-card);
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  margin-right: 8px; white-space: nowrap;
}
.de-navy .de-pill::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--warn); flex: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.de-navy .de-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; white-space: nowrap; text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
}
/* GOLD = MONEY. Only the Draft Kit purchase wears it. */
.de-navy .de-btn-gold {
  background: var(--gold); color: var(--on-gold);
  font-weight: 700; box-shadow: var(--shadow-gold);
}
.de-navy .de-btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.de-navy .de-btn-ghost {
  background: transparent; color: var(--text-primary); border-color: var(--border-color);
}
.de-navy .de-btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ============================================================
   TABLES
   Framework-independent: the rankings board must not depend on
   .table-dark resolving correctly.
   ============================================================ */
.de-navy .de-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.de-navy table.de-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.de-navy table.de-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--text-muted);
  background: var(--bg-deep);          /* header strip: an honest inset */
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.de-navy table.de-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
}
.de-navy table.de-table tbody tr:last-child td { border-bottom: 0; }
.de-navy table.de-table tbody tr:hover td { background: var(--bg-card-hover); }
.de-navy table.de-table td strong,
.de-navy table.de-table .de-cell-strong { color: var(--text-primary); font-weight: 600; }
.de-navy table.de-table .de-cell-rank { color: var(--text-muted); width: 1%; white-space: nowrap; }
.de-navy table.de-table .de-cell-name { white-space: nowrap; }
.de-navy .de-cell-sub { color: var(--text-muted); font-size: 12px; margin-left: 6px; }

/* ============================================================
   SCHEDULE STRENGTH (/nfl-schedule-strength/)
   Tails-only badges: friendly schedule --pos, hard schedule --neg,
   the middle stays neutral rather than becoming a third colour.
   ============================================================ */
.de-navy .sos-badge {
  display: inline-block; min-width: 40px; text-align: center;
  padding: 3px 8px; border-radius: 6px;
  font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
}
.de-navy .sos-good { background: var(--tint-pos); color: var(--pos); }
.de-navy .sos-mid  { background: var(--tint-accent); color: var(--text-secondary); }
.de-navy .sos-hard { background: var(--tint-neg); color: var(--neg); }
.de-navy .sos-dash { color: var(--text-muted); }
.de-navy .sos-empty {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 18px 20px; color: var(--text-secondary);
}
.de-navy .sos-empty a {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--border-color); text-underline-offset: 3px;
}

/* ============================================================
   FILTER BAR (/draft-rankings/)
   Bootstrap .form-select / .form-control ship a light background and a
   data-URI chevron; both are replaced here.
   ============================================================ */
.de-navy .de-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 22px;
}
.de-navy .de-filter { min-width: 0; }
.de-navy .de-filter label,
.de-navy .form-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 6px;
}
.de-navy .form-select,
.de-navy .form-control {
  width: 100%;
  background-color: var(--bg-card);
  background-image: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color var(--t), background-color var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.de-navy .form-select {
  /* the chevron, drawn with borders so no image asset and no data URI */
  padding-right: 34px;
}
.de-navy .de-filter { position: relative; }
.de-navy .de-filter::after {
  content: '';
  position: absolute; right: 14px; bottom: 17px;
  width: 7px; height: 7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.de-navy .de-filter.de-filter-text::after { display: none; }
.de-navy .form-control::placeholder { color: var(--text-muted); }
.de-navy .form-select:focus,
.de-navy .form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--bg-card-hover);
  box-shadow: none;
}
.de-navy .form-select option { background: var(--bg-card); color: var(--text-primary); }

/* ============================================================
   NOTICE (the "Limited Access" bar)
   ============================================================ */
.de-navy .de-notice,
.de-navy .alert-warning {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--warn);
  border-radius: var(--radius);
  color: var(--text-secondary);
  padding: 14px 18px;
  font-size: 14.5px;
  margin: 0 0 22px;
}
.de-navy .de-notice a,
.de-navy .alert-warning a,
.de-navy .alert-link {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--border-color); text-underline-offset: 3px;
}
.de-navy .de-notice a:hover,
.de-navy .alert-warning a:hover { color: var(--accent-hover); }

/* ============================================================
   PLAYER CARDS (/draft-rankings/, rendered client-side)
   One structural device per level: the card carries the surface and a
   hairline, nothing inside it gets its own box.
   ============================================================ */
.de-navy .matchup-card,
.de-navy .card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: none;
  color: var(--text-secondary);
  transition: background var(--t), border-color var(--t);
}
.de-navy .matchup-card:hover,
.de-navy .card:hover { background: var(--bg-card-hover); border-color: var(--border-color); }
.de-navy .matchup-card hr { border-color: var(--hairline); opacity: 1; }
.de-navy .matchup-card h4,
.de-navy .table-title-page h4 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary);
  text-shadow: none;
}
/* Bootstrap's .text-dark ships !important, so this has to as well. */
.de-navy .matchup-card .team-position,
.de-navy .matchup-card .team-position.text-dark {
  color: var(--text-muted) !important;
  font-size: 13px;
  text-shadow: none;
}
.de-navy .matchup-card .fs-18 { font-size: 12px !important; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
/* Size stays where the template sets it (5.25rem inline); only the fit is ours. */
.de-navy .matchup-card .player-image { object-fit: contain; }

/* the two stat chips on the card front */
.de-navy .matchup-card .border,
.de-navy .matchup-card .border-body {
  background: var(--bg-deep);
  border: 1px solid var(--hairline) !important;
  border-radius: var(--radius);
  color: var(--text-secondary) !important;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.de-navy .matchup-card .bg-gradient {
  background: var(--bg-deep) !important;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 12.5px;
}
.de-navy .matchup-card i { color: var(--text-muted); }

/* stat tables inside a card: same language as .de-table, scoped so the
   client-rendered markup needs no class changes */
.de-navy .matchup-card .table {
  color: var(--text-secondary);
  background: transparent;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0;
}
.de-navy .matchup-card .table th {
  background: var(--bg-deep);
  color: var(--text-muted);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  border-top: 0;
}
.de-navy .matchup-card .table td {
  border-bottom: 1px solid var(--hairline);
  border-top: 0;
  color: var(--text-secondary);
}
.de-navy .matchup-card .table > :not(caption) > * > * { background-color: transparent; box-shadow: none; }
.de-navy .matchup-card .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--tint-accent); box-shadow: none; }
.de-navy .matchup-card .table-hover > tbody > tr:hover > * { background-color: var(--bg-card-hover); box-shadow: none; }
/* thead carries .bg-body / .table-light in the client templates, and both of
   those ship !important, so the header strip has to match them. */
.de-navy .matchup-card .table thead th,
.de-navy .matchup-card .table thead.bg-body th,
.de-navy .matchup-card .table thead.table-light th {
  background-color: var(--bg-deep) !important;
  color: var(--text-muted);
}

/* card face switcher along the bottom */
.de-navy .matchup-card .nav-item-card {
  background: var(--bg-deep) !important;
  color: var(--text-muted) !important;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  border-top: 1px solid var(--hairline);
  transition: background var(--t), color var(--t);
}
.de-navy .matchup-card .nav-item-card:hover { color: var(--text-primary) !important; opacity: 1; }
.de-navy .matchup-card .nav-item-card.bg-soft-dark {
  background: var(--bg-card-hover) !important;
  color: var(--text-primary) !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.de-navy .pagination { gap: 6px; }
.de-navy .page-link {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px; font-weight: 600;
  padding: 8px 14px;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.de-navy .page-link:hover {
  background: var(--bg-card-hover); color: var(--text-primary);
  border-color: var(--border-color);
}
.de-navy .page-link:focus { box-shadow: none; }
.de-navy .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* ============================================================
   UNLOCK PANEL (/draft-rankings/) - this one IS money, so it is gold.
   ============================================================ */
.de-navy .de-rank-unlock {
  margin: 8px 0 0;
  padding: 2.25rem 1.5rem;
  text-align: center;
  position: relative;
  background: var(--bg-card-hover);
  border: 1px solid var(--tint-gold-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.de-navy .de-rank-unlock::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--gold); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.de-navy .de-rank-unlock-kicker {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary); margin: 0 0 .45rem;
}
.de-navy .de-rank-unlock-sub {
  color: var(--text-secondary); margin: 0 auto 1.35rem;
  max-width: 40rem; line-height: 1.7; font-size: 14.5px;
}
.de-navy .de-rank-unlock-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--on-gold);
  font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow-gold);
  transition: background var(--t);
}
.de-navy .de-rank-unlock-btn:hover { background: var(--gold-hover); color: var(--on-gold); }
.de-navy .de-rank-unlock-note { margin: .8rem 0 0; font-size: .85rem; color: var(--text-muted); }
.de-navy .de-rank-unlock-code { color: var(--gold); font-weight: 700; }

/* Gated rows: presentation only, identical markup for users and crawlers. */
.de-navy .de-rank-locked td {
  filter: blur(5px);
  -webkit-user-select: none; user-select: none;
  pointer-events: none;
  color: var(--text-muted);
}
.de-navy .de-rank-locked td strong { color: var(--text-muted); }

/* ============================================================
   STAT COLOUR: collapse Bootstrap's four steps to two tails.
   The JS keeps emitting all four class names; only the paint changes,
   so no number and no rank ever moves.
     .text-info    (best)   -> --pos
     .text-success (good)   -> --pos
     .text-warning (middle) -> neutral
     .text-danger  (worst)  -> --neg
   Bootstrap ships these with !important, so these must match it.
   ============================================================ */
.de-navy .text-info,
.de-navy .text-success { color: var(--pos) !important; }
.de-navy .text-warning { color: var(--text-muted) !important; }
.de-navy .text-danger  { color: var(--neg) !important; }
.de-navy .text-muted   { color: var(--text-muted) !important; }
.de-navy .text-white   { color: var(--text-primary) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .de-navy .de-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .de-navy .de-hero { padding: 36px 0 30px; }
  .de-navy .de-hero-cta .de-btn { flex: 1 1 auto; }
  .de-navy .container,
  .de-navy .de-wrap,
  .de-navy .de-hero-in { padding-inline: 18px; }
  .de-navy table.de-table th { padding: 10px 12px; }
  .de-navy table.de-table td { padding: 10px 12px; }
}
@media (max-width: 575.98px) {
  .de-navy .de-filters { grid-template-columns: minmax(0, 1fr); }
  .de-navy .de-hide-sm { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .de-navy *, .de-navy *::before, .de-navy *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
