/* The Vitals (sb-vitals.js): DNA, Pulse and Pressure. Loaded after sb.css on the Vitals page and the team page.
   The Vitals panel is the brand's own dark panel (with honey accents) on both light and dark themes. */

.vt-panel, .vt-sheet {
  --vt-bg: #1C2126; --vt-tile: #262D34; --vt-line: #323B44;
  --vt-on: #F2F4F5; --vt-on2: #B4BCC4; --vt-on3: #9AA4AE; --vt-honey: #F2B01E; --vt-ko: #1C2126;
}
.vt-mark { display: block; width: 100%; height: 100%; }

/* ---------- the hex badge ---------- */
.vt-hex { position: relative; display: inline-block; flex: none; width: 52px; aspect-ratio: 80 / 90; --vt-ko: #F2B01E; color: #1C2126; }
.vt-hex > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vt-hex polygon { fill: #F2B01E; stroke: #C98A00; stroke-width: 2.5; stroke-linejoin: round; }
.vt-hex .vt-mark { position: absolute; left: 50%; top: 50%; width: 70%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); }
.vt-hex.off { --vt-ko: #FFFFFF; color: #6B747E; }
.vt-hex.off polygon { fill: #FFFFFF; stroke: #C3CAD0; }
.vt-hex.lg { width: 64px; }
.vt-hex.md { width: 46px; }
.vt-hex.xs { width: 20px; }

/* ---------- the panel ---------- */
.vt-panel {
  background: var(--vt-bg); color: var(--vt-on); border-radius: 20px; padding: 16px;
  display: grid; gap: 14px; box-shadow: 0 0 0 1px color-mix(in srgb, #FFFFFF 6%, transparent);
}
.vt-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vt-eyebrow { margin: 0; font: 700 .95rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--vt-honey, #F2B01E); }
.vt-asof { color: var(--vt-on3); font-size: .82rem; }
.vt-how {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 .85rem/1 var(--font-body); color: #1C2126;
  background: #F2B01E; cursor: pointer; border: 0; border-radius: 999px; min-height: 36px; padding: 0 14px 0 6px; white-space: nowrap;
  transition: background .12s;
}
.vt-how:hover { background: #FFC23A; }
.vt-how:active { background: #E5A514; }
.vt-how:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vt-how-i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1C2126; color: #F2B01E;
  font: 700 .9rem/1 var(--font-display); flex: none; }
.vt-how-light { margin: 14px 0 0; }

.vt-dna { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 4px 2px; border-radius: 12px; }
.vt-dna-text { display: grid; gap: 3px; min-width: 0; }
.vt-dna-name { font: 700 1.55rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }
.vt-dna-line { color: var(--vt-on2); font-size: .92rem; }
.vt-badges { display: flex; gap: 4px; margin-top: 2px; }
.vt-chev { margin-left: auto; font-size: 1.6rem; color: var(--vt-on3); }
.vt-dna:hover .vt-chev { color: var(--vt-honey); }

.vt-genes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.vt-gene {
  display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 12px; text-decoration: none;
  color: var(--vt-on); background: var(--vt-tile); --vt-ko: var(--vt-tile); min-height: 44px;
}
.vt-gene .vt-mark { width: 26px; height: 26px; color: var(--vt-on2); }
.vt-gene b { font: 700 1.15rem/1 var(--font-display); }
.vt-gene span { font-size: .66rem; color: var(--vt-on3); letter-spacing: .02em; }
.vt-gene.g-A b { color: var(--vt-honey); }
.vt-gene.g-A .vt-mark { color: var(--vt-honey); }
.vt-gene.g-D b, .vt-gene.g-F b { color: #F2575F; }
.vt-gene:hover { box-shadow: inset 0 0 0 1px var(--vt-on3); }

.vt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vt-tile {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 12px; border-radius: 14px; background: var(--vt-tile);
  color: var(--vt-on); text-decoration: none; min-width: 0; --vt-ko: var(--vt-tile);
}
a.vt-tile:hover { box-shadow: inset 0 0 0 1px var(--vt-on3); }
.vt-k { font: 700 .8rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--vt-on2); }
.vt-big { display: inline-flex; align-items: baseline; gap: 4px; }
.vt-big b { font: 700 2.4rem/1 var(--font-display); color: var(--vt-c, inherit); }
.vt-big small { font: 600 .78rem/1 var(--font-body); color: var(--vt-on3); letter-spacing: .06em; }
.vt-big.xl b { font-size: 3.4rem; }
.vt-sub { color: var(--vt-on3); font-size: .78rem; line-height: 1.35; }
.vt-empty p { margin: 0; color: var(--vt-on3); font-size: .85rem; }

.vt-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 6px; border-radius: 999px;
  font: 600 .78rem/1.2 var(--font-body); background: color-mix(in srgb, var(--vt-c) 18%, transparent);
  color: color-mix(in srgb, var(--vt-c) 55%, var(--vt-on, var(--ink)));
  white-space: nowrap;
}
.vt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vt-c); flex: none; }
.vt-ti { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--vt-c); color: #FFFFFF; --vt-ko: var(--vt-c);
  padding: 3px; box-sizing: border-box; margin: -5px 0 -5px -4px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--vt-c) 30%, transparent); }

