/* =============================================================
   ParlayDesk — NHL team page, Public Pages 2.0 (2026-11-09, BETA)
   A presentation layer over /public-pages.css, loaded by the NHL team
   page only and scoped to .pp-team2, so no other page changes.
   The team's colours arrive on the wrapper as --team (badge fill),
   --team-fg (badge text) and --team-edge (a version that shows on the
   navy cards), from public/team-badges.js. No logos or team artwork:
   the team is its coloured code tile. docs/PUBLIC_PAGES.md
   ============================================================= */

.pp-team2 {
  --team: #1d4ed8;
  --team-fg: #ffffff;
  --team-edge: #60a5fa;
  --pp-row: rgba(255,255,255,.028);
  --pp-row-hover: rgba(255,255,255,.055);
  --pp-loss: #f87171;
}

/* ── Hero ────────────────────────────────────────────────────── */
.pp-team2 .pp-thero {
  grid-template-columns: auto minmax(0, 1fr) minmax(250px, 300px);
  gap: 22px;
  padding: 24px 24px 24px 26px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--pp-surface-2), var(--pp-surface));
  background:
    radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--team-edge) 15%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--pp-surface-2), var(--pp-surface));
}
/* The team's colour as a thin edge across the top of the hero. */
.pp-team2 .pp-thero::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--team-edge);
}
.pp-ttile {
  width: 92px; height: 92px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--team); color: var(--team-fg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 8px 24px rgba(2,6,23,.45);
  /* A navy or black fill (EDM, WPG, LAK) keeps an edge on the navy hero. */
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--team-edge) 55%, transparent), 0 8px 24px rgba(2,6,23,.45);
}
.pp-ttile-code { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.pp-team2 .pp-name { margin: 4px 0 10px; font-size: 36px; }
.pp-team2 .pp-fact { padding: 5px 10px; border-radius: 8px; }

/* Next game: a contained panel, opponent badge beside the matchup. */
.pp-team2 .pp-tnext {
  align-self: stretch; justify-content: center; gap: 8px;
  padding: 14px 16px; border-left: 0; border-radius: 14px;
  background: rgba(2,6,23,.35); border: 1px solid var(--pp-line);
}
.pp-tnext-row { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
/* vs / @ before the badge: the Recent results rows' column, size and colour. */
.pp-team2 .pp-tnext .pp-tnext-at { justify-self: end; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.pp-tnext-badge { --tb-h: 32px; --tb-w: 54px; }
.pp-tnext-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pp-team2 .pp-tnext .pp-next-match { font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.pp-team2 .pp-tnext .pp-next-when { font-size: 13px; }

/* ── Cards ───────────────────────────────────────────────────── */
.pp-team2 .pp-grid { gap: 16px; margin-top: 16px; }
.pp-team2 .pp-col { gap: 16px; }
.pp-team2 .pp-card { padding: 18px 20px 20px; border-radius: 14px; }
.pp-team2 .pp-card-head { margin-bottom: 12px; }

/* Season record: compact tiles, then the W / L / OT split bar. */
.pp-team2 .pp-tiles { gap: 8px; }
.pp-team2 .pp-tile { padding: 12px 6px 10px; border-radius: 10px; gap: 5px; }
.pp-team2 .pp-tile dd { font-size: 26px; }
.pp-tsplit {
  display: flex; gap: 2px; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 3px;
  background: rgba(255,255,255,.04);
}
.pp-tsplit i { display: block; min-width: 4px; }
.pp-tsplit .is-w { background: var(--hit); }
.pp-tsplit .is-l { background: var(--pp-loss); opacity: .85; }
.pp-tsplit .is-ot, .pp-tsplit .is-t { background: #64748b; }

/* Recent results: one row per game (the Schedule card language). The
   arrow column is there on every row, empty without a game page, so a row
   lays out the same with or without its link. */
.pp-team2 .pp-trows { display: flex; flex-direction: column; gap: 6px; }
.pp-team2 .pp-trows .pp-result-a {
  display: grid; grid-template-columns: 20px auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px;
  min-height: 52px; padding: 8px 12px 8px 12px; border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border: 1px solid rgba(148,163,184,.18);
}
.pp-team2 .pp-trows a.pp-result-a:hover { background: var(--pp-row-hover); border-color: rgba(96,165,250,.3); }
.pp-tr-badge { --tb-h: 26px; --tb-w: 50px; }
/* vs / @ in a fixed column before the badge, right-aligned against it, so
   badges and names line up across rows whatever the indicator's width. */
.pp-team2 .pp-trows .pp-tr-at { justify-self: end; font-size: 13px; font-weight: 600; color: var(--muted); }
.pp-team2 .pp-trows .pp-result-score { margin-left: 4px; }
.pp-tr-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-team2 .pp-trows .pp-result-opp { font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pp-team2 .pp-trows .pp-result-when { font-size: 12px; }
.pp-team2 .pp-trows .pp-result-score {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums;
}
.pp-team2 .pp-trows .pp-res-o {
  min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: .02em;
}
.pp-team2 .pp-trows .pp-res-o.is-w { color: #bbf7d0; background: rgba(34,197,94,.16); box-shadow: inset 0 0 0 1px rgba(74,222,128,.3); }
.pp-team2 .pp-trows .pp-res-o.is-l { color: #fecaca; background: rgba(239,68,68,.14); box-shadow: inset 0 0 0 1px rgba(248,113,113,.3); }
/* NFL tie (unified four-sport pages, 2026-11-11): neutral. */
.pp-team2 .pp-trows .pp-res-o.is-t { color: var(--text); background: rgba(148,163,184,.14); box-shadow: inset 0 0 0 1px rgba(148,163,184,.3); }
.pp-team2 .pp-trows .pp-res-x {
  padding: 1px 5px; border-radius: 5px; font-size: 10.5px; color: var(--muted);
  background: rgba(255,255,255,.05); border: 1px solid var(--pp-line);
}
.pp-tr-go { display: inline-flex; width: 16px; height: 16px; color: #64748b; }
.pp-tr-go svg { width: 16px; height: 16px; }
.pp-team2 a.pp-result-a:hover .pp-tr-go { color: var(--accent2); }

/* Lineup: number chip in the team's colour, tighter rows, group counts. */
.pp-lu-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pp-team2 .pp-lu-group .pp-lu-head .pp-k { margin-bottom: 0; }
.pp-lu-n {
  font-size: 11px; font-weight: 700; color: #64748b; font-variant-numeric: tabular-nums;
}
.pp-team2 .pp-lu-group + .pp-lu-group { margin-top: 14px; }
.pp-team2 .pp-lu-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 5px; }
.pp-team2 .pp-pl {
  gap: 10px; min-height: 38px; padding: 4px 10px 4px 5px; border-radius: 9px;
  background: var(--pp-row);
}
.pp-team2 a.pp-pl:hover { background: var(--pp-row-hover); }
.pp-team2 .pp-pl-no {
  min-width: 30px; height: 26px; padding: 0 5px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12.5px; font-weight: 800; color: #f1f5f9;
  background: rgba(255,255,255,.05);
  background: color-mix(in srgb, var(--team-edge) 16%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--team-edge) 32%, transparent);
}
.pp-team2 .pp-pl-no:empty { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--pp-line); }
.pp-team2 .pp-pl-name { font-size: 13.5px; }
.pp-team2 .pp-pl-pos {
  padding: 1px 5px; border-radius: 5px; font-size: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--pp-line);
}

/* ── Side column ─────────────────────────────────────────────── */
.pp-team2 .pp-tlinks { padding: 14px 14px 12px; }
.pp-team2 .pp-tlinks > .pp-k { margin: 0 4px 8px; }
.pp-tlinks-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pp-tlink {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 8px 7px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text);
  transition: background 150ms;
}
.pp-tlink:hover { background: var(--pp-row-hover); }
.pp-tlink:focus-visible { outline: 2px solid var(--accent2); outline-offset: 1px; }
.pp-tlink-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-tlink-title { font-size: 13.5px; font-weight: 600; }
.pp-tlink-sub { font-size: 12px; color: var(--muted); }
.pp-tlink > svg { flex: none; width: 15px; height: 15px; color: #64748b; }
.pp-tlink:hover > svg { color: var(--accent2); }
.pp-team2 .pp-locked { gap: 10px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pp-team2 .pp-thero { grid-template-columns: auto minmax(0, 1fr); }
  .pp-team2 .pp-tnext { grid-column: 1 / -1; padding: 12px 14px; border-top: 1px solid var(--pp-line); }
  .pp-team2 .pp-col--side .pp-tlinks { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pp-team2 .pp-thero { gap: 14px; padding: 18px 16px 16px; border-radius: 16px; }
  .pp-ttile { width: 64px; height: 64px; border-radius: 15px; }
  .pp-ttile-code { font-size: 21px; }
  .pp-team2 .pp-name { margin: 2px 0 8px; font-size: 27px; }
  .pp-team2 .pp-grid, .pp-team2 .pp-col { gap: 12px; }
  .pp-team2 .pp-grid { margin-top: 12px; }
  .pp-team2 .pp-card { padding: 14px 14px 16px; border-radius: 13px; }
  .pp-team2 .pp-tile { padding: 10px 2px 8px; }
  .pp-team2 .pp-tile dd { font-size: 22px; }
  .pp-team2 .pp-trows { gap: 5px; }
  /* The base phone layout names grid areas for the old result tiles; the
     rows keep their own columns. */
  .pp-team2 .pp-trows .pp-result-a { grid-template-areas: none; grid-template-columns: 18px auto minmax(0, 1fr) auto auto; gap: 2px 8px; padding: 7px 10px; min-height: 48px; }
  .pp-team2 .pp-trows .pp-tr-at { font-size: 12.5px; }
  .pp-tnext-row { grid-template-columns: 18px auto minmax(0, 1fr); gap: 8px; }
  .pp-team2 .pp-tnext .pp-tnext-at { font-size: 12.5px; }
  .pp-team2 .pp-trows .pp-result-opp, .pp-team2 .pp-trows .pp-result-when, .pp-team2 .pp-trows .pp-result-score { grid-area: auto; }
  .pp-tr-badge { --tb-h: 22px; --tb-w: 44px; padding: 0 5px; }
  .pp-team2 .pp-trows .pp-result-opp { font-size: 13.5px; }
  .pp-team2 .pp-trows .pp-result-score { gap: 6px; font-size: 15px; }
  .pp-team2 .pp-lu-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pp-team2 .pp-pl { min-height: 38px; }
}
@media (max-width: 380px) {
  /* Narrow phones: the tile sits above the name, so the name has the width. */
  .pp-team2 .pp-thero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pp-ttile { width: 52px; height: 40px; border-radius: 10px; justify-self: start; }
  .pp-ttile-code { font-size: 16px; }
  .pp-team2 .pp-name { font-size: 24px; }
  .pp-tnext-badge { --tb-h: 26px; --tb-w: 46px; padding: 0 5px; }
  /* Narrow phones: the badge column goes; the opponent's name says it. */
  .pp-team2 .pp-trows .pp-result-a { grid-template-columns: 18px minmax(0, 1fr) auto auto; }
  .pp-tr-badge { display: none; }
}

/* ── Phone typography (2026-11-10 mobile refinement, BETA) ─────────
   The name stays the H1. Up to 480px the compact tile sits above it (the
   narrow-phone layout, now from 480px), so the name has the hero's full
   width; sizes step down only enough to keep common names on one line. */
@media (max-width: 480px) {
  .pp-team2 .pp-thero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pp-ttile { width: 52px; height: 40px; border-radius: 10px; justify-self: start; }
  .pp-ttile-code { font-size: 16px; }
  .pp-team2 .pp-name { font-size: 25px; letter-spacing: -.02em; }
}
@media (max-width: 380px) {
  .pp-team2 .pp-thero { padding-left: 14px; padding-right: 14px; }
  .pp-team2 .pp-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-tlink { transition: none; }
}
@media (forced-colors: active) {
  .pp-ttile { border: 1px solid CanvasText; }
  .pp-team2 .pp-thero::before, .pp-tsplit { display: none; }
}
