/*
 * The public website's theme ("SDSeedPoints"): the logo kit's colors and
 * fonts (static/brand/README.txt) on a newspaper sports page. Loaded after style.css on the public
 * pages only (templates/public/base.html); the admin app keeps style.css.
 *
 * Square everything: no gradients, shadows or rounded corners. Gold is
 * only ever a background or a rule, never text on white. Every text
 * color here is 4.5:1 or better on the background it sits on.
 */

:root, html[data-theme] {
  /* The palette: the logo kit's (static/brand/README.txt) */
  --header: #14233D;  /* the top bar (the logo sits on it) */
  --navy: #0B2A5B;    /* selected buttons, table top rule, host line */
  --sky: var(--navy); /* links and kicker labels: the kit's navy */
  --gold: #F7C52B;    /* the kit's yellow: active-tab underline, the dropdown's rule -- never text on white */
  --ink: #141414;     /* body text, rules */
  --paper: #FFFFFF;   /* page background */
  --muted: #555555;   /* secondary text */
  --host: #E3E8F1;    /* rows that host a first-round game (a light tint of the navy) */
  --zebra: #F5F5F3;   /* even-row stripe */
  --rule: #E4E2DC;    /* row dividers */
  --up: #1F6F43;      /* ▲ seed rise */
  --down: #B5121B;    /* ▼ seed drop */

  /* style.css's names, pointed at the palette */
  --bg: var(--paper);
  --surface: var(--paper);
  --surface-alt: var(--zebra);
  --border: var(--ink);
  --border-soft: var(--rule);
  --border-muted: var(--rule);
  --text: var(--ink);
  --text-2: var(--ink);
  --muted-2: var(--muted);
  --faint: var(--muted);
  --faint-2: var(--muted);
  --fainter: var(--muted);
  --accent: var(--sky);
  --accent-bg: var(--navy);
  --accent-bg-hover: var(--navy);
  --on-accent: var(--paper);
  --accent-soft: var(--paper);
  --accent-soft-2: var(--zebra);
  --accent-border: var(--ink);
  --secondary-bg: var(--paper);
  --secondary-bg-hover: var(--zebra);
  --disabled-bg: var(--rule);
  --hover: var(--zebra);
  --hover-2: var(--zebra);
  --row-focus: var(--host);
  --win-bg: var(--navy);
  --win-text: var(--paper);
  --win-meta: var(--paper);
  --good: var(--up);
  --bad: var(--down);
  --warn: var(--ink);
  --warn-bg: var(--zebra);
  --warn-bg-soft: var(--zebra);
  --warn-text: var(--ink);
  --warn-text-2: var(--ink);
  --ok-bg: var(--host);
  --ok-text: var(--ink);
  --err-bg: var(--zebra);
  --err-text: var(--down);

  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;   /* the kit's fonts */
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

/* ---- Square, flat, no effects ---------------------------------------------------- */
.pp *, .pp *::before, .pp *::after { border-radius: 0 !important; box-shadow: none !important; text-shadow: none !important; }

/* ---- Page ------------------------------------------------------------------------ */
body.pp {
  max-width: none; margin: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.45;
}
.pp main, .pp > .notice, .pp .site-footer {
  max-width: 1200px; margin-left: auto; margin-right: auto;
  padding-left: 16px; padding-right: 16px; box-sizing: border-box;
}
.pp main { padding-top: 1.25rem; }
.pp a { color: var(--sky); }
.pp :focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pp h1, .pp h2, .pp h3 {
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--ink); line-height: 1.1;
}
.pp h1 { font-size: 2.1rem; font-weight: 700; margin: 0; }
.pp h2 { font-size: 1.25rem; }
.pp h3 { font-size: 1rem; }
.pp .hint, .pp .st-asof, .pp .tm-count, .pp .wi-intro, .pp .br-intro { color: var(--muted); }

/* The kicker above each page title: sport and season. */
.pp-kicker {
  margin: 0 0 0.2rem; font-family: var(--head); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--sky);
}

/* A 3px double rule under each page's title row. */
.pp main > h1, .pp .st-head, .pp .wi-head, .pp .br-head, .pp .tdp-head {
  border-bottom: 3px double var(--ink); padding-bottom: 0.6rem; margin-bottom: 1rem;
}
.pp .st-head, .pp .br-head, .pp .wi-head { align-items: flex-end; }