/* the Pulse monitor: SVG lines on a stretched 0-100 grid, HTML dots and labels placed by percent */
.vt-mon { --mon-ink: var(--vt-on3); --mon-line: var(--vt-line); --mon-bg: var(--vt-tile); color: var(--mon-ink); }
.vt-mon-plot { position: relative; height: 46px; }
.vt-mon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vt-mon svg * { vector-effect: non-scaling-stroke; }
.vt-mon-band { fill: var(--vt-c); opacity: .14; }
.vt-mon-zero { stroke: var(--mon-line); stroke-width: 1; }
.vt-mon-line { fill: none; stroke: var(--mon-ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .8; }
.vt-mon-base { stroke: var(--mon-ink); stroke-width: 2; stroke-dasharray: 5 4; }
.vt-mon-rec { stroke: var(--vt-c); stroke-width: 3.5; stroke-linecap: round; }
.vt-mon-dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--mon-ink);
  box-shadow: 0 0 0 1.5px var(--mon-bg); }
.vt-mon-dot.r { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--vt-c); box-shadow: 0 0 0 2px var(--mon-bg); }
.vt-mon.lg .vt-mon-plot { height: 150px; }
/* small tiles: lighter dots and a thinner recent line (the large charts keep the bolder marks) */
.vt-mon:not(.lg) .vt-mon-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.vt-mon:not(.lg) .vt-mon-dot.r { width: 6px; height: 6px; margin: -3px 0 0 -3px; box-shadow: 0 0 0 1.5px var(--mon-bg); }
.vt-mon:not(.lg) .vt-mon-rec { stroke-width: 2; }
.vt-mon:not(.lg) .vt-mon-base { stroke-width: 1.5; stroke-dasharray: 4 3; }
.vt-mon-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; font: 600 .82rem/1.2 var(--font-body); color: var(--mon-ink); }
.vt-mon-key span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vt-mon-key b { color: var(--ink, inherit); font-weight: 700; }
.vt-mon-key .rec b { color: var(--mon-tag, var(--vt-c)); }
.vt-mon-key i { display: inline-block; width: 22px; height: 0; }
.vt-mon-key .rec i { border-top: 3.5px solid var(--vt-c); border-radius: 2px; }
.vt-mon-key .base i { border-top: 2px dashed var(--mon-ink); }
.vt-mon-wks { position: relative; height: 20px; margin-top: 4px; }
.vt-mon-wks span { position: absolute; transform: translateX(-50%); font: 600 .74rem/1 var(--font-body); color: var(--mon-ink); white-space: nowrap; }
.vt-mon-wks span:first-child { transform: none; margin-left: -2px; }
.vt-card .vt-mon { --mon-ink: var(--muted); --mon-line: var(--line); --mon-bg: var(--surface); --mon-tag: color-mix(in srgb, var(--vt-c) 60%, var(--ink));
  margin-top: 14px; }

