/* Deep Count Analytics site styles. Blue = primary / runs added, orange = accent / runs cost. */
:root {
  --head-bg: #0e2b57;
  --head-bg-2: #163a70;
  --head-text: #ffffff;
  --head-muted: #b9c8e0;
  --blue: #1f5fbf;
  --blue-dark: #174a96;
  --orange: #f07f1d;
  --orange-text: #b4560b;
  --bg: #eef1f5;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --line: #d5dce6;
  --line-strong: #b9c3d1;
  --text: #17202c;
  --muted: #5a6677;
  --link: #1d5bb5;
  --th-bg: #e7ecf3;
  --row-alt: #f7f9fc;
  --row-hover: #fff3e6;
  --pos-rgb: 31 95 191;
  --neg-rgb: 240 127 29;
  --pos: #2b6bc9;
  --pos-hl: #0e2b57;
  --neg: #f08a2c;
  --neg-hl: #b4560b;
  --grid: #e1e6ed;
  --zero: #7d8a9c;
  --shadow: 0 1px 2px rgba(15, 30, 60, .06);
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --head-bg: #0a1a33; --head-bg-2: #10264a; --head-muted: #a9b9d4;
    --blue: #5b97ea; --blue-dark: #7fb0ff; --orange: #f39242; --orange-text: #f6a865;
    --bg: #0d131b; --panel: #151d28; --panel-2: #1a2431; --line: #29364a; --line-strong: #3a4a62;
    --text: #e4eaf3; --muted: #9aa8ba; --link: #86b5ff; --th-bg: #1d2939; --row-alt: #182230; --row-hover: #2b2418;
    --pos-rgb: 91 151 234; --neg-rgb: 243 146 66; --pos: #4f8be0; --pos-hl: #a9cbff; --neg: #e8893a; --neg-hl: #ffb877;
    --grid: #253244; --zero: #6f7f95; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --head-bg: #0a1a33; --head-bg-2: #10264a; --head-muted: #a9b9d4;
  --blue: #5b97ea; --blue-dark: #7fb0ff; --orange: #f39242; --orange-text: #f6a865;
  --bg: #0d131b; --panel: #151d28; --panel-2: #1a2431; --line: #29364a; --line-strong: #3a4a62;
  --text: #e4eaf3; --muted: #9aa8ba; --link: #86b5ff; --th-bg: #1d2939; --row-alt: #182230; --row-hover: #2b2418;
  --pos-rgb: 91 151 234; --neg-rgb: 243 146 66; --pos: #4f8be0; --pos-hl: #a9cbff; --neg: #e8893a; --neg-hl: #ffb877;
  --grid: #253244; --zero: #6f7f95; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--panel); padding: 6px 10px; z-index: 10; }

/* ---------- masthead ---------- */
.masthead { background: var(--head-bg); color: var(--head-text); }
.mast-row { display: flex; align-items: center; gap: 18px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--head-text); font-weight: 700; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.brand-sub { font-weight: 400; color: var(--head-muted); }
.lm-diamond { fill: var(--orange); }
.lm-ball { fill: #fff; }
.mainnav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.mainnav a { color: var(--head-text); padding: 6px 11px; border-radius: 4px; font-weight: 600; font-size: 15px; }
.mainnav a:hover { background: var(--head-bg-2); text-decoration: none; }
.mainnav a.on { background: var(--head-bg-2); box-shadow: inset 0 -3px 0 var(--orange); }
.search input { width: 190px; padding: 7px 11px; border-radius: 4px; border: 1px solid transparent; font: inherit; font-size: 14px; background: #fff; color: #17202c; }
.search input:focus { outline: 2px solid var(--orange); }
.theme-btn, .menu-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--head-muted); border-radius: 4px; }
.theme-btn:hover, .menu-btn:hover { background: var(--head-bg-2); color: #fff; }
.theme-btn svg, .menu-btn svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-btn svg path { fill: currentColor; stroke: none; }
.menu-btn { display: none; }
.stripe { height: 4px; background: var(--orange); }
.subnav { background: var(--panel); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.subnav a:first-child { padding-left: 0; }
.subnav a:last-child { border-right: 0; }
.subnav a:hover { color: var(--link); text-decoration: none; }

main { padding: 22px 0 40px; min-height: 60vh; }

/* ---------- layout ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 12px; }
.section-h { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--blue); font-weight: 700; }
.section-h + * { margin-top: 0; }
.main-col > .section-h:not(:first-child) { margin-top: 30px; }
.page-h { font-size: 30px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.01em; }

/* ---------- widgets (sidebar) ---------- */
.widget { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.widget-h { margin: 0; padding: 9px 12px; font-size: 15px; background: var(--head-bg); color: var(--head-text); border-bottom: 3px solid var(--orange); }
.widget .more, .embed-board .more { display: block; padding: 8px 12px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.mini th { text-align: right; font-size: 12px; color: var(--muted); padding: 6px 12px 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
table.mini td { padding: 4px 12px; border-top: 1px solid var(--line); text-align: right; }
table.mini .l { text-align: left; }
table.mini td.l:first-child { width: 32px; color: var(--muted); padding-right: 0; }
table.mini tr:nth-child(even) td { background: var(--row-alt); }
.tm { color: var(--muted); font-size: 12px; margin-left: 3px; }
span.pos { color: var(--blue-dark); font-weight: 600; }
span.neg { color: var(--orange-text); font-weight: 600; }
.toc { margin: 0; padding: 10px 12px 10px 32px; font-size: 14px; }
.toc li { margin: 3px 0; }
.more-list { list-style: none; margin: 0; padding: 4px 0; }
.more-list li { padding: 7px 12px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.3; }
.more-list li:first-child { border-top: 0; }
.more-list span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- article cards ---------- */
.card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; box-shadow: var(--shadow); }
.card + .card, .card-list .card { margin-top: 12px; }
.card-list .card:first-child { margin-top: 12px; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--panel-2); }
.card h3 { margin: 4px 0 4px; font-size: 20px; line-height: 1.2; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--link); }
.card .dek { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.card.big { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.card.big .card-img img { border-radius: 0; aspect-ratio: 16 / 9; object-position: center top; }
.card.big .card-body { padding: 4px 18px 16px; }
.card.big h3 { font-size: 28px; }
.byline { margin: 0; font-size: 13px; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--orange-text); }
.tag.draft { color: #fff; background: var(--orange-text); padding: 0 5px; border-radius: 3px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.chip { padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--text); background: var(--panel); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip:hover { text-decoration: none; border-color: var(--blue); }

/* ---------- article page ---------- */
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 22px 30px 30px; box-shadow: var(--shadow); min-width: 0; }
.crumbs { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.post h1 { font-size: 30px; line-height: 1.15; margin: 6px 0 8px; letter-spacing: -.01em; }
.lede { font-size: 17px; line-height: 1.45; color: var(--muted); margin: 0 0 10px; }
.post > .byline { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.hero { margin: 0 0 20px; }
.hero img { width: 100%; border-radius: 4px; }
.hero figcaption, .photo figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.prose { font-family: var(--serif); font-size: 16.5px; line-height: 1.6; max-width: 680px; }
.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-family: var(--sans); font-size: 21px; line-height: 1.25; margin: 1.5em 0 .45em; }
.prose h3 { font-family: var(--sans); font-size: 18px; margin: 1.3em 0 .4em; }
.prose h4, .prose h5 { font-family: var(--sans); font-size: 16px; margin: 1.2em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.prose li { margin: .25em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--orange); color: var(--muted); font-style: italic; }
.prose code { font-size: .85em; background: var(--panel-2); padding: 1px 4px; border-radius: 3px; }
.prose pre { background: var(--panel-2); padding: 12px 14px; overflow-x: auto; border-radius: 4px; font-size: 14px; line-height: 1.5; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose figure { margin: 1.5em 0; font-family: var(--sans); }
.prose .photo img { border-radius: 4px; }
.prose .tablewrap, .prose .chart-card, .prose .embed-board, .prose .embed { max-width: none; }
.fnref { font-family: var(--sans); font-size: 12px; margin-left: 1px; }
.footnotes { font-size: 14px; border-top: 1px solid var(--line); margin-top: 2em; padding-top: 6px; }
.footnotes h2 { font-size: 16px !important; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fnback { font-family: var(--sans); }
table.prose-table { border-collapse: collapse; font-family: var(--sans); font-size: 14px; font-variant-numeric: tabular-nums; width: 100%; }
table.prose-table th, table.prose-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.prose-table th { background: var(--th-bg); font-size: 13px; }
table.prose-table .r { text-align: right; }
table.prose-table .c { text-align: center; }

/* ---------- charts ---------- */
.chart-card { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px 10px; font-family: var(--sans); box-shadow: var(--shadow); }
.post .chart-card { box-shadow: none; }
.chart-head { display: flex; flex-direction: column; margin-bottom: 8px; }
.chart-head b { font-size: 17px; }
.chart-head span { font-size: 14px; color: var(--muted); }
.chart-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
svg.chart { width: 100%; height: auto; display: block; font-family: var(--sans); }
.c-pos { fill: var(--pos); }
.c-neg { fill: var(--neg); }
.c-pos.c-hl { fill: var(--pos-hl); }
.c-neg.c-hl { fill: var(--neg-hl); }
.c-grid { stroke: var(--grid); stroke-width: 1; }
.c-zero { stroke: var(--zero); }
.c-tick { fill: var(--muted); font-size: 13px; }
.c-label { fill: var(--text); font-size: 15px; font-weight: 600; }
.c-val { fill: var(--text); font-size: 13.5px; font-variant-numeric: tabular-nums; }
/* the player/team waterfalls draw wider than their 640-unit layout (up to 760px), so their type is set smaller */
svg.waterfall.c-wide .c-label { font-size: 13px; }
svg.waterfall.c-wide .c-val { font-size: 12px; }
.c-bold { font-weight: 700; fill: var(--text); }
/* scatter (charts.scatter): dots ringed in the panel color, the highlighted club in orange */
.c-diag { stroke: var(--zero); stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }
.c-axis { fill: var(--muted); font-size: 13.5px; }
.c-scatter .c-dot { fill: var(--pos); stroke: var(--panel); stroke-width: 2; transition: opacity .12s; }
.c-scatter .c-pt-hl .c-dot { fill: var(--orange); }
.c-scatter .c-label-hl { fill: var(--orange-text); font-weight: 700; }
.c-scatter .c-pt { outline: none; }
.c-scatter.has-on { cursor: pointer; }
.c-scatter.has-on .c-pt:not(.on) .c-dot { opacity: .5; }
.c-scatter .c-pt.on .c-dot, .c-scatter .c-pt:focus-visible .c-dot { stroke: var(--text); stroke-width: 2.5; }
/* bar rows (charts.bars, the player/team waterfalls): the whole row band is the hover target; a
   see-through tint (like a table row's hover) so the zero line and connectors still show */
.chart .c-hit { fill: transparent; }
.chart .c-row { outline: none; }
.chart a.c-row { cursor: pointer; }
.chart a, .chart a:hover { text-decoration: none; }
.chart .c-row.on .c-hit, .chart .c-row:focus-visible .c-hit { fill: rgb(var(--neg-rgb) / .12); }
.chart .c-bar { transition: opacity .12s; }
.chart.has-on .c-row:not(.on) .c-bar { opacity: .5; }
.chart .c-row.on .c-label { font-weight: 700; }
/* charts drawn twice (charts.responsive, and the waterfalls in player.js / team.js): the narrow
   drawing is laid out for a ~300px phone column, so its type reads at full size there */
.c-resp .c-narrow { display: none; }
@media (max-width: 600px) {
  .c-resp .c-wide { display: none; }
  .c-resp .c-narrow { display: block; }
  .c-narrow .c-label { font-size: 14px; }
  /* a panel-colored halo keeps value labels and connector lines from running into each other */
  .c-narrow .c-label, .c-narrow .c-val { paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
  .c-narrow .c-row.on .c-label, .c-narrow .c-row.on .c-val { stroke: none; }
  .c-narrow .c-val { font-size: 13px; }
  .c-narrow .c-tick { font-size: 12px; }
  .chart-card { padding: 12px 10px 8px; }
}
@media (max-width: 600px) {          /* the chart draws at ~half size on a phone: larger type and dots */
  .c-scatter .c-tick { font-size: 15px; }
  .c-scatter .c-axis { font-size: 15px; }
  .c-scatter .c-label { font-size: 16px; }
  .c-scatter .c-dot { r: 7px; }
  .c-scatter .c-pt-hl .c-dot { r: 9px; }
}
.c-total { fill: var(--head-bg); }
.c-link { stroke: var(--zero); stroke-width: 1; stroke-dasharray: 2 2; }
:root[data-theme="dark"] .c-total { fill: #9db8e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-total { fill: #9db8e0; } }
.embed iframe { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }

/* ---------- leaderboards ---------- */
.board-head { margin-bottom: 10px; }
.board-head p { margin: 0; max-width: 900px; }
.board-controls { background: var(--panel); border: 1px solid var(--line); border-radius: 6px 6px 0 0; border-bottom: 0; }
.tabs { display: flex; background: var(--head-bg); border-radius: 6px 6px 0 0; padding: 0 6px; }
.tab { color: var(--head-muted); padding: 9px 16px; font-weight: 700; font-size: 15px; }
.tab:hover { color: #fff; text-decoration: none; }
.tab.on { color: #fff; box-shadow: inset 0 -3px 0 var(--orange); }
@media (max-width: 600px) {   /* the 2027 boards carry six tabs: wrap them rather than widen the page */
  .tabs { flex-wrap: wrap; }
  .tab { padding: 8px 10px; font-size: 14px; }
}
.ctl-row { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 10px 12px; align-items: end; border-bottom: 1px solid var(--line); }
.ctl { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ctl select, .ctl input[type="search"] { font: inherit; font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; padding: 5px 8px; min-width: 0; }
.ctl input[type="search"] { width: 170px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; border: 0; background: var(--panel); color: var(--text); padding: 5px 11px; cursor: pointer; border-left: 1px solid var(--line-strong); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--blue); color: #fff; }
.check { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 6px; text-transform: none; font-size: 14px; letter-spacing: 0; color: var(--text); font-weight: 600; }
.board-meta { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: var(--panel-2); border: 1px solid var(--line); border-top: 0; border-bottom: 0; font-size: 13px; color: var(--muted); }
.btn-ghost { font: inherit; font-size: 13px; font-weight: 700; color: var(--link); background: none; border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 10px; cursor: pointer; }
.btn-ghost:hover { border-color: var(--blue); }
.tablewrap { overflow-x: auto; }
.board-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 0 0 6px 6px; max-height: 78vh; overflow: auto; }
table.board { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
table.board th { position: sticky; top: 0; z-index: 2; background: var(--th-bg); color: var(--text); font-size: 13px; font-weight: 700; text-align: right; padding: 7px 8px; border-bottom: 2px solid var(--line-strong); white-space: nowrap; cursor: pointer; user-select: none; }
table.board th.l, table.board td.l { text-align: left; }
table.board th:hover { color: var(--link); }
table.board th.sorted { box-shadow: inset 0 -3px 0 var(--orange); }
table.board th.sorted::after { content: " \25BE"; font-size: 10px; color: var(--orange-text); }
table.board th.sorted.asc::after { content: " \25B4"; }
table.board th.grp-start, table.board td.grp-start { border-left: 1px solid var(--line-strong); }
table.board td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.board tbody tr:nth-child(even) td { background-color: var(--row-alt); }
table.board tbody tr:hover td { background-color: var(--row-hover); }
table.board td.rank { color: var(--muted); font-size: 12px; text-align: right; width: 34px; }
table.board td.name { font-weight: 600; position: sticky; left: 0; z-index: 1; background-color: var(--panel); }
table.board th.name { left: 0; z-index: 3; }
table.board tbody tr:nth-child(even) td.name { background-color: var(--row-alt); }
table.board td.key { font-weight: 700; }
table.board td.tint.p { background-image: linear-gradient(rgb(var(--pos-rgb) / var(--a)), rgb(var(--pos-rgb) / var(--a))); }
table.board td.tint.n { background-image: linear-gradient(rgb(var(--neg-rgb) / var(--a)), rgb(var(--neg-rgb) / var(--a))); }
table.board .flag { font-size: 10px; font-weight: 700; color: var(--orange-text); margin-left: 5px; text-transform: uppercase; letter-spacing: .04em; }
table.board.compact { font-size: 13.5px; }
table.board.compact th { position: static; cursor: default; }
.embed-board { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; font-family: var(--sans); margin: 1.5em 0; }

/* ---------- header search ---------- */
.search { position: relative; }
.search-list { position: absolute; top: calc(100% + 4px); right: 0; width: 320px; max-width: 92vw; margin: 0; padding: 4px 0; list-style: none; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 6px 20px rgba(10, 20, 40, .18); z-index: 20; }
.search-list li a { display: block; padding: 6px 12px; color: var(--text); font-size: 14px; font-weight: 600; }
.search-list li a span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.search-list li.on a, .search-list li a:hover { background: var(--row-hover); text-decoration: none; }
.search-list li.none { padding: 6px 12px; font-size: 14px; color: var(--muted); }

/* ---------- player directory ---------- */
.dir-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 12px 0 16px; }
.dir-tools input { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); color: var(--text); width: 260px; max-width: 100%; }
.az-jump { display: flex; flex-wrap: wrap; gap: 2px; }
.az-jump a { padding: 2px 7px; font-weight: 700; font-size: 14px; border-radius: 3px; }
.az-jump a:hover { background: var(--panel); text-decoration: none; }
.az { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
.az h2 { margin: 0; padding: 7px 12px; font-size: 16px; background: var(--head-bg); color: var(--head-text); border-bottom: 3px solid var(--orange); }
.az ul { list-style: none; margin: 0; padding: 8px 12px; columns: 3 260px; column-gap: 24px; }
.az li { font-size: 14px; padding: 2px 0; break-inside: avoid; }
.az li .muted { font-size: 12px; }

/* ---------- player pages ---------- */
.pl-head h1 { font-size: 30px; line-height: 1.15; margin: 4px 0 4px; }
.pl-head h1 .flag { font-size: 12px; vertical-align: middle; margin-left: 10px; color: var(--orange-text); text-transform: uppercase; letter-spacing: .04em; }
.pl-meta { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.pl-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 18px; margin-bottom: 14px; }
.pl-controls .ctl { flex-direction: row; align-items: center; gap: 8px; }
.pl-lb { font-size: 14px; font-weight: 600; padding-bottom: 6px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.pl-body { padding: 4px 16px 14px; }
.pl-body h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--blue); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.stats.pg { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 6px 0; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .v2 { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats.pg .v2 { font-size: 17px; }
.pg-rep { margin: 4px 0; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; max-width: 900px; }
svg.waterfall { max-width: 760px; }
table.cs { width: auto; min-width: 100%; }
table.vt { width: auto; min-width: 0; }
table.mini.vt th, table.mini.vt td { padding-left: 18px; }
table.vt td, table.vt th, table.cs td, table.cs th { white-space: nowrap; }
table.vt td.l { font-weight: 600; }
table.vt tr.t td, table.cs tr.t td { border-top: 2px solid var(--line-strong); font-weight: 700; }
table.vt tr.u td { color: var(--muted); }
table.cs tr.cur td { background: var(--row-hover) !important; }
table.cs td.sep, table.cs th.sep, table.mini td.sep, table.mini th.sep { border-left: 1px solid var(--line-strong); }
/* the source tag after a pitch-quality value: AAA = his Triple-A pitch quality on the MLB scale */
td .src { color: var(--muted); font-size: 10px; letter-spacing: .04em; margin-left: 3px; font-weight: 400; }
table.mini td.tint.p, table.vt td.tint.p { background-image: linear-gradient(rgb(var(--pos-rgb) / var(--a)), rgb(var(--pos-rgb) / var(--a))); }
table.mini td.tint.n, table.vt td.tint.n { background-image: linear-gradient(rgb(var(--neg-rgb) / var(--a)), rgb(var(--neg-rgb) / var(--a))); }
table.board td.name a { color: var(--text); }
table.board td.name a:hover { color: var(--link); }
.ctl input[type="number"] { font: inherit; font-size: 14px; font-weight: 400; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; padding: 5px 8px; width: 90px; }

/* ---------- footer ---------- */
.foot { background: var(--head-bg); color: var(--head-muted); font-size: 13px; padding: 22px 0 26px; border-top: 4px solid var(--orange); }
.foot a { color: #fff; }
.foot p { margin: 6px 0 0; max-width: 900px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; }
.foot-brand .logo-mark { width: 20px; height: 20px; }

/* ---------- projected standings ---------- */
.stand-league { margin-top: 24px; }
.stand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stand-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.stand table.mini td.l:first-child { width: auto; color: var(--text); padding-right: 12px; }
.stand table.mini td, .stand table.mini th { white-space: nowrap; }
.stand table.mini td { padding: 5px 7px; }
.stand table.mini th { padding-left: 7px; padding-right: 7px; }
.stand table.mini td:first-child, .stand table.mini th:first-child { padding-left: 12px; }
.stand table.mini td:last-child, .stand table.mini th:last-child { padding-right: 12px; }
.stand td .seed { margin-left: 4px; }
.stand tr.po td.l a { font-weight: 700; }
.stand tr.cut td { border-bottom: 2px solid var(--orange); }
.stand.seeds table.mini td.l:first-child { width: 44px; }
.seed { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px;
  font-weight: 700; line-height: 18px; text-align: center; }
.seed.wc { background: var(--orange-text); }
@media (max-width: 980px) { .stand-grid, .stand-grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .stand .tm { display: none; } .stand.seeds td.l:last-child { white-space: normal; } }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .mast-row { flex-wrap: wrap; gap: 8px 10px; padding: 8px 16px; }
  .menu-btn { display: block; margin-left: auto; }
  .theme-btn { order: 2; }
  .mainnav { display: none; order: 5; flex-basis: 100%; flex-direction: column; padding-bottom: 8px; }
  .mainnav.open { display: flex; }
  .search { order: 6; flex-basis: 100%; }
  .search input { width: 100%; }
}
@media (max-width: 980px) {
  .two-col, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
}
@media (max-width: 760px) {
  .card { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .card h3 { font-size: 17px; }
  .card .dek { display: none; }
  .card.big { grid-template-columns: 1fr; }
  .card.big h3 { font-size: 22px; }
  .card.big .dek { display: block; }
  .post { padding: 16px 16px 22px; }
  .post h1 { font-size: 25px; }
  .lede { font-size: 16px; }
  .prose { font-size: 16px; }
  .page-h { font-size: 25px; }
  .ctl input[type="search"] { width: 140px; }
}

/* ---------- sources / updated line (data pages) ---------- */
.sources { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; margin: 14px 0 0; line-height: 1.5; }
.sources b { color: var(--text); font-weight: 600; }
table.cs tr.pre td { color: var(--muted); }

/* ---------- leader cards (above the leaderboards) ---------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.leader { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 6px; padding: 10px 14px 12px; color: var(--text); box-shadow: var(--shadow); }
.leader:hover { text-decoration: none; border-color: var(--blue); border-top-color: var(--orange); }
.leader .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.leader .nm { font-size: 19px; font-weight: 700; color: var(--link); }
.leader .big { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.leader .sub { font-size: 13px; color: var(--muted); }
.pl-head h1 .tm { font-size: 16px; font-weight: 600; }

/* ---------- Method page: the dashboard's definitions and checks ---------- */
.prose dl.defs { margin: 0 0 1em; }
.prose dl.defs dt { font-family: var(--sans); font-weight: 700; margin-top: .9em; }
.prose dl.defs dd { margin: .15em 0 0; }
.prose #checks li { margin: .5em 0; font-size: 15.5px; }
.prose .mc-ctl .ctl { flex-direction: row; align-items: center; gap: 8px; font-family: var(--sans); }

/* ---------- tooltips (the dashboard's definitions) ---------- */
th[data-tip], .stat .k[data-tip], .leader .k[data-tip], .ctl .lab[data-tip], table.vt td.l[data-tip], .chart-head b[data-tip] {
  text-decoration: underline dotted; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: help; }
table.board th[data-tip] { cursor: pointer; }
.dc-tip { position: fixed; z-index: 40; pointer-events: none; max-width: 340px; background: var(--head-bg); color: #fff; font-size: 12.5px;
  line-height: 1.4; padding: 6px 9px; border-radius: 5px; border-top: 2px solid var(--orange); box-shadow: 0 4px 14px rgba(10, 20, 40, .2);
  font-family: var(--sans); font-weight: 400; text-transform: none; letter-spacing: 0; }
.dc-tip .tt-h { font-weight: 600; margin-bottom: 3px; color: var(--head-muted); }
.dc-tip .tt-tap { margin-top: 5px; font-size: 11.5px; color: var(--head-muted); font-style: italic; }
.dc-tip .tt-d { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .18); color: var(--head-muted); }
.dc-tip .tt-r b { display: inline-block; min-width: 46px; margin-right: 8px; text-align: right; font-size: 13.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: #fff; }
.stat .k.sub2 { text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 2px; }

/* Best stuff: the ranking comes from the Rank by buttons, so its headers are not sort controls */
#st-tbl th { cursor: default; }
table.board#st-tbl th:hover { color: var(--text); }
