/* The Networker Hub — bright palette, transparent logo */
:root {
  --charcoal: #4a4446;
  --charcoal-soft: #5c5557;
  --brand-lavender: #b189b8;
  --brand-black: #000000;
  --brand-cream: #f5f0e8;
  --brand-lavender-icon: #c397c3;
  --lavender: #c299d1;
  --lavender-soft: #d9c4e0;
  --lavender-light: #ebe0f0;
  --lavender-deep: #9a7aa8;
  --cream: #faf6ee;
  --cream-dim: rgba(74, 68, 70, 0.72);
  --surface: #faf7f2;
  --surface-warm: #f5f0e8;
  --surface-card: #ffffff;
  --text-body: #4a4446;
  --text-muted: #736b6e;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 40px rgba(194, 153, 209, 0.12);
  --shadow-lift: 0 16px 44px rgba(194, 153, 209, 0.16);

  /* aliases for events listing page */
  --purple: var(--lavender-deep);
  --purple-dark: var(--charcoal);
  --purple-deep: var(--charcoal-soft);
  --purple-pale: var(--lavender-light);
  --gold: #b8956a;
  --gold-light: #f5efe4;
  --white: #ffffff;
  --border-soft: rgba(194, 153, 209, 0.28);
  --border: var(--lavender-soft);
  --text-dark: var(--text-body);
  --text-mid: var(--text-muted);
  --text-soft: #9a9092;
  --bg: var(--surface);
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--surface);
  color: var(--text-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lavender-deep); text-decoration: none; }
a:hover { color: var(--charcoal); }

