:root {
  --public-green-900: #1f5f4a;
  --public-green-800: #246d55;
  --public-green-700: #2b7a5e;
  --public-green-500: #3a8f6d;
  --public-ink: #0f1c17;
  --public-muted: rgba(255, 255, 255, 0.75);
  --public-footer-bg: #0f1c17;
}

body.public-shell {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  background: linear-gradient(180deg, #f4f7f6 0%, #eef3f1 100%);
  color: var(--public-ink);
}

.public-header {
  border-bottom: 1px solid rgba(15, 28, 23, 0.08);
}

.public-topbar {
  background: linear-gradient(110deg, var(--public-green-700), var(--public-green-900));
  padding: 0.25rem 0;
  color: #fff;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.public-brand:hover {
  color: #fff;
  opacity: 0.9;
}

.public-brand-logo {
  height: 100px;
  width: auto;
  display: block;
}

.public-search {
  max-width: 420px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.public-search .input-group-text,
.public-search .form-control {
  background: transparent;
  border: none;
  color: #fff;
}

.public-search .form-control::placeholder {
  color: var(--public-muted);
}

.public-search .form-control:focus {
  box-shadow: none;
}

.public-actions .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.public-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.public-actions .btn-light {
  color: var(--public-ink);
  font-weight: 600;
}

.public-user-name {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.public-mobile-user-name {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 0.9rem;
}

.section-title-link {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.section-title-link:hover {
  color: var(--public-green-900);
  text-decoration: none;
}

.section-title-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.section-title-link:hover .section-title-icon {
  opacity: 1;
}

.public-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.public-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.public-lang {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
}

.public-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.public-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
}

.public-mobile-menu {
  background: linear-gradient(110deg, var(--public-green-700), var(--public-green-900));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.public-mobile-menu.is-open {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
}

.public-mobile-actions {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0 1.25rem;
}

.public-mobile-actions .btn {
  border-radius: 999px;
}

.public-mobile-actions .btn-light {
  color: var(--public-ink);
}

.public-mobile-actions .mobile-lang {
  text-align: center;
  padding: 0.45rem 0;
}

.public-lang:hover {
  color: #fff;
  opacity: 1;
}

.public-subnav {
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 28, 23, 0.06);
}

.public-pills {
  gap: 0.5rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.public-pills .nav-link {
  color: var(--public-green-900);
  font-weight: 600;
  border-radius: 999px;
  background: rgba(58, 143, 109, 0.12);
}

.public-pills .nav-link:hover {
  background: rgba(58, 143, 109, 0.2);
}

.public-footer {
  background: var(--public-footer-bg);
  color: #fff;
  padding: 2.5rem 0 3rem;
  margin-top: 3rem;
}

.public-footer-simple {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.public-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.public-footer-brand:hover {
  color: #fff;
  opacity: 0.9;
}

.public-footer-logo {
  width: 36px;
  height: 36px;
  display: block;
}

.public-footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.public-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.public-footer-links a:hover {
  color: #fff;
}

.public-footer-separator {
  color: rgba(255, 255, 255, 0.4);
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(33, 37, 41, 0.97);
  color: #fff;
  padding: 1rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-consent-visible {
  transform: translateY(0);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-consent-text a {
  color: #6ea8fe;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #9ec5fe;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }
}

.dashboard-page .card {
  border-radius: 1rem;
}

.public-hero {
  border: 1px solid rgba(43, 122, 94, 0.15);
  background: linear-gradient(120deg, rgba(58, 143, 109, 0.08), rgba(255, 255, 255, 0.85));
}

.public-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(15, 28, 23, 0.6);
  font-weight: 600;
}

.public-hero-text {
  max-width: 520px;
}

.public-hero-actions .btn {
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
}

.public-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.public-stat {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(43, 122, 94, 0.08);
  border: 1px solid rgba(43, 122, 94, 0.12);
}

.public-stat-link {
  position: relative;
  padding-right: 2rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.public-stat-link::after {
  content: "→";
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  font-size: 1.1rem;
  color: rgba(15, 28, 23, 0.5);
}

.public-stat-link:hover {
  border-color: rgba(43, 122, 94, 0.25);
  box-shadow: 0 10px 18px rgba(15, 28, 23, 0.08);
  transform: translateY(-1px);
}

.public-stat-link:focus-visible {
  outline: 2px solid rgba(43, 122, 94, 0.4);
  outline-offset: 3px;
}

.public-stat-label {
  font-size: 0.85rem;
  color: rgba(15, 28, 23, 0.6);
}

.public-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--public-green-900);
}

.matches-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.players-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.players-filter-group {
  min-width: 180px;
}

.players-filter-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.venues-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.venues-filter-group {
  min-width: 180px;
}

.venue-card {
  border-radius: 0.85rem;
  border: 1px solid rgba(43, 122, 94, 0.15);
  background: #fff;
  padding: 1.25rem;
  height: 100%;
  display: grid;
  gap: 0.75rem;
}

.venue-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.venue-card-flag {
  width: 28px;
  height: 18px;
}

.venue-card-name {
  font-weight: 600;
  color: var(--public-green-900);
}

.venue-card-name-link {
  color: inherit;
  text-decoration: none;
}

.venue-card-name-link:hover {
  color: var(--public-green-900);
  text-decoration: underline;
}

.venue-card-country {
  font-size: 0.85rem;
  color: rgba(15, 28, 23, 0.6);
}

.venue-card-address {
  font-size: 0.9rem;
  color: rgba(15, 28, 23, 0.75);
}

.venue-card-sep {
  margin: 0 0.35rem;
  color: rgba(15, 28, 23, 0.35);
}

.venue-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.venue-card-links a {
  color: var(--public-green-900);
  text-decoration: none;
  font-weight: 600;
}

.venue-card-links a:hover {
  color: var(--public-green-900);
  text-decoration: underline;
}

.venue-detail-hero {
  border-radius: 1rem;
  border: 1px solid rgba(43, 122, 94, 0.15);
}

.venue-detail-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 28, 23, 0.1);
  background: #fff;
}

.venue-detail-section {
  border-radius: 1rem;
  border: 1px solid rgba(43, 122, 94, 0.15);
  background: #fff;
  padding: 1.25rem;
}

.venue-detail-address {
  color: rgba(15, 28, 23, 0.75);
  margin-bottom: 1rem;
}

.venue-detail-block {
  margin-top: 1rem;
}

.venue-detail-label {
  font-weight: 600;
  color: var(--public-green-900);
  margin-bottom: 0.35rem;
}

.venue-detail-html {
  color: rgba(15, 28, 23, 0.78);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.venue-detail-html > :first-child {
  margin-top: 0;
}

.venue-detail-html > :last-child {
  margin-bottom: 0;
}

.venue-detail-html h1,
.venue-detail-html h2,
.venue-detail-html h3,
.venue-detail-html h4,
.venue-detail-html h5,
.venue-detail-html h6 {
  color: var(--public-green-900);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.2rem 0 0.7rem;
}

.venue-detail-html h1 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.venue-detail-html h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.venue-detail-html h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.venue-detail-html h4,
.venue-detail-html h5,
.venue-detail-html h6 { font-size: 1.05rem; }

.venue-detail-html p {
  margin: 0 0 0.9rem;
}

.venue-detail-html ul,
.venue-detail-html ol {
  margin: 0 0 1rem 1.15rem;
  padding-left: 0.5rem;
}

.venue-detail-html li + li {
  margin-top: 0.35rem;
}

.venue-detail-html a {
  color: var(--public-green-900);
  text-decoration: underline;
}

.venue-detail-html a:hover {
  color: var(--public-green-900);
}

.venue-detail-html blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid rgba(43, 122, 94, 0.35);
  background: rgba(43, 122, 94, 0.06);
  border-radius: 0.5rem;
}

.venue-detail-html hr {
  margin: 1.2rem 0;
  border: 0;
  border-top: 1px solid rgba(15, 28, 23, 0.12);
}

.venue-detail-html table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.venue-detail-html th,
.venue-detail-html td {
  border: 1px solid rgba(15, 28, 23, 0.12);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.venue-detail-html th {
  background: rgba(43, 122, 94, 0.08);
  color: var(--public-green-900);
  font-weight: 700;
}

.venue-detail-html iframe,
.venue-detail-html video,
.venue-detail-html embed,
.venue-detail-html object {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 0.75rem;
}

.venue-detail-html iframe {
  aspect-ratio: 16 / 9;
}

.venue-detail-html img {
  max-width: 100%;
  height: auto;
}

/* Normalize imported LayerSlider markup so large background images do not break layout. */
.venue-detail-html .ls-fullscreen-wrapper,
.venue-detail-html .ls-wp-container,
.venue-detail-html .ls-inner,
.venue-detail-html .ls-layers,
.venue-detail-html .ls-slide-backgrounds,
.venue-detail-html .ls-bg-outer,
.venue-detail-html .ls-bg-wrap {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
  overflow: hidden;
}

.venue-detail-html .ls-bg {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto;
  object-fit: contain;
}

.venue-detail-html .ls-gui-element,
.venue-detail-html .ls-background-videos {
  display: none !important;
}

.venue-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.venue-detail-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 28, 23, 0.1);
}

.venue-detail-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.venue-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--public-green-900);
  text-decoration: none;
  font-weight: 600;
}

