/* Header uses a wider wrap than page content so the unified nav fits on one row. */
header.site.site-head .wrap,
header.top.site-head .wrap,
.site-head > .wrap {
  max-width: 1240px;
}
/* Unified site nav: one set of labels everywhere. Desktop is a single row;
   below 880px it collapses to logo + Today + a menu drawer (Esc closes).
   Primary tabs: Today, Results, Members, Newsletter, Sports, More, Discord.
   Sports hubs share one dropdown / mobile sub-list. */
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  flex-wrap: nowrap;
  height: auto;
}
.site-head .brand { flex: 0 0 auto; }
.nav-today,
.nav-toggle { display: none; }
.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  word-spacing: .12em;
  font-size: 13px;
}
.site-nav > a,
.site-nav .nav-dd-btn {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  word-spacing: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-nav > a:hover,
.site-nav .nav-dd-btn:hover { color: var(--ink); }
.site-nav > a[aria-current="page"],
.site-nav .nav-dd-btn[data-active="true"],
.site-nav .nav-dd-btn[aria-expanded="true"] { color: var(--cyan); }

.nav-dd { position: relative; flex: 0 0 auto; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .85;
}
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  min-width: 188px;
  padding: 8px 0;
  background: #121526;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-dd-panel[hidden] { display: none !important; }
.nav-dd-panel a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 14px;
  white-space: nowrap;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.nav-dd-panel a:hover,
.nav-dd-panel a:focus-visible {
  color: var(--ink);
  background: rgba(25, 227, 255, 0.08);
  outline: none;
}
.nav-dd-panel a[aria-current="page"] { color: var(--cyan); }
.nav-dd-panel a.nav-sub { padding-left: 26px; font-size: .92em; }
.nav-dd-panel a.nav-sub::before { content: "↳ "; opacity: .6; }

.nav-today {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #07080f;
  background: var(--cyan);
  text-decoration: none;
  padding: 7px 12px;
  box-shadow: 0 0 14px rgba(25,227,255,.35);
}
.nav-today:hover { color: #07080f; background: #7ff0ff; }
.nav-toggle {
  margin-left: auto;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-hi);
  padding: 7px 12px;
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 5, 10, .62);
}
.nav-backdrop.is-open { display: block; }
body.nav-open { overflow: hidden; }

@media (max-width: 880px) {
  .nav-today,
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 92vw);
    margin: 0;
    z-index: 41;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: max(72px, env(safe-area-inset-top, 0px) + 56px) 20px 28px;
    background: #0c0e1a;
    border-left: 1px solid var(--line-hi);
    box-shadow: -12px 0 40px rgba(0,0,0,.45);
    overflow: auto;
    font-size: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-dd {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .nav-dd-btn {
    justify-content: space-between;
    width: 100%;
    padding: 12px 4px;
    text-align: left;
  }
  .nav-dd-panel {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0 0 8px;
    padding: 0 0 6px 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-dd-panel a {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(42, 49, 80, 0.55);
    font-size: 15px;
  }
  .nav-dd-panel a:last-child { border-bottom: 0; }
}

/* Cookie banner should not cover page content */
html.has-consent { padding-bottom: 96px; }
@media (max-width: 480px) { html.has-consent { padding-bottom: 108px; } }


/* Free Discord join — neon ProbaLab treatment; hidden when invite config is empty */
.discord-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cyan);
  border: 1px solid rgba(25, 227, 255, 0.55);
  background: rgba(25, 227, 255, 0.1);
  box-shadow: 0 0 16px rgba(25, 227, 255, 0.22), 0 0 28px rgba(255, 47, 192, 0.12);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.discord-cta:hover,
.discord-cta:focus-visible {
  color: #fff;
  border-color: var(--magenta);
  background: rgba(255, 47, 192, 0.16);
  box-shadow: 0 0 22px rgba(255, 47, 192, 0.35), 0 0 18px rgba(25, 227, 255, 0.25);
  outline: none;
}
.discord-cta .discord-ico { flex: 0 0 auto; display: block; filter: drop-shadow(0 0 6px rgba(25, 227, 255, 0.55)); }
.discord-cta-nav {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.discord-cta-nav span { line-height: 1; }
.site-nav > a.discord-cta-nav { color: var(--cyan); padding: 6px 10px; }
.site-nav > a.discord-cta-nav:hover { color: #fff; }


/* Follow @probalabsports on X — match Discord neon CTAs */
.x-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cyan);
  border: 1px solid rgba(25, 227, 255, 0.55);
  background: rgba(25, 227, 255, 0.1);
  box-shadow: 0 0 16px rgba(25, 227, 255, 0.22), 0 0 28px rgba(255, 47, 192, 0.12);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.x-cta:hover,
.x-cta:focus-visible {
  color: #fff;
  border-color: var(--magenta);
  background: rgba(255, 47, 192, 0.16);
  box-shadow: 0 0 22px rgba(255, 47, 192, 0.35), 0 0 18px rgba(25, 227, 255, 0.25);
  outline: none;
}
.x-cta .x-ico { flex: 0 0 auto; display: block; filter: drop-shadow(0 0 6px rgba(25, 227, 255, 0.55)); }
.x-cta-nav {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.site-nav > a.x-cta-nav { color: var(--cyan); padding: 6px 10px; }
.site-nav > a.x-cta-nav:hover { color: #fff; }
/* Desktop: icon-only next to Discord to save nav space */
@media (min-width: 881px) {
  .site-nav > a.x-cta-nav .x-cta-nav-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
  .site-nav > a.x-cta-nav { padding: 6px 8px; }
}
.social-cta-stack { display: grid; gap: 8px; width: fit-content; max-width: 100%; }
.social-footer { margin: 0 0 12px; }