/* ---- Masthead ------------------------------------------------------------------------ */
.pp-bar {
  max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  display: flex; align-items: stretch; gap: 0 1.5rem; flex-wrap: wrap;
}
/* The logo (static/brand/logo/sdseedpoints-logo.svg: the gold SD state badge
   and "SeedPoints" in white, made for a dark bar). */
.pp-logo { display: inline-flex; align-items: center; padding: 0.7rem 0; text-decoration: none; }
.pp-logo img { display: block; height: 32px; width: auto; }
.pp-sports { display: flex; align-items: stretch; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.pp-sports::-webkit-scrollbar { display: none; }
.pp-sports a {
  display: flex; align-items: center; padding: 0 1rem; min-height: 48px; box-sizing: border-box;
  color: var(--paper) !important; text-decoration: none; white-space: nowrap;
  font-family: var(--head); font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 4px solid transparent;
}
.pp-sports a:hover { text-decoration: underline; }
.pp-sports a.here { background: var(--paper); color: var(--navy) !important; border-bottom-color: var(--gold); }

/* This sport's pages, under the bar. */
.pp-pages {
  max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box;
  display: flex; gap: 0 1.4rem; overflow-x: auto; scrollbar-width: none;
  background: var(--paper);
}
.pp-pages::-webkit-scrollbar { display: none; }
.pp-pages a {
  display: flex; align-items: center; min-height: 44px; box-sizing: border-box; white-space: nowrap;
  color: var(--ink); text-decoration: none; border-bottom: 4px solid transparent;
  font-family: var(--head); font-weight: 500; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.pp-pages a:hover { color: var(--navy); text-decoration: underline; }
.pp-pages a.here { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.pp-pages .pp-support { margin-left: auto; color: var(--sky); }
/* The header bar runs the full width (its contents line up with the page);
   the page nav sits on white under it. */
.pp-head { background: var(--paper); border-bottom: 1px solid var(--ink); }
.pp-bar { background: var(--header); max-width: none; padding: 0 max(16px, calc((100% - 1200px) / 2 + 16px)); }

/* ---- Notices --------------------------------------------------------------------- */
.pp .notice { border: 0; border-left: 4px solid var(--navy); background: var(--host); color: var(--ink); margin-top: 1rem; }
.pp .notice-rules { border-left-color: var(--ink); background: var(--zebra); }
.pp .notice a { color: var(--navy); }

/* ---- Buttons ----------------------------------------------------------------------- */
.pp button, .pp .pub-button {
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--navy); color: var(--paper); border: 2px solid var(--navy); min-height: 40px;
}
.pp button:hover, .pp .pub-button:hover { background: var(--navy); text-decoration: underline; }
.pp button.secondary { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.pp button:disabled { opacity: 0.45; text-decoration: none; }
.pp .pub-button { display: inline-flex; align-items: center; padding: 0.45rem 1rem; text-decoration: none; }

/* Class tabs: square, white with an ink border; the selected one navy. */
.pp .wi-tab {
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font-family: var(--head); font-weight: 600; font-size: 0.9rem; min-height: 44px;
}
.pp .wi-tab:hover { background: var(--zebra); text-decoration: none; }
.pp .wi-tab.active { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pp .wi-tabs { gap: 6px; }

/* The Region dropdown: square, ink border, a plain chevron (no gradient). */
.pp .region-pick select, .pp select {
  border: 2px solid var(--ink); background-color: var(--paper); color: var(--ink);
  font-family: var(--body); font-weight: 600; min-height: 44px;
}
.pp .region-pick select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23141414'/%3E%3C/svg%3E");
  background-position: right 0.75rem center; background-size: 10px 6px; background-repeat: no-repeat;
}
.pp .region-pick select:hover { background-color: var(--zebra); }

/* ---- Standings tables (compact) --------------------------------------------------- */
.pp .pp-table {
  width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0;
  font-variant-numeric: tabular-nums; border: 0;
}
.pp .pp-table thead th {
  display: table-cell; font-family: var(--body); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); background: var(--paper); text-align: left;
  border: 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--ink);
  padding: 0.4rem 0.4rem; white-space: nowrap;
}
.pp .pp-table tbody td {
  display: table-cell; height: 34px; box-sizing: border-box; padding: 0 0.4rem;
  border: 0; border-bottom: 1px solid var(--rule); background: var(--paper);
  font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp .pp-table tbody tr:nth-child(even) td { background: var(--zebra); }
.pp .pp-table tbody tr.host td { background: var(--host); }
.pp .pp-table tbody tr.host-line td { border-bottom: 2px solid var(--navy); }
.pp .pp-table tbody tr.cut-line td, .pp .pp-table tbody tr.region-cut td { border-bottom: 1px solid var(--ink) !important; }
.pp .pp-table tbody tr.host-line.cut-line td { border-bottom: 2px solid var(--navy) !important; }
.pp .pp-table .num { text-align: right; }
.pp .pp-table .seed { font-family: var(--head); font-weight: 600; font-size: 17px; text-align: center; padding: 0; }
.pp .pp-table th.seed { font-family: var(--body); font-size: 11px; }
.pp .pp-table td.team { font-size: 15px; font-weight: 600; }
.pp .pp-table td.team a { color: var(--ink); text-decoration: none; }
.pp .pp-table td.team a:hover { color: var(--navy); text-decoration: underline; }
.pp .pp-table td.move { font-weight: 700; color: var(--muted); }
.pp .pp-table td.move.up { color: var(--up); }
.pp .pp-table td.move.down { color: var(--down); }
.pp .pp-table tr.focus td { font-weight: 700; box-shadow: none; }
.pp .pp-table tr.focus td.team a { text-decoration: underline; }
.pp .pp-table tr.non-playoff td, .pp .pp-table tr.non-playoff td.team a { color: var(--muted); }
.pp .pp-table tbody tr[hidden] { display: none; }
.pp-legend { margin: 0.4rem 0 0; font-size: 12px; color: var(--muted); }

/* Column widths (desktop): # 36 | Team | W-L-T 72 | Pct 60 | Was 48 | ± 44 (Avg 72 on Standings). */
.pp .pp-table col { width: auto !important; visibility: visible; }
.pp .pp-table col.pc-seed { width: 36px !important; }
.pp .pp-table col.pc-wlt { width: 72px !important; }
.pp .pp-table col.pc-pct { width: 60px !important; }
.pp .pp-table col.pc-move { width: 44px !important; }
.pp .pp-table col.pc-avg { width: 72px !important; }
.pp .pp-table col.pc-cls { width: 56px !important; }
.pp .pp-table col.pc-next { width: 34% !important; }
.pp .pp-table td.next { color: var(--ink); font-weight: 400; }   /* plain, like W-L-T, Pct and Was */
.pp .pp-table td.next.is-out { color: var(--muted); }
.pp .pp-table td.next.is-champ { color: var(--up); }
.pp .pp-table td.next .nx-short { display: none; }
.pp .pp-table td.cls, .pp .pp-table th.cls { text-align: center; }
/* The tag is centered, so the cell needs no side padding: the longest
   ("AN 9A", All-Nations) then fits whole instead of ending in "…". */
.pp .pp-table td.cls { padding-left: 0; padding-right: 0; text-overflow: clip; }

/* ---- Other tables (Teams, a team's games) ------------------------------------------ */
.pp table:not(.pp-table) { border: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pp table:not(.pp-table) th {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  background: var(--paper); border: 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--ink);
}
.pp table:not(.pp-table) td { border: 0; border-bottom: 1px solid var(--rule); }
.pp table:not(.pp-table) tr:nth-child(even) td { background: var(--zebra); }
.pp table:not(.pp-table) td a { color: var(--ink); font-weight: 600; }
.pp .tm-class { background: var(--host); color: var(--navy); border: 1px solid var(--navy); font-weight: 700; }

/* ---- What-If: games to pick on the left, the standings on the right (staying in
   view as the games scroll); on a phone the standings come first, then the games. */
.pp .wi-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.pp .wi-standings { order: -1; position: static; border: 0; padding: 0; background: none; }
@media (min-width: 960px) {
  .pp .wi-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .pp .wi-standings { order: 0; position: sticky; top: 1rem; }
}
/* Under the title row: how many games are picked, at the right (like the Games page's count). */
.pp .wi-sub { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.pp .wi-sub .wi-count { font-weight: 400; color: var(--muted); width: auto; }
/* The playoff note, then "Your picks stay in this browser only." a line below it. */
.pp .wi-standings .pp-legend + .pp-legend { margin-top: 0.5em; }
/* The games' controls, two rows of 44px square boxes: the class switches; then
   the day (as on the Games page), Unpicked only and Reset all -- all in the same
   font, size and ink. */
.pp .wi-bar { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
/* The class switches: boxes like the region picker (white, ink border, its font);
   highlighted while that class's games show, white while they're hidden. */
.pp .wi-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.pp .wi-cls {
  min-height: 44px; min-width: 48px; padding: 0 0.6rem; box-sizing: border-box;   /* football's nine fit one row */
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-transform: none; letter-spacing: 0;
}
.pp .wi-cls:hover { background: var(--zebra); text-decoration: none; }
.pp .wi-cls.is-on { background: var(--host); color: var(--navy); border-color: var(--navy); }
.pp .wi-cls.is-on:hover { background: var(--host); text-decoration: underline; }
.pp .wi-bar select { width: 100%; font-size: 1rem; }
.pp .wi-bar .gm-nav { flex: 1 1 15rem; min-width: 0; }
.pp .wi-bar .gm-pick { flex: 1 1 auto; min-width: 0; }
.pp .wi-bar .gm-pick select { width: 100%; }   /* fills the row (the Games page's is a fixed width) */
.pp .wi-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; box-sizing: border-box;
  padding: 0 0.8rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font-family: var(--body); font-weight: 600; font-size: 1rem; white-space: nowrap; cursor: pointer;
}
.pp .wi-toggle:hover { background: var(--zebra); }
.pp .wi-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.pp .wi-reset { min-height: 44px; font-size: 1rem; padding: 0 0.9rem; }
/* Each day's full date, under the controls (as on the Games page). */
.pp .wi-date { margin: 0.6rem 0 0.5rem; font-size: inherit; text-transform: none; letter-spacing: 0; }
/* A team's class tag beside its name, as in the tables; its record under them. */
.pp .pick-name { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.pp .pick-team:last-child .pick-name { justify-content: flex-end; }
.pp .pick-nm { min-width: 0; overflow-wrap: anywhere; }
.pp .pick .tm-class { flex: 0 0 auto; font-family: var(--body); font-size: 11px; font-weight: 700;
  padding: 0.05rem 0.35rem; letter-spacing: 0.02em; }
.pp .pick.loser .tm-class { opacity: 0.6; }

/* Game picks: square buttons, 2px ink border, white; the pick navy. */
.pp .matchup {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px;
  border: 0; background: none; padding: 0; margin-bottom: 10px;
}
.pp .pick {
  min-height: 48px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule);   /* light, like the tables' row rules */
  font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 600; padding: 0.4rem 0.6rem;
}
.pp .pick:hover { background: var(--zebra); border-color: var(--muted); text-decoration: none; }
.pp .pick .pick-meta { color: var(--muted); font-weight: 400; }
.pp .pick.selected { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.pp .pick.selected .pick-meta { color: var(--paper); }
.pp .pick.loser { color: var(--muted); }
.pp .pick.loser .pick-meta { color: var(--muted); }
.pp .pick-tie { min-width: 56px; font-family: var(--head); text-transform: uppercase; }
.pp .pick-tie.selected { background: var(--navy); color: var(--paper); }
.pp .pick-vs { min-width: 56px; font-family: var(--head); text-transform: uppercase; color: var(--muted); }
/* VS (a sport with no ties) is a label, not a choice: no hover, no pointer. */
.pp .pick-vs, .pp .pick-vs:hover { background: var(--paper); border-color: var(--rule); cursor: default; }
.pp .matchup.is-set { border: 0; }

/* ---- Brackets --------------------------------------------------------------------- */
.pp .br-game { border: 1px solid var(--ink); background: var(--paper); }
.pp .br-round-name, .pp .br-stage { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.05em; }
.pp .br-round-name { color: var(--muted); }
.pp .br-when { font-family: var(--head); letter-spacing: 0.02em; color: var(--ink); }
.pp .br-when.is-tbd { color: var(--muted); }
.pp .br-seed { font-family: var(--head); color: var(--muted); }
.pp .br-team.is-winner, .pp .br-team.is-winner:hover { background: var(--navy); color: var(--paper); }
.pp .br-team.is-winner .br-rec, .pp .br-team.is-winner .br-seed { color: var(--paper); }
.pp .br-team.is-loser, .pp .br-team.is-loser .br-seed, .pp .br-team.is-loser .br-rec { color: var(--muted); }
.pp .br-game.is-played { border: 2px solid var(--navy); }
.pp .br-game.br-champion.is-crowned { border: 2px solid var(--navy); }
.pp .br-game.br-champion.is-crowned .br-team { background: var(--navy); color: var(--paper); }
.pp .br-pick-count { color: var(--navy); font-family: var(--head); }

/* ---- Home, team pages, support ------------------------------------------------------- */
.pp .home-card, .pp .set-card, .pp .tdp-tile, .pp .tdp-upcoming {
  background: var(--paper); border: 1px solid var(--ink); border-top: 3px solid var(--navy);
}
.pp .home-card h2 { font-size: 1.4rem; }
.pp .home-flag { background: var(--zebra); color: var(--ink); border: 1px solid var(--ink); }
.pp .home-status { color: var(--ink); }
.pp .tdp-label { font-family: var(--head); color: var(--muted); }
.pp .tdp-value { font-family: var(--head); font-weight: 600; }
.pp .tdp-main .tdp-value { color: var(--navy); }
.pp .tdp-res-W { color: var(--up); }
.pp .tdp-res-L { color: var(--down); }
.pp .tdp-res-T, .pp .tdp-unofficial { color: var(--ink); }
.pp .tdp-tag { border-color: var(--muted); color: var(--muted); }

/* ---- Footer: a 3px double rule above ------------------------------------------------- */
.pp .site-footer {
  margin-top: 2.5rem; border-top: 3px double var(--ink); padding-top: 1rem; padding-bottom: 1.5rem;
  color: var(--muted); font-size: 0.85rem;
}
/* Both footer lines in one style: the support line and the "Unofficial" note. */
.pp .site-footer p, .pp .ft-support, .pp .ft-note {
  font-family: var(--body); font-size: 0.85rem; font-weight: 400; line-height: 1.5; color: var(--muted);
}
.pp .ft-support a { color: var(--sky); font-weight: 700; }

/* ---- Phones (below 960px): compact table sizes --------------------------------------- */
@media (max-width: 959px) {
  .pp h1 { font-size: 1.7rem; }
  .pp .pp-table tbody td { height: 32px; font-size: 13px; padding: 0 0.3rem; }
  .pp .pp-table td.team { font-size: 14px; }
  .pp .pp-table .seed { font-size: 15px; }
  /* # 26 | Team | W-L-T 62 (fits 10-13-0) | Pct 44 | ± 34 (Avg 52 on Standings) */
  .pp .pp-table col.pc-seed { width: 26px !important; }
  .pp .pp-table col.pc-wlt { width: 62px !important; }
  .pp .pp-table col.pc-pct { width: 44px !important; }
  .pp .pp-table col.pc-move { width: 34px !important; }
  .pp .pp-table col.pc-avg { width: 52px !important; }
  .pp .pp-table col.pc-cls { width: 52px !important; }
  .pp .pp-table col.pc-next { width: 30% !important; }
  .pp .pp-table td.next .nx-long { display: none; }
  .pp .pp-table td.next .nx-short { display: inline; }
  .pp-logo img { height: 26px; }
  .pp-sports { margin-left: 0; width: 100%; }
  .pp-sports a { padding: 0 0.75rem; font-size: 0.85rem; }
}

/* ---- Masthead: undo style.css's generic <nav> rules (padding, margins,
   bottom border) for the two header bars, and size the header bar. ---------- */
.pp .pp-sports, .pp .pp-pages { margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-bottom: 0; flex-direction: row; }
.pp .pp-sports { padding: 0; }
.pp-bar { min-height: 56px; align-items: stretch; flex-wrap: nowrap; }
.pp-logo { padding: 0; line-height: 1; flex: 0 0 auto; }
.pp-sports a { min-height: 56px; height: 100%; }
.pp-pages a { padding: 0; }
@media (max-width: 959px) {
  .pp-bar { flex-wrap: wrap; }
  .pp-logo { min-height: 48px; }
  .pp-sports a { min-height: 44px; height: auto; }
}
.pp .wi-standings { overflow: visible; }
@media (max-width: 959px) {
  /* Phone: the day picker takes its own row; Unpicked only and Reset all share the next. */
  .pp .wi-bar .gm-nav { flex: 1 1 100%; }
  .pp .wi-toggle { flex: 1 1 auto; justify-content: center; }
}

/* Standings: the team's region after its name (class-wide view only); a long
   name is cut short with "…" but its region always shows. */
.pp .pp-teamcell { display: flex; align-items: baseline; gap: 0.4rem; min-width: 0; }
.pp .pp-teamcell a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pp .rg-tag {
  flex: 0 0 auto; margin: 0; padding: 0 0.3rem; font-family: var(--body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--muted); background: var(--paper);
}
.pp .region-on .rg-tag { display: none; }

/* Playoff games on team pages */
.pp .po-tag { background: var(--navy); color: var(--paper); font-family: var(--head); border-radius: 0; }
.pp tr.is-playoff td { background: color-mix(in srgb, var(--navy) 7%, var(--paper)); }
.pp tr.is-playoff td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
.pp .tdp-upcoming li.is-playoff { box-shadow: inset 3px 0 0 var(--navy); padding-left: 0.6rem; }

/* ---- Masthead: the sport picker (a dropdown, right of the logo) ------------- */
.pp .pp-sports { margin-left: auto; width: auto; display: flex; align-items: center; overflow: visible; }
.pp .pp-sport-pick {
  appearance: none; -webkit-appearance: none;
  min-width: 12rem; max-width: 100%; margin: 0;
  padding: 0.45rem 2.2rem 0.3rem 0.8rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B2A5B' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 12px 8px;
  color: var(--navy); border: 0; border-bottom: 4px solid var(--gold); border-radius: 0;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer;
}
.pp .pp-sport-pick:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pp-sport-pick option { text-transform: none; font-family: inherit; }
@media (max-width: 959px) {
  .pp-bar { flex-wrap: nowrap; gap: 0 0.75rem; }
  .pp .pp-sports { width: auto; margin-left: auto; }
  .pp .pp-sport-pick { min-width: 0; font-size: 0.85rem; }
}

/* The site name keeps its own capitals (SDSeedPoints), unlike other headings. */
.pp h1.pp-brand { text-transform: none; }

/* ---- Games page: the Standings/Teams table, one day at a time (read-only) ------------ */
.pp .gm-bar { margin: 0.75rem 0 0; }
.pp .gm-bar .tm-count { margin-left: auto; text-align: right; }   /* the day's game count, at the right edge */
.pp .gm-nav { display: flex; align-items: stretch; gap: 6px; }
.pp .gm-step { flex: 0 0 44px; min-width: 44px; padding: 0; font-size: 1.3rem; line-height: 1; }
.pp .gm-step:disabled, .pp .gm-step:disabled:hover { background: var(--paper); color: var(--muted); border-color: var(--rule); opacity: 1; cursor: default; }
.pp .gm-pick select { width: 12.5rem; }
.pp .gm-when { margin: 0.5rem 0 0.4rem; }
.pp .gm-table col.pc-result { width: 92px !important; }
.pp .gm-cell { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
/* Names take the width of the longest one showing (set by the page's script),
   so the class tags line up just past it. */
.pp .gm-nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp .gm-cell .tm-class { flex: 0 0 auto; min-width: 2.6em; text-align: center; }
/* Winner's cell green, loser's red (light tints of the site's up/down colors,
   so the text stays dark and readable); over the row stripes and playoff shading. */
/* Before each team's name: W (green), L (red), or a grey T (tie) or NR (no
   result yet) -- all one width, so names and tags stay in line. */
.pp .gm-mark { flex: 0 0 2.2em; display: inline-block; width: 2.2em; box-sizing: border-box; padding: 0;
  font-family: var(--body); font-size: 11px; font-weight: 700; line-height: 1.6; text-align: center; border-radius: 3px; }
.pp .gm-w { background: color-mix(in srgb, var(--up) 16%, var(--paper)); color: var(--up); }
.pp .gm-l { background: color-mix(in srgb, var(--down) 12%, var(--paper)); color: var(--down); }
.pp .gm-nr { background: var(--zebra); color: var(--muted); box-shadow: inset 0 0 0 1px var(--rule); }
.pp .gm-table td.gm-result { font-weight: 600; }
.pp .gm-none { color: var(--muted); font-weight: 400; }
.pp .gm-table tbody tr.host td:first-child { box-shadow: inset 3px 0 0 var(--navy); }
@media (max-width: 600px) {
  .pp .gm-bar { flex-wrap: wrap; gap: 0.4rem; }
  .pp .gm-nav { width: 100%; }
  .pp .gm-pick { flex: 1 1 0; min-width: 0; }
  .pp .gm-pick select { width: 100%; }
  .pp .gm-table col.pc-result { width: 74px !important; }
  .pp .gm-table td.team .tm-class { display: none; }
  /* Five page tabs and Support on one row. */
  .pp-pages { gap: 0 0.8rem; }
  .pp-pages a { font-size: 0.8rem; letter-spacing: 0.02em; margin-right: 0; }
}


/* ---- Every table on the site: one set of fonts ---------------------------------------
   Standings, What-If, Games, Teams, and a team's games all read the same:
   small grey uppercase headings over 14px Barlow cells in 34px rows, team
   names 15px semi-bold, numbers in even columns, class tags one size. */
.pp table { font-family: var(--body); font-variant-numeric: tabular-nums; }
.pp table thead th, .pp table:not(.pp-table) th {
  font-family: var(--body); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); padding: 0.4rem 0.4rem; white-space: nowrap;
}
.pp table tbody td, .pp table:not(.pp-table) td {
  font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--ink);
  height: 34px; box-sizing: border-box; padding: 0 0.4rem; line-height: 1.25;
}
.pp table td.team, .pp table td.team a,
.pp table:not(.pp-table) td a { font-size: 15px; font-weight: 600; color: var(--ink); }
.pp .pp-table .seed { font-family: var(--body); font-size: 14px; font-weight: 700; }
.pp table .tm-class { font-family: var(--body); font-size: 11px; font-weight: 700; padding: 0.05rem 0.35rem;
  vertical-align: 1px; letter-spacing: 0.02em; }
.pp table .tdp-tag { font-size: 11px; }
.pp table .tdp-date, .pp table .tm-games { font-size: 14px; color: var(--muted); }
.pp table .tdp-res, .pp table .gm-result { font-weight: 600; }
.pp table .tdp-points { font-weight: 700; }
@media (max-width: 600px) {
  .pp table tbody td, .pp table:not(.pp-table) td, .pp table .tdp-date, .pp table .tm-games { font-size: 13px; height: 32px; padding: 0 0.3rem; }
  .pp table td.team, .pp table td.team a, .pp table:not(.pp-table) td a { font-size: 14px; }
  .pp .pp-table .seed { font-size: 13px; }
}

/* Read by screen readers and search engines, not shown. */
.pp .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Football's class dropdown: looks like the other sports' unpicked class tabs
   (white, ink text and border, the heading font). */
.pp .wi-tabs.as-select .class-pick select { min-height: 44px; font-family: var(--head); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.04em; background-color: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; padding: 0.45rem 2rem 0.45rem 0.8rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23141414'/%3E%3C/svg%3E");
  background-position: right 0.75rem center; background-size: 10px 6px; background-repeat: no-repeat; }
.pp .wi-tabs.as-select .class-pick select:hover { background-color: var(--zebra); }

/* ---- Contact: each topic a heading that opens the email, a small triangle after it
   (the heading's own font and color) ---------------------------------------------- */
.pp .pub-topics { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.pp .pub-topics li { margin: 0 0 0.9rem; }
.pp .pub-topics h2 { margin: 0; }
.pp .pub-topics h2 a { color: inherit; text-decoration: none; }
.pp .pub-topics h2 a:hover { text-decoration: underline; }
.pp .pub-topic-arrow { margin-left: 0.35em; font-size: 0.8em; }
.pp .pub-topics p { margin: 0.2rem 0 0; }

/* ---- Donate: one box, the whole of it the link ----------------------------------- */
.pp .pub-donate { display: flex; flex-direction: column; gap: 0.2rem; max-width: 30rem; box-sizing: border-box;
  color: var(--ink); text-decoration: none; }
.pp a.pub-donate:hover { background: var(--zebra); }
.pp a.pub-donate:hover .pub-donate-lead { text-decoration: underline; }
.pp .pub-donate-text { display: flex; flex-direction: column; gap: 0.2rem; }
.pp .pub-donate-lead { font-family: var(--head); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