.venue-detail-link:hover {
  text-decoration: underline;
  color: var(--public-green-900);
}

.venue-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.venue-detail-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 122, 94, 0.2);
  background: rgba(43, 122, 94, 0.08);
  font-weight: 600;
  color: var(--public-green-900);
}

.player-card {
  display: block;
  height: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(43, 122, 94, 0.15);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.player-card:hover {
  border-color: rgba(43, 122, 94, 0.3);
  box-shadow: 0 8px 18px rgba(15, 28, 23, 0.08);
}

.player-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--public-green-900);
}

.player-card-flag {
  width: 26px;
  height: 18px;
}

.player-card-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
  color: rgba(15, 28, 23, 0.65);
  font-size: 0.85rem;
}

.events-page .card {
  border-radius: 1rem;
}

.event-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(43, 122, 94, 0.15);
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.event-card-main {
  display: grid;
  gap: 0.35rem;
}

.event-card:hover {
  border-color: rgba(43, 122, 94, 0.3);
  box-shadow: 0 8px 18px rgba(15, 28, 23, 0.08);
}

.event-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--public-green-900);
  margin-bottom: 0.2rem;
}

.event-card-title-link {
  color: inherit;
  text-decoration: none;
}

.event-card-flag {
  width: 26px;
  height: 18px;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(15, 28, 23, 0.6);
  font-size: 0.9rem;
}

