/* Leaderboard — Team Pulse data surface
   Dense Operate UI in brand color. Loaded only by templates/leaderboard.html. */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-condensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2');
}

.lb-root {
  --lb-bg: #fafafa;
  --lb-surface: #ffffff;
  --lb-ink: #1a237e;
  --lb-ink-soft: #4a5568;
  --lb-muted: #6b7280;
  --lb-line: #e5e7eb;
  --lb-red: #fd192a;
  --lb-blue: #40b4e0;
  --lb-blue-deep: #2a9bc9;
  --lb-amber: #ffb700;
  --lb-gold: #c98900;
  --lb-silver: #64748b;
  --lb-bronze: #c2853c;
  --lb-green: #1a9b6c;
  --lb-tint-blue: #e8f6fc;
  --lb-tint-red: #fff1f2;
  --lb-tint-amber: #fff8e6;
  --lb-shadow: 0 8px 24px rgba(26, 35, 126, 0.08);
  --lb-shadow-lift: 0 14px 32px rgba(26, 35, 126, 0.12);
  --lb-radius: 16px;
  --lb-radius-sm: 12px;
  --lb-font: 'IBM Plex Sans', system-ui, sans-serif;
  --lb-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.lb-root {
  font-family: var(--lb-font);
  color: var(--lb-ink-soft);
}

.lb-root :focus-visible {
  outline: 2px solid rgba(26, 35, 126, 0.35);
  outline-offset: 2px;
}

/* ── Header ── */

.lb-header {
  margin-bottom: 1.25rem;
}

.lb-title {
  font-family: var(--lb-font);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--lb-ink);
  margin: 0 0 0.35rem;
  background: linear-gradient(120deg, var(--lb-red) 0%, #d94672 45%, var(--lb-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lb-sub {
  margin: 0.35rem 0 0;
  color: var(--lb-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.lb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

/* Mode pills */

.lb-mode {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  box-shadow: var(--lb-shadow);
}

.lb-mode-thumb {
  position: absolute;
  top: 0.3rem;
  left: 0;
  height: calc(100% - 0.6rem);
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lb-red), var(--lb-blue));
  box-shadow: 0 6px 16px rgba(253, 25, 42, 0.22);
  transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out), opacity 0.2s ease;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.lb-mode-thumb.is-on {
  opacity: 1;
}

.lb-mode-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  background: transparent;
  font-family: var(--lb-font);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--lb-ink-soft);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background 0.2s var(--ease-out);
}

.lb-mode-btn:hover {
  color: var(--lb-ink);
}

.lb-mode-btn.is-active {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .lb-mode-thumb {
    transition: none;
  }
}

.lb-year-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lb-year-wrap.is-hidden {
  display: none;
}

.lb-year-wrap label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lb-ink-soft);
}

/* Search */

.lb-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}

.lb-search input {
  width: 100%;
  padding: 0.7rem 0.95rem 0.7rem 2.35rem;
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  font-family: var(--lb-font);
  font-size: 0.92rem;
  color: var(--lb-ink);
  background: var(--lb-surface);
  box-shadow: var(--lb-shadow);
}

.lb-search input::placeholder {
  color: var(--lb-muted);
}

.lb-search input:focus {
  outline: none;
  border-color: var(--lb-blue);
  box-shadow: 0 0 0 3px rgba(64, 180, 224, 0.22);
}

.lb-search .lb-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lb-muted);
  pointer-events: none;
  display: flex;
}

/* ── Layout ── */

.lb-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
  /* Sidebar + results width move together on collapse */
  transition: grid-template-columns 0.45s var(--ease-out);
}

.lb-layout.filters-collapsed {
  grid-template-columns: 52px 1fr;
}

@media (max-width: 900px) {
  .lb-layout,
  .lb-layout.filters-collapsed {
    grid-template-columns: 1fr;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-layout {
    transition: none;
  }
}

/* ── Filters card ── */

.lb-filters {
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow);
  overflow: hidden;
}

.lb-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid var(--lb-line);
}