.vt-gauge-wrap { position: relative; display: block; }
.vt-gauge { width: 100%; max-width: 160px; display: block; }
.vt-gauge .vt-track { fill: none; stroke: #3A2C31; stroke-width: 11; stroke-linecap: round; }
.vt-gauge .vt-fill { fill: none; stroke-width: 11; stroke-linecap: round; }
.vt-gauge .vt-tick { stroke: var(--vt-bg, #1C2126); stroke-width: 2; }
.vt-gauge .vt-needle { stroke: var(--vt-on, #F2F4F5); stroke-width: 3; stroke-linecap: round; }
.vt-gauge .vt-hub { fill: var(--vt-on, #F2F4F5); }
.vt-psi { position: absolute; left: 0; right: 0; max-width: 160px; bottom: -4px; justify-content: center; }
.vt-psi b { font-size: 1.7rem; }
.vt-pressure .vt-gauge-wrap { padding-bottom: 18px; }

.vt-note { margin: 0; color: var(--vt-on2); font-size: .85rem; }

@media (max-width: 420px) {
  .vt-panel { padding: 14px 12px; border-radius: 18px; }
  .vt-tiles { gap: 8px; }
  .vt-tile { padding: 10px; }
  .vt-big b { font-size: 2.1rem; }
  .vt-gene { padding-inline: 0; }
  .vt-gene .vt-mark { width: 22px; height: 22px; }
}

/* ---------- on the team page: under the band ---------- */
.vt-mount { margin-top: 20px; }
.vt-mount[hidden] { display: none; }
@media (min-width: 861px) {
  .vt-mount .vt-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; column-gap: 20px; }
  .vt-mount .vt-top { grid-column: 1 / -1; }
  .vt-mount .vt-dna { grid-column: 1; }
  .vt-mount .vt-genes { grid-column: 1; }
  .vt-mount .vt-tiles { grid-column: 2; grid-row: 2 / span 2; }
}

/* ---------- the Vitals page ---------- */
.vt-head { padding: 32px 0 8px; }
.vt-head h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
.vt-kicker { margin: 0 0 4px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.vt-lede { margin: 8px 0 0; max-width: 60ch; color: var(--muted); font-size: 1.02rem; }
.vt-lede b { color: var(--ink); }
.vt-boards { padding: 16px 0 48px; }
.vt-tabs { margin-bottom: 14px; }
.vt-tabs button { min-width: 92px; justify-content: center; }
.vt-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--chalk); }
.vt-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.vt-filters .chips { margin: 0; }
.vt-filters .seg button[aria-pressed="true"] { background: var(--ink); color: var(--chalk); }
.vt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vt-h { font-size: 1.5rem; margin: 6px 0 8px; }
@media (max-width: 1099px) { .vt-two { grid-template-columns: 1fr; gap: 8px; } }   /* two lists side by side only when names have room */

.vt-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vt-list li + li { border-top: 1px solid var(--line); }
.vt-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); min-height: 52px; }
.vt-row:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.vt-n { width: 22px; text-align: right; color: var(--muted); font-weight: 600; font-size: .85rem; flex: none; }
.vt-who { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.vt-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-who small { color: var(--muted); font-size: .8rem; }
@media (max-width: 899px) { .vt-list .vt-who .vt-city { display: none; } }   /* phones and tablets: "Buccaneers", not "Tampa Bay Bucc…" */
.vt-val { display: inline-flex; align-items: baseline; gap: 3px; flex: none; }
.vt-val b { font: 700 1.5rem/1 var(--font-display); color: var(--vt-c, var(--ink)); }
.vt-val small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.vt-row .vt-chip { --vt-on: var(--ink); min-width: 0; }
.vt-moved { font-size: .75rem; font-weight: 700; flex: none; display: inline-flex; align-items: baseline; gap: 2px; }
.vt-moved .vt-tri { width: .6rem; height: .48rem; fill: currentColor; flex: none; }
.vt-moved.up { color: #D9480F; }
.vt-moved.down { color: #1C6FD1; }
.vt-exp { color: var(--muted); font-size: .8rem; flex: none; width: 92px; text-align: right; }
.vt-meter { flex: 0 1 120px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.vt-meter i { display: block; height: 100%; border-radius: 4px; }
@media (max-width: 600px) {
  .vt-row { gap: 8px; padding: 10px; }
  .vt-row .vt-chip { padding: 3px; background: none; }
  .vt-row .vt-chip-t { display: none; }
  .vt-row .vt-chip .vt-ti { margin: -3px; }
  .vt-press .vt-exp, .vt-press .vt-meter { display: none; }
  .vt-n { width: 18px; }
}
.vt-more { font: 600 .9rem/1 var(--font-body); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; margin-top: 12px; }
.vt-fine { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.vt-panel .vt-fine, .vt-sheet .vt-fine { color: var(--vt-on3); }

/* DNA board: cards wide enough for a full team name, a record with ties and all six grades (3 across on desktop) */
.vt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 10px; }
.vt-dcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 8px; align-items: center;
  padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.vt-dcard:hover { border-color: var(--muted); }
.vt-dcard .vt-hex { grid-row: span 2; }
.vt-dcard .vt-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .vt-dcard .vt-who b { white-space: normal; } }
.vt-letters { display: flex; gap: 4px; }
.vt-letters span { min-width: 30px; text-align: center; padding: 3px 0; border-radius: 6px; font: 700 .85rem/1 var(--font-display);
  background: color-mix(in srgb, var(--ink) 8%, transparent); }
.vt-letters .g-A { background: #F2B01E; color: #1C2126; }
.vt-letters .g-B { background: color-mix(in srgb, #F2B01E 35%, transparent); }
.vt-letters .g-D, .vt-letters .g-F { color: #C42A33; }
:root[data-theme="dark"] .vt-letters .g-D, :root[data-theme="dark"] .vt-letters .g-F { color: #FF8A8A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vt-letters .g-D, :root:not([data-theme="light"]) .vt-letters .g-F { color: #FF8A8A; } }
.vt-letters span.on { box-shadow: 0 0 0 2px var(--ink); }

/* ---------- a team's or player's own view ---------- */
.vt-crumbs { padding: 12px 0 0; font-size: .85rem; color: var(--muted); }
.vt-crumbs a { color: var(--muted); }
.vt-back { display: inline-flex; align-items: center; gap: 3px; padding: 6px 8px 6px 0; font-weight: 600; text-decoration: none; }
.vt-back:hover { color: var(--ink); }
.vt-back-i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.vt-back:hover .vt-back-i { transform: translateX(-2px); }
.vt-band { background: var(--band-bg); color: var(--band-fg); margin-top: 10px; }
.vt-band .wrap { display: flex; gap: 20px; align-items: center; padding-block: 22px; }
.vt-band .badge { height: 72px; }
.vt-band .meta { margin: 0; opacity: .82; font-weight: 500; font-size: .9rem; }
.vt-band h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 2px 0 6px; }
.vt-band-links { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vt-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px 0 9px; border-radius: 999px;
  font: 700 .78rem/1 var(--font-body); color: inherit; text-decoration: none;
  background: color-mix(in srgb, currentColor 12%, transparent); border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  transition: background .15s, border-color .15s; }
.vt-btn .vt-ic, .vt-btn .vt-go { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vt-btn .vt-go { width: 11px; height: 11px; opacity: .75; transition: transform .15s; }
.vt-btn:hover { background: color-mix(in srgb, currentColor 24%, transparent); border-color: currentColor; }
.vt-btn:hover .vt-go { transform: translateX(2px); }
.vt-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.vt-team { display: grid; gap: 16px; padding: 18px 0 48px; }
@media (min-width: 900px) {
  .vt-team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .vt-lead, .vt-panel-player { grid-column: 1 / -1; }
  .vt-team .vt-players { grid-column: 1 / -1; }   /* full width under DNA, Pulse and Pressure */
  .vt-lead .vt-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 20px; }
  .vt-lead .vt-top { grid-column: 1 / -1; }
  .vt-lead .vt-tiles { grid-column: 2; grid-row: 2 / span 2; }
}
.vt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; scroll-margin-top: 12px; }
.vt-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.vt-card .vt-sub { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.vt-card .vt-sub b { color: var(--ink); }
.vt-reading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vt-reading .vt-big small { color: var(--muted); }
.vt-reading .vt-chip, .vt-card .vt-chip { --vt-on: var(--ink); }
.vt-reading-gauge { flex-wrap: nowrap; align-items: center; }
.vt-reading-gauge > div { min-width: 0; }
.vt-reading-col { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vt-reading-col .vt-moved { flex-basis: 100%; }
.vt-gauge.lg { width: 150px; max-width: 40vw; flex: none; }
.vt-card .vt-gauge .vt-needle { stroke: var(--ink); }
.vt-card .vt-gauge .vt-hub { fill: var(--ink); }
.vt-card .vt-gauge .vt-track { stroke: color-mix(in srgb, var(--ink) 12%, transparent); }
.vt-card .vt-gauge .vt-tick { stroke: var(--surface); }
.vt-zones { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.vt-zones li { font-size: .7rem; line-height: 1.25; color: var(--muted); border-top: 5px solid var(--vt-c); padding-top: 5px; }
.vt-zones li b { display: block; color: var(--ink); }
.vt-zones li.on { color: var(--ink); font-weight: 600; }
.vt-callout { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, #F2B01E 20%, transparent); font-weight: 600; }
.vt-tag { font-style: normal; font-size: .7rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }

.vt-rc { list-style: none; margin: 10px 0 0; padding: 0; }
.vt-rc-row + .vt-rc-row { border-top: 1px solid var(--line); }
.vt-rc-row { scroll-margin-top: 12px; }
.vt-rc-btn {
  width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; grid-template-areas: "m n l" "m b r";
  gap: 4px 10px; align-items: center; padding: 10px 2px; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: var(--ink);
}
.vt-rc-mark { grid-area: m; width: 34px; height: 34px; color: var(--ink); --vt-ko: var(--surface); }
.vt-rc-name { grid-area: n; font-size: .92rem; }
.vt-rc-name b { font-family: var(--font-display); font-size: 1.1rem; margin-right: 4px; }
.vt-rc-letter { grid-area: l; justify-self: end; font: 700 1.35rem/1 var(--font-display); }
.vt-rc-letter.g-A { color: #B87F00; }
:root[data-theme="dark"] .vt-rc-letter.g-A { color: #F2B01E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vt-rc-letter.g-A { color: #F2B01E; } }
.vt-rc-letter.g-D, .vt-rc-letter.g-F { color: var(--loss); }
.vt-rc-bar { grid-area: b; position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.vt-rc-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ink); }
.vt-rc-bar u { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--surface); }
.vt-rc-rank { grid-area: r; justify-self: end; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.vt-rc-btn[aria-expanded="true"] .vt-rc-bar i { background: #F2B01E; }
.vt-rc-more { padding: 0 0 12px 44px; }
.vt-markers { width: 100%; border-collapse: collapse; font-size: .85rem; }
.vt-markers th { text-align: right; color: var(--muted); font-weight: 600; font-size: .75rem; padding: 4px 0 4px 8px; }
.vt-markers th:first-child { text-align: left; }
.vt-markers td { text-align: right; padding: 5px 0 5px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.vt-markers td:first-child { text-align: left; white-space: normal; }
.vt-markers td.up { color: var(--win); font-weight: 700; }
.vt-markers td.down { color: var(--loss); font-weight: 700; }
.vt-hist { width: 100%; border-collapse: collapse; font-size: .9rem; }
.vt-hist th { text-align: left; color: var(--muted); font-size: .75rem; font-weight: 600; padding: 4px 0; }
.vt-hist td { padding: 6px 0; border-top: 1px solid var(--line); }
.vt-mini { font-size: .75rem; color: var(--muted); margin-left: 4px; }
.vt-mini::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vt-c); margin-right: 4px; }
.vt-band-player .avatar { flex: none; }

/* ---------- "How it works" ---------- */
.vt-sheet { border: 0; padding: 0; background: var(--vt-bg); color: var(--vt-on); border-radius: 18px; max-width: min(560px, 100% - 24px); max-height: 85vh; }
.vt-sheet::backdrop { background: rgb(0 0 0 / .55); }
.vt-sheet-in { position: relative; padding: 22px 20px 20px; }
.vt-sheet h3 { font-size: 1.35rem; margin: 22px 0 6px; color: var(--vt-honey); }
.vt-sheet p { margin: 0; color: var(--vt-on2); font-size: .95rem; line-height: 1.5; }
.vt-sheet section { scroll-margin-top: 104px; }   /* clears the sticky top bar */
.vt-sheet-top { position: sticky; top: 0; z-index: 2; margin: -22px -20px 0; padding: 18px 64px 12px 20px; background: var(--vt-bg);
  border-bottom: 1px solid transparent; transition: border-color .15s, box-shadow .15s; }
.vt-sheet.scrolled .vt-sheet-top { border-bottom-color: var(--vt-line); box-shadow: 0 8px 14px -10px rgb(0 0 0 / .6); }
.vt-gtabs { display: flex; gap: 6px; margin: 12px 0 0; }
.vt-gtabs a { font: 700 .85rem/1 var(--font-body); color: var(--vt-on); text-decoration: none; padding: 9px 14px; border-radius: 999px; background: var(--vt-tile); }
.vt-gtabs a[aria-current="true"] { background: var(--vt-honey); color: #1C2126; }
.vt-gl-genes, .vt-gl-grades, .vt-gl-tiers { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.vt-gl-genes li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--vt-tile); }
.vt-gl-genes .vt-hex { width: 40px; }
.vt-gl-genes b { font: 700 1.05rem/1.2 var(--font-display); }
.vt-gl-genes div > span { color: var(--vt-on2); font-weight: 600; font-size: .85rem; }
.vt-gl-genes p { font-size: .85rem; margin-top: 2px; }
.vt-gl-grades { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.vt-gl-grades li { display: grid; gap: 2px; padding: 8px 6px; border-radius: 10px; background: var(--vt-tile); text-align: center; }
/* each grade is its own tile, colored like the DNA letter tiles, so "A+ A A-" doesn't run together */
.vt-gl-gs { display: flex; justify-content: center; gap: 3px; margin-bottom: 3px; }
.vt-gl-gs i { flex: 0 1 26px; min-width: 0; padding: 4px 0 3px; border-radius: 6px; font: 700 .85rem/1 var(--font-display); font-style: normal;
  text-align: center; background: color-mix(in srgb, var(--vt-on) 10%, transparent); color: var(--vt-on); }
.vt-gl-gs .g-A { background: #F2B01E; color: #1C2126; }
.vt-gl-gs .g-B { background: color-mix(in srgb, #F2B01E 35%, transparent); }
.vt-gl-gs .g-D, .vt-gl-gs .g-F { color: #FF8A8A; }
.vt-gl-grades span { font-size: .72rem; color: var(--vt-on3); }
.vt-gl-tiers li { display: grid; grid-template-columns: 150px 82px 1fr; align-items: center; gap: 10px; font-size: .88rem; }
.vt-gl-tiers b { color: var(--vt-on); }
.vt-gl-tiers span { color: var(--vt-on2); }
@media (max-width: 480px) {
  .vt-gl-tiers li { grid-template-columns: 1fr auto; }
  .vt-gl-tiers li > span:last-child { grid-column: 1 / -1; margin-top: -4px; }
  .vt-gl-grades { grid-template-columns: repeat(3, 1fr); }
}
.vt-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--vt-tile); color: var(--vt-on); font-size: 1.4rem; line-height: 1; }
@media (max-width: 600px) {
  .vt-sheet { margin: auto 0 0; max-width: 100%; width: 100%; border-radius: 18px 18px 0 0; }
}

/* ---------- review batch (Nov 6): movement slot, Also tracked, legends, the DNA board's Rank by ---------- */
/* movement sits just left of the value it describes, on the number's baseline */
.vt-val .vt-moved { margin-right: 5px; position: relative; top: -1px; }   /* a touch above the baseline reads as level with the big number */
@media (max-width: 374px) { .vt-list .vt-row .vt-val small { display: none; } }   /* smallest phones: drop the BPM/PSI label */
@media (max-width: 760px) { .vt-press .vt-exp, .vt-press .vt-meter { display: none; } }   /* narrow tablets: names before the pace columns */
.vt-rc-h { margin: 18px 0 0; font: 700 1rem/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.vt-rc-h span { text-transform: none; letter-spacing: 0; font: 500 .82rem var(--font-body); margin-left: 6px; }

.vt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; width: 100%; margin: 0 0 14px; padding: 10px 12px;
  border-radius: 14px; border: 1px dashed var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.vt-legend .vt-chip { --vt-on: var(--ink); }
.vt-legend-q { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 .82rem/1 var(--font-body); color: var(--ink); }
.vt-legend-q .vt-how-i { width: 20px; height: 20px; font-size: .78rem; background: #F2B01E; color: #1C2126; }
.vt-legend:hover { border-style: solid; border-color: var(--muted); }

.vt-rankby { display: grid; gap: 8px; margin-bottom: 12px; }
.vt-rankby-k { font: 700 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vt-rankby .chips { margin: 0; }
.vt-gchip { display: inline-flex; align-items: center; gap: 6px; --vt-ko: var(--surface); }
.vt-gchip .vt-mark { width: 22px; height: 22px; flex: none; color: currentColor; }
.vt-gchip span { font-weight: 500; } .vt-gchip span i { font-style: normal; }
.vt-gchip span b { font-weight: 700; }
.vt-gchip[aria-pressed="true"] { --vt-ko: var(--ink); }
.vt-explain-gene, .vt-explain { margin: 0 0 12px; padding: 2px 0 2px 10px; border-left: 3px solid #F2B01E; font-size: .86rem; line-height: 1.4; color: var(--muted); max-width: 70ch; }
.vt-explain-gene b, .vt-explain b { color: var(--ink); font-weight: 700; }
.vt-dna-hint { margin: 0 0 12px; }
.vt-dcard.ranked { grid-template-columns: auto 1fr auto; }
.vt-dcard.ranked .vt-letters { grid-column: 2 / -1; }
.vt-dbig { font: 700 2rem/1 var(--font-display); justify-self: end; }
.vt-dbig.g-A { color: #B87F00; }
.vt-dbig.g-D, .vt-dbig.g-F { color: var(--loss); }
:root[data-theme="dark"] .vt-dbig.g-A { color: #F2B01E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vt-dbig.g-A { color: #F2B01E; } }
.vt-letters .vt-lt { display: grid; justify-items: center; gap: 2px; padding: 4px 0 3px; --vt-ko: color-mix(in srgb, var(--ink) 8%, var(--surface)); }
.vt-letters .vt-lt .vt-mark { width: 16px; height: 16px; color: currentColor; opacity: .85; }
.vt-letters .vt-lt b { font: 700 .85rem/1 var(--font-display); }
.vt-letters .vt-lt.g-A { --vt-ko: #F2B01E; }
.vt-letters .vt-lt.g-B { --vt-ko: color-mix(in srgb, #F2B01E 35%, var(--surface)); }
/* board rows: every chip the same width, so the numbers line up in a column */
@media (min-width: 601px) { .vt-list .vt-row .vt-chip { width: 152px; flex: none; } }
@media (max-width: 600px) { .vt-list .vt-row .vt-chip { width: 26px; flex: none; justify-content: center; } }
/* phone: the gene chips show the animal only (the explanation card gives the trait) */
@media (max-width: 600px) { .vt-gchip span i { display: none; } }

/* Players' Pulse on a team: hot and cold side by side (desktop), then everyone in two columns */
.vt-pcols { display: grid; gap: 6px 20px; }
.vt-pcols .vt-h { font-size: 1.15rem; margin: 6px 0 8px; }
@media (min-width: 900px) { .vt-pcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@media (max-width: 899px) {   /* one column: the two halves of "all" read as one list */
  .vt-pcols.all { gap: 0; }
  .vt-pcols.all ol:first-child { border-bottom: 0; border-radius: 14px 14px 0 0; }
  .vt-pcols.all ol + ol { border-radius: 0 0 14px 14px; }
}
.vt-side { display: grid; gap: 16px; align-content: start; min-width: 0; }   /* Pulse and Pressure stacked beside the DNA card */