.event-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: rgba(15, 28, 23, 0.65);
  font-size: 0.85rem;
}

.event-card-sep {
  color: rgba(15, 28, 23, 0.35);
}

.event-card-cta {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--public-green-900);
  text-decoration: none;
}

.event-card-stat-link {
  color: inherit;
  text-decoration: none;
}

.event-card-stat-link:hover,
.event-card-title-link:hover,
.event-card-cta:hover {
  color: var(--public-green-900);
}

.tournament-hero {
  border-radius: 1rem;
  border: 1px solid rgba(43, 122, 94, 0.15);
}

.tournament-hero-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tournament-hero-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 28, 23, 0.1);
  background: #fff;
}

.tournament-nav {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.tournament-nav.is-dragging {
  cursor: grabbing;
}

.tournament-nav-scroll {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem 0.15rem 0.5rem;
  width: max-content;
}

.tournament-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 122, 94, 0.2);
  background: #fff;
  color: var(--public-green-900);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tournament-nav-link:hover {
  border-color: rgba(43, 122, 94, 0.4);
  color: var(--public-green-900);
}

.tournament-nav-link.active {
  background: var(--public-green-900);
  color: #fff;
  border-color: var(--public-green-900);
}

.tournament-page .tournament-section {
  margin-bottom: 1.5rem;
}