/* ─── Nav (light cream — lavender wordmark) ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px clamp(16px, 2.5vw, 32px);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 28px);
  background: var(--brand-cream);
  border-bottom: 1px solid rgba(194, 153, 209, 0.35);
  transition: box-shadow 0.25s, background 0.25s;
}
.site-nav.is-scrolled {
  box-shadow: var(--shadow-soft);
  background: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(10px);
}
.site-nav.on-dark,
.site-nav.on-light {
  background: var(--brand-cream);
}
.nav-logo {
  display: flex;
  align-items: center;
  align-self: center;
  margin: 0;
  padding: 0 8px 0 0;
  line-height: 0;
  background-color: transparent;
  flex-shrink: 0;
}
.nav-logo img {
  height: 68px;
  width: auto;
  max-width: min(300px, 46vw);
  display: block;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  vertical-align: middle;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: 0;
  gap: 10px clamp(20px, 2.8vw, 36px);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 0;
  max-width: none;
}
.site-nav .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--charcoal);
  text-decoration: none;
}
.site-nav .nav-links a:hover {
  color: var(--lavender-deep);
}
.site-nav .nav-links a[aria-current="page"] {
  color: var(--lavender-deep);
  font-weight: 700;
}
.site-nav.is-session-pending .nav-auth-pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}
.nav-auth-pending-pill {
  display: inline-block;
  height: 28px;
  width: 88px;
  border-radius: var(--radius-pill, 999px);
  background: linear-gradient(90deg, rgba(194, 153, 209, 0.18) 0%, rgba(194, 153, 209, 0.32) 50%, rgba(194, 153, 209, 0.18) 100%);
  background-size: 200% 100%;
  animation: nav-auth-shimmer 1.2s ease-in-out infinite;
}
.nav-auth-pending-pill--short {
  width: 64px;
}
.nav-mobile-auth-pending {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 4px;
}
.nav-mobile-auth-pending .nav-auth-pending-pill {
  width: 100%;
  max-width: 220px;
}
@keyframes nav-auth-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.hub-mode-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface-card);
}
.hub-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.hub-mode-btn:hover {
  color: var(--lavender-deep);
}
.hub-mode-btn.is-active {
  background: var(--lavender-light);
  color: var(--charcoal);
}
.hub-mode-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-lavender-icon);
  color: var(--brand-black) !important;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(195, 151, 195, 0.45);
  color: var(--brand-black) !important;
  background: #d4b4d4;
}

.nav-cta-blue {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.nav-cta-blue:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: #fff !important;
  background: #1d4ed8;
}

.nav-cta-gold {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: #d4a853;
  color: #1a1a2e !important;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.nav-cta-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.45);
  color: #1a1a2e !important;
  background: #e4bc6a;
}

.nav-organiser {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal) !important;
  background: var(--gold-light);
  border: 1px solid rgba(184, 149, 106, 0.55);
  text-decoration: none !important;
  white-space: nowrap;
}
.nav-organiser:hover {
  background: #f0e6d6;
  color: var(--charcoal) !important;
}
.nav-organiser[aria-current="page"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brand-black) !important;
}

.nav-admin {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal) !important;
  background: var(--lavender-light);
  border: 1px solid var(--lavender-soft);
  text-decoration: none !important;
}
.nav-admin:hover {
  background: var(--lavender-soft);
  color: var(--charcoal) !important;
}
.nav-admin[aria-current="page"] {
  background: var(--brand-lavender-icon);
  border-color: var(--brand-lavender-icon);
  color: var(--brand-black) !important;
}

.nav-signout {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-signout:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: var(--lavender-deep);
  border-color: var(--lavender-soft);
  background: var(--lavender-light);
}
.nav-dropdown-toggle.is-active {
  color: var(--lavender-deep);
}
.nav-dropdown-chev {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.15s;
}
.nav-dropdown.is-open .nav-dropdown-chev {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 6px;
  margin: 0;
  background: var(--brand-cream);
  border: 1px solid rgba(194, 153, 209, 0.45);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  z-index: 120;
}
.nav-dropdown-menu[hidden] {
  display: none !important;
}
.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  box-sizing: border-box;
}
.nav-dropdown-item:hover {
  background: var(--lavender-light);
  color: var(--lavender-deep);
}
.nav-dropdown-item[aria-current="page"] {
  background: var(--lavender-light);
  color: var(--lavender-deep);
  font-weight: 600;
}
.nav-dropdown-item.nav-organiser-in-menu {
  font-weight: 600;
}
.nav-dropdown-signout {
  margin-top: 4px;
  border-top: 1px solid rgba(194, 153, 209, 0.25);
  border-radius: 0 0 6px 6px;
  padding-top: 12px;
  color: var(--text-muted);
}
.nav-dropdown-signout:hover {
  color: var(--charcoal);
}

/* Fixed nav offset (home hero handles its own spacing) */
body.has-site-nav {
  padding-top: 84px;
}

body.hub-page-admin {
  padding-top: 0;
}

body.hub-page-admin .site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
}

.hub-impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 16px;
  background: #2d1b4e;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-impersonation-banner strong {
  font-weight: 700;
}

.hub-impersonation-stop {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.hub-impersonation-stop:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.hub-page-organiser,
body.hub-page-account {
  padding-top: 0;
}

body.hub-page-organiser .site-nav,
body.hub-page-account .site-nav {
  position: sticky;
  top: 0;
}

/* ─── Homepage hero (text) + embedded video block ─── */
.home-hero {
  min-height: 72vh;
  min-height: 72dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 80px;
  position: relative;
  overflow: hidden;
}
.home-hero-static {
  background: linear-gradient(
    165deg,
    #fffdf9 0%,
    var(--cream) 42%,
    var(--lavender-light) 100%
  );
}
.home-hero-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(194, 153, 209, 0.22), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(250, 246, 238, 0.9), transparent 45%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.home-video-block {
  padding: 56px 24px 72px;
  background: var(--surface-card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.home-video-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.05fr);
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .home-video-layout {
    grid-template-columns: 1fr;
  }
  .home-video-frame {
    order: -1;
  }
}
.home-video-copy {
  text-align: left;
}
.home-video-copy .section-kicker {
  text-align: left;
}
.home-video-copy .section-title {
  text-align: left;
  margin-bottom: 14px;
}
.home-video-copy .section-lede {
  text-align: left;
  margin-bottom: 24px;
}
.home-video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-soft);
  background: var(--charcoal);
  aspect-ratio: 16 / 10;
  max-height: 420px;
}
.home-video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #2a2628;
}
.hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 24px rgba(255, 255, 255, 0.85);
}
.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 32em;
  margin: 0 auto 32px;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.7);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--lavender);
  color: var(--charcoal);
  box-shadow: 0 8px 28px rgba(194, 153, 209, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(194, 153, 209, 0.45);
  color: var(--charcoal);
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface-card);
  color: var(--charcoal);
  border: 1.5px solid var(--lavender-soft);
  box-shadow: 0 4px 16px rgba(194, 153, 209, 0.1);
}
.btn-secondary:hover {
  background: var(--lavender-light);
  border-color: var(--lavender);
  color: var(--charcoal);
  text-decoration: none;
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  text-decoration: none;
}
.hero-scroll:hover { color: var(--charcoal); }