.lb-filters-header h2 {
  margin: 0;
  font-family: var(--lb-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lb-ink);
}

.lb-filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  background: var(--lb-bg);
  color: var(--lb-ink-soft);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.lb-filters-toggle:hover {
  border-color: var(--lb-blue);
  color: var(--lb-ink);
}

.lb-layout.filters-collapsed .lb-filters-title {
  display: none;
}

.lb-layout.filters-collapsed .lb-filters-header {
  flex-direction: column;
  padding: 0.85rem 0.5rem;
  border-bottom: none;
}

.lb-filters-vertical {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--lb-condensed);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lb-ink-soft);
}

.lb-layout.filters-collapsed .lb-filters-vertical {
  display: block;
}

@media (max-width: 900px) {
  .lb-layout.filters-collapsed .lb-filters-header {
    flex-direction: row;
    padding: 0.95rem 1.05rem;
    border-bottom: 1px solid var(--lb-line);
  }
  .lb-layout.filters-collapsed .lb-filters-title {
    display: block;
  }
  .lb-layout.filters-collapsed .lb-filters-vertical {
    display: none;
  }
}

.lb-filters-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease-out), opacity 0.35s var(--ease-out);
  opacity: 1;
}

.lb-filters-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 1.05rem;
}

.lb-layout.filters-collapsed .lb-filters-body {
  grid-template-rows: 0fr;
  opacity: 0;
}

.lb-layout.filters-collapsed .lb-filters-body .lb-filters-body-inner {
  padding-top: 0;
  padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .lb-filters-body {
    transition: none;
  }
}

.lb-filter-group {
  margin-bottom: 1rem;
}

.lb-filter-group:last-of-type {
  margin-bottom: 0.35rem;
}

.lb-filter-group label,
.lb-filter-legend {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lb-ink-soft);
  margin-bottom: 0.4rem;
}

.lb-filter-group select,
.lb-range input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  font-family: var(--lb-font);
  font-size: 0.9rem;
  color: var(--lb-ink);
  background: var(--lb-bg);
}

/* Gender radio pills */

.lb-radio-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.lb-radio-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lb-red), var(--lb-blue));
  box-shadow: 0 6px 14px rgba(253, 25, 42, 0.2);
  transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out), opacity 0.2s ease;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}

.lb-radio-thumb.is-on {
  opacity: 1;
}

.lb-radio-pill {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid var(--lb-line);
  border-radius: 999px;
  background: var(--lb-bg);
  font-family: var(--lb-font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lb-ink-soft);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.lb-radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lb-radio-pill:hover {
  border-color: var(--lb-blue);
  color: var(--lb-ink);
}

.lb-radio-pill.is-selected {
  border-color: transparent;
  background: transparent;
  color: #fff;
}

.lb-radio-pill:focus-within {
  outline: none;
}

.lb-radio-pill:has(input:focus-visible) {
  outline: 2px solid rgba(26, 35, 126, 0.35);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .lb-radio-thumb {
    transition: none;
  }
}

.lb-filter-group select:focus,
.lb-range input:focus {
  outline: none;
  border-color: var(--lb-blue);
  box-shadow: 0 0 0 3px rgba(64, 180, 224, 0.2);
}

.lb-range {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lb-range input {
  min-width: 0;
  flex: 1;
}

.lb-range-sep {
  color: var(--lb-muted);
  font-size: 0.9rem;
}

.lb-reset-btn {
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--lb-line);
  border-radius: 999px;
  background: var(--lb-surface);
  color: var(--lb-ink);
  font-family: var(--lb-font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.lb-reset-btn:hover {
  border-color: var(--lb-red);
  color: var(--lb-red);
  background: var(--lb-tint-red);
}

/* ── Results column ── */

.lb-results-col {
  min-width: 0;
}

.lb-context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

.lb-event {
  margin: 0;
  font-family: var(--lb-font);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--lb-ink);
}

.lb-count {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--lb-tint-blue);
  color: var(--lb-blue-deep);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.lb-meta {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--lb-muted);
}

/* Chips */

.lb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.lb-chips:empty {
  display: none;
}

.lb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lb-ink);
}

