/* RuniverseHub · PUBLIC-RANKINGS-CLASSIFICATION-V27-1.0
   Shared V27 visual contract. Functional DOM and production data remain unchanged. */

:root {
  --rh-v27-bg: #171f2a;
  --rh-v27-surface: #1d2733;
  --rh-v27-surface-2: #232f3c;
  --rh-v27-surface-3: #2a3745;
  --rh-v27-text: #f4f7f9;
  --rh-v27-muted: #9aa8b7;
  --rh-v27-soft: #738294;
  --rh-v27-border: rgba(255, 255, 255, .085);
  --rh-v27-border-strong: rgba(94, 234, 212, .26);
  --rh-v27-primary: #5eead4;
  --rh-v27-athlete: #63e6a6;
  --rh-v27-organizer: #f2b96b;
  --rh-v27-team: #c084fc;
  --rh-v27-admin: #8fa9c1;
  --rh-v27-gold: #f2c76d;
  --rh-v27-silver: #c8d2dc;
  --rh-v27-bronze: #d79568;
  --rh-v27-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

/* ========================================================================== 
   Rankings — preserve podium markup and behavior; harmonize V27 tone/shell.
   ========================================================================== */

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] {
  --rh-rank-bg: var(--rh-v27-bg);
  --rh-rank-panel: rgba(29, 39, 51, .86);
  --rh-rank-panel-strong: rgba(35, 47, 60, .94);
  --rh-rank-border: var(--rh-v27-border);
  --rh-rank-border-bright: var(--rh-v27-border-strong);
  --rh-rank-text: var(--rh-v27-text);
  --rh-rank-muted: var(--rh-v27-muted);
  --rh-rank-soft: var(--rh-v27-soft);
  --rh-rank-mint: var(--rh-v27-primary);
  --rh-rank-cyan: #6dd7f7;
  --rh-rank-indigo: #9fa8ff;
  --rh-rank-gold: var(--rh-v27-gold);
  --rh-rank-silver: var(--rh-v27-silver);
  --rh-rank-bronze: var(--rh-v27-bronze);
  background:
    radial-gradient(900px 440px at 9% -7%, rgba(94, 234, 212, .12), transparent 62%),
    radial-gradient(760px 420px at 106% 10%, rgba(192, 132, 252, .08), transparent 64%),
    var(--rh-v27-bg);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-hero {
  border-color: var(--rh-v27-border);
  background:
    radial-gradient(560px 260px at 20% 0%, rgba(94, 234, 212, .16), transparent 68%),
    radial-gradient(420px 260px at 100% 100%, rgba(242, 185, 107, .11), transparent 68%),
    linear-gradient(180deg, var(--rh-v27-surface-2), var(--rh-v27-surface));
  box-shadow: var(--rh-v27-shadow), inset 0 1px 0 rgba(255,255,255,.035);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-spotlight,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-stats article,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-control,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-tools,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table-card {
  border-color: var(--rh-v27-border);
  background: rgba(29, 39, 51, .76);
  box-shadow: var(--rh-v27-shadow), inset 0 1px 0 rgba(255,255,255,.025);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-control,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-tools,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table-card {
  position: relative;
  overflow: hidden;
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-control::before,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-native-tools::before,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  pointer-events: none;
  background: radial-gradient(420px 150px at 18% 0%, rgba(94, 234, 212, .12), transparent 72%);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-mode-nav,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-entity-tab,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-filters input,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-filters select {
  border-color: var(--rh-v27-border);
  background-color: rgba(35, 47, 60, .72);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-mode-nav a.is-active,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-filters button {
  border-color: rgba(94, 234, 212, .34);
  background: linear-gradient(135deg, var(--rh-v27-primary), #67d5ef);
  color: #14232c;
  box-shadow: 0 12px 28px rgba(94, 234, 212, .13);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-entity-tab:hover,
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-entity-tab.is-active {
  border-color: rgba(94, 234, 212, .27);
  background: linear-gradient(145deg, rgba(94, 234, 212, .10), rgba(109, 215, 247, .035));
}

/* Podium is deliberately not structurally restyled. Only parent tone follows V27. */
.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-lovable-podium {
  border-color: var(--rh-v27-border);
  background:
    radial-gradient(480px 180px at 50% 0%, rgba(242, 185, 107, .085), transparent 74%),
    linear-gradient(180deg, rgba(35, 47, 60, .82), rgba(29, 39, 51, .82));
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table-head {
  position: relative;
  min-height: 68px;
  padding: 18px 20px;
  border-bottom-color: var(--rh-v27-border);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table-head b {
  font-size: 1rem;
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table {
  min-width: 760px;
  font-size: .77rem;
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(35, 47, 60, .94);
  backdrop-filter: blur(16px);
  color: rgba(154, 168, 183, .95);
  font-size: .64rem;
  letter-spacing: .11em;
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table td {
  padding-top: 13px;
  padding-bottom: 13px;
  border-bottom-color: var(--rh-v27-border);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table tbody tr {
  background: rgba(29, 39, 51, .24);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table tbody tr:nth-child(even) {
  background: rgba(35, 47, 60, .32);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table tbody tr:hover {
  background: rgba(94, 234, 212, .055);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-table-avatar {
  border-color: var(--rh-v27-border);
  background: linear-gradient(135deg, rgba(94, 234, 212, .15), rgba(192, 132, 252, .07));
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-rank-pill {
  border: 1px solid var(--rh-v27-border);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-rank-pill-1 {
  border-color: rgba(242,199,109,.30);
  background: rgba(242,199,109,.12);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-rank-pill-2 {
  border-color: rgba(200,210,220,.24);
  background: rgba(200,210,220,.09);
}

.rh-rankings-public-native-page[data-rh-public-results-v27="1"] .rh-rankings-rank-pill-3 {
  border-color: rgba(215,149,104,.28);
  background: rgba(215,149,104,.11);
}

/* ========================================================================== 
   Classification view — V27 dark native tone, same functional DOM/JS contract.
   ========================================================================== */

body.rh-v27-classification-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(94, 234, 212, .12), transparent 62%),
    radial-gradient(820px 480px at 108% 8%, rgba(192, 132, 252, .08), transparent 64%),
    var(--rh-v27-bg);
  color: var(--rh-v27-text);
  color-scheme: dark;
  overflow-x: clip;
}

.rh-v27-classification-page .classification-page {
  min-height: 100vh;
  background: transparent;
  color: var(--rh-v27-text);
}

.rh-v27-classification-page .classification-hero {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 32px));
  min-height: 330px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid var(--rh-v27-border);
  border-radius: 28px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--rh-v27-shadow);
}

.rh-v27-classification-page .classification-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 280px at 18% 0%, rgba(94, 234, 212, .18), transparent 68%),
    linear-gradient(90deg, rgba(16, 24, 34, .96) 0%, rgba(16, 24, 34, .84) 58%, rgba(16, 24, 34, .52) 100%);
}

.rh-v27-classification-page .classification-hero__inner {
  display: flex;
  min-height: 330px;
  align-items: flex-end;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
}

.rh-v27-classification-page .classification-hero__content {
  max-width: 780px;
}

.rh-v27-classification-page .classification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(94, 234, 212, .28);
  border-radius: 999px;
  background: rgba(94, 234, 212, .10);
  color: var(--rh-v27-primary);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rh-v27-classification-page .classification-hero h1 {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--rh-v27-text);
  font-family: var(--rh-v2-font-display, "Space Grotesk", Inter, system-ui, sans-serif);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.rh-v27-classification-page .classification-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0;
  color: var(--rh-v27-muted);
  font-size: .82rem;
}

.rh-v27-classification-page .classification-hero__lead {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--rh-v27-muted);
  font-size: .96rem;
  line-height: 1.6;
}

.rh-v27-classification-page .classification-main {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 0 0 72px;
}

.rh-v27-classification-page .classification-stats-panel,
.rh-v27-classification-page .classification-table-panel,
.rh-v27-classification-page .sidebar-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rh-v27-border);
  border-radius: 24px;
  background: rgba(29, 39, 51, .82);
  box-shadow: var(--rh-v27-shadow), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}

.rh-v27-classification-page .classification-stats-panel::before,
.rh-v27-classification-page .classification-table-panel::before,
.rh-v27-classification-page .sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 112px;
  pointer-events: none;
  background: radial-gradient(440px 160px at 18% 0%, rgba(94, 234, 212, .12), transparent 72%);
}

.rh-v27-classification-page .classification-stats-panel {
  padding: clamp(20px, 3vw, 28px);
}

.rh-v27-classification-page .panel-head,
.rh-v27-classification-page .table-panel-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rh-v27-classification-page .panel-head h2,
.rh-v27-classification-page .table-panel-head h2,
.rh-v27-classification-page .sidebar-card h3 {
  margin: 5px 0 0;
  color: var(--rh-v27-text);
  font-family: var(--rh-v2-font-display, "Space Grotesk", Inter, system-ui, sans-serif);
  letter-spacing: -.025em;
}

.rh-v27-classification-page .panel-head h2,
.rh-v27-classification-page .table-panel-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.rh-v27-classification-page .panel-kicker {
  margin: 0;
  color: var(--rh-v27-primary);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.rh-v27-classification-page .panel-lead,
.rh-v27-classification-page .classification-origin-note {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--rh-v27-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.rh-v27-classification-page .stats-search,
.rh-v27-classification-page .table-search-box {
  position: relative;
  display: flex;
  gap: 9px;
}

.rh-v27-classification-page .stats-search {
  margin-top: 18px;
}

.rh-v27-classification-page .stats-search input,
.rh-v27-classification-page .table-search-box input {
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--rh-v27-border);
  border-radius: 13px;
  outline: none;
  background: rgba(35, 47, 60, .74);
  color: var(--rh-v27-text);
  font: inherit;
  font-size: .82rem;
}

.rh-v27-classification-page .stats-search input {
  flex: 1 1 260px;
  padding: 10px 13px;
}

.rh-v27-classification-page .table-search-box input {
  width: min(310px, 100%);
  padding: 10px 13px;
}

.rh-v27-classification-page .stats-search input::placeholder,
.rh-v27-classification-page .table-search-box input::placeholder {
  color: rgba(154, 168, 183, .58);
}

.rh-v27-classification-page .stats-search input:focus,
.rh-v27-classification-page .table-search-box input:focus {
  border-color: rgba(94, 234, 212, .42);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, .09);
}

.rh-v27-classification-page .stats-search button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(94, 234, 212, .34);
  border-radius: 13px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rh-v27-primary), #67d5ef);
  color: #14232c;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
}

.rh-v27-classification-page .athlete-stats-card {
  position: relative;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--rh-v27-border);
  border-radius: 20px;
  background: rgba(35, 47, 60, .54);
}

.rh-v27-classification-page .athlete-stats-card__empty {
  color: var(--rh-v27-muted);
  font-size: .84rem;
  text-align: center;
}

.rh-v27-classification-page .athlete-stats-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rh-v27-classification-page .athlete-title-block h3 {
  margin: 5px 0 0;
  color: var(--rh-v27-text);
  font-family: var(--rh-v2-font-display, "Space Grotesk", Inter, system-ui, sans-serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.rh-v27-classification-page .athlete-title-block p:last-child {
  margin: 4px 0 0;
  color: var(--rh-v27-muted);
  font-size: .78rem;
}

.rh-v27-classification-page .athlete-card-kicker {
  margin: 0;
  color: var(--rh-v27-primary);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rh-v27-classification-page .athlete-bib-badge {
  display: grid;
  min-width: 72px;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, .26);
  border-radius: 20px;
  background: rgba(94, 234, 212, .09);
  color: var(--rh-v27-primary);
  font-size: 1.35rem;
  font-weight: 850;
}

.rh-v27-classification-page .athlete-card-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.rh-v27-classification-page .athlete-card-grid--top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rh-v27-classification-page .athlete-card-grid--times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-v27-classification-page .athlete-card-grid--positions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-v27-classification-page .athlete-card-grid--positions.is-participative { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rh-v27-classification-page .athlete-card-grid--final { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rh-v27-classification-page .stat-box,
.rh-v27-classification-page .athlete-performance-card {
  border: 1px solid var(--rh-v27-border);
  border-radius: 15px;
  background: rgba(29, 39, 51, .68);
}

.rh-v27-classification-page .stat-box {
  min-width: 0;
  padding: 13px;
}

.rh-v27-classification-page .stat-box--full { margin-bottom: 10px; }
.rh-v27-classification-page .stat-box span,
.rh-v27-classification-page .stat-box strong { display: block; }
.rh-v27-classification-page .stat-box span { color: var(--rh-v27-soft); font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rh-v27-classification-page .stat-box strong { margin-top: 6px; overflow-wrap: anywhere; color: var(--rh-v27-text); font-size: .9rem; }

.rh-v27-classification-page .athlete-performance-card { padding: 14px; margin-bottom: 10px; }
.rh-v27-classification-page .athlete-performance-card__title { color: var(--rh-v27-muted); font-size: .75rem; }
.rh-v27-classification-page .athlete-performance-card__title strong { color: var(--rh-v27-primary); }
.rh-v27-classification-page .performance-bar { height: 22px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.rh-v27-classification-page .performance-bar__fill { display: flex; height: 100%; align-items: center; justify-content: flex-end; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rh-v27-athlete), var(--rh-v27-primary)); transition: width .28s ease; }
.rh-v27-classification-page .performance-bar__fill span { padding: 0 8px; color: #14232c; font-size: .66rem; font-weight: 850; }

.rh-v27-classification-page .classification-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.rh-v27-classification-page .classification-sidebar {
  position: sticky;
  top: 18px;
}

.rh-v27-classification-page .sidebar-card {
  padding: 18px;
}

.rh-v27-classification-page .sidebar-card h3 {
  font-size: 1.15rem;
}

.rh-v27-classification-page .classification-nav {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.rh-v27-classification-page .nav-distance,
.rh-v27-classification-page .nav-group {
  min-width: 0;
}

.rh-v27-classification-page .nav-distance__button,
.rh-v27-classification-page .nav-group__button,
.rh-v27-classification-page .nav-table-link {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--rh-v27-border);
  border-radius: 12px;
  color: var(--rh-v27-muted);
  background: rgba(35, 47, 60, .58);
  font: inherit;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.rh-v27-classification-page .nav-distance__button,
.rh-v27-classification-page .nav-group__button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  font-size: .77rem;
  font-weight: 750;
}

.rh-v27-classification-page .nav-distance__groups,
.rh-v27-classification-page .nav-group__items { display: none; }
.rh-v27-classification-page .nav-distance.is-open .nav-distance__groups { display: block; padding: 9px 0 0 8px; }
.rh-v27-classification-page .nav-group.is-open .nav-group__items { display: grid; gap: 6px; padding: 7px 0 0 8px; }
.rh-v27-classification-page .nav-group + .nav-group { margin-top: 7px; }

.rh-v27-classification-page .nav-table-link {
  display: block;
  min-height: 38px;
  padding: 9px 11px;
  font-size: .73rem;
  line-height: 1.35;
  text-decoration: none;
}

.rh-v27-classification-page .nav-distance__button:hover,
.rh-v27-classification-page .nav-group__button:hover,
.rh-v27-classification-page .nav-table-link:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, .22);
  color: var(--rh-v27-text);
}

.rh-v27-classification-page .nav-table-link.is-active {
  border-color: rgba(94, 234, 212, .32);
  background: rgba(94, 234, 212, .10);
  color: var(--rh-v27-primary);
  font-weight: 800;
}

.rh-v27-classification-page .nav-arrow { color: var(--rh-v27-soft); }

.rh-v27-classification-page .classification-table-panel {
  padding: 0;
}

.rh-v27-classification-page .table-panel-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--rh-v27-border);
}

.rh-v27-classification-page .classification-table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0 0 24px 24px;
  background: rgba(29, 39, 51, .52);
  box-shadow: none;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 234, 212, .28) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.rh-v27-classification-page .classification-table-wrap.is-dragging,
.rh-v27-classification-page .classification-table-wrap:active { cursor: grabbing; user-select: none; }
.rh-v27-classification-page .classification-table-wrap::-webkit-scrollbar { height: 9px; }
.rh-v27-classification-page .classification-table-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,.025); }
.rh-v27-classification-page .classification-table-wrap::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(94, 234, 212, .28); }

