/* Belles Results. The riseballanalytics.com system (shared with exposure.gobelles.com): one 1160px column,
   rules between sections, summary first, depth below. Dark-first, light follows the OS. */
:root {
  --bg: #121417; --surface: #181c1f; --surface-2: #1f2427; --line: #2a3135; --line-soft: #20262a;
  --ink: #e6ece9; --muted: #95a39e; --dim: #6b7873;
  --accent: #44eebb; --accent-ink: #0b1f18; --accent-soft: rgba(68, 238, 187, .12); --fill: #1aa87c;
  --warn: #e8b84a; --warn-soft: rgba(232, 184, 74, .12); --loss: #d9693a; --loss-soft: rgba(217, 105, 58, .12);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45); --head: rgba(18, 20, 23, .86);
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-mark: "Orbitron", "Sora", system-ui, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3f6f4; --surface: #ffffff; --surface-2: #eaf0ed; --line: #d5ddd9; --line-soft: #e3e9e6;
    --ink: #101715; --muted: #4f5d58; --dim: #75827d;
    --accent: #0b7f5d; --accent-ink: #ffffff; --accent-soft: rgba(14, 138, 102, .10); --fill: #0e8a66;
    --warn: #a86f00; --warn-soft: rgba(168, 111, 0, .10); --loss: #c25a24; --loss-soft: rgba(194, 90, 36, .10);
    --shadow: 0 18px 44px rgba(16, 23, 21, .14); --head: rgba(243, 246, 244, .9);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3f6f4; --surface: #ffffff; --surface-2: #eaf0ed; --line: #d5ddd9; --line-soft: #e3e9e6;
  --ink: #101715; --muted: #4f5d58; --dim: #75827d;
  --accent: #0b7f5d; --accent-ink: #ffffff; --accent-soft: rgba(14, 138, 102, .10); --fill: #0e8a66;
  --warn: #a86f00; --warn-soft: rgba(168, 111, 0, .10); --loss: #c25a24; --loss-soft: rgba(194, 90, 36, .10);
  --shadow: 0 18px 44px rgba(16, 23, 21, .14); --head: rgba(243, 246, 244, .9);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--head); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--head); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; position: relative; }