.tournament-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tournament-day {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--public-ink);
  background: #fff;
  border: 1px solid rgba(43, 122, 94, 0.2);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tournament-day:hover {
  border-color: rgba(43, 122, 94, 0.45);
  box-shadow: 0 8px 18px rgba(43, 122, 94, 0.16);
  transform: translateY(-1px);
}

.tournament-day.is-active {
  border-color: var(--public-green-900);
  background: rgba(43, 122, 94, 0.12);
  box-shadow: 0 6px 16px rgba(43, 122, 94, 0.18);
}

.tournament-day-week {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: rgba(15, 28, 23, 0.55);
}

.tournament-day-number {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.tournament-day-month {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.roundrobin-row {
  background: rgba(43, 122, 94, 0.03);
}

.roundrobin-draw {
  padding: 1rem;
  border-top: 1px solid rgba(43, 122, 94, 0.15);
}

.roundrobin-draw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rr-view-toggle .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rr-view-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.roundrobin-section + .roundrobin-section {
  margin-top: 1rem;
}

.roundrobin-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
  color: var(--public-green-900);
}

.roundrobin-player {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.roundrobin-match-players {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rr-game-score {
  white-space: nowrap;
  margin-right: 0.25rem;
}

.draw-list-score-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 6ch;
  gap: 0.65rem;
  justify-content: end;
  font-variant-numeric: tabular-nums;
}

.draw-list-score-item {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 6ch;
  white-space: nowrap;
  text-align: right;
}

.roundrobin-matrix-wrap {
  overflow-x: auto;
}

.roundrobin-matrix {
  min-width: 900px;
  border-color: rgba(15, 28, 23, 0.18);
}

.roundrobin-matrix-player-col {
  min-width: 180px;
  background: #f7faf8;
  z-index: 1;
}

.roundrobin-matrix-col {
  min-width: 150px;
  width: 150px;
  vertical-align: top;
}

.roundrobin-matrix-col .roundrobin-player {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.roundrobin-matrix-cell {
  min-width: 150px;
  width: 150px;
  white-space: nowrap;
  line-height: 1.35;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--public-ink);
  background: #fff;
  padding: 0.6rem 0.65rem !important;
}

.roundrobin-matrix th,
.roundrobin-matrix td {
  border-color: rgba(15, 28, 23, 0.18);
}

.roundrobin-matrix-cell.is-diagonal {
  background: rgba(15, 28, 23, 0.08);
  color: rgba(15, 28, 23, 0.6);
  font-weight: 700;
}

.roundrobin-matrix-cell.is-win {
  background: rgba(58, 143, 109, 0.12);
}

.roundrobin-matrix-cell.is-loss {
  background: rgba(180, 35, 24, 0.08);
}

.roundrobin-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: rgba(15, 28, 23, 0.75);
}

/* Bracket / Tree draw styles are in bracket.css */

.tournament-players-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tournament-players-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.player-letter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.player-letter {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--public-green-900);
  border-bottom: 1px solid rgba(15, 28, 23, 0.12);
  padding-bottom: 0.25rem;
}

.player-letter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-row-link {
  text-decoration: none;
  color: inherit;
}

.player-row-link:hover {
  text-decoration: underline;
}

.player-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.player-name {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-country {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(15, 28, 23, 0.55);
}

.tournament-players-nav {
  display: flex;
  justify-content: flex-start;
  order: -1;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.5rem 0;
  background: #fff;
}

.player-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: rgba(43, 122, 94, 0.08);
  border: 1px solid rgba(43, 122, 94, 0.18);
}