.home-hero .btn-secondary {
  background: var(--surface-card);
  color: var(--charcoal);
  border-color: var(--lavender-soft);
  backdrop-filter: none;
}
.home-hero .btn-secondary:hover {
  background: var(--lavender-light);
  border-color: var(--lavender);
  color: var(--charcoal);
}

/* ─── Sections ─── */
.section {
  padding: 72px 24px;
  background: var(--surface-card);
}
.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 48px;
}
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-lede {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-alt { background: var(--cream); }
.section-tint,
.section-dark {
  background: linear-gradient(180deg, var(--lavender-light) 0%, var(--cream) 100%);
  color: var(--text-body);
}
.section-tint .section-kicker,
.section-dark .section-kicker { color: var(--lavender-deep); }
.section-tint .section-title,
.section-dark .section-title { color: var(--charcoal); }
.section-tint .section-lede,
.section-dark .section-lede { color: var(--text-muted); }

/* ─── Pillars ─── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.pillar-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--lavender-light);
  color: var(--lavender-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.section-tint .pillar,
.section-dark .pillar {
  background: var(--surface-card);
  border-color: var(--border-soft);
}
.section-tint .pillar-icon,
.section-dark .pillar-icon {
  background: var(--lavender);
  color: var(--charcoal);
}
.pillar h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-weight: 400;
}
.pillar p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Explore cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.explore-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
}
.explore-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.explore-card-top {
  height: 120px;
  background: linear-gradient(135deg, var(--lavender-soft) 0%, var(--lavender) 100%);
  position: relative;
}
.explore-card-top.lavender {
  background: linear-gradient(135deg, var(--lavender-light) 0%, var(--lavender-soft) 100%);
}
.explore-card-body {
  padding: 22px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.explore-card .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  width: fit-content;
}
.badge-live {
  background: var(--lavender-light);
  color: var(--lavender-deep);
}
.badge-soon {
  background: var(--cream);
  color: var(--text-muted);
}
.explore-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--charcoal);
  margin-bottom: 8px;
  font-weight: 400;
}
.explore-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.explore-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender-deep);
}
.explore-link:hover { color: var(--charcoal); text-decoration: underline; }
.explore-card.coming { opacity: 0.95; }
.explore-card.coming .explore-card-top {
  background: linear-gradient(135deg, #e8e2ea 0%, #d4ccd8 100%);
}

/* ─── Split CTA ─── */
.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .split-cta { grid-template-columns: 1fr; }
}
.split-panel {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border-soft);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}
.split-panel h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--charcoal);
  margin-bottom: 10px;
  font-weight: 400;
}
.split-panel p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}
.split-panel .btn-secondary {
  border-color: var(--lavender);
  color: var(--charcoal);
}

/* ─── Footer ─── */
.site-footer {
  background: var(--cream);
  color: var(--text-muted);
  padding: 40px 24px 28px;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 24px;
}
.footer-brand {
  flex-shrink: 0;
}
.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--charcoal);
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  flex: 1;
  justify-content: flex-end;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lavender-deep);
  margin-bottom: 10px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.footer-col-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-col-links a:hover {
  color: var(--lavender-deep);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--lavender-deep); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  line-height: 1.65;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
}

