/* Design tokens live in chainline-tokens.css (loaded first). */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; }
body {
  color: var(--cream); font-family: var(--ui); min-height: 100vh;
  /* parquet board — matches the scorer's warm lit-wood surface */
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,0) 0 15px, rgba(0,0,0,0.13) 15px 16px),
    linear-gradient(168deg, #2a1d0f 0%, #1c140b 52%, #120c06 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--maple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── top nav (slim, single row) ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 16px; background: rgba(21,15,8,0.9);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--maple-dim);
}
.nav .brand { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.03em; color: var(--cream); white-space: nowrap; }
.nav .brand:hover { text-decoration: none; }
.nav .brand b { color: var(--red); }
.nav .user { display: flex; align-items: center; gap: 8px; }
.sport-pill {
  background: var(--surface); border: 1px solid var(--maple-dim); border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: 13px; color: var(--cream); cursor: pointer;
}
.sport-pill:hover { border-color: var(--maple); }
.menu-btn {
  width: 42px; height: 42px; flex-shrink: 0; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--maple-dim); border-radius: 11px; transition: 0.15s;
}
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--cream); transition: 0.2s; }
.menu-btn:hover { background: var(--surface-2); border-color: var(--maple); }
.menu-btn:hover span { background: var(--maple); }

/* ── right-side drawer ── */
.drawer-bg {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,7,4,0.55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 95; height: 100%; width: 290px; max-width: 84vw;
  display: flex; flex-direction: column; padding: 14px;
  background: var(--surface); border-left: 1px solid var(--maple-dim);
  box-shadow: -24px 0 70px rgba(0,0,0,0.55);
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.drawer-head .brand { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.03em; color: var(--cream); white-space: nowrap; }
.drawer-head .brand:hover { text-decoration: none; }
.drawer-head .brand b { color: var(--red); }
.drawer-close { background: none; border: none; color: var(--cream-dim); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 8px; }
.drawer-close:hover { color: var(--cream); background: var(--surface-2); }
.drawer-user { display: flex; align-items: center; gap: 11px; padding: 12px; background: var(--surface-2); border-radius: 12px; margin-bottom: 12px; }
.drawer-user:hover { text-decoration: none; }
.avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--red); color: #2a0f0a; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 17px; }
.drawer-user .dn { font-weight: 700; font-size: 14px; color: var(--cream); }
.drawer-user .de { font-size: 12px; color: var(--cream-dim); overflow: hidden; text-overflow: ellipsis; }
.drawer-links { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.drawer-links a { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--cream-dim); position: relative; }
.drawer-links a .ic { width: 22px; display: inline-flex; align-items: center; justify-content: center; opacity: 0.85; }
.drawer-links a.active .ic, .drawer-links a:hover .ic { opacity: 1; }
.drawer-links a:hover { background: var(--surface-2); color: var(--cream); text-decoration: none; }
.drawer-links a.active { background: var(--surface-2); color: var(--cream); }
.drawer-links a.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 2px 2px 0; background: var(--red); }
.drawer-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--maple-dim); }
.drawer-foot .btn { width: 100%; }
.drawer-ext { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-md, 12px); background: var(--surface-2); border: 1px solid var(--maple-dim); color: var(--cream); font-weight: 600; font-size: 14px; text-decoration: none; }
.drawer-ext svg { color: var(--maple); }

/* desktop: dock the nav as a permanent left rail (drawer markup reused, no hamburger) */
@media (min-width: 1040px) {
  body.has-rail { padding-left: 256px; }
  body.has-rail .menu-btn, body.has-rail .drawer-close, body.has-rail .drawer-bg { display: none !important; }
  body.has-rail .drawer {
    transform: none; left: 0; right: auto; width: 256px; max-width: 256px;
    border-left: none; border-right: 1px solid var(--maple-dim); box-shadow: none;
    background: linear-gradient(180deg, var(--surface-2), var(--surface) 220px);
  }
  body.has-rail .drawer-head { padding: 8px 4px 14px; }
  body.has-rail .nav .brand { display: none; }
}
select, input, textarea {
  background: var(--ink); color: var(--cream); border: 1px solid var(--maple-dim);
  border-radius: 8px; padding: 9px 11px; font-size: 14px; font-family: var(--ui); outline: none;
}
select:focus, input:focus, textarea:focus { border-color: var(--red); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface); color: var(--cream); border: 1px solid var(--maple-dim);
  border-radius: 9px; padding: 9px 15px; font-family: var(--ui); font-weight: 600;
  font-size: 14px; cursor: pointer; transition: transform 0.08s, background 0.15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--red); color: #2a0f0a; border-color: transparent; font-weight: 700; }