.player-letter-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--public-ink);
  background: #fff;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.player-letter-link:hover {
  border-color: var(--public-green-900);
  transform: translateY(-1px);
}

.player-letter-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 992px) {
  .tournament-players-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tournament-players-nav {
    order: 0;
  }

  .player-letter-nav {
    flex-direction: column;
    align-items: center;
  }
}

.tournament-cta-card {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(43, 122, 94, 0.18);
}

.tournament-cta {
  --cui-btn-bg: var(--public-green-900);
  --cui-btn-border-color: var(--public-green-900);
  --cui-btn-hover-bg: #246d55;
  --cui-btn-hover-border-color: #246d55;
  --cui-btn-hover-color: #fff;
  background: var(--public-green-900);
  background-color: var(--public-green-900);
  border-color: var(--public-green-900);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
}

.tournament-cta:hover {
  background-color: #246d55;
  border-color: #246d55;
  color: #fff;
  opacity: 0.95;
  text-decoration: none;
}

.tournament-timeline {
  --timeline-accent: #6b7280;
  --timeline-bg: rgba(107, 114, 128, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  padding-left: 2.2rem;
}

.tournament-timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: rgba(15, 28, 23, 0.12);
}

.tournament-timeline.status-open {
  --timeline-accent: #2f8f3d;
  --timeline-bg: rgba(47, 143, 61, 0.14);
}

.tournament-timeline.status-upcoming {
  --timeline-accent: #64748b;
  --timeline-bg: rgba(100, 116, 139, 0.14);
}

.tournament-timeline.status-finished {
  --timeline-accent: #dc2626;
  --timeline-bg: rgba(220, 38, 38, 0.12);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 0.75rem;
}

.timeline-dot {
  position: absolute;
  left: -1.45rem;
  top: 0.3rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(15, 28, 23, 0.2);
}

.timeline-item.is-active .timeline-dot {
  background: var(--timeline-accent);
  border-color: var(--timeline-accent);
}

.timeline-title {
  font-weight: 600;
  color: #1f2a24;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0;
}

.timeline-item.is-active .timeline-title {
  background: var(--timeline-bg);
  color: var(--timeline-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: inline-flex;
}

.timeline-date {
  color: rgba(15, 28, 23, 0.6);
  font-size: 0.9rem;
}

.tournament-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tournament-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(43, 122, 94, 0.2);
  background: #fff;
  color: var(--public-green-900);
  font-weight: 600;
  text-decoration: none;
}

.tournament-chip:hover {
  border-color: rgba(43, 122, 94, 0.4);
  color: var(--public-green-900);
}

.tournament-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tournament-venue-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tournament-venue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(15, 28, 23, 0.7);
  text-decoration: none;
}

.tournament-venue-link:hover {
  color: var(--public-green-900);
}

.tournament-venue-link .icon {
  width: 18px;
  height: 18px;
}

.tournament-venue-link span {
  word-break: break-word;
}

.tournament-regulations {
  white-space: pre-wrap;
}

.page-link .icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.tournaments-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tournaments-filter-group {
  min-width: 180px;
}

.search-results-section {
  margin-bottom: 2rem;
}

.search-results-list .list-group-item {
  border-radius: 0.65rem;
  border: 1px solid rgba(43, 122, 94, 0.12);
  margin-bottom: 0.75rem;
}

.search-results-list .list-group-item:last-child {
  margin-bottom: 0;
}

.dashboard-hero {
  border: 1px solid rgba(43, 122, 94, 0.15);
}

.dashboard-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(43, 122, 94, 0.12);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--public-green-900);
}

.dashboard-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dashboard-avatar-btn {
  position: absolute;
  bottom: 6px;
  right: 4px;
  border-radius: 999px;
  padding: 0.35rem 0.45rem;
}