.footer-cookie-settings {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  display: block;
  width: 100%;
}

.footer-cookie-settings:hover {
  color: var(--lavender-deep);
}

body.hub-cookie-modal-open,
body.hub-organiser-terms-open {
  overflow: hidden;
}

.hub-organiser-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(74, 68, 70, 0.45);
}

.hub-organiser-terms-modal[hidden] {
  display: none !important;
}

.hub-organiser-terms-panel {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lift);
  padding: 28px;
}

.hub-organiser-terms-panel h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.hub-organiser-terms-panel > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hub-organiser-terms-list {
  margin: 0 0 18px 1.1rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.hub-organiser-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 18px;
}

.hub-organiser-terms-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.hub-organiser-terms-check a {
  color: var(--lavender-deep);
}

.hub-organiser-terms-error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #b91c1c;
}

.hub-organiser-terms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hub-organiser-terms-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--cream);
  color: var(--charcoal);
  cursor: pointer;
}

.hub-organiser-terms-btn--primary {
  background: var(--lavender);
  border-color: var(--lavender);
}

.hub-organiser-terms-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Events listing page ─── */
.site-nav.legacy-nav {
  position: sticky;
}
.hero {
  background: linear-gradient(165deg, #fffdf9 0%, var(--cream) 50%, var(--lavender-light) 100%);
  padding: 48px 28px 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(194, 153, 209, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(250, 246, 238, 0.8), transparent 50%);
  pointer-events: none;
}
.hero-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.hero-eyebrow {
  color: var(--lavender-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero h1 .accent { color: var(--lavender-deep); }
.hero-lede {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 40em;
}
.shell {
  max-width: 1000px;
  margin: -20px auto 48px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.type-tab.is-active {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--charcoal);
}
.hub-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  font-weight: 400;
}
.panel {
  background: var(--surface-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--lavender);
  padding: 24px 28px;
}

/* Command Centre — sponsor ad preview */
.sponsor-preview-logo-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px;
  border-radius: 8px;
  background: #f3f4f6;
}

.sponsor-preview-logo-band--compact {
  min-height: 96px;
}

.sponsor-preview-logo-band--hero {
  min-height: 120px;
}

.sponsor-preview-logo-img,
.sponsor-preview-logo-band .sponsor-logo--full {
  display: block;
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.sponsor-preview-logo-band--hero .sponsor-preview-logo-img,
.sponsor-preview-logo-band--hero .sponsor-logo--full {
  max-height: 120px;
}

/* CMS sponsor CTA — custom colour from Command Centre */
.sponsor-cta.cms-cta--custom,
.cms-ad-compact-cta.cms-cta--custom,
.cms-ad-banner-cta.cms-cta--custom {
  background: var(--sponsor-cta-bg) !important;
  color: var(--sponsor-cta-fg, #fff) !important;
  border-color: var(--sponsor-cta-bg) !important;
}

.sponsor-cta.cms-cta--custom:hover,
.cms-ad-compact-cta.cms-cta--custom:hover,
.cms-ad-banner-cta.cms-cta--custom:hover {
  filter: brightness(0.9);
  background: var(--sponsor-cta-bg) !important;
  color: var(--sponsor-cta-fg, #fff) !important;
}

/* Free browse vs account-required purchase messaging */
.hub-access-note {
  margin: 0 auto 24px;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold-light);
  border: 1px solid rgba(184, 149, 106, 0.22);
}

.hub-access-note a {
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-access-note a:hover {
  color: var(--gold);
}

.events-page .hub-access-note,
.opportunities-page .hub-access-note,
.training-page .hub-access-note {
  margin: 0 0 20px;
  max-width: 42em;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.events-page .hub-access-note a,
.opportunities-page .hub-access-note a,
.training-page .hub-access-note a {
  color: #fff;
  font-weight: 600;
}