.btn-solid:hover { background: var(--red-deep); color: var(--cream); }
.btn-maple { background: var(--maple); color: #1c140b; border-color: transparent; font-weight: 700; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(216,73,59,0.5); font-weight: 700; }
.btn-danger:hover { background: var(--red); color: #2a0f0a; border-color: transparent; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── layout ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 18px 60px; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: 0.02em; }
.sub { color: var(--cream-dim); font-size: 13px; }
.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--maple) 12%), var(--surface));
  border: 1px solid var(--maple-dim); border-radius: var(--r-lg);
  padding: 18px; margin-bottom: 16px; box-shadow: var(--elev-1);
}
.card h2, .card h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0.02em; margin-bottom: 10px; color: var(--cream); }
.page-head h1 { text-shadow: 0 1px 0 rgba(0,0,0,0.4); }

/* quick-action entry cards — tactile lit-wood tiles into the main sections */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; margin-bottom: 18px; }
.qa-card {
  display: flex; flex-direction: column; gap: 5px; padding: 16px 16px 18px;
  border-radius: var(--r-lg); border: 1px solid var(--maple-dim);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--elev-1); color: var(--cream); position: relative; overflow: hidden;
  transition: transform 0.12s ease, border-color 0.2s, box-shadow 0.2s;
}
.qa-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, var(--maple)); opacity: 0.85; }
.qa-card::after { content: "→"; position: absolute; top: 13px; right: 14px; color: var(--maple); opacity: 0.55; font-size: 15px; }
.qa-card:hover { transform: translateY(-2px); border-color: var(--maple); text-decoration: none; box-shadow: var(--elev-2); }
.qa-card .qa-ic { line-height: 0; color: var(--accent, var(--maple)); margin-bottom: 2px; }

/* inline-SVG icons (replace emoji): align to text, inherit color via currentColor */
.cl-ic { vertical-align: -0.18em; flex: none; }
button .cl-ic, .btn .cl-ic, a.btn .cl-ic { margin-right: 5px; }
h2 .cl-live, h3 .cl-live { vertical-align: 0.08em; margin-right: 4px; }
.feature .ic { line-height: 0; color: var(--maple); }
.feature .ic .cl-ic { vertical-align: 0; }
.bell-btn .cl-ic { vertical-align: -0.22em; }
.qa-card .qa-t { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.02em; }
.qa-card .qa-s { font-size: 12px; color: var(--cream-dim); }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 22px 2px 10px; }
.section-head h2 { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: 0.03em; }
.section-head a { font-size: 12px; }
.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--cream-dim); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pill.live { background: var(--red); color: #2a0f0a; }
.pill.pro { background: var(--maple); color: #1c140b; }
.pill.prov { background: var(--surface-2); color: var(--cream-dim); }

/* ── tables ── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--maple-dim); font-size: 14px; }
th { color: var(--maple); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
tr:hover td { background: rgba(255,255,255,0.02); }
.rating-num { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--maple); }
.rank-num { font-family: var(--display); font-weight: 800; color: var(--cream-dim); width: 36px; }

/* ── auth ── */
.auth-wrap { max-width: 400px; margin: 8vh auto; padding: 0 18px; }
.auth-wrap .card { padding: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); }
.field input { width: 100%; }
.divider-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--cream-dim); font-size: 12px; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--maple-dim); }
.err { color: var(--red); font-size: 13px; margin-top: 8px; }
.ok { color: var(--green); font-size: 13px; margin-top: 8px; }

/* ── hero ── */
.hero { text-align: center; padding: 8vh 18px 4vh; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 7vw, 72px); letter-spacing: 0.01em; line-height: 0.95; }
.hero h1 b { color: var(--red); }
.hero p { color: var(--cream-dim); font-size: 17px; max-width: 540px; margin: 16px auto 26px; }
.feature-grid { max-width: 900px; margin: 30px auto; }
.feature { text-align: left; }
.feature .ic { font-size: 22px; }

/* ── bracket ── */