.dashboard-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.dashboard-tournament-logo {
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(15, 28, 23, 0.12);
  background: #fff;
}

.dashboard-score {
  min-width: 180px;
  border-radius: 0.75rem;
  border: 1px solid rgba(43, 122, 94, 0.15);
}

.dashboard-edit {
  border-radius: 999px;
  border-color: rgba(43, 122, 94, 0.4);
  color: var(--public-green-900);
}

.dashboard-edit:hover {
  background: rgba(43, 122, 94, 0.1);
  color: var(--public-green-900);
}

.dashboard-score-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--public-green-900);
}

.dashboard-tabs .nav-link {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  background: rgba(43, 122, 94, 0.08);
  color: var(--public-green-900);
  font-weight: 600;
}

.dashboard-tabs .nav-link.active {
  background: var(--public-green-700);
  color: #fff;
}

.dashboard-stats-panel {
  display: none;
}

.dashboard-stats-panel.is-active {
  display: block;
}

.dashboard-stat-row {
  display: grid;
  grid-template-columns: 160px 1fr 48px;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15, 28, 23, 0.06);
}

.dashboard-stat-row:last-child {
  border-bottom: none;
}

.dashboard-bar {
  height: 10px;
  background: rgba(43, 122, 94, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--public-green-700), #8fd3bd);
}

.dashboard-form {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--public-green-900);
  font-weight: 600;
}

.dashboard-form-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  color: var(--public-green-900);
  background: rgba(43, 122, 94, 0.12);
}

.dashboard-form-badge + .dashboard-form-badge {
  margin-left: 0.35rem;
}

.dashboard-form-badge.is-win {
  color: #1f5f4a;
  background: rgba(58, 143, 109, 0.18);
}

.dashboard-form-badge.is-loss {
  color: #b42318;
  background: rgba(180, 35, 24, 0.12);
}

.dashboard-form-badge.is-neutral {
  color: rgba(15, 28, 23, 0.6);
  background: rgba(15, 28, 23, 0.08);
}

.dashboard-empty {
  color: var(--public-green-900);
  background: rgba(43, 122, 94, 0.08);
  padding: 1rem;
  border-radius: 0.75rem;
}

.dashboard-match {
  border: 1px solid rgba(43, 122, 94, 0.15);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  display: grid;
  gap: 0.35rem;
}

.dashboard-match.is-win {
  background: rgba(58, 143, 109, 0.06);
}

.dashboard-match.is-loss {
  background: rgba(180, 35, 24, 0.06);
}

.dashboard-match-top {
  display: block;
}

.dashboard-match-grid {
  display: grid;
  gap: 0.4rem;
}

.dashboard-match-player {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.dashboard-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.dashboard-match-scores {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 3ch;
  gap: 0.65rem;
  justify-content: end;
  font-variant-numeric: tabular-nums;
}

.dashboard-match-score-cell {
  text-align: right;
  font-weight: 600;
  color: var(--public-green-900);
}

.dashboard-match-name {
  white-space: nowrap;
}

.dashboard-match-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-match-link:hover {
  text-decoration: underline;
}

.dashboard-match-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(15, 28, 23, 0.6);
  font-size: 0.9rem;
}


.dashboard-match-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-match-tournament {
  color: inherit;
  text-decoration: none;
}

.dashboard-match-tournament:hover {
  color: var(--public-green-900);
}

.dashboard-match-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--public-green-900);
  background: rgba(43, 122, 94, 0.12);
}

.dashboard-match-result.is-win {
  color: #1f5f4a;
  background: rgba(58, 143, 109, 0.18);
}

.dashboard-match-result.is-loss {
  color: #b42318;
  background: rgba(180, 35, 24, 0.12);
}

.dashboard-match-result.is-neutral {
  color: rgba(15, 28, 23, 0.6);
  background: rgba(15, 28, 23, 0.08);
}

