/* The Raid Board. Layered on the main site's site.css (same fonts, palette, cards,
   buttons, coin backdrop); only what the board adds lives here. No inline styles: the
   CSP forbids them. */

/* the nav's call-to-action is a real button; keep its own colours over the nav's link ink */
.nav__links > a.btn { font-weight: 600; }
.nav__links > a.btn--green, .nav__links > a.btn--green:hover { color: #fff; }

/* ------------------------------------------------------------------ hero */
.rhero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-top: 40px;
}
.rhero__card { padding: 28px 30px 26px; }
.rhero__card .hero__actions { justify-content: flex-start; }
.rhero__side { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: end; }
.rhero__mascot { width: 100%; max-width: 150px; justify-self: center; }
.cyclecard { padding: 18px 20px; }
.cyclecard__label { margin: 0; font-family: var(--head); font-weight: 600; color: var(--ink-soft); }
.cyclecard__clock {
  margin: 2px 0 10px;
  font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.1;
  color: var(--green-2); font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.cyclecard .book dd { font-size: 0.95rem; }

/* ------------------------------------------------------------- standings */
.standings { padding: 16px 18px 14px; max-width: 820px; margin: 0 auto; }
.standings__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.standings__note { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.tablewrap--board { max-height: none; }
.board { font-size: 1rem; }
.board th:first-child, .board td:first-child { width: 3.2em; text-align: center; }
.board th:last-child, .board td:last-child { text-align: right; }
.board__rank { font-family: var(--head); font-weight: 700; color: var(--ink-soft); }
.board__rank--top { color: var(--ink); background: var(--gold-light); border-radius: 8px; }
.board__val { font-family: var(--head); font-weight: 650; }
.board a { font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.pager__page { font-family: var(--head); font-weight: 600; color: var(--ink-soft); min-width: 7ch; text-align: center; }

/* --------------------------------------------------------------- targets */
.targets { padding: 18px 20px 14px; max-width: 980px; margin: 0 auto; }
.targets__search { display: grid; gap: 6px; max-width: 360px; margin-bottom: 14px; }
.targets__search input {
  min-height: 46px; padding: 8px 12px; font: 600 1.05rem var(--body); color: var(--ink);
  background: #fffbe8; border: var(--outline) solid var(--ink); border-radius: 12px;
}
.kols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; min-height: 60px; }
.kol {
  display: grid; gap: 1px; padding: 10px 14px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
}
.kol__name { font-family: var(--head); font-weight: 700; overflow-wrap: anywhere; }
.kol__handle { font-weight: 600; overflow-wrap: anywhere; }
.kol__followers { font-size: 0.85rem; color: var(--ink-soft); min-height: 1.2em; }
.kols__empty { grid-column: 1 / -1; padding: 18px 8px; text-align: center; font-family: var(--lore); font-size: 1.12rem; }

/* ---------------------------------------------------------------- points */
.points__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.points__prose, .points__table { padding: 22px; }
.tiers { margin: 6px 0 16px; display: grid; gap: 8px; }
.tiers div { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; align-items: baseline; }
.tiers dt { font-family: var(--head); font-weight: 700; color: var(--green-2); }
.tiers dd { margin: 0; }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 9px 8px; border-bottom: 1px solid rgba(61, 37, 9, 0.18); text-align: center; }
.ptable thead th { font-family: var(--head); font-weight: 700; }
.ptable tbody th { text-align: left; font-family: var(--head); font-weight: 650; }
.ptable td { font-family: var(--head); font-weight: 600; }

/* ----------------------------------------------------------------- rules */
.rules { padding: 22px 26px; max-width: 860px; margin: 0 auto; }
.rules__list { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.rules__list li::marker { font-family: var(--head); font-weight: 700; color: var(--green-2); }

/* ------------------------------------------------------------------ join */
.join {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 26px 32px; background: var(--gold-light);
}
.join__mascot { width: 100%; max-width: 190px; justify-self: center; }
.join__steps { margin: 0 0 6px; padding-left: 1.3em; display: grid; gap: 8px; }
.join__copy .hero__actions { justify-content: flex-start; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .rhero, .points__grid { grid-template-columns: 1fr; }
  .rhero__side { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 860px) {
  .join { grid-template-columns: 1fr; }
  .join__mascot { max-width: 130px; }
}
@media (max-width: 480px) {
  .rhero { padding-top: 24px; }
  .rhero__card { padding: 20px 18px; }
  .rhero__card .hero__actions .btn { width: 100%; }
  .rhero__side { grid-template-columns: 1fr; }
  .rhero__mascot { display: none; } /* he appears again in the joining card below */
  .standings, .targets { padding: 14px 12px; }
  .points__prose, .points__table, .rules { padding: 16px; }
  .join { padding: 20px 18px; }
}
.kol__handle--solo { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }
