/**
 * Global premium skin — glass / UTMB-style across the public site.
 * Scoped to body.mtrail-site-premium (frontend only).
 */

body.mtrail-site-premium {
  --sp-orange: var(--brand-blue, #1b52e6);
  --sp-cyan: var(--brand-mint-dark, #1fb8aa);
  --sp-glass: rgba(255, 255, 255, 0.92);
  --sp-glass-border: var(--brand-border, rgba(27, 82, 230, 0.12));
  --sp-glow-orange: 0 14px 36px -12px rgba(27, 82, 230, 0.35);
  --sp-glow-cyan: 0 12px 32px -10px rgba(46, 217, 200, 0.35);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: #f8fbff;
  background-image:
    radial-gradient(ellipse 80% 55% at 12% 0%, rgba(46, 217, 200, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 50% at 88% 8%, rgba(27, 82, 230, 0.10), transparent 55%),
    linear-gradient(165deg, #f8fbff 0%, #eef4ff 46%, #f4fdfb 100%);
  background-attachment: fixed;
  color: var(--brand-text, #15264f);
}

/* ── Dark / auto (always non-light) ───────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) {
  background-color: #030d26;
  background-image:
    radial-gradient(ellipse 120% 80% at 88% -10%, rgba(0, 200, 230, 0.14), transparent 42%),
    radial-gradient(ellipse 100% 60% at 0% 100%, rgba(30, 80, 220, 0.16), transparent 48%),
    linear-gradient(180deg, #030d26 0%, #050f2e 42%, #071340 100%);
  background-attachment: fixed;
  color: var(--on-surface, rgba(255, 255, 255, 0.92));
}

body.mtrail-site-premium:not(.theme-light) .site-content {
  color: var(--on-surface, rgba(255, 255, 255, 0.92));
}

body.mtrail-site-premium:not(.theme-light) .section,
body.mtrail-site-premium:not(.theme-light) .section--alt {
  color: inherit;
}

body.mtrail-site-premium:not(.theme-light) .section .container > article,
body.mtrail-site-premium:not(.theme-light) .section .container > .mtrail-empty {
  background: rgba(5, 15, 50, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(2, 8, 28, 0.35);
}

body.mtrail-site-premium:not(.theme-light) .section .container > article h1,
body.mtrail-site-premium:not(.theme-light) .section .container > article .entry-content {
  color: rgba(255, 255, 255, 0.94);
}

body.mtrail-site-premium:not(.theme-light) .section .container > article .entry-content a {
  color: #7eefff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.mtrail-site-premium:not(.theme-light) .section .container > article .entry-content a:hover {
  color: #fff;
}

/* ── Light theme ─────────────────────────────────────────────────────── */
body.mtrail-site-premium.theme-light {
  --sp-orange: var(--brand-blue, #1b52e6);
  --sp-cyan: var(--brand-mint-dark, #1fb8aa);
  --sp-glass: rgba(255, 255, 255, 0.92);
  --sp-glass-border: var(--brand-border, rgba(27, 82, 230, 0.12));
  --sp-glow-orange: 0 14px 36px -12px rgba(27, 82, 230, 0.35);
  --sp-glow-cyan: 0 12px 32px -10px rgba(46, 217, 200, 0.35);
  background-color: #f8fbff;
  background-image:
    radial-gradient(ellipse 80% 55% at 12% 0%, rgba(46, 217, 200, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 50% at 88% 8%, rgba(27, 82, 230, 0.10), transparent 55%),
    linear-gradient(165deg, #f8fbff 0%, #eef4ff 46%, #f4fdfb 100%);
  background-attachment: fixed;
  color: var(--brand-text, #15264f);
}

body.mtrail-site-premium.theme-light .section .container > article,
body.mtrail-site-premium.theme-light .section .container > .mtrail-empty {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(7, 5, 75, 0.1);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(3, 13, 38, 0.08);
}

/* ── Header & navigation ─────────────────────────────────────────────── */
body.mtrail-site-premium .site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

body.mtrail-site-premium:not(.theme-light) .site-header {
  background: rgba(3, 10, 32, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

body.mtrail-site-premium.theme-light .site-header {
  box-shadow: 0 8px 28px rgba(3, 13, 38, 0.06);
}

body.mtrail-site-premium .top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.mtrail-site-premium:not(.theme-light) .top-bar {
  background: rgba(0, 0, 0, 0.28);
}

body.mtrail-site-premium .main-nav-wrap {
  border-top: 0;
}

body.mtrail-site-premium .primary-menu a {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

body.mtrail-site-premium:not(.theme-light) .primary-menu a:hover,
body.mtrail-site-premium:not(.theme-light) .primary-menu a:focus-visible {
  background: rgba(0, 200, 230, 0.12);
  color: #b8f4ff;
  box-shadow: none;
}

body.mtrail-site-premium .header-register-btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--sp-orange) 0%, #ff8a3d 100%);
  border: 0;
  color: #fff !important;
  box-shadow: var(--sp-glow-orange);
  padding: 0.55rem 1.1rem;
}

body.mtrail-site-premium .header-register-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  body.mtrail-site-premium .header-register-btn {
    padding: 5px 10px;
    font-size: 0.5em;
  }
}

body.mtrail-site-premium .header-live-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 230, 0.45);
  background: rgba(0, 200, 230, 0.1);
  color: #b8f4ff !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

body.mtrail-site-premium.theme-light .header-live-btn {
  color: #036 !important;
  border-color: rgba(0, 120, 180, 0.35);
  background: rgba(0, 200, 230, 0.12);
}

body.mtrail-site-premium .theme-mode-toggle {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

body.mtrail-site-premium.theme-light .theme-mode-toggle {
  border-color: rgba(7, 5, 75, 0.15);
  background: rgba(255, 255, 255, 0.75);
}

body.mtrail-site-premium .menu-toggle {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

body.mtrail-site-premium.theme-light .menu-toggle {
  border-color: rgba(7, 5, 75, 0.18);
  color: #12152f;
}

/* ── Front page sections ─────────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .hero__overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 200, 230, 0.15), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(240, 101, 35, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(3, 13, 38, 0.2) 0%, rgba(3, 10, 32, 0.88) 65%, rgba(3, 10, 32, 0.95) 100%);
}

body.mtrail-site-premium:not(.theme-light) .section--dark {
  background: linear-gradient(180deg, rgba(4, 12, 36, 0.98), rgba(6, 18, 52, 0.96));
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

body.mtrail-site-premium:not(.theme-light) .section:not(.hero):not(.section--community) {
  background: transparent;
}

body.mtrail-site-premium:not(.theme-light) .section--about .about-grid,
body.mtrail-site-premium:not(.theme-light) .section--newsletter .newsletter-grid,
body.mtrail-site-premium:not(.theme-light) .section--partners > .container,
body.mtrail-site-premium:not(.theme-light) .section--gallery > .container {
  background: rgba(5, 15, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  margin-inline: auto;
  width: min(var(--container, 1240px), calc(100% - 2rem));
  padding: clamp(1.5rem, 4vw, 2.5rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(2, 8, 28, 0.25);
}

body.mtrail-site-premium:not(.theme-light) .section--community .community-content {
  background: rgba(5, 15, 50, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 56px rgba(2, 8, 28, 0.35);
}

body.mtrail-site-premium.theme-light .section--about .about-grid,
body.mtrail-site-premium.theme-light .section--newsletter .newsletter-grid,
body.mtrail-site-premium.theme-light .section--partners > .container,
body.mtrail-site-premium.theme-light .section--gallery > .container {
  border-radius: 1.25rem;
  border: 1px solid rgba(7, 5, 75, 0.08);
  box-shadow: 0 16px 40px rgba(3, 13, 38, 0.06);
}

/* ── Races list ──────────────────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .races-hero {
  background: linear-gradient(180deg, rgba(3, 10, 32, 0.95) 0%, rgba(5, 14, 42, 0.88) 100%);
  border-bottom: 1px solid rgba(0, 200, 230, 0.12);
}

body.mtrail-site-premium:not(.theme-light) .races-hero h1,
body.mtrail-site-premium:not(.theme-light) .races-hero p,
body.mtrail-site-premium:not(.theme-light) .races-hero__eyebrow {
  color: rgba(255, 255, 255, 0.94);
}

body.mtrail-site-premium .race-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.mtrail-site-premium:not(.theme-light) .race-chip {
  color: rgba(255, 255, 255, 0.88);
}

body.mtrail-site-premium .race-chip.is-active,
body.mtrail-site-premium .race-chip:hover {
  border-color: rgba(0, 200, 230, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 200, 230, 0.2);
}

body.mtrail-site-premium:not(.theme-light) .race-card {
  background: rgba(5, 15, 50, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(2, 8, 28, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.mtrail-site-premium:not(.theme-light) .race-card:hover {
  border-color: rgba(240, 101, 35, 0.45);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4), var(--sp-glow-orange);
}

body.mtrail-site-premium:not(.theme-light) .race-card h3,
body.mtrail-site-premium:not(.theme-light) .race-card__summary {
  color: rgba(255, 255, 255, 0.92);
}

/* ── Blog ────────────────────────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .blog-hero {
  background: linear-gradient(135deg, rgba(4, 14, 42, 0.98), rgba(8, 22, 58, 0.92));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.mtrail-site-premium:not(.theme-light) .blog-hero h1,
body.mtrail-site-premium:not(.theme-light) .blog-hero p,
body.mtrail-site-premium:not(.theme-light) .blog-hero__eyebrow {
  color: rgba(255, 255, 255, 0.94);
}

body.mtrail-site-premium:not(.theme-light) .blog-featured {
  background: rgba(5, 15, 50, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(2, 8, 28, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.mtrail-site-premium:not(.theme-light) .blog-card {
  background: rgba(5, 15, 50, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.mtrail-site-premium:not(.theme-light) .blog-card:hover {
  border-color: rgba(0, 200, 230, 0.4);
  box-shadow: var(--sp-glow-cyan);
}

/* ── Discover info template ──────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .discover-info-hero__overlay {
  background:
    radial-gradient(circle at 25% 20%, rgba(0, 200, 230, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(3, 13, 38, 0.35) 0%, rgba(3, 10, 32, 0.9) 100%);
}

body.mtrail-site-premium:not(.theme-light) .discover-info-nav-wrap {
  background: rgba(5, 15, 50, 0.55);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.mtrail-site-premium:not(.theme-light) .discover-info-nav a {
  border-radius: 999px;
}

body.mtrail-site-premium:not(.theme-light) .discover-info-nav a.is-active {
  background: rgba(240, 101, 35, 0.2);
  border-color: rgba(240, 101, 35, 0.45);
}

/* ── Runner hub shell (index.php) — același limbaj vizual ca event-checkin / curse ─ */
body.mtrail-site-premium .runner-app-shell {
  margin: 0;
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  background: transparent;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.mtrail-site-premium .runner-app-shell .mtrail-box {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.mtrail-site-premium:not(.theme-light) .runner-app-header {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 200, 230, 0.14), transparent 55%),
    linear-gradient(140deg, #030d26, #0a205e);
  border-bottom: 1px solid rgba(0, 200, 230, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.mtrail-site-premium:not(.theme-light) .runner-app-header h1,
body.mtrail-site-premium:not(.theme-light) .runner-app-header .eyebrow {
  color: rgba(255, 255, 255, 0.94);
}

body.mtrail-site-premium .runner-app-header__inner {
  position: relative;
}

body.mtrail-site-premium:not(.theme-light) .runner-app-header__inner::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0 0 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sp-orange), var(--sp-cyan));
}

body.mtrail-site-premium .runner-app-tabs {
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-block: 0.75rem 1rem;
}

body.mtrail-site-premium .runner-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.mtrail-site-premium:not(.theme-light) .runner-tab {
  color: rgba(255, 255, 255, 0.82);
}

body.mtrail-site-premium .runner-tab.is-active {
  background: linear-gradient(135deg, rgba(240, 101, 35, 0.35), rgba(240, 101, 35, 0.15));
  border-color: rgba(240, 101, 35, 0.55);
  color: #fff;
  box-shadow: var(--sp-glow-orange);
}

body.mtrail-site-premium:not(.theme-light) .runner-app-body {
  padding-top: clamp(0.75rem, 2.5vw, 1.5rem);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.mtrail-site-premium.theme-light .runner-app-body {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Catalog curse (runner-races) în shell: carduri și secțiuni pe fundal continuu */
body.mtrail-site-premium:not(.theme-light) .runner-app-shell .races-hero {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(0, 200, 230, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(5, 18, 52, 0.92) 0%, rgba(3, 13, 38, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.15rem;
  box-shadow: 0 20px 48px rgba(2, 8, 28, 0.28);
  margin-bottom: 1.25rem;
}

body.mtrail-site-premium:not(.theme-light) .runner-app-shell .section.section--races-list {
  background: rgba(5, 15, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  padding-block: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

body.mtrail-site-premium:not(.theme-light) .runner-app-shell .race-row {
  background: rgba(5, 15, 50, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

body.mtrail-site-premium:not(.theme-light) .runner-app-shell .race-row:hover {
  border-color: rgba(0, 200, 230, 0.35);
  box-shadow: 0 16px 40px rgba(0, 200, 230, 0.12);
}

body.mtrail-site-premium.theme-light .runner-tab {
  border-color: rgba(7, 5, 75, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #1a2030;
}

/* ── Runner Hub plugin boxes (shortcodes) ───────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .mtrail-box {
  background: rgba(5, 15, 50, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 48px rgba(2, 8, 28, 0.32);
  color: rgba(255, 255, 255, 0.92);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-box h1,
body.mtrail-site-premium:not(.theme-light) .mtrail-box h2,
body.mtrail-site-premium:not(.theme-light) .mtrail-box h3 {
  color: #fff;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-note {
  color: rgba(255, 255, 255, 0.65);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-alert--success {
  background: rgba(0, 180, 120, 0.15);
  border: 1px solid rgba(0, 220, 150, 0.35);
  color: #b8ffe8;
  border-radius: 0.75rem;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-alert--error {
  background: rgba(220, 40, 40, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ffc9c9;
  border-radius: 0.75rem;
}

body.mtrail-site-premium .mtrail-btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-btn:not(.mtrail-btn--ghost) {
  background: linear-gradient(135deg, var(--sp-orange) 0%, #ff8a3d 100%);
  border: 0;
  color: #fff;
  box-shadow: var(--sp-glow-orange);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-btn--ghost {
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 230, 0.45);
  background: rgba(0, 200, 230, 0.08);
  color: #b8f4ff;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-empty {
  background: rgba(5, 15, 50, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .site-footer {
  background: linear-gradient(180deg, rgba(4, 10, 30, 0.97), #020818);
  border-top: 1px solid rgba(0, 200, 230, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

body.mtrail-site-premium:not(.theme-light) .footer-pro h4 {
  color: #fff;
  letter-spacing: 0.12em;
}

body.mtrail-site-premium:not(.theme-light) .footer-newsletter input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
}

body.mtrail-site-premium:not(.theme-light) .footer-newsletter button[type="submit"] {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sp-orange), #ff8a3d);
  border: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--sp-glow-orange);
}

body.mtrail-site-premium .footer-bottom__links a:hover {
  color: var(--sp-cyan);
}

/* ── Mobile bottom bar ───────────────────────────────────────────────── */
body.mtrail-site-premium .mobile-bottom-bar {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

body.mtrail-site-premium:not(.theme-light) .mobile-bottom-bar {
  background: rgba(3, 10, 32, 0.92);
}

/* ── Typography: align with premium race page ───────────────────────── */
body.mtrail-site-premium h1,
body.mtrail-site-premium h2,
body.mtrail-site-premium h3,
body.mtrail-site-premium .h-display {
  font-family: "Barlow Condensed", var(--font-display, "Lexend", sans-serif);
  letter-spacing: 0.02em;
}

body.mtrail-site-premium:not(.theme-light) .countdown-cell {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
}

/* ── WP block content ────────────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .entry-content .wp-block-quote,
body.mtrail-site-premium:not(.theme-light) .entry-content blockquote {
  border-left: 4px solid var(--sp-orange);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.25rem;
}

body.mtrail-site-premium:not(.theme-light) .entry-content pre,
body.mtrail-site-premium:not(.theme-light) .entry-content code {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

body.mtrail-site-premium:not(.theme-light) .entry-content table {
  border-collapse: collapse;
  width: 100%;
  background: rgba(5, 15, 50, 0.45);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.mtrail-site-premium:not(.theme-light) .entry-content th,
body.mtrail-site-premium:not(.theme-light) .entry-content td {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Pagination ─────────────────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .page-numbers {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

body.mtrail-site-premium:not(.theme-light) .page-numbers.current,
body.mtrail-site-premium:not(.theme-light) .page-numbers:hover {
  background: rgba(0, 200, 230, 0.2);
  border-color: rgba(0, 200, 230, 0.45);
  color: #fff;
}

/* ── World events panel ──────────────────────────────────────────────── */
body.mtrail-site-premium:not(.theme-light) .world-events-panel {
  background: rgba(4, 12, 36, 0.97);
  border-bottom: 1px solid rgba(0, 200, 230, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Discover Info: articol + parteneri (template page-discover-info) ─ */
body.mtrail-site-premium:not(.theme-light) .section--discover-info {
  background: transparent;
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

body.mtrail-site-premium:not(.theme-light) .discover-info-content {
  background: rgba(5, 15, 50, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 56px rgba(2, 8, 28, 0.28);
}

body.mtrail-site-premium:not(.theme-light) .discover-info-content,
body.mtrail-site-premium:not(.theme-light) .discover-info-content .entry-content {
  color: rgba(255, 255, 255, 0.9);
}

body.mtrail-site-premium:not(.theme-light) .discover-info-content .entry-content a {
  color: #7eefff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.mtrail-site-premium:not(.theme-light) .discover-info-content .entry-content a:hover {
  color: #fff;
}

body.mtrail-site-premium:not(.theme-light) .discover-info-section {
  background: rgba(8, 18, 48, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.mtrail-site-premium:not(.theme-light) .discover-info-section__copy h2 {
  color: rgba(255, 255, 255, 0.96);
}

body.mtrail-site-premium:not(.theme-light) .discover-info-section__copy p {
  color: rgba(255, 255, 255, 0.78);
}

body.mtrail-site-premium:not(.theme-light) .section--discover-partners {
  background: transparent;
  padding-block: clamp(1.5rem, 4vw, 2.75rem);
}

body.mtrail-site-premium:not(.theme-light) .section--discover-partners > .container {
  background: rgba(5, 15, 50, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(2, 8, 28, 0.25);
}

body.mtrail-site-premium:not(.theme-light) .section--discover-partners h2,
body.mtrail-site-premium:not(.theme-light) .section--discover-partners .partner-subtitle {
  color: #fff;
}

body.mtrail-site-premium:not(.theme-light) .section--discover-partners .partner-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.mtrail-site-premium:not(.theme-light) .section--discover-partners .partner-item:hover {
  border-color: rgba(0, 200, 230, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body.mtrail-site-premium.theme-light .discover-info-content {
  box-shadow: 0 16px 40px rgba(3, 13, 38, 0.08);
}

body.mtrail-site-premium.theme-light .section--discover-partners > .container {
  box-shadow: 0 12px 32px rgba(3, 13, 38, 0.06);
}

/* ── Race Ops + Runner Hub: dashboard, profil, cont, centru curse, clasament, tracking ─ */
body.mtrail-site-premium .mtrail-dashboard,
body.mtrail-site-premium .mtrail-profile,
body.mtrail-site-premium .mtrail-runner-auth,
body.mtrail-site-premium .mtrail-race-center {
  max-width: min(1220px, calc(100% - 1.5rem));
  margin-inline: auto;
  padding-block: clamp(0.75rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  /* Permite scroll orizontal în .mtrail-table-wrap (altfel flex item = min-width:auto blochează) */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard,
body.mtrail-site-premium:not(.theme-light) .mtrail-profile,
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center {
  color: rgba(255, 255, 255, 0.9);
}

/* În shell-ul index.php: evită dublarea fundalului — conținutul „plutește” pe gradientul body */
body.mtrail-site-premium .runner-app-shell .mtrail-dashboard,
body.mtrail-site-premium .runner-app-shell .mtrail-profile,
body.mtrail-site-premium .runner-app-shell .mtrail-runner-auth,
body.mtrail-site-premium .runner-app-shell .mtrail-race-center {
  padding-block: clamp(0.25rem, 1.5vw, 0.75rem) clamp(0.5rem, 2vw, 1.25rem);
  background: transparent;
  min-height: 0;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard .mtrail-form label,
body.mtrail-site-premium:not(.theme-light) .mtrail-profile .mtrail-form label,
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth .mtrail-form label,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-form label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard .mtrail-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard .mtrail-form select,
body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard .mtrail-form textarea,
body.mtrail-site-premium:not(.theme-light) .mtrail-profile .mtrail-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.mtrail-site-premium:not(.theme-light) .mtrail-profile .mtrail-form select,
body.mtrail-site-premium:not(.theme-light) .mtrail-profile .mtrail-form textarea,
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth .mtrail-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth .mtrail-form select,
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth .mtrail-form textarea,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-form select,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-form textarea {
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 12, 40, 0.88);
  color: #fff;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard .mtrail-form input:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-profile .mtrail-form input:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth .mtrail-form input:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-form input:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard .mtrail-form select:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-profile .mtrail-form select:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth .mtrail-form select:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-form select:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-dashboard .mtrail-form textarea:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-profile .mtrail-form textarea:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-runner-auth .mtrail-form textarea:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-form textarea:focus {
  outline: none;
  border-color: rgba(0, 200, 230, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 200, 230, 0.18);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-consents,
body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-consents__signed-as {
  color: rgba(255, 255, 255, 0.82);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-race-center .mtrail-consents .mtrail-check {
  color: rgba(255, 255, 255, 0.9);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  margin-bottom: 0.25rem;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form select,
body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form input[type="text"],
body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form input[type="search"],
body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form input[type="number"] {
  min-width: min(100%, 11.5rem);
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 12, 40, 0.9);
  color: #fff;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form select:focus,
body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form input:focus {
  outline: none;
  border-color: rgba(0, 200, 230, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 200, 230, 0.2);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-table-wrap {
  border-radius: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 10, 32, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-width: 100%;
  min-width: 0;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-table thead th {
  background: linear-gradient(180deg, rgba(14, 32, 82, 0.98), rgba(8, 22, 58, 0.96));
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 800;
  border-bottom: 1px solid rgba(0, 200, 230, 0.28);
  padding: 0.78rem 0.6rem;
  white-space: nowrap;
  text-align: left;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.62rem 0.6rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-table tbody tr:hover td {
  background: rgba(0, 200, 230, 0.07);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-list {
  margin: 0.65rem 0 1rem;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-list li::marker {
  color: var(--sp-cyan);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-kpi {
  background: rgba(5, 15, 50, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(2, 8, 28, 0.22);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-kpi strong {
  color: #fff;
}

body.mtrail-site-premium:not(.theme-light) .mtrail-checkin__card {
  background: rgba(5, 15, 50, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  box-shadow: 0 22px 52px rgba(2, 8, 28, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-checkin__section-title {
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0, 200, 230, 0.22);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-checkin__kv {
  color: rgba(255, 255, 255, 0.85);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-checkin__recent-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-checkin__recent-item:hover {
  border-color: rgba(0, 200, 230, 0.35);
  background: rgba(0, 200, 230, 0.08);
}

body.mtrail-site-premium:not(.theme-light) .mtrail-checkin input[type="text"] {
  background: rgba(5, 12, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 0.65rem;
}

/* Centrul cursei — hero scurtătură */
body.mtrail-site-premium:not(.theme-light) .mtrail-race-hero {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(2, 8, 28, 0.35);
}

/* Mod luminos: tabele & formulare Race Ops */
body.mtrail-site-premium.theme-light .mtrail-table-wrap {
  border-radius: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(7, 5, 75, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(3, 13, 38, 0.06);
  max-width: 100%;
  min-width: 0;
}

body.mtrail-site-premium.theme-light .mtrail-table thead th {
  background: linear-gradient(180deg, #f0f3ff, #e8ecf8);
  color: #12152f;
  border-bottom: 1px solid rgba(240, 101, 35, 0.25);
}

body.mtrail-site-premium.theme-light .mtrail-table tbody td {
  border-color: rgba(7, 5, 75, 0.08);
  color: #1a2030;
}

body.mtrail-site-premium.theme-light .mtrail-table {
  min-width: 640px;
}

body.mtrail-site-premium.theme-light .mtrail-raceops-inline-form {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(7, 5, 75, 0.1);
  border-radius: 1rem;
  padding: 1rem;
}

/* ── Single race: seamless body with inner premium block ───────────── */
body.mtrail-site-premium.single-mtrail_race,
body.mtrail-site-premium.single-mtrail_race .site-content {
  background: transparent;
}

body.mtrail-site-premium.single-mtrail_race:not(.theme-light) {
  background-color: #030d26;
  background-image:
    radial-gradient(ellipse 120% 80% at 88% -10%, rgba(0, 200, 230, 0.12), transparent 42%),
    radial-gradient(ellipse 100% 60% at 0% 100%, rgba(30, 80, 220, 0.14), transparent 48%),
    linear-gradient(180deg, #030d26 0%, #050f2e 42%, #071340 100%);
  background-attachment: fixed;
}

@media (max-width: 980px) {
  body.mtrail-site-premium:not(.theme-light) .section--about .about-grid,
  body.mtrail-site-premium:not(.theme-light) .section--newsletter .newsletter-grid,
  body.mtrail-site-premium:not(.theme-light) .section--partners > .container,
  body.mtrail-site-premium:not(.theme-light) .section--gallery > .container {
    width: calc(100% - 1.25rem);
    padding: 1.25rem;
  }
}

@media (max-width: 720px) {
  body.mtrail-site-premium:not(.theme-light) .mtrail-raceops-inline-form,
  body.mtrail-site-premium.theme-light .mtrail-raceops-inline-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  body.mtrail-site-premium .mtrail-raceops-inline-form label {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  body.mtrail-site-premium .mtrail-raceops-inline-form .mtrail-btn {
    width: 100%;
  }
}

body.mtrail-site-premium.theme-light .runner-app-shell {
  background:
    radial-gradient(ellipse 80% 55% at 12% 0%, rgba(46, 217, 200, 0.10), transparent 58%),
    radial-gradient(ellipse 70% 50% at 88% 8%, rgba(27, 82, 230, 0.08), transparent 55%),
    linear-gradient(165deg, #f8fbff 0%, #eef4ff 46%, #f4fdfb 100%);
}

body.mtrail-site-premium.theme-light .runner-app-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 249, 255, 0.96) 100%);
  border-bottom: 1px solid var(--brand-border, rgba(27, 82, 230, 0.12));
  box-shadow: 0 10px 28px -18px rgba(14, 33, 82, 0.12);
}

body.mtrail-site-premium.theme-light .runner-app-header h1,
body.mtrail-site-premium.theme-light .runner-app-header .eyebrow {
  color: var(--brand-navy, #0e2152);
}

body.mtrail-site-premium.theme-light .runner-app-header h1 {
  font-style: italic;
  text-transform: uppercase;
  color: var(--brand-mint-dark, #1fb8aa);
}

body.mtrail-site-premium.theme-light .runner-app-tabs {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--brand-border, rgba(27, 82, 230, 0.12));
}

body.mtrail-site-premium.theme-light .runner-tab.is-active {
  background: linear-gradient(135deg, var(--brand-blue, #1b52e6) 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(27, 82, 230, 0.45);
}

body.mtrail-site-premium.theme-light .runner-tab {
  color: var(--brand-muted, #5a7096);
  font-family: var(--brand-display, "Barlow Condensed", sans-serif);
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.mtrail-site-premium.theme-light .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--brand-border, rgba(27, 82, 230, 0.12));
  box-shadow: 0 8px 24px -16px rgba(14, 33, 82, 0.12);
}

body.mtrail-site-premium.theme-light .header-register-btn {
  background: linear-gradient(135deg, var(--brand-blue, #1b52e6) 0%, #2563eb 100%);
  color: #fff;
  font-family: var(--brand-display, "Barlow Condensed", sans-serif);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.mtrail-site-premium.theme-light .primary-menu a {
  color: var(--brand-navy, #0e2152);
  font-weight: 600;
}

body.mtrail-site-premium.theme-light .primary-menu a:hover,
body.mtrail-site-premium.theme-light .primary-menu a:focus-visible {
  color: var(--brand-blue, #1b52e6);
}

body.mtrail-site-premium.theme-light h1,
body.mtrail-site-premium.theme-light h2,
body.mtrail-site-premium.theme-light h3,
body.mtrail-site-premium.theme-light .h-display {
  font-family: var(--brand-display, "Barlow Condensed", sans-serif);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.mtrail-site-premium.theme-light .mtrail-btn:not(.mtrail-btn--ghost) {
  background: linear-gradient(135deg, var(--brand-blue, #1b52e6) 0%, #2563eb 100%);
  color: #fff;
  font-family: var(--brand-display, "Barlow Condensed", sans-serif);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(27, 82, 230, 0.4);
}

body.mtrail-site-premium.theme-light .mtrail-btn--ghost {
  border-color: var(--brand-border, rgba(27, 82, 230, 0.22));
  color: var(--brand-blue, #1b52e6);
  background: #fff;
}

body.mtrail-site-premium.theme-light .race-chip.is-active,
body.mtrail-site-premium.theme-light .race-chip:hover {
  background: rgba(46, 217, 200, 0.16);
  border-color: rgba(46, 217, 200, 0.45);
  color: var(--brand-navy, #0e2152);
}

body.mtrail-site-premium.theme-light .race-card {
  background: #fff;
  border: 1px solid var(--brand-border, rgba(27, 82, 230, 0.12));
  box-shadow: 0 16px 40px -24px rgba(14, 33, 82, 0.16);
}

body.mtrail-site-premium.theme-light .race-card h3 {
  color: var(--brand-mint-dark, #1fb8aa);
  font-style: italic;
  text-transform: uppercase;
}

body.mtrail-site-premium.theme-light.single-mtrail_race {
  background-color: #f8fbff;
  background-image:
    radial-gradient(ellipse 80% 55% at 12% 0%, rgba(46, 217, 200, 0.12), transparent 58%),
    radial-gradient(ellipse 70% 50% at 88% 8%, rgba(27, 82, 230, 0.08), transparent 55%),
    linear-gradient(165deg, #f8fbff 0%, #eef4ff 46%, #f4fdfb 100%);
  background-attachment: fixed;
}

/* ── Races list & catalog (light) ─────────────────────────────────────── */
body.theme-light .races-hero,
body.mtrail-site-premium.theme-light .races-hero,
body.mtrail-site-premium.theme-light .runner-app-shell .races-hero {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(46, 217, 200, 0.14), transparent 45%),
    radial-gradient(ellipse at 88% 20%, rgba(27, 82, 230, 0.08), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: var(--brand-navy, #07054b);
  border-bottom: 1px solid rgba(7, 5, 75, 0.08);
  box-shadow: none;
}

body.theme-light .races-hero h1,
body.mtrail-site-premium.theme-light .races-hero h1 {
  color: var(--brand-mint-dark, #1fb8aa);
  font-family: var(--brand-display, "Barlow Condensed", sans-serif);
  font-style: italic;
  font-weight: 800;
}

body.theme-light .races-hero p,
body.mtrail-site-premium.theme-light .races-hero p {
  color: var(--brand-text-muted, #5c6478);
}

body.theme-light .races-hero__eyebrow,
body.mtrail-site-premium.theme-light .races-hero__eyebrow {
  color: var(--brand-blue, #1b52e6);
}

body.theme-light .section--races-list,
body.mtrail-site-premium.theme-light .section--races-list,
body.mtrail-site-premium.theme-light .runner-app-shell .section.section--races-list {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

body.theme-light .races-group__date,
body.mtrail-site-premium.theme-light .races-group__date {
  color: var(--brand-navy, #07054b);
  font-family: var(--brand-display, "Barlow Condensed", sans-serif);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.theme-light .race-row,
body.mtrail-site-premium.theme-light .race-row,
body.mtrail-site-premium.theme-light .runner-app-shell .race-row {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--race-row-theme, #2ed9c8) 14%, #fff) 0%, #fff 28%);
  color: var(--brand-text, #1a2030);
  border: 1px solid rgba(7, 5, 75, 0.10);
  box-shadow: 0 16px 40px rgba(14, 33, 82, 0.08);
}

body.theme-light .race-row:hover,
body.mtrail-site-premium.theme-light .race-row:hover {
  border-color: rgba(46, 217, 200, 0.45);
  box-shadow: 0 20px 48px rgba(14, 33, 82, 0.12);
}

body.theme-light .race-row__head h3,
body.mtrail-site-premium.theme-light .race-row__head h3 {
  color: var(--brand-navy, #07054b);
}

body.theme-light .race-row__status,
body.mtrail-site-premium.theme-light .race-row__status {
  color: var(--brand-blue, #1b52e6);
}

body.theme-light .race-row__summary,
body.theme-light .race-row__meta span,
body.mtrail-site-premium.theme-light .race-row__summary,
body.mtrail-site-premium.theme-light .race-row__meta span {
  color: var(--brand-text-muted, #5c6478);
}

body.theme-light .race-row__meta span,
body.mtrail-site-premium.theme-light .race-row__meta span {
  border-color: rgba(7, 5, 75, 0.12);
  background: rgba(7, 5, 75, 0.03);
}

body.theme-light .race-row__stats div,
body.mtrail-site-premium.theme-light .race-row__stats div {
  border-color: rgba(7, 5, 75, 0.10);
  background: rgba(243, 247, 253, 0.85);
  color: var(--brand-text, #1a2030);
}

body.theme-light .race-row__price-card,
body.mtrail-site-premium.theme-light .race-row__price-card {
  background: rgba(243, 247, 253, 0.9);
  border-color: rgba(7, 5, 75, 0.10);
}

body.theme-light .race-row__price-label,
body.mtrail-site-premium.theme-light .race-row__price-label {
  color: var(--brand-text-muted, #5c6478);
}

body.theme-light .race-row__price-value,
body.mtrail-site-premium.theme-light .race-row__price-value {
  color: var(--brand-navy, #07054b);
}

body.theme-light .race-row__actions .btn--dark,
body.mtrail-site-premium.theme-light .race-row__actions .btn--dark {
  background: var(--brand-blue, #1b52e6);
  border-color: var(--brand-blue, #1b52e6);
  color: #fff;
}

body.theme-light .race-row__register,
body.mtrail-site-premium.theme-light .race-row__register {
  background: #2de9c8;
  border-color: #2de9c8;
  color: var(--brand-navy, #07054b);
  font-weight: 700;
}

body.theme-light .race-row__register:hover,
body.mtrail-site-premium.theme-light .race-row__register:hover {
  background: #26d4b6;
  border-color: #26d4b6;
  color: var(--brand-navy, #07054b);
}

@media print {
  body.mtrail-site-premium {
    background: #fff !important;
    color: #000 !important;
  }

  body.mtrail-site-premium .site-header,
  body.mtrail-site-premium .mobile-bottom-bar,
  body.mtrail-site-premium .runner-app-tabs {
    display: none !important;
  }
}
