/* Team (prototype, docs/REDESIGN.md): Pick your team and the team page. Phone first; the desktop is the same column
   with room. Light dividers and spacing in place of boxes. Colors from 01-tokens.css: blue better, orange worse. */
.team .tm-page { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 720px; margin: 0 auto; } /* .sit is a flex row */

/* ---------- Pick your team ---------- */
.tp-recent { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 4px; }
.tp-lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 2px; }

/* ---------- the team page: header and section links ---------- */
.tm-head { padding: 10px 0 8px; } /* not sticky: on a phone it took a fifth of the screen; the section bar sticks instead */
.tm-back { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.tm-back::before { content: "‹ "; }
.tm-name { font-weight: inherit; font-family: var(--f-display); font-size: 1.84rem; line-height: 1; text-transform: uppercase; margin-top: 4px; }
.tm-sub { color: var(--muted); margin-top: 2px; }
.tm-sub b { color: var(--ink); }
.tm-rk-l { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tm-jump { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
/* the section bar in groups (Dec 3, team.js and core/team_nav_calc.js): a panel like the filters panel, three groups side
   by side over a 2x2 of boxes, each a small label over its pills; 1 px rules between them (the panel's line shows
   through the gaps). On a phone the groups stack, one a row. */
.tm-nav { display: grid; gap: 1px; margin: 2px 0 6px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tm-nav-top { display: flex; gap: 1px; }
.tm-nav-top > .tm-g { flex: 1 1 auto; }
.tm-nav-box { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.tm-g { min-width: 0; padding: 8px 12px 10px; background: var(--surface); }
.tm-g-l { display: block; margin-bottom: 6px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tm-g-p { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-nav a { flex: none; font-weight: 300; font-size: 0.82rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; white-space: nowrap; }
.tm-nav a:hover { border-color: var(--ink); }
@media (max-width: 639px) { .tm-nav-top { flex-direction: column; } .tm-nav-box { grid-template-columns: minmax(0, 1fr); } .tm-g { padding: 6px 12px 8px; }
  .tm-g-l { margin-bottom: 4px; } .tm-g-p { gap: 5px; } .tm-nav a { padding: 3px 10px; } }
/* once the panel scrolls away: one row under the top with the team's name, scrolling sideways inside itself, its ends
   faded where more pills lie past them. It takes no room on the page (its negative margin), and is hidden until then. */
.tm-jump.tm-bar { --tm-row: 44px; position: sticky; top: 0; z-index: 5; box-sizing: border-box; height: var(--tm-row); margin-bottom: calc(-1 * var(--tm-row));
  flex-wrap: nowrap; overflow: hidden; align-items: center; gap: 8px; padding: 0; background: var(--bg); visibility: hidden; }
.tm-jump.tm-bar.stuck { visibility: visible; }
.tm-bar-row { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tm-bar-row::-webkit-scrollbar { display: none; }
.tm-bar-row.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.tm-bar-row.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.tm-bar-row.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
.tm-jump.tm-bar a { font-size: 0.8rem; padding: 4px 10px; }
.tm-bar .sn-div { flex: none; align-self: stretch; width: 1px; margin: 11px 3px; background: var(--line-strong); opacity: 0.7; }
.tm-jump-me { display: flex; flex: none; max-width: 40%; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.tm-jump-me picture { flex: none; display: flex; }
.tm-jump-me span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .tm-jump-me span { display: none; } } /* a phone: the logo alone, so the row has room */
/* a rank's move since the week before (shape and number) */
.tm-mv { font-family: var(--f-body, inherit); font-size: 0.78rem; font-weight: 700; margin-left: 5px; vertical-align: 0.35em; color: var(--muted); }
.tm-mv.up { color: var(--score); } .tm-mv.dn { color: var(--turn); }
.tm-jump::-webkit-scrollbar { display: none; }
.tm-jump a { flex: none; font-weight: 300; font-size: 0.85rem; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--ink);
  text-decoration: none; border: 1px solid var(--line-strong); }
#tm-downs .tm-grp.dd { margin-top: 0; } /* down and distance opens its own section (Dec 3) */

/* ---------- sections: fold and unfold, remembered ---------- */
.tm-sec { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--tm-bar-h, 52px) + 4px); } /* --tm-bar-h: the sticky bar, set on a jump (team.js) */
.tm-sec > summary { list-style: none; cursor: pointer; padding: 16px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.tm-sec > summary::-webkit-details-marker { display: none; }
.tm-sec > summary::after { content: "–"; color: var(--muted); font-size: 1.2rem; }
.tm-sec:not([open]) > summary::after { content: "+"; }
.tm-sec h2 { margin: 0; font-family: var(--f-display); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.tm-body { padding-bottom: 18px; }
.tm-note { color: var(--muted); font-size: 0.85rem; line-height: 1.4; margin: 10px 0 0; }
.tm-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.tm-key i { display: inline-block; vertical-align: middle; margin-right: 5px; }
.tm-key i.pos, .tm-key i.neg { width: 14px; height: 8px; border-radius: 2px; }
.tm-key i.pos { background: var(--score); } .tm-key i.neg { background: var(--turn); }
.tm-key i.tick { width: 2px; height: 12px; background: var(--ink); }

/* the opponent's page, at the end of a schedule row */
.tm-g-team { grid-area: team; align-self: center; font-size: 1.4rem; color: var(--muted); background: none; border: 0; cursor: pointer; }

/* ---------- charts ---------- */
.tm-chart { width: 100%; max-width: 560px; height: auto; display: block; overflow: visible; }
.tm-chart .grid { stroke: var(--line); stroke-width: 1; }
.tm-chart .t25 { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.tm-chart .ax { fill: var(--muted); font-size: 11px; }
.tm-chart .lab { fill: var(--ink); font-size: 11px; font-weight: 600; }
.tm-chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tm-chart .ln.me { stroke: var(--ink); stroke-width: 2.6; }
.tm-chart .ln.ap { stroke: var(--score); }
.tm-chart .ln.cfp { stroke: var(--muted); stroke-dasharray: 4 3; }
.tm-chart .pt.me { fill: var(--ink); } .tm-chart .pt.ap { fill: var(--score); } .tm-chart .pt.cfp { fill: var(--muted); }
.tm-chart .end { font-size: 11px; font-weight: 600; }
.tm-chart .end.me { fill: var(--ink); } .tm-chart .end.ap { fill: var(--score); } .tm-chart .end.cfp { fill: var(--muted); }
.tm-chart .ln.prev { stroke: var(--ink); stroke-width: 1.8; stroke-dasharray: 1 3.5; opacity: 0.5; } /* last season: the same hue, lighter, dashed */
.tm-chart .end.prev { fill: var(--muted); font-weight: 400; }

/* ---------- The rating ---------- */
.tm-net { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tm-net-v { font-family: var(--f-display); font-size: 1.92rem; line-height: 1; }
.tm-net-l { color: var(--muted); }

/* ---------- the field strip (team_more.js strip): every FBS team a tick, the middle half shaded, this team the dot ---------- */
/* a row's rank sits just below its label (the owner, Dec 2), so the eye reads the two together */
.tm-s { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "v" "t"; padding: 9px 0 4px; border-top: 1px solid var(--line); }
.tm-rows > .tm-s:first-child { border-top: 0; }
.tm-s-l { grid-area: l; font-size: 0.9rem; }
.tm-s-v { grid-area: v; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2; }
.tm-s-v .tm-s-rk, .tm-pr-v .tm-s-rk, .tm-dr-v .tm-s-rk { margin-left: 0; min-width: 0; }
.tm-s-l small { margin-left: 4px; font-size: 0.78rem; color: var(--muted); }
.tm-s-v small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.tm-s-rk { display: inline-block; min-width: 3.2em; margin-left: 8px; font-size: 0.8rem; color: var(--muted); }
.tm-s-rk.hi { color: var(--score); font-weight: 700; } .tm-s-rk.lo { color: var(--turn); font-weight: 700; }
/* the strip, inset so the end values can sit centered under the ends; the value on the dot in its own lane */
.tm-s-st { grid-area: t; display: block; padding: 0 22px; }
.tm-s-vl { position: relative; display: block; height: 17px; margin-top: 4px; }
.tm-s-st.below .tm-s-vl { margin-top: 1px; }
.tm-s-val { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 0.86rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.tm-s-st.below .tm-s-val { top: 2px; bottom: auto; }
.tm-s-tr { position: relative; display: block; height: 14px; }
.tm-s-tr svg { position: absolute; inset: 1px 0; width: 100%; height: 12px; overflow: visible; }
.tm-s-tr .iqr { fill: var(--line-strong); opacity: 0.32; }
.tm-s-tr .tk { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.45; }
.tm-s-tr .md { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0.55; }
.tm-s-dot { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; box-sizing: border-box;
  background: var(--ink); border: 2px solid var(--bg); }
.tm-s-dot.nt { background: var(--muted); }
.tm-s-dot.raw { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--surface); border: 2px solid var(--muted); }
.tm-s-ends { position: relative; display: block; height: 15px; margin-top: 2px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-s-ends > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tm-net-s { margin: -2px 0 10px; }
.tm-net-s .tm-s-tr { margin-top: 0; }
.tm-key .tm-s-dot { position: static; display: inline-block; margin: 0 5px 0 0; vertical-align: middle; }
.tm-key .tm-s-sw { display: inline-block; vertical-align: middle; margin-right: 5px; }
.tm-s-sw.tk { width: 1px; height: 10px; background: var(--line-strong); } .tm-s-sw.iqr { width: 14px; height: 8px; background: var(--line-strong); opacity: 0.32; }
.tm-s-sw.md { width: 2px; height: 12px; background: var(--ink); opacity: 0.55; }
@media (min-width: 640px) { .tm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } .tm-cols .tm-grp + .tm-grp { margin-top: 0; } }
/* ---------- the game page (#m<id>) ---------- */
.gm-head { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 0 10px; border-bottom: 1px solid var(--line); }
.gm-when { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.gm-sb { font-size: inherit; font-weight: inherit; display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: baseline; gap: 8px; margin-top: 6px; }
.gm-team { font-weight: 600; color: var(--ink); text-decoration: none; }
.gm-team.h { text-align: right; }
.gm-pts { font-family: var(--f-display); font-size: 1.92rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.gm-pts.win { color: var(--ink); }
.gm-dash { color: var(--muted); }
.gm-q { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.gm-ql { display: flex; gap: 10px; } .gm-ql:last-child { justify-content: flex-end; }
.gm-half { padding: 14px 0 6px; }
.gm-half h2 { margin: 0 0 8px; font-family: var(--f-display); font-size: 0.96rem; text-transform: uppercase; letter-spacing: 0.03em; text-align: center; }
.gm-st { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.gm-lbl { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 0 8px; }
.gm-a { text-align: left; } .gm-h { text-align: right; }
.gm-st .win { font-weight: 700; color: var(--score); }
.gm-eps { margin-top: 10px; }
.gm-eps-h { text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.gm-ep { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 6px; padding: 3px 0; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.gm-track { position: relative; height: 30px; background: linear-gradient(var(--line-strong), var(--line-strong)) 50% 0 / 1px 100% no-repeat; }
.gm-track b { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-weight: 400; font-size: 0.75rem; color: var(--muted); pointer-events: none; }
.gm-bar { position: absolute; top: 19px; height: 7px; border-radius: 2px; }
.gm-bar.pos { background: var(--score); } .gm-bar.neg { background: var(--turn); }

/* the timeline: the spine in the middle, visitor drives to its left, home drives to its right */
.gm-line { position: relative; margin: 6px 0 18px; }
.gm-tick { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--line); }
.gm-tick.q { border-top: 1px solid var(--line-strong); }
.gm-tick span { position: absolute; left: 50%; transform: translate(-50%, -50%); background: var(--bg); padding: 0 4px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gm-tick.q span { font-weight: 700; color: var(--ink); }
.gm-poss { position: absolute; width: 8px; border-radius: 3px; }
.gm-poss.away { left: calc(50% - 30px); background: var(--muted); }
.gm-poss.home { left: calc(50% + 22px); background: var(--ink); }
.gm-drive { position: absolute; max-width: calc(50% - 44px); font: inherit; font-size: 0.85rem; line-height: 1.2; background: none; border: 0; padding: 2px 4px; border-radius: 6px;
  color: var(--ink); cursor: pointer; display: grid; grid-template-columns: auto auto; column-gap: 6px; }
.gm-drive.away { right: calc(50% + 38px); text-align: right; justify-items: end; }
.gm-drive.home { left: calc(50% + 38px); text-align: left; }
.gm-drive .gm-gap, .gm-drive .gm-res { grid-row: 1; }
.gm-drive.away .gm-gap { grid-column: 2; } .gm-drive.away .gm-res { grid-column: 1; }
.gm-drive .gm-dt { grid-row: 2; grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); }
.gm-drive.good .gm-res { color: var(--score); font-weight: 700; }
.gm-drive.bad .gm-res { color: var(--turn); font-weight: 700; }
.gm-drive.on, .gm-drive:hover { background: var(--surface); box-shadow: 0 1px 4px var(--shadow); }
.gm-gap { color: var(--muted); font-variant-numeric: tabular-nums; }
.gm-score { position: absolute; left: 50%; transform: translate(-50%, -50%); z-index: 1; background: var(--sel); color: var(--surface); font-size: 0.75rem;
  font-weight: 700; padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }

/* the drive sheet: slides up from the bottom */
.gm-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 720px; margin: 0 auto; max-height: 72vh; overflow-y: auto;
  background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px var(--shadow); padding: 12px 14px 16px; }
.gm-sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gm-close { font-size: 1.6rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; }
.gm-sheet-k, .gm-play-b { display: grid; grid-template-columns: 62px 62px 1fr; gap: 6px; align-items: baseline; }
.gm-play-b { width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.gm-play-b:focus-visible, .gm-sheet:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; }
.gm-sheet-k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.gm-plays { list-style: none; margin: 0; padding: 0; }
.gm-play { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; cursor: pointer; }
.gm-p-clk, .gm-p-dn { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.gm-p-dn small { display: block; }
.gm-p-yd { font-variant-numeric: tabular-nums; margin-left: 4px; }
.gm-p-who { display: block; color: var(--muted); font-size: 0.8rem; }
.gm-p-txt { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }

/* the method, folded away (presentation rule 1): one closed line under a section */
.tm-info { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }
.tm-info > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.tm-info > summary::-webkit-details-marker { display: none; }
.tm-info > summary::before { content: "i"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--line-strong); font-size: 0.75rem; font-style: italic; font-weight: 700; }
.tm-info p { margin: 6px 0 0; line-height: 1.4; max-width: 60ch; }

/* ---------- the rest of the team page (build step 3) ---------- */
.tm-next { color: var(--muted); } .tm-next a { color: var(--ink); font-weight: 600; }
.tm-grp + .tm-grp { margin-top: 14px; }
.tm-grp h4 { margin: 0 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.tm-line { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }
.tm-more { margin-top: 8px; font-size: 0.85rem; }
.tm-more > summary { cursor: pointer; color: var(--score); }
.tm-mini { border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tm-mini th, .tm-mini td { padding: 3px 14px 3px 0; text-align: left; border-bottom: 1px solid var(--line); }
.tm-mini th { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
/* a phone: a folded table wider than the page scrolls sideways inside itself, not the page */
@media (max-width: 560px) { .tm-more > .tm-mini { display: block; overflow-x: auto; max-width: 100%; } }
.tm-xf { max-width: 560px; margin-top: 8px; }
.tm-xf rect.pos { fill: var(--score); } .tm-xf rect.neg { fill: var(--turn); }
.tm-xf rect:not(.now) { opacity: 0.8; } /* this season full strength */
.tm-xf line.zero { stroke: var(--ink); stroke-width: 1.2; opacity: 0.6; }
.tm-xf line.td { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.6; }
.tm-xf path.wk { stroke: var(--muted); stroke-width: 1.2; fill: none; }
.tm-xf text { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tm-xf text.v { fill: var(--ink); font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.tm-xf text.yr.now { fill: var(--ink); font-weight: 700; }
.tm-xf text.ax { font-size: 12px; }
.xf-now { margin-top: 2px; }
.tm-gaps { margin-top: 10px; }
.tm-gap { display: grid; grid-template-columns: 44px 1fr 120px; align-items: center; gap: 8px; font-size: 0.8rem; padding: 2px 0; font-variant-numeric: tabular-nums; }
.tm-gap > span:first-child { color: var(--muted); }
.tm-gap > span:last-child { text-align: right; color: var(--muted); }
.tm-gap-t { position: relative; height: 10px; background: linear-gradient(var(--line-strong), var(--line-strong)) 50% 0 / 1px 100% no-repeat; }
.tm-gap-t i { position: absolute; top: 1px; height: 8px; border-radius: 2px; }
.tm-gap-t i.pos { background: var(--score); } .tm-gap-t i.neg { background: var(--turn); }

/* ---------- national and conference pages (build step 4) ---------- */

.tm-jump a[aria-current="page"] { background: var(--sel); color: var(--surface); border-color: var(--sel); }
.nt-title { font-family: var(--f-display); font-size: 1.28rem; letter-spacing: 0.02em; text-transform: uppercase; margin: 6px 0 6px; line-height: 1; }
.nt-sub { color: var(--muted); font-size: 0.85rem; margin: 8px 0; }
.nt-h { font-family: var(--f-display); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 18px 0 8px; }
.nt-team { color: var(--ink); font-weight: 600; text-decoration: none; }

.tm-sub a { color: var(--muted); }
/* the table: rank and team stay put while the rest scrolls sideways on a phone */
.nt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; }
.nt-table { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: 0.88rem; min-width: 100%; }
.nt-table th, .nt-table td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg); }
.nt-table thead th { font-weight: 400; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.nt-table .nt-rk { position: sticky; left: 0; z-index: 1; width: 28px; color: var(--muted); }
.nt-table .nt-tm { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 400; }
.nt-table .nt-rk + .nt-tm { left: 44px; }
.nt-table .nt-tm small { display: block; color: var(--muted); font-size: 0.75rem; }
.nt-table tr.cut td, .nt-table tr.cut th { border-bottom: 2px dashed var(--line-strong); }
/* Rankings (Dec 1): rank, NAPPR+ and the team stay put; each unit is its value with its rank small under it (v2.0) */
.nt-rank { font-size: 0.84rem; }
.nt-rank th, .nt-rank td { padding: 5px 6px; }
.nt-rank .nt-rk { box-sizing: border-box; width: 34px; min-width: 34px; max-width: 34px; }
.nt-rank .nt-v { position: sticky; left: 34px; z-index: 1; box-sizing: border-box; width: 58px; min-width: 58px; max-width: 58px; font-weight: 700; }
.nt-rank thead .nt-v { font-weight: 400; letter-spacing: 0; }      /* the label fits its narrow column, so it ends where the numbers end */
.nt-rank .nt-tm, .nt-rank .nt-rk + .nt-tm { left: 92px; }
.nt-rank .nt-tm .nt-team { max-width: 150px; }
.nt-rank .nt-tm .nt-team, .nt-rank .nt-tm small { overflow: hidden; text-overflow: ellipsis; }
.nt-rank .nt-tm small { max-width: 150px; }
.nt-rank .nt-tm { box-shadow: 1px 0 0 var(--line); }
.nt-u { position: relative; }      /* holds the screen-reader text inside the scrolling box */
/* v2.0 (the owner: the labels drifted): each unit's rank under its value, so a column is one right-aligned stack and its
   label shares the column's right edge with its numbers */
.nt-u small { display: block; font-size: 0.72rem; color: var(--muted); text-align: right; }
.nt-u small.hi { color: var(--score); font-weight: 700; } .nt-u small.lo { color: var(--turn); font-weight: 700; }
@media (max-width: 560px) { .nt-rank .nt-tm .nt-team, .nt-rank .nt-tm small { max-width: 108px; } }
/* NAPPR+ over a game under its value; the Top 25's rank less NAPPR+'s, blue where NAPPR+ ranks the team higher (Dec 2) */
.nt-rank .nt-pg { display: block; font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.nt-rank .nt-gap { position: relative; font-weight: 700; } .nt-rank thead .nt-gap { font-weight: 400; }
.nt-rank thead .nt-gap small { display: block; text-transform: none; letter-spacing: 0; }
.nt-rank td.nt-gap.hi { color: var(--score); } .nt-rank td.nt-gap.lo { color: var(--turn); }
/* leaders */
.nt-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; }
.nt-ld { display: grid; grid-template-columns: 26px minmax(0, 1fr) 60px 48px; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.nt-ld .nt-rk { color: var(--muted); font-size: 0.78rem; }
.nt-ld-n small { display: block; font-size: 0.75rem; } .nt-ld-n small a { color: var(--muted); font-weight: 400; }
.nt-ld-b { height: 8px; background: var(--line); border-radius: 2px; overflow: hidden; } .nt-ld-b i { display: block; height: 100%; background: var(--score); }
.nt-ld-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.nt-of { color: var(--muted); font-size: 0.75rem; margin: 4px 0 0; }
/* the rest of a board behind a fold (Dec 2) */
.nt-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 0 5px; border-top: 1px solid var(--line); width: 100%;
  font-size: 0.82rem; font-weight: 600; color: var(--score); }
.nt-more > summary::-webkit-details-marker { display: none; }
.nt-more > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -3px; }
.nt-more[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nt-more[open] .nt-more-o, .nt-more:not([open]) .nt-more-c { display: none; }
.nt-more > summary:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; border-radius: 3px; }
/* AP vs NAPPR+ */
.nt-apg { grid-template-columns: 26px minmax(0, 110px) 1fr 70px; }
.nt-ap-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-list { line-height: 1.8; } .nt-list small { color: var(--muted); }

/* ---------- the site's frame after the redesign (step 5): five places in the top bar, a section bar under them ---------- */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav::-webkit-scrollbar { display: none; }
/* the chip rows scroll sideways on a phone; from 640 px they wrap, so no chip is cut off without a cue */
@media (min-width: 640px) { .tp-confs, .tm-jump, .subnav { flex-wrap: wrap; overflow-x: visible; } }
.subnav a { flex: none; font-weight: 300; font-size: 0.88rem; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; }
.subnav a[aria-current="page"] { background: var(--sel); color: var(--surface); border-color: var(--sel); }
.ab-quote { margin: 0 0 4px; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1rem; line-height: 1.25; }

/* team logos (CFBD's images; format.js logo): a fixed box so nothing moves while they load */
.logo { display: inline-flex; flex: none; vertical-align: middle; margin-right: 6px; }
.logo img { display: block; object-fit: contain; }
.tm-name { display: flex; align-items: center; }
.tm-logo { margin-right: 10px; }
.gm-team { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.gm-team.h { align-items: flex-end; }
.gm-logo { margin-right: 0; }
.nt-team { display: inline-flex; align-items: center; }
.nt-ld-n small .nt-team { font-weight: 400; color: var(--muted); }

/* ---------- team page v2 (Phase A): the season strip and the top pack (team_top.js) ---------- */
/* the season strip: one circle a week, W blue, L orange, a dotted circle for a bye or a game to come */
.tm-wk { list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; flex: 0 1 auto; min-width: 0; }
.tm-wk li { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 24px; flex: 0 1 24px; min-width: 0; }
.tm-wk li.p1 { margin-left: 4px; } /* the postseason, P1 to P4, a little apart from the weeks */
.tm-c { box-sizing: border-box; width: 24px; height: 24px; max-width: 100%; border-radius: 50%; display: inline-grid; place-items: center; padding: 0;
  font: inherit; font-size: 0.75rem; font-weight: 700; line-height: 1; border: 0; }
button.tm-c { cursor: pointer; }
.tm-c.w { background: var(--score); color: var(--on-accent); }
.tm-c.l { background: var(--turn); color: var(--on-accent); }
.tm-c.t { background: var(--muted); color: var(--on-accent); }
.tm-c.bye { background: transparent; border: 1.5px dotted var(--muted); opacity: 0.75; }
.tm-c.todo { background: transparent; border: 2px dotted var(--line-strong); }
.tm-c.todo.next { border-color: var(--ink); }
.tm-c:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; }
button.tm-c[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.tm-c-l { font-size: 0.75rem; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-next .logo { margin-right: 4px; }
/* the quick box score: under its circle, inside the strip */
.tm-pop { position: absolute; z-index: 15; width: 280px; max-width: 100%; box-sizing: border-box; padding: 10px 12px 10px; border-radius: 12px;
  background: var(--surface); color: var(--ink); box-shadow: 0 6px 24px var(--shadow); border: 1px solid var(--line); font-size: 0.85rem; }
.tm-pop:focus { outline: none; } .tm-pop:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; }
.tm-pop-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-weight: 600; }
.tm-pop-h b.w { color: var(--score); } .tm-pop-h b.l { color: var(--turn); }
.tm-pop-n { margin: 2px 0 0; color: var(--muted); font-size: 0.8rem; }
.tm-pop table { border-collapse: collapse; width: 100%; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tm-pop th, .tm-pop td { padding: 2px 4px; text-align: right; border-bottom: 1px solid var(--line); font-size: 0.8rem; }
.tm-pop th[scope="row"] { text-align: left; font-weight: 600; }
.tm-pop thead th { font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.tm-qs th[scope="row"] { font-weight: 400; color: var(--muted); }
.tm-pop-go { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--score); }
.tm-pop .loading { padding: 10px 0; }

/* the top pack: blocks with a small heading; two columns from 700 px */
.tm-top { padding: 4px 0 8px; }
.tm-top-b { padding: 14px 0 10px; border-top: 1px solid var(--line); min-width: 0; }
.tm-top-h { margin: 0; font-family: var(--f-display); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.03em; }
.tm-top-s { margin: 2px 0 8px; color: var(--muted); font-size: 0.82rem; }
.tm-top-p { margin: 8px 0 0; font-size: 0.9rem; line-height: 1.4; max-width: 62ch; }
@media (min-width: 700px) { .tm-top-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; } }

/* ranks now: a row a poll, the value, the season over the field, the teams around it */
.tm-rk2s { margin-top: 8px; }
.tm-rk2 { display: grid; grid-template-columns: 74px minmax(0, 1fr) 132px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.tm-rk2:first-child { border-top: 0; }
.tm-rk2-v { display: flex; flex-direction: column; }
.tm-rk2-b { font-family: var(--f-display); font-size: 1.36rem; line-height: 1.05; white-space: nowrap; }
.tm-rk2-s { font-size: 0.75rem; color: var(--muted); }
.tm-rk2-s small { display: block; font-size: inherit; }
.tm-sp { position: relative; height: 48px; padding-bottom: 14px; cursor: crosshair; touch-action: pan-y; border-radius: 4px; }
.tm-sp:focus-visible { outline: 2px solid var(--score); outline-offset: 3px; }
.tm-sp-in { position: relative; display: block; height: 48px; }
.tm-sp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.tm-sp .fld path { fill: none; stroke: var(--line-strong); stroke-width: 1; opacity: 0.32; vector-effect: non-scaling-stroke; }
.tm-sp .fld.many path { opacity: 0.1; } /* NAPPR+: every FBS team, so each line fainter */
.tm-sp .fld path.nb { stroke: var(--muted); stroke-width: 1.6; opacity: 1; }
.tm-sp path.me { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tm-sp .gd { stroke: var(--score); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tm-sp-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--score); border: 2px solid var(--bg); pointer-events: none; }
.tm-sp-x { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; font-size: 0.75rem; line-height: 1; color: var(--muted); }
.tm-sp-x span { position: absolute; top: 0; white-space: nowrap; }
.tm-sp-none { cursor: default; }
.tm-lad { font-size: 0.8rem; min-width: 0; }
.tm-lad-h { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-lad ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 24px minmax(0, max-content) auto; justify-content: start; column-gap: 6px; }
/* the three rows share the columns, so each value sits just after the longest name */
.tm-lad li { display: contents; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-lad li.me { color: var(--ink); font-weight: 700; }
.tm-lad ol.nv { grid-template-columns: 24px minmax(0, max-content); } /* the polls: no value */
.tm-lad-v { text-align: right; }
.tm-lad-p { text-align: right; }
.tm-lad-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-key .tm-sw { display: inline-block; width: 14px; height: 0; vertical-align: middle; margin-right: 5px; border-top: 2px solid var(--ink); }
.tm-key .tm-sw.fld { border-top: 1px solid var(--line-strong); }
.tm-key .tm-sw.nb { border-top: 2px solid var(--muted); }
@media (min-width: 700px) { .tm-rk2 { grid-template-columns: 96px minmax(0, 1fr) 210px; gap: 18px; } .tm-sp, .tm-sp-in { height: 52px; } }

/* NAPPR+ vs all FBS teams */
.tm-dist { max-width: 420px; margin-top: 4px; }
.tm-dist .z { stroke: var(--line-strong); stroke-width: 1; }
.tm-dist circle { fill: var(--ink); }
.tm-dist circle.dt { fill: var(--muted); opacity: 0.55; }
.tm-dist circle.me { fill: var(--score); stroke: var(--bg); stroke-width: 2; }
.tm-dist .mel { fill: var(--ink); font-size: 12px; font-weight: 700; }
.tm-dist .ld { fill: none; stroke: var(--score); stroke-width: 1; }

/* where NAPPR+ comes from, and by situation: rows on one absolute scale, the scale at the top */
.tm-prs { position: relative; }
.tm-sc { margin: 2px 0 2px; }
.tm-sc-cue { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }
.tm-sc .tm-ax { margin-top: 0; }
.tm-pr { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "v" "t" "g"; align-items: baseline; padding: 4px 0 2px; }
.tm-pr-l { grid-area: l; font-size: 0.9rem; }
.tm-pr-l small { color: var(--muted); font-size: 0.78rem; margin-left: 4px; }
.tm-pr-v { grid-area: v; text-align: left; white-space: nowrap; line-height: 1.2; }
.tm-pr.tot .tm-pr-l { font-weight: 700; }
.tm-pr-sep { margin: 10px 0 0; padding-top: 6px; border-top: 1px dashed var(--line-strong); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tm-pr-sep.big { border-top: 2px solid var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.82rem; color: var(--ink); line-height: 1.35; }
/* a dispersion line: the team's value above its mark, the field's marks named above and below in turn */
.tm-ln { grid-area: t; position: relative; display: block; height: 14px; margin: 16px 0 15px; }
.tm-ln svg { position: absolute; inset: 0; width: 100%; height: 14px; overflow: visible; }
.tm-ln .tk { stroke: var(--line-strong); stroke-width: 1; opacity: 0.45; vector-effect: non-scaling-stroke; }
.tm-ln .mk { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tm-ln-lb { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.tm-ln-lb.up { bottom: calc(100% + 3px); } .tm-ln-lb.dn { top: calc(100% + 3px); }
.tm-ln-m { color: var(--muted); }
.tm-ln-v { color: var(--ink); font-size: 12px; font-weight: 700; }
/* the team: a vertical in the text color through the page's "me" dot (the field strips' tm-s-dot.me) */
.tm-ln-me { position: absolute; top: -3px; width: 2px; height: 20px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.tm-ln-me::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; box-sizing: border-box;
  background: var(--ink); border: 2px solid var(--bg); }
/* a small part: the FBS spread of season averages as a band, its ends labeled beside it; each game a dot below */
.tm-ln.tm-bd { margin-bottom: 2px; }
.tm-bd-b { position: absolute; top: 3px; height: 8px; border-radius: 2px; background: var(--line-strong); opacity: 0.35; }
.tm-bd-e { position: absolute; top: 1px; font-size: 11px; line-height: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tm-gds { grid-area: g; position: relative; display: block; }
.tm-gd { position: absolute; width: 7px; height: 7px; margin-left: -3.5px; padding: 0; border-radius: 50%; box-sizing: border-box; cursor: pointer;
  background: transparent; border: 1.5px solid var(--ink); opacity: 0.8; }
.tm-gd::before { content: ""; position: absolute; inset: -6px; } /* a bigger target for a finger */
.tm-gd:hover, .tm-gd:focus-visible { background: var(--ink); opacity: 1; }
.tm-gd:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; }
.tm-gtip { position: absolute; z-index: 12; padding: 4px 8px; border-radius: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 4px 14px var(--shadow); font-size: 0.8rem; white-space: nowrap; pointer-events: none; }
.tm-key .tm-key-me { width: 2px; height: 14px; background: var(--ink); position: relative; margin: 0 9px 0 4px; }
.tm-key .tm-key-me::after { content: ""; position: absolute; left: -4.5px; top: 2px; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; background: var(--ink); border: 2px solid var(--bg); }
.tm-key .tm-key-gd { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); box-sizing: border-box; }
.tm-ax { position: relative; height: 16px; margin-top: 4px; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-ax span { position: absolute; transform: translateX(-50%); }

/* ---------- team page v3: schedule and results (team_sched.js) ---------- */
/* one row a game on one margin axis, every mark on one line with its value over it: the range (bands), the estimate
   (a bar), the line at kickoff (a triangle under the line, its value under it) and the final (a rounded diamond) */
.tm-gr-wrap { position: relative; }
.tm-grs { list-style: none; margin: 0; padding: 0; overflow-x: clip; }
.tm-gr { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; grid-template-areas: "a r b" "t t t"; align-items: center; gap: 0 10px;
  padding: 6px 4px 2px; margin: 0 -4px; border-top: 1px solid var(--line); border-radius: 6px; }
.tm-gr.hd { border-top: 0; padding-top: 0; padding-bottom: 2px; font-size: 0.75rem; color: var(--muted); }
.tm-gr.hd .tm-gr-a { font-size: 0.75rem; color: var(--muted); }
.tm-gr-a { grid-area: a; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; min-width: 0; }
a.tm-gr-a:focus-visible { outline: 2px solid var(--score); outline-offset: 2px; border-radius: 4px; }
.tm-gr[data-i]:hover { background: var(--surface); }
.tm-gr-wk { font-size: 0.8rem; color: var(--muted); }
.tm-gr-opp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-gr-opp small { display: block; color: var(--muted); font-size: 0.78rem; white-space: normal; }
.tm-gr-res { grid-area: r; justify-self: end; font: inherit; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; color: var(--ink); }
button.tm-gr-res { background: none; border: 0; padding: 2px 4px; margin: 0 -4px; border-radius: 4px; cursor: pointer;
  text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button.tm-gr-res:hover, button.tm-gr-res[aria-expanded="true"] { background: var(--bg); text-decoration-style: solid; }
button.tm-gr-res:focus-visible { outline: 2px solid var(--score); outline-offset: 1px; }
.tm-gr-res.w { color: var(--score); } .tm-gr-res.l { color: var(--turn); }
.tm-gr.next .tm-gr-res { font-weight: 400; color: var(--muted); white-space: normal; text-align: right; }
.tm-gr .tm-g-team { grid-area: b; }
/* the line: 13px for the values over it, the marks around its middle (y 22), the line's triangle and value under them */
.tm-gr-tr { grid-area: t; position: relative; display: block; height: 48px; min-width: 0; }
.tm-gr-ax { grid-area: t; position: relative; display: block; height: 16px; min-width: 0; }
.tm-gr-tr i { position: absolute; }
.tm-gr-tr i.hl { left: 0; right: 0; top: 22px; height: 1px; background: var(--line); }
.tm-gr-tr i.tk { top: 20px; height: 5px; width: 1px; background: var(--line-strong); opacity: 0.6; }
.tm-gr-tr i.z { top: 13px; height: 19px; width: 1px; background: var(--line-strong); }
.tm-gr-tr i.b8 { top: 18px; height: 9px; background: var(--line-strong); opacity: var(--gr-b8, 0.25); border-radius: 5px; }
.tm-gr-tr i.b5 { top: 16px; height: 13px; background: var(--line-strong); opacity: var(--gr-b5, 0.5); border-radius: 4px; }
.tm-gr-tr i.es { top: 12px; height: 21px; margin-left: -2px; width: 4px; box-sizing: border-box; border-radius: 1px; background: var(--ink); z-index: 1; }
.tm-gr-tr i.es.bf { margin-left: -3px; width: 6px; background: var(--bg); border: 1.5px solid var(--ink); }
.tm-gr[data-i]:hover .tm-gr-tr i.es.bf { background: var(--surface); }
.tm-gr-tr i.ln { top: 30px; width: 0; height: 0; margin-left: -4.5px; border: 4.5px solid transparent; border-top: 0; border-bottom: 6px solid var(--muted); }
.tm-gr-tr i.fd { top: 15.5px; width: 13px; height: 13px; margin-left: -6.5px; box-sizing: border-box; transform: rotate(45deg); border-radius: 4px;
  border: 1.5px solid var(--bg); z-index: 2; background: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.tm-gr[data-i]:hover .tm-gr-tr i.fd { border-color: var(--surface); }
.tm-gr-tr i.fd.w, .tm-key i.fd.w { background: var(--score); } .tm-gr-tr i.fd.l, .tm-key i.fd.l { background: var(--turn); }
.tm-gr-tr .lb { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.72rem; line-height: 13px; font-weight: 400; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm-gr-tr .lb.f { font-weight: 700; font-size: 0.78rem; } .tm-gr-tr .lb.f.w { color: var(--score); } .tm-gr-tr .lb.f.l { color: var(--turn); }
.tm-gr-tr .lb.bl { top: 37px; line-height: 11px; color: var(--muted); }
/* the key */
.tm-key i.fd { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2.5px; margin: 0 6px 0 2px; }
.tm-key i.fd + i.fd { margin-left: 0; }
.tm-key i.es { width: 4px; height: 14px; box-sizing: border-box; background: var(--ink); border-radius: 1px; }
.tm-key i.es.bf { width: 6px; background: var(--bg); border: 1.5px solid var(--ink); }
.tm-key i.ln { width: 0; height: 0; border: 5px solid transparent; border-top: 0; border-bottom: 7px solid var(--muted); }
.tm-key i.b8 { width: 12px; height: 8px; border-radius: 4px; background: var(--line-strong); opacity: var(--gr-b8, 0.25); }
.tm-key i.b5 { width: 12px; height: 12px; border-radius: 3px; background: var(--line-strong); opacity: var(--gr-b5, 0.5); }
/* the estimate's diamond in other keys (team_why.js) */
.tm-key i.dm { width: 9px; height: 9px; box-sizing: border-box; transform: rotate(45deg); border-radius: 1px; }
.tm-key i.dm.bf { background: var(--bg); border: 2px solid var(--ink); }
.tm-key i.dm.pub { background: var(--ink); border: 2px solid var(--bg); }
.tm-gr-ax span { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.75rem; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tm-gr-ax span.e0 { transform: none; } .tm-gr-ax span.e1 { transform: translateX(-100%); }
@media (max-width: 639px) { .tm-gr-ax span.mn { display: none; } }   /* a phone: 0 and the ends */
.tm-gbox { width: 280px; }
/* the range's bands, a little stronger on the dark page */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gr-b8: 0.4; --gr-b5: 0.65; } }
:root[data-theme="dark"] { --gr-b8: 0.4; --gr-b5: 0.65; }
@media (min-width: 640px) {
  .tm-gr { grid-template-columns: minmax(0, 13rem) 5.6rem minmax(0, 1fr) 24px; grid-template-areas: "a r t b"; padding: 1px 4px; }
  .tm-gr.hd { padding: 0 4px 2px; }
}
/* the game flow card: beside the row on a desktop */
.tm-fl { position: absolute; z-index: 15; width: 326px; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; pointer-events: auto;
  background: var(--surface); color: var(--ink); box-shadow: 0 6px 24px var(--shadow); border: 1px solid var(--line); font-size: 0.85rem; }
.tm-fl .tm-pop-h b.w { color: var(--score); } .tm-fl .tm-pop-h b.l { color: var(--turn); }
.tm-fl-h { margin: 8px 0 3px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tm-fl-s { display: block; overflow: visible; }
.tm-fl-s .ax { fill: var(--muted); font-size: 11px; }
.tm-fl-s .end { fill: var(--ink); font-size: 12px; font-weight: 700; }
.tm-fl-s .q { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.tm-fl-s .z { stroke: var(--line-strong); stroke-width: 1; }
.tm-fl-s .sc { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.tm-fl-s .mk { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.tm-fl-s .mkn { fill: var(--ink); font-size: 11px; font-weight: 700; }
.tm-fl-l { list-style: none; margin: 6px 0 0; padding: 0; }
.tm-fl-l li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 3px 0; border-top: 1px solid var(--line); font-size: 0.8rem; }
.tm-fl-l .mkn { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--ink); font-size: 0.75rem; font-weight: 700; line-height: 1; }
.tm-fl-l b { font-variant-numeric: tabular-nums; } .tm-fl-l b.pos { color: var(--score); } .tm-fl-l b.neg { color: var(--turn); }
.tm-fl-f { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }

/* ---------- team page v3 (Dec 1): polls, the rank by week above NAPPR+ by situation (team_body.js) ---------- */
.tm-pp { display: grid; gap: 22px; }
.tm-pp > div { min-width: 0; }
.tm-pp-h { margin: 0 0 4px; font-family: var(--f-display); font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.03em; }
.tm-pc { max-width: 520px; }
/* three series, each its own line and mark: NAPPR+ solid with dots (ink), the AP dashed with squares, the CFP dotted
   with triangles (both gray); blue and orange stay for better and worse */
.tm-pc .t25 { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.tm-pc .ln, .tm-pl-sw .ln { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tm-pc .ln.me, .tm-pl-sw .ln.me { stroke: var(--ink); stroke-width: 2.2; }
.tm-pc .ln.ap, .tm-pl-sw .ln.ap { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 6 4; }
.tm-pc .ln.cfp, .tm-pl-sw .ln.cfp { stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 0.1 4.5; }
.tm-pc .mk.me, .tm-pl-sw .mk.me { fill: var(--ink); stroke: var(--bg); stroke-width: 1.2; }
.tm-pc .mk.ap, .tm-pl-sw .mk.ap { fill: var(--muted); stroke: var(--bg); stroke-width: 1; }
.tm-pc .mk.cfp, .tm-pl-sw .mk.cfp { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linejoin: round; }
.tm-pc .mk.ap.nr { fill: var(--bg); stroke: var(--muted); stroke-width: 1.3; }
.tm-pc .pl { font-size: 11px; font-variant-numeric: tabular-nums; fill: var(--muted); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.tm-pc .pl.me { fill: var(--ink); font-weight: 700; }
.tm-pc .end, .tm-pc .end.ap, .tm-pc .end.cfp { font-size: 11px; font-weight: 400; fill: var(--muted); } .tm-pc .end.me { fill: var(--ink); font-weight: 700; }
.tm-pl-sw { width: 26px; height: 10px; vertical-align: middle; margin-right: 5px; overflow: visible; }
/* NAPPR+ by situation: the rank-gaps view, the situations stacked at its right (pickers.js seg, laid out in a column) */
.tm-sitw { display: grid; grid-template-columns: minmax(0, 360px) minmax(150px, 210px); gap: 10px 18px; align-items: start; }
.tm-sitv .pk-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.tm-sitv .pk-seg { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: 100%; box-sizing: border-box; border-radius: 12px; }
.tm-sitv .pk-seg button { white-space: normal; text-align: left; border-radius: 9px; line-height: 1.25; }
@media (max-width: 560px) {
  .tm-sitw { grid-template-columns: minmax(0, 1fr); }
  .tm-sitv { order: -1; }
}
/* the small rank-gaps view: the field on the left, the nine around the team opened out on the right */
.tm-gv { max-width: 360px; }
.tm-gv .ax-l { stroke: var(--line-strong); stroke-width: 1; }
.tm-gv .ftk { stroke: var(--muted); stroke-width: 1; opacity: 0.45; }
.tm-gv .fme { stroke: var(--score); stroke-width: 2.5; }
.tm-gv .fan { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.tm-gv .ld { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.tm-gv .dt { fill: var(--muted); } .tm-gv .dme { fill: var(--score); stroke: var(--bg); stroke-width: 2; }
.tm-gv text { font-size: 12px; fill: var(--ink); font-variant-numeric: tabular-nums; }
.tm-gv text.ax { fill: var(--muted); }
.tm-gv .rk, .tm-gv .vl { fill: var(--muted); }
.tm-gv g.me text { font-weight: 700; fill: var(--ink); }
.tm-gv-none { padding: 18px 14px; margin: 4px 0; border: 1px dashed var(--line-strong); border-radius: 10px; }
.tm-gv-none p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

/* ---------- NAPPR+ rank gaps by year: a strip a season, every FBS team a gray mark, the team on top ---------- */
.tm-hy { max-width: 520px; }
.tm-hy .z { stroke: var(--line-strong); stroke-width: 1; opacity: 0.5; }
.tm-hy .fl, .tm-hy .tp { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.tm-hy .fl { opacity: 0.25; } .tm-hy .tp { opacity: 0.8; }
.tm-hy .ln { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0.4; stroke-linejoin: round; }
.tm-hy g.me circle { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; }
.tm-hy g.me text { font-size: 11px; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.tm-hy g.me text.v { fill: var(--ink); font-weight: 700; } .tm-hy g.me text.r { fill: var(--muted); }
.tm-key i.tm-hy-sw { width: 12px; height: 0; border-top: 1px solid var(--line-strong); opacity: 0.3; } .tm-key i.tm-hy-sw.tp { opacity: 0.8; }
.tm-hy-t td, .tm-hy-t th { text-align: right; } .tm-hy-t td:first-child, .tm-hy-t th:first-child { text-align: left; }
.tm-hy-t th { white-space: nowrap; } .tm-hy-t tbody th { font-weight: 600; } .tm-hy-t tbody th small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
@media (max-width: 480px) { .tm-hy-t th, .tm-hy-t td { padding-right: 9px; } }
.tm-hy-t .tm-hy-na { color: var(--muted); text-align: left; }

/* ---------- NAPPR+ week by week: a waterfall, the start and now in gray, a step a game ---------- */
.tm-wf-p { margin: 0 0 6px; }
.tm-wf-w { position: relative; }
.tm-wf { display: block; width: 100%; max-width: 720px; height: auto; overflow: visible; }
.tm-wf .ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tm-wf .z { stroke: var(--line-strong); stroke-width: 1; }
.tm-wf .jn { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.tm-wf rect.tot, .tm-key i.tm-wf-sw { fill: var(--line-strong); background: var(--line-strong); opacity: 0.55; }
.tm-wf rect.pos { fill: var(--score); } .tm-wf rect.neg { fill: var(--turn); }
.tm-wf rect.hit { fill: transparent; }
.tm-wf .v { font-size: 11px; font-variant-numeric: tabular-nums; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.tm-wf .v.tot { font-weight: 700; }
.tm-wf .wk { font-size: 11px; fill: var(--muted); } .tm-wf .op { font-size: 10px; fill: var(--muted); }
.tm-wf .wf-c { cursor: default; outline: none; }
.tm-wf .wf-c:focus-visible rect.hit, .tm-wf .wf-c.on rect.hit { fill: var(--ink); opacity: 0.06; }
.tm-wf .wf-c:focus-visible rect.hit { stroke: var(--score); stroke-width: 1.5; }
.tm-key i.tm-wf-sw { width: 10px; height: 10px; border-radius: 1px; }
.tm-wf-card { position: absolute; z-index: 6; width: min(280px, 100%); box-sizing: border-box; pointer-events: none; }
.tm-wf-card .logo { margin-right: 4px; vertical-align: -3px; }
.tm-wf-card tr.tot th, .tm-wf-card tr.tot td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.tm-wf-card th[scope="row"] { font-weight: 400; }
.tm-wf-card .tm-wf-n { text-align: left; color: var(--muted); font-size: 0.75rem; }

/* ---------- Rating: NAPPR+ and its parts on one absolute scale, the marks' values on the marks ---------- */
.tm-drs { position: relative; margin-top: 4px; }
.tm-dr { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "v" "m" "a" "t" "b"; padding: 7px 0 4px; border-top: 1px solid var(--line); }
.tm-dr.tot .tm-dr-l { font-weight: 700; }
.tm-dr-l { grid-area: l; font-size: 0.9rem; }
.tm-dr-v { grid-area: v; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2; }
.tm-dr-me, .tm-dr-lb { position: relative; display: block; height: 15px; }
.tm-dr-me { grid-area: m; height: 17px; }
.tm-dr-ab { grid-area: a; } .tm-dr-bl { grid-area: b; }
.tm-dr-me span, .tm-dr-lb span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; line-height: 15px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.tm-dr-me span { font-size: 0.85rem; line-height: 17px; font-weight: 700; color: var(--ink); }
.tm-dr-lb small { display: block; font-size: 0.7rem; line-height: 12px; color: var(--muted); }
.tm-dr.nm .tm-dr-lb { height: 27px; }
.tm-dr-ab span { color: var(--ink); } .tm-dr-bl span { color: var(--ink); }
.tm-dr.nm .tm-dr-ab span { top: 0; } .tm-dr.nm .tm-dr-bl span { top: 0; }
.tm-dr-tr { grid-area: t; position: relative; display: block; height: 16px; margin: 2px 0; }
.tm-dr-tr svg { position: absolute; inset: 0; width: 100%; height: 16px; overflow: visible; }
.tm-dr-tr .tk { stroke: var(--line-strong); stroke-width: 1; opacity: 0.45; vector-effect: non-scaling-stroke; }
.tm-dr-tr .z { stroke: var(--ink); stroke-width: 1; opacity: 0.35; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.tm-dr-tr .mk { stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.tm-dr-ax { margin-top: 0; border-top: 1px solid var(--line); padding-top: 3px; height: 18px; }
.tm-key .tm-dr-sw { width: 2px; height: 12px; background: var(--ink); }
/* the bold line under defense: the major parts above it, the one-shot parts below (their dot and value, no marks) */
.tm-dr-cut { margin: 8px 0 0; padding: 6px 0 2px; border-top: 3px solid var(--ink); font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.tm-dr-cut + .tm-dr { border-top: 0; }
/* the one-shot parts game by game, in points: each game a dot (blue better than the average team, orange worse), the
   season average a tick in the text color, 0 a dashed line; one points scale for the five rows */
.tm-rg-h { margin: 18px 0 2px; font-size: 1rem; }
.tm-rgs { position: relative; margin-top: 4px; }
.tm-rg { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "a a" "t t"; padding: 6px 0 2px; border-top: 1px solid var(--line); }
/* a subtotal under its parts: a bold line above it; the game total under both: a heavier one, the row a little stronger */
.tm-rg.sub { border-top: 2px solid var(--ink); margin-top: 4px; }
.tm-rg.sub .tm-rg-l, .tm-rg.tot .tm-rg-l { font-weight: 700; }
.tm-rg.tot { border-top: 4px double var(--ink); margin-top: 6px; padding-top: 8px; }
.tm-rg.sub + .tm-rg:not(.sub):not(.tot) { margin-top: 10px; }
.tm-rg-l { grid-area: l; font-size: 0.9rem; }
.tm-rg-l small { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.tm-rg-v { grid-area: v; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; align-self: center; }
.tm-rg-av { grid-area: a; position: relative; display: block; height: 15px; }
.tm-rg-av span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; line-height: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tm-rg-tr { grid-area: t; position: relative; display: block; }
.tm-rg-z { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--ink); opacity: 0.35; }
.tm-rg-avg { position: absolute; top: -2px; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.tm-rgd { position: absolute; width: 9px; height: 9px; margin-left: -4.5px; padding: 0; border-radius: 50%; box-sizing: border-box; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--ink); }
.tm-rgd.up { background: var(--score); border-color: var(--score); }
.tm-rgd.dn { background: var(--turn); border-color: var(--turn); }
.tm-rgd::before { content: ""; position: absolute; inset: -6px; } /* a bigger target for a finger */
.tm-rgd:hover, .tm-rgd:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); z-index: 2; }
.tm-rgd:focus-visible { outline: none; }
.tm-rg-tip { white-space: normal; width: max-content; max-width: min(100%, 360px); box-sizing: border-box; line-height: 1.35; }
.tm-rg-tn { margin: 10px 0 2px; font-size: 0.8rem; font-weight: 700; }
.tm-key .tm-rg-sw { width: 9px; height: 9px; border-radius: 50%; }
.tm-key .tm-rg-sw.up { background: var(--score); } .tm-key .tm-rg-sw.dn { background: var(--turn); }
.tm-key .tm-rg-sw.avg { width: 2px; height: 12px; border-radius: 1px; background: var(--ink); }
