/* Dense results-board theme: mobile-first, then PC */
:root {
  --board-yellow: #ffd200;
  --board-red: #c41010;
  --board-maroon: #8b0000;
  --board-black: #111;
  --board-ink: #1a1a1a;
  --board-muted: #555;
  --board-line: #222;
}

body {
  background: #fff8e7;
  color: var(--board-ink);
  font-family: Tahoma, Arial, Helvetica, sans-serif;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  background: var(--board-maroon);
  border-bottom: 4px solid var(--board-yellow);
}
.site-header .inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header .brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 1.15rem;
}
.site-header .brand span { color: var(--board-yellow); }
.site-header .brand-sub {
  color: #ffd9d9;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 2px;
}
.desktop-nav { display: none; }
.desktop-nav a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
}
.desktop-nav a.active,
.desktop-nav a:hover { background: var(--board-yellow); color: #111; }

.site-main.container-rh {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 10px 96px;
}

.board-wrap { padding: 4px 0 16px; }
.board-h1 {
  color: var(--board-red);
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 8px 0 6px;
  font-weight: 800;
}
.board-lead {
  text-align: center;
  font-size: 0.9rem;
  color: var(--board-muted);
  margin: 0 0 10px;
}
.board-disclaimer {
  background: var(--board-yellow);
  border: 2px solid #111;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 0 10px;
}
.board-updated {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.board-notice {
  background: #fff;
  border: 1px dashed var(--board-red);
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.board-table-wrap,
.chart-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
  border: 2px solid #111;
  background: #fff;
}

.board-table,
.chart-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}
.board-table th,
.chart-table th,
.board-table td,
.chart-table td {
  border: 1px solid var(--board-line);
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}
.board-table thead th,
.chart-table thead th {
  background: var(--board-yellow);
  color: #111;
  font-weight: 800;
}
.board-table .col-head th,
.chart-table .col-head th {
  background: #ffe86a;
  font-size: 0.82rem;
}
.board-table .section-row th {
  background: var(--board-red);
  color: #fff;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.board-table .section-row.next th { background: #0b6b2c; }
.board-table .section-row.rest th { background: #1d4f91; }
.board-table .event-cell {
  text-align: left;
  font-weight: 800;
  min-width: 160px;
}
.board-table .event-cell a {
  color: #111;
  text-decoration: none;
  display: block;
}
.board-table .event-cell a:hover { color: var(--board-red); text-decoration: underline; }
.event-meta {
  display: block;
  font-weight: 600;
  font-size: 0.72rem;
  color: #555;
  margin-top: 2px;
}
.val-cell {
  font-weight: 800;
  font-size: 1.05rem;
  min-width: 72px;
}
.val-live { color: #0b6b2c; }
.val-empty { color: #888; font-weight: 700; }
.empty-row { padding: 16px !important; color: #555; }
.chart-table caption {
  caption-side: top;
  font-weight: 800;
  color: var(--board-red);
  padding: 8px;
  background: #fff;
}
.chart-table tbody th { background: #fff3b0; font-weight: 800; }
.chart-table .is-today td,
.chart-table .is-today th { background: #ffe0e0; }
.chart-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 700;
}
.chart-nav a { color: var(--board-maroon); }

.board-search {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}
.board-search input {
  flex: 1;
  min-height: 44px;
  border: 2px solid #111;
  padding: 8px 10px;
  font-size: 1rem;
}
.board-search button {
  min-height: 44px;
  min-width: 88px;
  background: #111;
  color: var(--board-yellow);
  border: 0;
  font-weight: 800;
  padding: 0 14px;
}

.board-winners { margin: 0 0 16px; }
.board-winners h2 {
  font-size: 1rem;
  color: var(--board-red);
  font-weight: 800;
  margin: 0 0 8px;
}
.winner-cards {
  display: grid;
  gap: 8px;
}
.winner-cards article {
  background: #fff;
  border: 1px solid #111;
  padding: 10px;
  display: grid;
  gap: 2px;
}
.winner-cards a { color: #111; font-weight: 800; text-decoration: none; }
.board-cta {
  text-align: center;
  font-weight: 700;
  margin: 8px 0 0;
}
.board-cta a { color: var(--board-maroon); }

.site-footer {
  background: #111;
  color: #ddd;
  padding: 24px 12px 96px;
}
.site-footer a { color: var(--board-yellow); }
.bottom-nav {
  background: #111;
  border-top: 3px solid var(--board-yellow);
}

@media (min-width: 768px) {
  .site-header .inner { padding: 12px 16px; }
  .site-header .brand { font-size: 1.45rem; }
  .desktop-nav { display: flex; gap: 4px; }
  .menu-toggle { display: none !important; }
  .board-h1 { font-size: 1.7rem; margin-top: 14px; }
  .board-lead { font-size: 1rem; }
  .board-disclaimer { font-size: 0.9rem; }
  .board-table,
  .chart-table { font-size: 1rem; }
  .board-table th,
  .chart-table th,
  .board-table td,
  .chart-table td { padding: 10px 8px; }
  .val-cell { font-size: 1.2rem; }
  .winner-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-main.container-rh { padding-bottom: 40px; }
  .site-footer { padding-bottom: 32px; }
  .bottom-nav { display: none !important; }
}

@media (min-width: 1024px) {
  .board-h1 { font-size: 1.9rem; }
  .winner-cards { grid-template-columns: repeat(3, 1fr); }
  .chart-table { min-width: 100%; }
}