/* ── booking court × time grid ── */
.book-grid-wrap { overflow-x: auto; margin: 0 -4px; }
.book-grid { border-collapse: separate; border-spacing: 6px; width: 100%; }
.book-grid thead th { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.02em; color: var(--cream); padding: 4px 8px; text-align: center; white-space: nowrap; }
.book-grid thead th .bg-sub { display: block; font-family: var(--ui); font-weight: 500; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-dim); margin-top: 2px; }
.book-grid .bg-time { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--cream-dim); text-align: right; padding-right: 10px; white-space: nowrap; }
.bg-cell { min-width: 84px; padding: 11px 8px; border-radius: var(--r-sm); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.bg-free { background: color-mix(in srgb, var(--green) 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--green) 38%, var(--maple-dim)); color: var(--green); cursor: pointer; transition: transform 0.1s, background 0.15s, color 0.15s; }
.bg-free:hover, .bg-free:focus-visible { background: var(--green); color: var(--ink); transform: translateY(-1px); }
.bg-taken { background: var(--surface); border: 1px solid var(--maple-dim); color: var(--cream-dim); opacity: 0.6; }
/* taken slot you can join the waitlist on */
.bg-wl { opacity: 0.85; cursor: pointer; transition: transform 0.1s, border-color 0.15s; }
.bg-wl:hover, .bg-wl:focus-visible { opacity: 1; border-color: color-mix(in srgb, var(--maple) 55%, var(--maple-dim)); transform: translateY(-1px); }
.bg-na { background: transparent; }
.bg-legend { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; }
.bg-key { display: inline-block; width: 13px; height: 13px; border-radius: 4px; }
.bg-legend .bg-key.bg-taken { margin-left: 10px; }

/* ── modal ── */
.modal-bg { position: fixed; inset: 0; background: rgba(12,8,4,0.8); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 100; }
.modal { background: var(--surface); border: 1px solid var(--maple-dim); border-radius: 14px; padding: 22px; max-width: 460px; width: 100%; max-height: 88vh; overflow-y: auto; }
.modal h3 { font-family: var(--display); font-size: 22px; margin-bottom: 12px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--maple); color: var(--cream); padding: 12px 18px; border-radius: 10px; z-index: 200; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.5); }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 40px; }
.spark span { flex: 1; background: var(--maple); border-radius: 1px; min-height: 2px; opacity: 0.8; }
.empty { color: var(--cream-dim); padding: 20px 0; text-align: center; }
.loading { color: var(--cream-dim); padding: 30px; text-align: center; }

/* ── live now ── */
.live-card { border-color: rgba(216,73,59,0.4); box-shadow: 0 0 0 1px rgba(216,73,59,0.15) inset; }
.live-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 11px; }
.live-names { display: flex; gap: 8px; flex: 1; font-weight: 600; font-size: 14px; min-width: 0; flex-wrap: wrap; }
.live-dot, .live-row::before { content: ""; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); margin-right: 7px; animation: lpulse 1.2s ease-in-out infinite; vertical-align: middle; }
@keyframes lpulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.live-board { display: flex; align-items: stretch; gap: 8px; background: var(--ink); border: 1px solid var(--maple-dim); border-radius: 12px; padding: 18px 12px; }
.lb-side { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.lb-name { font-weight: 700; font-size: 14px; color: var(--cream); }
.lb-main { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; color: var(--maple); }
.lb-sub { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); }
.lb-center { display: flex; align-items: center; justify-content: center; min-width: 76px; }
.lb-label { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim); text-align: center; }

/* ── bell + badges + social ── */
.bell-btn { position: relative; width: 42px; height: 42px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--maple-dim); border-radius: 11px; font-size: 17px; cursor: pointer; transition: 0.15s; }
.bell-btn:hover { background: var(--surface-2); border-color: var(--maple); }
.bell-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--red); color: #2a0f0a; border-radius: 999px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--ink); }
.form-pill { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 6px; font-weight: 700; font-size: 12px; margin-right: 4px; }
.form-pill.w { background: var(--green); color: #0a2a14; }
.form-pill.l { background: var(--surface-2); color: var(--cream-dim); border: 1px solid var(--maple-dim); }
.notif-row { display: flex; flex-direction: column; gap: 2px; padding: 11px 4px; border-bottom: 1px solid var(--maple-dim); color: var(--cream-dim); }
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { text-decoration: none; background: rgba(255,255,255,0.02); }
.notif-row.unread { border-left: 3px solid var(--red); padding-left: 10px; }
.notif-row.unread > div:first-child { font-weight: 600; color: var(--cream); }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 12px; }

