/* The Leaderboards page, in the one Prosperity Builders style standard (2026-11-20): plain navy page, standard heading sizes in white,
   rounded panel cards with no glow. Each board keeps its own accent colour, but only on its icon and number tag, so the cards still read
   apart at a glance. The top bar is the shared site header (.sitebar in dashboard.css).
   System fonts only: the page's Content-Security-Policy does not allow web fonts. */
body[data-app="leaderboards"] { --navy: #0b2340; --navy2: #12335a; --ink: #f2f7fb; --muted: #a9bfd3; --teal: #36c9a4; --gold: #ffd45a; --line: rgba(255,255,255,.14);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--navy); color: var(--ink); font: 16px/1.45 var(--sans); }
#leaderboards { max-width: 62rem; margin: 0 auto; padding: 40px 20px 64px; }
.lbp-title { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.lbp-title svg { flex: none; }
.lbp-title h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; font-weight: 800; color: var(--ink); text-wrap: balance; }
.lbp-title p { margin: 8px 0 0; font-size: 1rem; color: var(--muted); }
.lbp-you { margin: 12px 0 0; font-size: 1rem; color: var(--muted); }
.lbp-you a { color: var(--gold); text-decoration: underline; }
.lbp-you a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lbp-sec { margin: 44px 0 6px; font-size: clamp(1.6rem, 3.4vw, 2.125rem); line-height: 1.15; font-weight: 800; color: var(--ink); }
.lbp-secnote { margin: 0 0 16px; font-size: 1rem; color: var(--muted); }
.lbp-sec + .lbp-grid { margin-top: 16px; }
.lbp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .lbp-grid { grid-template-columns: 1fr; } }
.lbp-card { --hex: #36c9a4; background: var(--navy2); padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.lbp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lbp-head svg { flex: none; }
.lbp-head h3 { margin: 0; min-width: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 800; color: var(--ink); }
.lbp-tag { font-weight: 800; font-size: .875rem; color: var(--hex); }
.lbp-cardnote { margin-left: auto; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.lbp-body { display: flex; flex-direction: column; gap: 6px; }
.lbp-note { margin: 0; font-size: .9375rem; color: var(--muted); }
.lbp-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,26,48,.55); }
.lbp-row.big { padding: 10px; }
.lbp-rank { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 800; font-size: .75rem; background: #24476f; color: var(--ink); }
.lbp-row.big .lbp-rank { width: 34px; height: 34px; border-radius: 8px; font-size: .9375rem; color: #0b2340; }
.lbp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; }
.lbp-row.big .lbp-name { font-size: 1rem; font-weight: 800; }
.lbp-val { font-weight: 800; font-size: .9375rem; }
.lbp-row.big .lbp-val { font-size: 1rem; }
.lbp-row.you { border: 2px solid var(--gold); background: rgba(255,212,90,.12); }
.lbp-gap { text-align: center; color: var(--muted); line-height: 1; }
.lbp-foot { margin: 32px 0 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