.rh-v27-classification-page .classification-table {
  width: max-content;
  min-width: 980px;
  border-collapse: collapse;
  color: var(--rh-v27-text);
  font-size: .78rem;
}

.rh-v27-classification-page .classification-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 13px 12px;
  border-right: 0;
  border-bottom: 1px solid var(--rh-v27-border);
  background: rgba(35, 47, 60, .95);
  backdrop-filter: blur(16px);
  color: rgba(154, 168, 183, .95);
  font-size: .63rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.rh-v27-classification-page .classification-table tbody tr {
  background: rgba(29, 39, 51, .36);
  transition: background .18s ease, box-shadow .18s ease;
}

.rh-v27-classification-page .classification-table tbody tr:nth-child(even):not(.podium-gold):not(.podium-silver):not(.podium-bronze) {
  background: rgba(35, 47, 60, .34);
}

.rh-v27-classification-page .classification-table tbody tr:hover:not(.podium-gold):not(.podium-silver):not(.podium-bronze) {
  background: rgba(94, 234, 212, .055);
}

.rh-v27-classification-page .classification-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--rh-v27-border);
  color: var(--rh-v27-text);
  font-size: .77rem;
  white-space: nowrap;
}

.rh-v27-classification-page .classification-table tbody td:first-child {
  color: var(--rh-v27-primary);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.rh-v27-classification-page .classification-table tbody td:nth-child(2),
.rh-v27-classification-page .classification-table tbody td:nth-child(5),
.rh-v27-classification-page .classification-table tbody td:nth-child(6),
.rh-v27-classification-page .classification-table tbody td:nth-child(7) {
  font-variant-numeric: tabular-nums;
}

.rh-v27-classification-page .classification-table tbody tr.podium-gold,
.rh-v27-classification-page .classification-table tbody tr.podium-silver,
.rh-v27-classification-page .classification-table tbody tr.podium-bronze {
  background: rgba(35, 47, 60, .58);
}

.rh-v27-classification-page .classification-table tbody tr.podium-gold {
  box-shadow: inset 3px 0 0 var(--rh-v27-gold);
  background: linear-gradient(90deg, rgba(242,199,109,.13), rgba(35,47,60,.50) 44%);
}

.rh-v27-classification-page .classification-table tbody tr.podium-silver {
  box-shadow: inset 3px 0 0 var(--rh-v27-silver);
  background: linear-gradient(90deg, rgba(200,210,220,.10), rgba(35,47,60,.50) 44%);
}

.rh-v27-classification-page .classification-table tbody tr.podium-bronze {
  box-shadow: inset 3px 0 0 var(--rh-v27-bronze);
  background: linear-gradient(90deg, rgba(215,149,104,.11), rgba(35,47,60,.50) 44%);
}

.rh-v27-classification-page .classification-table tbody tr.podium-gold td,
.rh-v27-classification-page .classification-table tbody tr.podium-silver td,
.rh-v27-classification-page .classification-table tbody tr.podium-bronze td {
  color: var(--rh-v27-text);
  font-weight: 600;
}

.rh-v27-classification-page .classification-table tbody tr.podium-gold td:first-child { color: var(--rh-v27-gold); }
.rh-v27-classification-page .classification-table tbody tr.podium-silver td:first-child { color: var(--rh-v27-silver); }
.rh-v27-classification-page .classification-table tbody tr.podium-bronze td:first-child { color: var(--rh-v27-bronze); }

.rh-v27-classification-page .classification-table-panel.has-right-fade::after {
  right: 0;
  bottom: 0;
  width: 44px;
  border-radius: 0 0 24px 0;
  background: linear-gradient(90deg, rgba(29,39,51,0), rgba(29,39,51,.96));
}

.rh-v27-classification-page .classification-table-panel.fade-hidden::after { opacity: 0; }
.rh-v27-classification-page .hidden { display: none !important; }
#classificationTableSection { scroll-margin-top: 24px; }

.rh-v27-classification-page .classification-page[data-historical-public-renderer="1"] .classification-badge {
  border-color: rgba(143,169,193,.30);
  background: rgba(143,169,193,.10);
  color: var(--rh-v27-admin);
}

.rh-v27-classification-page .classification-page[data-historical-public-renderer="1"] .nav-distance__button span:first-child::after {
  content: "Histórico";
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(143,169,193,.11);
  color: var(--rh-v27-admin);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .rh-v27-classification-page .classification-layout { grid-template-columns: 1fr; }
  .rh-v27-classification-page .classification-sidebar { position: static; }
  .rh-v27-classification-page .classification-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .rh-v27-classification-page .classification-hero,
  .rh-v27-classification-page .classification-main {
    width: min(100% - 24px, 1180px);
  }

  .rh-v27-classification-page .classification-hero {
    min-height: 300px;
    margin-top: 12px;
    border-radius: 22px;
  }

  .rh-v27-classification-page .classification-hero__inner {
    min-height: 300px;
    padding: 28px 20px;
  }

  .rh-v27-classification-page .classification-main {
    margin-top: 12px;
    padding-bottom: 48px;
  }

  .rh-v27-classification-page .classification-stats-panel,
  .rh-v27-classification-page .sidebar-card {
    padding: 17px;
    border-radius: 20px;
  }

  .rh-v27-classification-page .classification-table-panel { border-radius: 20px; }
  .rh-v27-classification-page .table-panel-head { padding: 17px 17px 14px; align-items: stretch; }
  .rh-v27-classification-page .table-search-box,
  .rh-v27-classification-page .table-search-box input { width: 100%; }
  .rh-v27-classification-page .classification-nav { grid-template-columns: 1fr; }
  .rh-v27-classification-page .athlete-card-grid--top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-v27-classification-page .athlete-card-grid--times,
  .rh-v27-classification-page .athlete-card-grid--positions,
  .rh-v27-classification-page .athlete-card-grid--final { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-v27-classification-page .classification-table-wrap::before {
    content: "Deslizá la tabla hacia los costados";
    display: block;
    padding: 9px 12px;
    border-bottom: 1px solid var(--rh-v27-border);
    color: var(--rh-v27-soft);
    background: rgba(35,47,60,.72);
    font-size: .65rem;
    font-weight: 750;
  }
  .rh-v27-classification-page .classification-table { min-width: 1120px; }
  .rh-v27-classification-page .classification-table thead th,
  .rh-v27-classification-page .classification-table tbody td { padding: 11px 9px; font-size: .72rem; }
}

@media (max-width: 480px) {
  .rh-v27-classification-page .stats-search { display: grid; }
  .rh-v27-classification-page .stats-search button { width: 100%; }
  .rh-v27-classification-page .athlete-stats-card__top { align-items: flex-start; }
  .rh-v27-classification-page .athlete-bib-badge { min-width: 60px; min-height: 60px; border-radius: 17px; font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rh-v27-classification-page *,
  .rh-v27-classification-page *::before,
  .rh-v27-classification-page *::after,
  .rh-rankings-public-native-page[data-rh-public-results-v27="1"] *,
  .rh-rankings-public-native-page[data-rh-public-results-v27="1"] *::before,
  .rh-rankings-public-native-page[data-rh-public-results-v27="1"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ========================================================================== 
   PUBLIC-CLASSIFICATION-V27-TONES-HF-1.0
   Tone correction after production mobile review. Functional DOM unchanged.
   ========================================================================== */

.rh-v27-classification-page[data-rh-public-results-v27="1"] {
  --rh-v27-class-shell: #101923;
  --rh-v27-class-panel: #15212c;
  --rh-v27-class-panel-2: #192834;
  --rh-v27-class-control: #172631;
  --rh-v27-class-control-hover: #1b2d39;
  --rh-v27-class-text: #edf5f7;
  --rh-v27-class-muted: #a8b7c2;
  --rh-v27-class-border: rgba(175, 208, 218, .12);
  --rh-v27-class-border-active: rgba(94, 234, 212, .42);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-stats-panel,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table-panel,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .sidebar-card {
  border-color: var(--rh-v27-class-border);
  background:
    linear-gradient(180deg, rgba(23, 37, 48, .97), rgba(15, 25, 34, .97));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255, 255, 255, .025);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-stats-panel::before,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table-panel::before,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .sidebar-card::before {
  background:
    radial-gradient(440px 160px at 14% 0%, rgba(45, 212, 191, .14), transparent 72%);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .stats-search input,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .table-search-box input {
  border-color: var(--rh-v27-class-border);
  background: rgba(13, 24, 33, .78);
  color: var(--rh-v27-class-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .stats-search input:hover,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .table-search-box input:hover {
  border-color: rgba(175, 208, 218, .20);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .stats-search input:focus,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .table-search-box input:focus {
  border-color: var(--rh-v27-class-border-active);
  background: rgba(13, 26, 35, .94);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .09);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .athlete-stats-card {
  border-color: var(--rh-v27-class-border);
  background: rgba(19, 32, 42, .82);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-nav {
  gap: 11px;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance {
  overflow: hidden;
  border: 1px solid var(--rh-v27-class-border);
  border-radius: 15px;
  background: var(--rh-v27-class-shell);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .14),
    inset 0 1px 0 rgba(255, 255, 255, .018);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance:hover {
  border-color: rgba(175, 208, 218, .18);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance.is-open {
  border-color: rgba(94, 234, 212, .22);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .025);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance__button,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group__button,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-table-link {
  color: var(--rh-v27-class-muted);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance__button {
  min-height: 50px;
  padding: 11px 14px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #1a2a36, #16242f);
  color: #dce7eb;
  font-size: .79rem;
  font-weight: 820;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .045);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance.is-open > .nav-distance__button {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, .13), rgba(22, 38, 49, .96) 58%),
    #162631;
  color: #f1fbfb;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance__button:hover,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group__button:hover {
  transform: none;
  border-color: transparent;
  background-color: var(--rh-v27-class-control-hover);
  color: #f3f8fa;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance__groups {
  border-top: 1px solid rgba(175, 208, 218, .08);
  background: rgba(10, 19, 27, .82);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance.is-open .nav-distance__groups {
  padding: 10px;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group {
  overflow: hidden;
  border: 1px solid rgba(175, 208, 218, .09);
  border-radius: 12px;
  background: rgba(21, 34, 44, .88);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group + .nav-group {
  margin-top: 8px;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group__button {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(27, 44, 56, .96), rgba(22, 37, 48, .96));
  color: #cbd8de;
  font-size: .75rem;
  font-weight: 760;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group.is-open > .nav-group__button {
  color: #eaf4f6;
  background: linear-gradient(180deg, rgba(31, 51, 63, .98), rgba(23, 40, 51, .98));
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group__items {
  border-top: 1px solid rgba(175, 208, 218, .07);
  background: rgba(10, 19, 27, .68);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group.is-open .nav-group__items {
  gap: 7px;
  padding: 8px;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-table-link {
  min-height: 41px;
  padding: 10px 12px;
  border: 1px solid rgba(175, 208, 218, .09);
  border-radius: 10px;
  background: rgba(24, 39, 50, .90);
  color: #b9c8d0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .015);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-table-link--single {
  margin: 0;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-table-link:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, .25);
  background: rgba(28, 48, 59, .98);
  color: #eff8f9;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-table-link.is-active {
  border-color: var(--rh-v27-class-border-active);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, .17), rgba(56, 189, 248, .055)),
    #152a33;
  color: #7ff3df;
  font-weight: 820;
  box-shadow:
    inset 3px 0 0 #5eead4,
    0 8px 20px rgba(0, 0, 0, .13);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-arrow {
  color: #7f93a0;
  transition: transform .18s ease, color .18s ease;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance.is-open > .nav-distance__button .nav-arrow,
.rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-group.is-open > .nav-group__button .nav-arrow {
  color: #7ff3df;
  transform: rotate(180deg);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .table-panel-head {
  border-bottom-color: var(--rh-v27-class-border);
  background: rgba(16, 27, 36, .32);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table-wrap {
  background: #101a23;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table thead th {
  border-bottom-color: rgba(175, 208, 218, .12);
  background: rgba(22, 38, 49, .97);
  color: #aebdc7;
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table tbody tr {
  background: rgba(16, 27, 36, .94);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table tbody tr:nth-child(even):not(.podium-gold):not(.podium-silver):not(.podium-bronze) {
  background: rgba(21, 35, 45, .94);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table tbody tr:hover:not(.podium-gold):not(.podium-silver):not(.podium-bronze) {
  background: rgba(29, 55, 63, .92);
}

.rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table tbody td {
  border-bottom-color: rgba(175, 208, 218, .08);
  color: #dde7eb;
}

@media (max-width: 760px) {
  .rh-v27-classification-page[data-rh-public-results-v27="1"] .sidebar-card {
    padding: 18px;
  }

  .rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance.is-open .nav-distance__groups {
    padding: 9px;
  }

  .rh-v27-classification-page[data-rh-public-results-v27="1"] .nav-distance__button {
    min-height: 48px;
  }

  .rh-v27-classification-page[data-rh-public-results-v27="1"] .classification-table-wrap::before {
    border-bottom-color: var(--rh-v27-class-border);
    background: #14232d;
    color: #9eafb9;
  }
}

/* ========================================================================== 
   PUBLIC-CLASSIFICATION-V27-AGE-POSITION-HF-1.0
   Mobile/tablet balance: the third competitive position card spans the row.
   Functional DOM and result calculations remain unchanged.
   ========================================================================== */

@media (max-width: 760px) {
  .rh-v27-classification-page[data-rh-public-results-v27="1"]
  .athlete-card-grid--positions:not(.is-participative)
  #statCategoryBox:not(.hidden) {
    grid-column: 1 / -1;
  }
}

