/* Shared Mundial 2026 hub design tokens & layout */
.wc-page {
  --wc-accent: #daec30;
  --wc-accent-dim: rgba(218, 236, 48, 0.12);
  --wc-panel-bg: rgba(31, 24, 58, 0.62);
  --wc-panel-border: rgba(218, 236, 48, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wc-page__hero {
  position: relative;
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--wc-panel-border);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(218, 236, 48, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(90, 70, 180, 0.18) 0%, transparent 50%),
    linear-gradient(145deg, rgba(42, 34, 72, 0.95) 0%, rgba(31, 24, 58, 0.88) 100%);
  overflow: hidden;
}

.wc-page__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(218, 236, 48, 0.07) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.5;
}

.wc-page__header {
  position: relative;
  z-index: 1;
  margin: 0;
}

.wc-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(218, 236, 48, 0.28);
  background: var(--wc-accent-dim);
  color: var(--wc-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wc-page__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wc-accent);
  box-shadow: 0 0 8px rgba(218, 236, 48, 0.55);
}

.wc-page h1 {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: var(--color-text-heading);
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.wc-page__lead {
  margin: 0;
  max-width: 68ch;
  color: var(--color-text-body);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
}

.wc-page__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.wc-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 18px;
  border: 1px solid var(--wc-panel-border);
  background: var(--wc-panel-bg);
  box-shadow: 0 12px 32px rgba(3, 2, 8, 0.22);
}

.wc-panel__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wc-section__title,
.wc-panel__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-text-heading);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.wc-section__intro,
.wc-panel__intro {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.wc-panel__footer {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.wc-grid--groups {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 118px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--wc-panel-border);
  background: rgba(19, 12, 48, 0.45);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.wc-card:hover {
  border-color: rgba(218, 236, 48, 0.42);
  background: rgba(42, 34, 72, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(3, 2, 8, 0.28);
}

.wc-card--group {
  padding-top: 14px;
}

.wc-card__badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: rgba(218, 236, 48, 0.14);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.wc-card__label {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wc-card__value {
  color: var(--color-text-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  padding-right: 28px;
}

.wc-card__leader {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.wc-card__leader .wc-card__value {
  padding-right: 0;
  flex: 1;
  min-width: 0;
}

.wc-card--group .wc-card__leader {
  margin-top: 2px;
}

.wc-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: auto;
}

.wc-card__prob {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wc-accent-dim);
  border: 1px solid rgba(218, 236, 48, 0.22);
  color: var(--wc-accent);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wc-card__vol {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wc-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.wc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(218, 236, 48, 0.28);
  background: rgba(218, 236, 48, 0.08);
  color: var(--wc-accent) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.wc-link-btn:hover {
  background: rgba(218, 236, 48, 0.16);
  border-color: rgba(218, 236, 48, 0.45);
  color: #f2ff7a !important;
  transform: translateX(2px);
}

.wc-link-btn::after {
  content: '→';
  font-size: 15px;
  line-height: 1;
}

.wc-link-btn--back::before {
  content: '←';
  font-size: 15px;
  line-height: 1;
}

.wc-link-btn--back::after {
  content: none;
}

/* Stats meta bar */
.wc-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 4px;
}

.wc-meta--hub {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.wc-meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(218, 236, 48, 0.14);
  background: rgba(19, 12, 48, 0.4);
  border-left: 3px solid rgba(255, 255, 255, 0.12);
}

.wc-meta__item--highlight {
  border-left-color: #daec30;
  background: rgba(218, 236, 48, 0.06);
}

.wc-meta__label {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wc-meta__value {
  color: var(--color-text-heading);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.wc-meta__value--small {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

@media screen and (max-width: 900px) {
  .wc-grid--groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 520px) {
  .wc-grid--groups {
    grid-template-columns: 1fr 1fr;
  }

  .wc-page__hero {
    padding: 18px;
    border-radius: 16px;
  }

  .wc-panel {
    padding: 16px;
    border-radius: 14px;
  }
}