.lb-chip button {
  appearance: none;
  border: none;
  background: rgba(26, 35, 126, 0.08);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--lb-ink-soft);
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-chip button:hover {
  background: var(--lb-tint-red);
  color: var(--lb-red);
}

/* ── Table ── */

.lb-table-wrap {
  position: relative;
  overflow-x: auto;
  border-radius: var(--lb-radius);
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  box-shadow: var(--lb-shadow);
  transition: width 0.45s var(--ease-out);
}

.lb-table-wrap:focus-visible {
  outline: 2px solid var(--lb-blue);
  outline-offset: 2px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.lb-table th,
.lb-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--lb-line);
  font-size: 0.92rem;
  vertical-align: middle;
}

.lb-table th {
  background: var(--lb-bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lb-ink-soft);
  position: sticky;
  top: 0;
  z-index: 1;
}

.lb-table tbody tr:last-child td {
  border-bottom: none;
}

.lb-table tbody tr:hover {
  background: #f8fafc;
}

.lb-table tr.is-gold,
.lb-table tr.is-gold:hover {
  background: rgba(255, 183, 0, 0.12);
}

.lb-table tr.is-silver,
.lb-table tr.is-silver:hover {
  background: rgba(100, 116, 139, 0.1);
}

.lb-table tr.is-bronze,
.lb-table tr.is-bronze:hover {
  background: rgba(194, 133, 60, 0.1);
}

.lb-col-rank {
  width: 4.25rem;
  text-align: center;
}

.lb-col-time {
  width: 6.5rem;
}

.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--lb-bg);
  border: 1px solid var(--lb-line);
  color: var(--lb-ink-soft);
  font-family: var(--lb-condensed);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.lb-rank.r1 {
  background: var(--lb-amber);
  border-color: #e0a200;
  color: #1a1200;
}

.lb-rank.r2 {
  background: #e2e8f0;
  border-color: var(--lb-silver);
  color: #1e293b;
}

.lb-rank.r3 {
  background: #f0d5b0;
  border-color: var(--lb-bronze);
  color: #3b2410;
}

.lb-time {
  font-family: var(--lb-condensed);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--lb-ink);
  line-height: 1;
}

.lb-athlete {
  font-weight: 600;
  color: var(--lb-ink);
  line-height: 1.3;
}

.lb-athlete .lb-club {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--lb-muted);
  margin-top: 0.15rem;
}

.lb-subtle {
  color: var(--lb-muted);
  font-size: 0.88rem;
}

.lb-cell-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.lb-cell-btn:hover {
  color: var(--lb-blue-deep);
}

/* Empty */

.lb-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow);
}

.lb-empty h3 {
  margin: 0 0 0.4rem;
  font-family: var(--lb-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lb-ink);
}

.lb-empty p {
  margin: 0 0 1.15rem;
  color: var(--lb-ink-soft);
  font-size: 0.95rem;
}

.lb-empty-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--lb-line);
  background: var(--lb-surface);
  color: var(--lb-ink);
  font-family: var(--lb-font);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
}

.lb-empty-btn:hover {
  border-color: var(--lb-blue);
  color: var(--lb-ink);
  background: var(--lb-tint-blue);
}

/* Pagination */

.lb-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.lb-page-info {
  font-size: 0.88rem;
  color: var(--lb-muted);
}

.lb-page-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-page-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--lb-line);
  background: var(--lb-surface);
  color: var(--lb-ink);
  font-family: var(--lb-font);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.lb-page-btn:hover {
  border-color: var(--lb-blue);
  background: var(--lb-tint-blue);
}

.lb-page-btn.is-disabled {
  color: var(--lb-muted);
  border-color: var(--lb-line);
  background: var(--lb-bg);
  cursor: default;
  pointer-events: none;
}