.wordmark { font-family: var(--f-mark); font-weight: 800; font-size: .92rem; letter-spacing: .14em; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--ink); }
.mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--muted); padding: 8px 10px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav .btn { padding: 9px 14px; margin-left: 6px; color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 10px; font: 500 .85rem var(--f-body); cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .92rem var(--f-body); text-decoration: none; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; color: var(--ink); background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { border-color: var(--loss); color: var(--loss); background: transparent; }
.btn-danger:hover:not(:disabled) { background: var(--loss-soft); }
.btn-sm { padding: 7px 12px; font-size: .82rem; border-radius: 7px; }
.btn-xs { padding: 4px 9px; font-size: .76rem; border-radius: 6px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* sections */
main { display: block; }
.band { padding-block: 72px; border-top: 1px solid var(--line); }
.band-tight { padding-block: 48px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 34px; max-width: 70ch; }
.sec-head p { color: var(--muted); }
.page-head { padding-block: 56px 36px; display: grid; gap: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 64px 72px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 em, h1 em { font-style: normal; color: var(--accent); }
.hero-note { font-family: var(--f-mono); font-size: .76rem; color: var(--dim); }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trail path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.1 14; opacity: .38; }
.trail circle { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .5; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; transition: border-color .2s; }
a.card:hover, button.card:hover, .card.link:hover { border-color: var(--accent); }
.card-body { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; }
.card-body p { color: var(--muted); font-size: .9rem; }
.card-meta { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.box-pad { padding: 20px 22px; }
.box-accent { border-top: 2px solid var(--accent); border-radius: 0 0 12px 12px; }

/* pills, chips, tabs */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill-accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.pill-warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.pill-loss { color: var(--loss); border-color: var(--loss); background: var(--loss-soft); }
.pill-solid { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.verified { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.verified::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%230b1f18' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: 500 .84rem var(--f-body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--accent-soft); }
table.data .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
table.data th.num { text-align: right; }
table.data input, table.data select { width: 100%; min-width: 60px; font: 400 .86rem var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }

/* section titles inside apps */
.sec-title { display: flex; align-items: center; gap: 12px; margin: 48px 0 16px; }
.sec-title h2 { font-size: 1.25rem; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-title.first { margin-top: 0; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.tile { padding: 16px 18px 18px; border-right: 1px solid var(--line-soft); display: grid; gap: 4px; align-content: start; min-width: 0; }
.tile:last-child { border-right: 0; }
.tile-val { font-family: var(--f-mono); font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-val small { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 3px; }
.tile-sub { font-size: .8rem; color: var(--muted); }
.delta { font-family: var(--f-mono); font-size: .76rem; }
.delta.up { color: var(--accent); }
.delta.down { color: var(--loss); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 48px; }
.site-foot .wrap { display: grid; gap: 18px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.fine { font-size: .78rem; color: var(--dim); max-width: 90ch; }


/* ---- results page ---- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 10px; color: var(--ink); font-size: .9rem; }
.notice b { color: var(--warn); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
.updated { font-family: var(--f-mono); font-size: .76rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.updated .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); display: inline-block; margin-right: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.filters .label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

.rec { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--accent); } .neg { color: var(--loss); }
.form { display: inline-flex; gap: 3px; vertical-align: middle; }
.form i { font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 4px; font: 600 .66rem var(--f-mono); }
.form .W { background: var(--accent); color: var(--accent-ink); }
.form .L { background: var(--loss-soft); color: var(--loss); border: 1px solid var(--loss); }
.form .T { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
table.data td.team-cell a { text-decoration: none; font-weight: 600; }
table.data td.team-cell a:hover { color: var(--accent); }
table.data tfoot td { border-top: 1px solid var(--line); font-weight: 600; background: var(--surface-2); }

.teams { display: grid; gap: 22px; }
.team { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 12px 12px; scroll-margin-top: 84px; }
.team-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft); }
.team-head h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-head .big { font-family: var(--f-mono); font-size: 2rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.team-head .big small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 6px; letter-spacing: .06em; }
.team .tiles { border-top: 0; }
.team .tile-val { font-size: 1.45rem; }
.team-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; }
.team-body > div { padding: 18px 22px 22px; min-width: 0; }
.team-body > div + div { border-left: 1px solid var(--line-soft); }
.sub { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; }
.finishes { list-style: none; margin: 0; padding: 0; display: grid; }
.finishes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.finishes li:last-child { border-bottom: 0; }
.finishes .ev { font-weight: 600; font-size: .93rem; }
.finishes .meta { grid-column: 1; font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.finishes .place { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; display: grid; gap: 4px; justify-items: end; }
.games { width: 100%; border-collapse: collapse; font-size: .86rem; }
.games td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.games tr:last-child td { border-bottom: 0; }
.games td:first-child { padding-left: 0; font-family: var(--f-mono); font-size: .74rem; color: var(--dim); white-space: nowrap; }
.games td:last-child { padding-right: 0; text-align: right; }
.games .opp { font-weight: 500; }
.games .evn { display: block; font-size: .74rem; color: var(--dim); }
.more { margin-top: 10px; }
.more summary { cursor: pointer; font-family: var(--f-mono); font-size: .74rem; color: var(--accent); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 8px; }
.none { color: var(--muted); font-size: .9rem; padding: 6px 0; }

.season { border-top: 1px solid var(--line); }
.season > summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.season > summary::-webkit-details-marker { display: none; }
.season > summary h2 { display: inline-flex; align-items: center; gap: 12px; }
.season > summary h2::before { content: "+"; font-family: var(--f-mono); color: var(--accent); width: 1ch; }
.season[open] > summary h2::before { content: "–"; }
.season > summary:hover h2 { color: var(--accent); }
.season-body { padding-bottom: 48px; display: grid; gap: 28px; }

@media (max-width: 980px) {
  .team-body { grid-template-columns: minmax(0, 1fr); }
  .team-body > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .band { padding-block: 48px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(2n) { border-right: 0; }
  .tile { border-bottom: 1px solid var(--line-soft); }
  .team-head, .team-body > div { padding-left: 16px; padding-right: 16px; }
  .hide-sm { display: none; }
}
@media (max-width: 480px) {
  .wordmark { font-size: .8rem; letter-spacing: .1em; }
  .form i { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-head, .filters, .notice, .site-foot { display: none; }
  .season { break-inside: avoid; }
  details.season, details.more { display: block; }
}
@media (max-width: 980px) { .trail { display: none; } }
@media (max-width: 480px) { .tile-val { font-size: 1.45rem; white-space: nowrap; } .team .tile-val { font-size: 1.25rem; } }
.kicker.no-rule::before { display: none; }
table.data .num, table.data th { white-space: nowrap; }
@media (max-width: 480px) { table.data td, table.data th { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 820px) { .tile-events { display: none; } }