@media (max-width: 767px) {
  .roundrobin-draw-header {
    flex-direction: column;
    align-items: stretch;
  }

  .rr-view-toggle {
    width: 100%;
  }

  .rr-view-toggle .btn {
    flex: 1;
    justify-content: center;
  }

  .roundrobin-matrix-player-col {
    min-width: 130px;
  }

  .roundrobin-matrix-col,
  .roundrobin-matrix-cell {
    min-width: 120px;
    width: 120px;
  }

  .roundrobin-matrix-cell {
    font-size: 0.75rem;
    padding: 0.45rem 0.5rem !important;
  }

  .dashboard-stat-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .dashboard-score {
    width: 100%;
  }

  .dashboard-match-top,
  .dashboard-match-bottom {
    align-items: flex-start;
  }

  .dashboard-match-result {
    align-self: flex-start;
  }
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-list a,
.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-list a:hover,
.footer-contact a:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991px) {
  .public-search {
    max-width: 260px;
  }
}

@media (max-width: 767px) {
  .public-topbar {
    padding: 1rem 0;
  }

  .public-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .public-search {
    width: 100%;
  }
}

/* ===== Times tab ===== */
.times-panel-section {
  border: 1px solid rgba(15, 28, 23, 0.15);
  border-radius: 0.5rem;
  padding: 1rem;
}

/* ===== Times tab grid ===== */
.times-grid { border-collapse: collapse; width: 100%; table-layout: fixed; }
.times-grid th { font-size: 0.8rem; padding: 4px 6px; text-align: center; }
.times-grid .time-label { width: 60px; font-size: 0.75rem; color: var(--cui-secondary, #6c757d); text-align: right; padding-right: 8px; white-space: nowrap; }

.slot-cell { cursor: pointer; border: 1px solid #dee2e6; height: auto; min-height: 38px; min-width: 130px; transition: background 0.15s, border-color 0.15s; }
.slot-selected { background: #c3e6cb; border-color: #a3d5b0; }
.slot-empty { background: #e9ecef; border-color: #dee2e6; }
.slot-cell:hover { filter: brightness(0.92); }

.slot-match-cell { padding: 0; cursor: pointer; }
.slot-match { padding: 3px 5px; font-size: 0.75rem; line-height: 1.3; height: 100%; background: #fff; border-radius: 2px; }
.slot-match .match-header { display: flex; align-items: center; gap: 4px; margin-bottom: 1px; }
.slot-match .match-event-badge { background: var(--cui-primary, #321fdb); color: #fff; font-size: 0.6rem; font-weight: 600; padding: 0 4px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.slot-match .match-round { color: var(--cui-secondary, #6c757d); font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-match .match-players { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.slot-match .match-flag { border: 1px solid #dee2e6; flex-shrink: 0; }
.slot-match.is-selected { outline: 2px solid var(--cui-primary, #321fdb); outline-offset: -2px; background: #e8daff; }
.slot-match.is-ordering-issue { outline: 2px solid #dc3545; outline-offset: -2px; background: #f8d7da; }
.slot-match.is-warning { background: #fff3cd; }

.times-day-tabs .nav-link { font-size: 0.85rem; padding: 0.35rem 0.75rem; }
.times-summary { padding: 8px 0 0; }
.times-summary .badge { font-size: 0.85rem; }
.times-unassigned { background: #fff3cd; border: 1px solid #ffc107; border-radius: 0.375rem; padding: 8px 12px; }
.unassigned-item { cursor: pointer; padding: 3px 6px; border-radius: 4px; transition: background 0.15s; }
.unassigned-item:hover { background: rgba(0,0,0,0.07); }
.unassigned-item.is-selected { background: #e8daff; outline: 2px solid var(--cui-primary, #321fdb); outline-offset: -1px; }
.times-grid.is-dragging { user-select: none; -webkit-user-select: none; }