.lb-page-indicator {
  font-family: var(--lb-condensed);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lb-ink);
  padding: 0 0.35rem;
  font-variant-numeric: tabular-nums;
}

/* Help band */

.lb-help {
  margin-top: 2.25rem;
  padding: 1.65rem 1.5rem;
  border-radius: var(--lb-radius);
  background: var(--lb-tint-blue);
  border: 1px solid rgba(64, 180, 224, 0.25);
}

.lb-help h2 {
  margin: 0 0 0.45rem;
  font-family: var(--lb-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lb-ink);
}

.lb-help p,
.lb-help li {
  color: var(--lb-ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lb-help ul {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.15rem;
}

.lb-help-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--lb-ink);
  color: #fff;
  font-family: var(--lb-font);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.lb-help-btn:hover {
  background: #2430a0;
  color: #fff;
  transform: translateY(-1px);
}

/* Popup */

.lb-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lb-popup-overlay.open {
  display: flex;
}

.lb-popup {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: var(--lb-surface, #ffffff);
  border-radius: var(--lb-radius, 16px);
  padding: 1.5rem;
  box-shadow: var(--lb-shadow-lift, 0 14px 32px rgba(26, 35, 126, 0.12));
}

.lb-popup-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--lb-muted, #6b7280);
  line-height: 1;
}

.lb-popup-close:hover {
  color: var(--lb-ink);
}

.lb-popup-content {
  margin: 0;
  color: var(--lb-ink, #1a237e);
  font-size: 0.98rem;
  line-height: 1.55;
  word-break: break-word;
  padding-right: 1.25rem;
}

/* Loading */

#leaderboard-results {
  transition: opacity 180ms ease;
}

#leaderboard-results.is-leaving {
  opacity: 0.45;
  pointer-events: none;
}

#leaderboard-results[aria-busy="true"] {
  opacity: 0.55;
}

/* Searchable select (season year) — kept from prior UI */

.lb-root .searchable-select {
  position: relative;
  display: inline-block;
  min-width: 7rem;
}

.lb-root .searchable-select.is-hidden {
  display: none;
}

.lb-root .searchable-select-btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  font-family: var(--lb-font);
  font-size: 0.9rem;
  color: var(--lb-ink);
  background: var(--lb-bg);
  cursor: pointer;
  text-align: left;
}

.lb-root .searchable-select-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 100%;
  background: var(--lb-surface);
  border: 1px solid var(--lb-line);
  border-radius: 12px;
  box-shadow: var(--lb-shadow-lift);
}

.lb-root .searchable-select-search {
  display: block;
  width: calc(100% - 1rem);
  margin: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--lb-line);
  border-radius: 8px;
  font-size: 0.85rem;
}

.lb-root .searchable-select-list {
  max-height: 200px;
  overflow-y: auto;
}

.lb-root .searchable-select-option {
  display: block;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.88rem;
  color: var(--lb-ink);
  cursor: pointer;
}

.lb-root .searchable-select-option:hover {
  background: var(--lb-tint-blue);
}

.lb-root .searchable-select-option.is-selected {
  background: var(--lb-tint-blue);
  color: var(--lb-blue-deep);
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

/* Mobile table → cards */

@media (max-width: 720px) {
  .lb-table {
    min-width: 0;
  }

  .lb-table thead {
    display: none;
  }

  .lb-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.4rem 0.75rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--lb-line);
    align-items: start;
  }

  .lb-table tbody tr:last-child {
    border-bottom: none;
  }

  .lb-table td {
    border: none;
    padding: 0;
  }

  .lb-table td.lb-col-rank {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: auto;
    align-self: center;
  }

  .lb-table td.lb-col-time {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    text-align: right;
    align-self: center;
  }

  .lb-table td.lb-cell-athlete {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  /* Year (col 4) + Competition (col 6) share row 2 */
  .lb-table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .lb-table tbody td:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
    min-width: 0;
  }

  .lb-table tbody td:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-left: 2.85rem;
    font-size: 0.82rem;
  }

  .lb-time {
    font-size: 1.25rem;
  }
}
