:root {
  --bg: #0f1512; --panel: #17211b; --panel2: #1d2a22; --line: #2a3a30;
  --text: #e8ede9; --muted: #93a398; --accent: #d4af37; --green: #3fa860;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.site { background: linear-gradient(180deg, #14201a, #0f1512);
  border-bottom: 2px solid var(--accent); padding: 18px 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: .5px; color: #fff; }
.brand span { color: var(--accent); }
nav.main { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.main a { color: var(--muted); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px; }
nav.main a.active, nav.main a:hover { color: #fff; text-decoration: none; }
main { padding: 28px 0 60px; }
h1 { font-size: 30px; margin: 0 0 6px; } h2 { margin-top: 36px; }
.sub { color: var(--muted); margin: 0 0 24px; }
.banner { background: var(--panel2); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 8px;
  margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; margin: 20px 0; }
.card { background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; }
.card .num { font-size: 24px; font-weight: 800; color: var(--accent); }
.card .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px; }
.tbl-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 14px 0 30px;
  background: var(--panel); font-size: 14.5px; border-radius: 10px; overflow: hidden; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line);
  white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--panel2); color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px; cursor: pointer; user-select: none; }
thead th.sorted-asc::after { content: " \25B2"; color: var(--accent); }
thead th.sorted-desc::after { content: " \25BC"; color: var(--accent); }
tbody tr:hover { background: var(--panel2); }
tr.total td { font-weight: 700; border-top: 2px solid var(--accent); }
.star { color: var(--accent); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 1px; }
.badge.preview { background: #1e3a5f; color: #9cc4ee; }
.badge.recap { background: #3d2b1a; color: #eec89c; }
.badge.news { background: #1e3d2a; color: #9ceebc; }
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px; }
.teamgrid a.card { display: block; color: var(--text); }
.teamgrid a.card:hover { border-color: var(--accent); text-decoration: none; }
.teamgrid .rec { color: var(--muted); font-size: 14px; }
.post { max-width: 760px; }
.post h1 { margin-bottom: 2px; }
.postmeta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.postlist .card { margin-bottom: 14px; }
.postlist h3 { margin: 6px 0 6px; }
.matrix td.self { background: #101713; color: var(--line); }
footer.site { border-top: 1px solid var(--line); color: var(--muted);
  font-size: 13px; padding: 18px 0 40px; }
@media (max-width: 640px) { .brand { font-size: 20px; } h1 { font-size: 24px; } }

.teamgrid a.card.former { opacity: .68; }
.teamgrid a.card.former:hover { opacity: 1; }
.matrix th.former-h, .matrix td.rowhead.former-h,
.matrix td.rowhead.former-h a { color: var(--muted); opacity: .75; }
.matrix th.divide, .matrix td.divide { border-left: 2px solid var(--accent); }
.matrix tr.divide-row td { border-top: 2px solid var(--accent); }
nav.main .nav-item { position: relative; }
.nav-item > a { color: var(--muted); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px; }
.nav-item .dropdown { display: none; position: absolute; top: 100%; left: -8px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 0; min-width: 190px; z-index: 20; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 16px; color: var(--muted);
  font-size: 13px; text-transform: none; letter-spacing: .3px; }
.dropdown a:hover { color: #fff; background: var(--panel); text-decoration: none; }
a.former-link { color: var(--muted); font-style: italic; opacity: .8; }
a.former-link:hover { color: var(--accent); opacity: 1; }
/* nav alignment + polish batch */
html { scroll-behavior: smooth; }
h2 { scroll-margin-top: 16px; }
nav.main { align-items: baseline; }
nav.main .nav-item { display: inline-block; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.toc a { font-size: 12px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.toc a:hover { color: #fff; border-color: var(--accent); text-decoration: none; }
thead th { position: sticky; top: 0; z-index: 5; }
@media (min-width: 900px) { .tbl-wrap { overflow-x: visible; } }
.cards.rivalry { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rivalry .rivname { font-size: 19px; font-weight: 700; margin: 3px 0 2px; }
.rec.nowrap { white-space: nowrap; }