/* ── chainline redesign: broadcast numerals + SVG rating chart ── */
.rating-num, .rank-num, .lb-main, .live-board .lb-main {
  font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "zero" 1, "tnum" 1;
}
.rchart { width: 100%; height: 130px; display: block; }
.rchart .area { fill: color-mix(in srgb, var(--maple) 14%, transparent); }
.rchart .line { fill: none; stroke: var(--maple); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rchart .dot { fill: var(--cream); }
.rchart .grid { stroke: var(--maple-dim); stroke-width: 1; }
.rchart-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 13px; }
.rchart-delta.up { color: var(--green); }
.rchart-delta.down { color: var(--red-text); }
.live-board .lb-main.p1 { color: var(--p1); }
.live-board .lb-main.p2 { color: var(--p2); }

/* ── tournament microsite ── */
.tmicro-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--maple-dim); margin-bottom: 16px; overflow-x: auto; }
.tmicro-tabs button { background: none; border: none; color: var(--cream-dim); font-family: var(--ui); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 11px 16px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tmicro-tabs button:hover { color: var(--cream); }
.tmicro-tabs button.active { color: var(--cream); border-bottom-color: var(--red); }
.countdown { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--maple); letter-spacing: 0.01em; }
.timeline { display: flex; flex-direction: column; }
.timeline .step { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; position: relative; }
.timeline .step:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -7px; width: 2px; background: var(--maple-dim); }
.timeline .step .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--maple); background: var(--ink); margin-top: 3px; flex-shrink: 0; z-index: 1; }
.timeline .step.done .dot { background: var(--maple); }
.timeline .step .lbl { font-weight: 600; }
.timeline .step .dt { color: var(--cream-dim); font-size: 12px; }

/* bracket tree */
.tbracket { display: flex; overflow-x: auto; padding: 8px 0; }
.tround { display: flex; flex-direction: column; justify-content: space-around; min-width: 200px; flex: 1 0 200px; }
.tround .rlabel { font-family: var(--ui); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--maple); text-align: center; padding-bottom: 4px; }
.tmatch { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; padding: 8px 18px 8px 0; }
.tmatch .mcard { background: var(--surface-2); border: 1px solid var(--maple-dim); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--elev-1); }
.mrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; }
.mrow + .mrow { border-top: 1px solid var(--maple-dim); }
.mrow .seed { color: var(--maple); font-size: 10px; min-width: 18px; }
.mrow .pn { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow.win { color: var(--green); font-weight: 700; }
.mscore-btn { margin-top: 6px; align-self: flex-start; }
/* connector elbows: each match draws an L into the gutter; pair verticals are collinear and meet the next round's match at its center */
.tround:not(:last-child) .tmatch::after {
  content: ""; position: absolute; right: 0; width: 18px;
  border-right: 2px solid var(--maple-dim); pointer-events: none;
}
.tround:not(:last-child) .tmatch:nth-child(even)::after { top: 50%; bottom: 0; border-top: 2px solid var(--maple-dim); }
.tround:not(:last-child) .tmatch:nth-child(odd)::after  { top: 0; bottom: 50%; border-bottom: 2px solid var(--maple-dim); }

/* round-robin / box results matrix */
.rr-matrix { border-collapse: collapse; font-size: 13px; }
.rr-matrix th, .rr-matrix td { border: 1px solid var(--maple-dim); padding: 7px 10px; text-align: center; }
.rr-matrix .rr-name { text-align: left; white-space: nowrap; color: var(--cream); font-weight: 600; }
.rr-matrix .rr-self { background: var(--surface-2); color: var(--cream-faint); }
.rr-cell.w { color: var(--green); font-weight: 800; background: color-mix(in srgb, var(--green) 12%, transparent); }
.rr-cell.l { color: var(--red-text); }

/* Legal / prose pages */
.prose { max-width: 720px; margin: 0 auto; line-height: 1.6; }
.prose h3 { margin: 22px 0 6px; color: var(--cream); }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--maple); }
.legal-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--maple-dim); font-size: 13px; color: var(--cream-faint); text-align: center; }
.legal-foot a { color: var(--cream-faint); text-decoration: none; }
.legal-foot a:hover { color: var(--maple); }
