/*
Theme Name:  ToP Members Network
Theme URI:   https://top-network.org
Author:      Facilitate Co / Charity Adams
Author URI:  https://facilitateco.com
Description: Official WordPress theme for the ToP Members Network — the peer community of Technology of Participation® practitioners. Integrates with Wild Apricot via the WildApricot Login plugin (SSO) and supports WildApricot widgets for member directories and event calendars. Built on the ToP Training brand guide v1.0.
Version:     1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: top-members-network
Tags:        membership, association, professional-network, wild-apricot, accessibility-ready, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, responsive-layout, rtl-language-support, sticky-post, theme-options

Wild Apricot Integration Notes:
  - Install "Wild Apricot Login" plugin from WordPress.org (slug: wild-apricot-login)
  - OR install "NewPath WildApricot Press" for advanced directory/widget integration
  - Configure API Key, Client ID, and Client Secret in Settings > Wild Apricot Login
  - Use [wa_login_button] shortcode to place SSO login button in page content
  - Add "Wild Apricot Login" widget to header widget area for persistent login button
  - Restrict member-only pages using [wa_restrict_content level="Member"] shortcode
  - Embed member directory with Wild Apricot iframe gadget widget in pages/posts
  - Wild Apricot membership levels map automatically to WordPress user roles after plugin setup
*/

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS — ToP Members Network
   Brand authority: ToP Training Brand Guide v1.0
═══════════════════════════════════════════════════════════════════ */
:root {

  /* ── Primary Palette (ToP Brand Guide) ── */
  --top-navy:        #1A2744;
  --top-navy-lt:     #253560;
  --top-navy-xlt:    #3B4F7C;
  --top-orange:      #E05A1E;
  --top-orange-lt:   #F07848;
  --top-orange-dk:   #BB4410;
  --top-gold:        #C8922A;
  --top-gold-lt:     #E8B040;
  --top-blue:        #3A5FA0;
  --top-blue-lt:     #5A7FC0;

  /* ── Network Accent (Members Network differentiator) ── */
  --net-teal:        #1B7BA0;   /* ICA globe teal — community/network feel */
  --net-teal-lt:     #2E9EC4;
  --net-green:       #2D7D45;   /* ICA leaf green — growth/certification */
  --net-green-lt:    #3D9E5A;

  /* ── Neutrals ── */
  --cream:           #FAF7F2;
  --linen:           #F0EBE1;
  --warm-gray:       #E0D9CE;
  --slate:           #2D3B4E;
  --mist:            #6E8196;
  --mist-lt:         #A0B3C4;
  --charcoal:        #1C2530;
  --white:           #FFFFFF;

  /* ── Member Status Colors ── */
  --member-active:   #2D7D45;
  --member-pending:  #C8922A;
  --member-expired:  #8C3A1A;

  /* ── Typography ── */
  --serif:           'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans:            'Outfit', system-ui, -apple-system, sans-serif;
  --mono:            'Source Code Pro', 'Courier New', monospace;

  /* ── Type Scale ── */
  --text-xs:         0.75rem;   /* 12px */
  --text-sm:         0.875rem;  /* 14px */
  --text-base:       0.9375rem; /* 15px */
  --text-md:         1.0625rem; /* 17px */
  --text-lg:         1.25rem;   /* 20px */
  --text-xl:         1.5rem;    /* 24px */
  --text-2xl:        2rem;      /* 32px */
  --text-3xl:        2.75rem;   /* 44px */
  --text-4xl:        3.5rem;    /* 56px */
  --text-hero:       clamp(2.5rem, 6vw, 4.5rem);

  /* ── Spacing ── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ── Layout ── */
  --max-w:       1280px;
  --max-w-prose: 720px;
  --max-w-wide:  1440px;
  --gutter:      clamp(20px, 5vw, 60px);

  /* ── Radii ── */
  --r-sm:  4px;
  --r:     8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --sh-sm:  0 1px 4px rgba(26,39,68,.08);
  --sh:     0 2px 16px rgba(26,39,68,.10);
  --sh-md:  0 4px 24px rgba(26,39,68,.12);
  --sh-lg:  0 8px 48px rgba(26,39,68,.14);
  --sh-xl:  0 16px 64px rgba(26,39,68,.18);

  /* ── Transitions ── */
  --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --t-fast:  150ms;
  --t:       240ms;
  --t-slow:  400ms;

  /* ── Z-Index Scale ── */
  --z-below:   -1;
  --z-base:     0;
  --z-raised:   10;
  --z-overlay:  100;
  --z-modal:    200;
  --z-nav:      300;
  --z-toast:    400;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol { list-style: none; }

a {
  color: var(--top-blue);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--top-orange); }

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--top-navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-family: var(--sans); font-weight: 600; }
h6 { font-size: var(--text-md); font-family: var(--sans); font-weight: 600; }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--top-orange);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--slate);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--top-orange);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--max-w-wide); }
.container--prose { max-width: var(--max-w-prose); }

.section {
  padding-block: var(--space-24);
}

.section--sm { padding-block: var(--space-16); }
.section--lg { padding-block: var(--space-32); }
.section--alt { background: var(--linen); }
.section--dark { background: var(--top-navy); color: var(--white); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--top-orange); }

.section-header {
  margin-bottom: var(--space-12);
  max-width: 640px;
}

.section-header--center {
  text-align: center;
  margin-inline: auto;
}

/* ── Grid System ── */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ── Flex Utilities ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* ── Visibility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 28px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.btn:focus-visible {
  outline: 3px solid var(--top-orange);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--top-orange);
  color: var(--white);
  border-color: var(--top-orange);
}
.btn--primary:hover {
  background: var(--top-orange-dk);
  border-color: var(--top-orange-dk);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--navy {
  background: var(--top-navy);
  color: var(--white);
  border-color: var(--top-navy);
}
.btn--navy:hover {
  background: var(--top-navy-lt);
  border-color: var(--top-navy-lt);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--teal {
  background: var(--net-teal);
  color: var(--white);
  border-color: var(--net-teal);
}
.btn--teal:hover {
  background: var(--net-teal-lt);
  border-color: var(--net-teal-lt);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--top-navy);
  border-color: var(--warm-gray);
}
.btn--outline:hover {
  background: var(--linen);
  border-color: var(--top-navy);
  color: var(--top-navy);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn--sm {
  padding: 7px 18px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 15px 36px;
  font-size: var(--text-md);
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.card__body { padding: var(--space-6); }
.card__foot {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--warm-gray);
  background: var(--cream);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Member Card ── */
.member-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  border-top: 4px solid var(--top-navy);
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-top-color: var(--top-orange);
}

.member-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--warm-gray);
  background: var(--linen);
}

.member-card__body { padding: var(--space-6); }
.member-card__name {
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--top-navy);
  margin-bottom: var(--space-1);
}

.member-card__title {
  font-size: var(--text-sm);
  color: var(--mist);
  margin-bottom: var(--space-4);
}

.member-card__level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Resource / Post Card ── */
.post-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.post-card__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, var(--top-navy), var(--top-navy-lt));
}

.post-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--top-orange);
  margin-bottom: var(--space-3);
}

.post-card__title {
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--top-navy);
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.post-card__excerpt {
  font-size: var(--text-sm);
  color: var(--mist);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════
   BADGES & TAGS
═══════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--active   { background: rgba(45,125,69,.12);  color: var(--member-active); }
.badge--pending  { background: rgba(200,146,42,.12); color: var(--member-pending); }
.badge--expired  { background: rgba(140,58,26,.10);  color: var(--member-expired); }
.badge--ctf      { background: rgba(200,146,42,.15); color: var(--top-gold); border: 1px solid var(--top-gold); }
.badge--apprentice { background: rgba(58,95,160,.12); color: var(--top-blue); }
.badge--qualified  { background: rgba(26,39,68,.10);  color: var(--top-navy); }
.badge--mentor     { background: rgba(224,90,30,.12); color: var(--top-orange); }
.badge--associate  { background: rgba(27,123,160,.12); color: var(--net-teal); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
}

.tag--navy   { background: rgba(26,39,68,.08);  color: var(--top-navy);   border-color: rgba(26,39,68,.15); }
.tag--orange { background: rgba(224,90,30,.10); color: var(--top-orange); border-color: rgba(224,90,30,.2); }
.tag--gold   { background: rgba(200,146,42,.12); color: var(--top-gold);  border-color: rgba(200,146,42,.25); }
.tag--teal   { background: rgba(27,123,160,.10); color: var(--net-teal);  border-color: rgba(27,123,160,.2); }
.tag--mist   { background: rgba(110,129,150,.10); color: var(--mist);     border-color: rgba(110,129,150,.2); }
.tag--green  { background: rgba(45,125,69,.10);  color: var(--net-green); border-color: rgba(45,125,69,.2); }

/* ═══════════════════════════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--sh-md);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 70px;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* ── Site Branding ── */
.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  height: 40px;
  width: auto;
}

.site-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--top-navy);
  line-height: 1.2;
}

.site-name span {
  display: block;
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--top-orange);
}

/* ── Primary Navigation ── */
.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--linen);
  color: var(--top-navy);
}

.nav-link.current,
.nav-link[aria-current="page"] {
  color: var(--top-orange);
  background: rgba(224,90,30,.06);
}

/* ── Dropdown ── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-fast) var(--ease);
  z-index: var(--z-overlay);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r);
  font-size: var(--text-sm);
  color: var(--slate);
  transition: background var(--t-fast);
}

.nav-dropdown a:hover {
  background: var(--linen);
  color: var(--top-navy);
}

/* ── Header Actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Wild Apricot Login Widget Area ── */
.wa-login-widget-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Override WA login button to match theme */
.wa-login-widget-area .wild-apricot-login-button,
.wa-login-widget-area a.wa-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--top-navy);
  color: var(--white) !important;
  border-radius: var(--r);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast);
  border: none;
  cursor: pointer;
}

.wa-login-widget-area .wild-apricot-login-button:hover,
.wa-login-widget-area a.wa-login:hover {
  background: var(--top-navy-lt);
}

/* Logged-in member avatar / name */
.member-account-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 14px 6px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--warm-gray);
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.member-account-link:hover {
  border-color: var(--top-navy);
  background: var(--linen);
}

.member-account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--linen);
}

.member-account-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--top-navy);
}

/* ── Mobile Menu Toggle ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: 1px solid var(--warm-gray);
  background: transparent;
  cursor: pointer;
  padding: 8px;
  transition: background var(--t-fast);
}

.menu-toggle:hover { background: var(--linen); }

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Member Bar (logged-in strip above main header) ── */
.member-bar {
  background: var(--top-navy);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 6px var(--gutter);
}

.member-bar__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.member-bar a {
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
}

.member-bar a:hover { color: var(--white); }

.member-bar__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.member-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--member-active);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--top-navy);
  color: var(--white);
  padding-block: clamp(60px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(224,90,30,.15) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(27,123,160,.12) 0%, transparent 55%);
  pointer-events: none;
}

/* Network pattern background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__content {}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--top-orange);
  margin-bottom: var(--space-5);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--text-hero);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  color: var(--top-orange);
}

.hero__desc {
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero Stats Panel */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.hero__stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero__stat-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero__stat-num span { color: var(--top-orange); }

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   MEMBER DASHBOARD PANEL
   (Shown to logged-in WA members on homepage)
═══════════════════════════════════════════════════════════════════ */
.dashboard-panel {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.dashboard-panel__header {
  background: linear-gradient(135deg, var(--top-navy) 0%, var(--top-navy-lt) 100%);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.dashboard-panel__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  background: var(--top-navy-lt);
}

.dashboard-panel__welcome {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.dashboard-panel__name {
  font-family: var(--serif);
  font-size: var(--text-xl);
  color: var(--white);
  line-height: 1.2;
}

.dashboard-panel__body {
  padding: var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.dashboard-panel__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dashboard-panel__item-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.dashboard-panel__item-value {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--top-navy);
}

.dashboard-panel__actions {
  padding: var(--space-5) var(--space-8);
  border-top: 1px solid var(--warm-gray);
  background: var(--cream);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Wild Apricot Member-Only Content Gate ── */
.content-gate {
  text-align: center;
  padding: var(--space-24) var(--gutter);
  background: var(--linen);
  border-radius: var(--r-xl);
  border: 1px solid var(--warm-gray);
}

.content-gate__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.content-gate__title {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  color: var(--top-navy);
  margin-bottom: var(--space-4);
}

.content-gate__desc {
  font-size: var(--text-md);
  color: var(--mist);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.content-gate__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   MEMBERSHIP TIERS SECTION
═══════════════════════════════════════════════════════════════════ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.tier-card {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  transition: all var(--t) var(--ease);
  position: relative;
}

.tier-card:hover {
  border-color: var(--top-orange);
  box-shadow: var(--sh-xl);
  transform: translateY(-4px);
}

.tier-card--featured {
  border-color: var(--top-orange);
  box-shadow: var(--sh-xl);
}

.tier-card__ribbon {
  position: absolute;
  top: 16px;
  right: -8px;
  background: var(--top-orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 16px 4px 12px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8% 50%);
}

.tier-card__header {
  padding: var(--space-8) var(--space-8) var(--space-5);
  background: linear-gradient(160deg, var(--top-navy) 0%, var(--top-navy-lt) 100%);
  color: var(--white);
}

.tier-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.tier-card__name {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.tier-card__subtitle {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tier-card__price {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.tier-card__price-amount {
  font-family: var(--serif);
  font-size: 2.25rem;
  color: var(--white);
  line-height: 1;
}

.tier-card__price-period {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.tier-card__body {
  padding: var(--space-6) var(--space-8);
  flex: 1;
}

.tier-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tier-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.5;
}

.tier-card__features li::before {
  content: '✓';
  color: var(--member-active);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-card__footer {
  padding: var(--space-6) var(--space-8) var(--space-8);
}

/* Wild Apricot "Join" button — embedded WA widget will replace this */
.tier-card__footer .btn {
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   MEMBER DIRECTORY
   (Wild Apricot iframe widget embed container)
═══════════════════════════════════════════════════════════════════ */
.wa-directory-wrapper {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  overflow: hidden;
}

.wa-directory-wrapper .wa-widget,
.wa-directory-wrapper iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

/* Override WA directory styles to approximate brand */
.wa-contacts-list-widget {
  font-family: var(--sans) !important;
}

/* ── Directory Filter Bar ── */
.directory-filters {
  background: var(--linen);
  border-bottom: 1px solid var(--warm-gray);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.directory-filter-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  flex-shrink: 0;
}

.directory-filter-select {
  padding: 7px 32px 7px 12px;
  border-radius: var(--r);
  border: 1px solid var(--warm-gray);
  background: var(--white);
  font-size: var(--text-sm);
  color: var(--slate);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236E8196' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: border-color var(--t-fast);
}

.directory-filter-select:focus {
  outline: none;
  border-color: var(--top-blue);
}

/* ── Search Input ── */
.directory-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.directory-search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: var(--r);
  border: 1px solid var(--warm-gray);
  background: var(--white);
  font-size: var(--text-sm);
  color: var(--slate);
  transition: border-color var(--t-fast);
}

.directory-search input:focus {
  outline: none;
  border-color: var(--top-blue);
}

.directory-search::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%236E8196' stroke-width='2' fill='none'/%3E%3Cpath d='M16.5 16.5l4 4' stroke='%236E8196' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   EVENTS / CALENDAR SECTION
   (Wild Apricot Event Calendar widget embed)
═══════════════════════════════════════════════════════════════════ */
.wa-events-wrapper {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  overflow: hidden;
}

.wa-events-wrapper iframe,
.wa-events-wrapper .wa-widget {
  width: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

/* ── Event Card (fallback / manual) ── */
.event-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  display: grid;
  grid-template-columns: 80px 1fr;
  transition: all var(--t) var(--ease);
  text-decoration: none;
}

.event-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}

.event-card__date {
  background: var(--top-navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  flex-shrink: 0;
}

.event-card__month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--top-orange);
}

.event-card__day {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
}

.event-card__body {
  padding: var(--space-4) var(--space-5);
}

.event-card__type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--top-orange);
  margin-bottom: 4px;
}

.event-card__title {
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--top-navy);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.event-card__meta {
  font-size: var(--text-xs);
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   RESOURCE LIBRARY
═══════════════════════════════════════════════════════════════════ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-5);
}

.resource-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  text-decoration: none;
  transition: all var(--t) var(--ease);
  border: 1px solid transparent;
}

.resource-card:hover {
  border-color: var(--top-navy);
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}

.resource-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.resource-card__icon--pdf   { background: rgba(224,90,30,.10); color: var(--top-orange); }
.resource-card__icon--video { background: rgba(26,39,68,.08);  color: var(--top-navy); }
.resource-card__icon--tool  { background: rgba(27,123,160,.10); color: var(--net-teal); }
.resource-card__icon--guide { background: rgba(200,146,42,.10); color: var(--top-gold); }
.resource-card__icon--link  { background: rgba(45,125,69,.10);  color: var(--net-green); }

.resource-card__content {}

.resource-card__type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 4px;
}

.resource-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--top-navy);
  line-height: 1.4;
  margin-bottom: 4px;
}

.resource-card__desc {
  font-size: var(--text-xs);
  color: var(--mist);
  line-height: 1.5;
}

/* ── Member-Only Resource Indicator ── */
.resource-card.member-only .resource-card__title::after {
  content: ' 🔒';
  font-size: 11px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════
   CERTIFICATION PATH SECTION
═══════════════════════════════════════════════════════════════════ */
.cert-path {
  position: relative;
}

.cert-path__track {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.cert-path__track::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--top-orange), var(--top-gold), var(--net-green));
}

.cert-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-6);
  align-items: flex-start;
  padding-block: var(--space-6);
  position: relative;
}

.cert-step__dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--cream);
}

.cert-step__dot--1 { background: rgba(58,95,160,.15);  color: var(--top-blue); }
.cert-step__dot--2 { background: rgba(26,39,68,.12);   color: var(--top-navy); }
.cert-step__dot--3 { background: rgba(200,146,42,.15); color: var(--top-gold); }
.cert-step__dot--4 { background: rgba(45,125,69,.15);  color: var(--net-green); }

.cert-step__content {}

.cert-step__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--top-orange);
  margin-bottom: var(--space-1);
}

.cert-step__title {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--top-navy);
  margin-bottom: var(--space-3);
}

.cert-step__desc {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.65;
  max-width: 540px;
}

/* ═══════════════════════════════════════════════════════════════════
   FORUM / DISCUSSION PREVIEW
═══════════════════════════════════════════════════════════════════ */
.discussion-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.discussion-item {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--space-5) var(--space-6);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--warm-gray);
  transition: all var(--t-fast) var(--ease);
}

.discussion-item:hover {
  border-color: var(--top-navy);
  box-shadow: var(--sh);
}

.discussion-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--linen);
  flex-shrink: 0;
}

.discussion-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--top-navy);
  margin-bottom: 2px;
  line-height: 1.4;
}

.discussion-item__meta {
  font-size: var(--text-xs);
  color: var(--mist);
}

.discussion-item__replies {
  text-align: center;
  flex-shrink: 0;
}

.discussion-item__replies-num {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--top-navy);
  display: block;
  line-height: 1;
}

.discussion-item__replies-label {
  font-size: 10px;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   SPOTLIGHT / FEATURED MEMBER
═══════════════════════════════════════════════════════════════════ */
.spotlight {
  background: var(--top-navy);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 2fr;
  box-shadow: var(--sh-xl);
}

.spotlight__image {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, var(--top-navy-lt), var(--net-teal));
}

.spotlight__content {
  padding: var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--top-orange);
  margin-bottom: var(--space-5);
}

.spotlight__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.spotlight__name {
  font-family: var(--serif);
  font-size: var(--text-3xl);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.spotlight__title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-6);
}

.spotlight__quote {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  position: relative;
  padding-left: var(--space-5);
  border-left: 3px solid var(--top-orange);
}

/* ═══════════════════════════════════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding-top: var(--space-20);
}

.footer-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
}

.footer-brand {}

.footer-brand-logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--space-5);
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-brand-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-6);
}

.footer-partner-logos {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-partner-logo-item {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

.footer-col-title {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: all var(--t-fast);
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

/* ── Newsletter Signup ── */
.footer-newsletter {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--space-10) var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.footer-newsletter__title {
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.footer-newsletter__sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

.footer-newsletter-form {
  display: flex;
  gap: var(--space-3);
}

.footer-newsletter-form input {
  padding: 10px 16px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: var(--text-sm);
  width: 240px;
  transition: border-color var(--t-fast);
}

.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--top-orange);
  background: rgba(255,255,255,0.08);
}

/* ── Footer Bottom Bar ── */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: var(--space-5) var(--gutter);
}

.footer-bottom__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-5);
}

.footer-bottom__links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  transition: color var(--t-fast);
}

.footer-bottom__links a:hover { color: rgba(255,255,255,0.6); }

/* ── Wild Apricot Required Link Area ── */
/* The brand guide requires ToP Network join/login links everywhere CTF is mentioned */
.wa-network-cta {
  background: rgba(224,90,30,.08);
  border: 1px solid rgba(224,90,30,.2);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.wa-network-cta__text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.6;
}

.wa-network-cta__text strong { color: var(--top-navy); }

.wa-network-cta__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   WILD APRICOT PLUGIN WIDGET OVERRIDES
   Styles to ensure WA widgets match the brand
═══════════════════════════════════════════════════════════════════ */

/* Login button shortcode output */
#wa-login-button-container a,
.wa-login-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 10px 24px !important;
  background: var(--top-navy) !important;
  color: var(--white) !important;
  border-radius: var(--r) !important;
  font-family: var(--sans) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: background var(--t-fast) !important;
}

#wa-login-button-container a:hover,
.wa-login-button:hover {
  background: var(--top-navy-lt) !important;
  color: var(--white) !important;
}

/* WA member profile widget */
.wa-profile-widget {
  font-family: var(--sans) !important;
  color: var(--slate) !important;
}

/* WA event list widget */
.wa-events-list-widget,
.wild-apricot-event-list {
  font-family: var(--sans) !important;
}

/* ── Restricted Content Notice ── */
/* Shown to non-members when [wa_restrict_content] shortcode is active */
.wa-restricted-content-notice {
  text-align: center;
  padding: var(--space-20) var(--space-6);
  background: var(--linen);
  border-radius: var(--r-xl);
  border: 1px solid var(--warm-gray);
}

.wa-restricted-content-notice h3 {
  font-family: var(--serif);
  font-size: var(--text-2xl);
  color: var(--top-navy);
  margin-bottom: var(--space-4);
}

.wa-restricted-content-notice p {
  color: var(--mist);
  font-size: var(--text-md);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--top-navy);
  margin-bottom: var(--space-2);
}

.form-label span { color: var(--top-orange); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r);
  border: 1.5px solid var(--warm-gray);
  background: var(--white);
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--slate);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--top-blue);
  box-shadow: 0 0 0 3px rgba(58,95,160,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--mist-lt); }

.form-textarea { min-height: 120px; resize: vertical; }

.form-hint {
  font-size: var(--text-xs);
  color: var(--mist);
  margin-top: var(--space-2);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--top-orange);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Contact Form 7 Overrides ── */
.wpcf7 .wpcf7-form-control { font-family: var(--sans) !important; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 10px 14px !important;
  border-radius: var(--r) !important;
  border: 1.5px solid var(--warm-gray) !important;
  background: var(--white) !important;
  font-family: var(--sans) !important;
  font-size: var(--text-sm) !important;
  color: var(--slate) !important;
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  padding: 11px 28px !important;
  background: var(--top-orange) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--r) !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: var(--text-sm) !important;
  cursor: pointer !important;
  transition: background var(--t-fast) !important;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--top-orange-dk) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   NOTIFICATIONS & ALERTS
═══════════════════════════════════════════════════════════════════ */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid transparent;
}

.alert--info    { background: rgba(58,95,160,.07);  border-color: rgba(58,95,160,.15);  color: var(--top-blue); }
.alert--success { background: rgba(45,125,69,.07);  border-color: rgba(45,125,69,.15);  color: var(--net-green); }
.alert--warning { background: rgba(200,146,42,.08); border-color: rgba(200,146,42,.2);  color: var(--top-gold); }
.alert--error   { background: rgba(224,90,30,.07);  border-color: rgba(224,90,30,.15);  color: var(--top-orange); }

/* ── Member Welcome Banner (shown post-login) ── */
.welcome-banner {
  background: linear-gradient(135deg, var(--top-navy) 0%, var(--net-teal) 100%);
  color: var(--white);
  padding: var(--space-5) var(--gutter);
  text-align: center;
}

.welcome-banner p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.welcome-banner strong { color: var(--white); }

/* ═══════════════════════════════════════════════════════════════════
   PAGE-SPECIFIC: ABOUT / NETWORK
═══════════════════════════════════════════════════════════════════ */
.partner-logos-row {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  padding: var(--space-8) 0;
  border-block: 1px solid var(--warm-gray);
}

.partner-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.partner-logo-item img {
  height: 36px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: all var(--t) var(--ease);
}

.partner-logo-item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

.partner-logo-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--warm-gray);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
}

.stats-bar__item {
  background: var(--white);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.stats-bar__num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--top-navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stats-bar__num span { color: var(--top-orange); }

.stats-bar__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-fast);
  border: 1px solid var(--warm-gray);
  color: var(--slate);
}

.pagination a:hover {
  background: var(--top-navy);
  border-color: var(--top-navy);
  color: var(--white);
}

.pagination .current {
  background: var(--top-orange);
  border-color: var(--top-orange);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════════════ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--mist);
  flex-wrap: wrap;
  padding-block: var(--space-5);
}

.breadcrumbs a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--t-fast);
}

.breadcrumbs a:hover { color: var(--top-navy); }

.breadcrumbs__sep { opacity: 0.4; }
.breadcrumbs__current { color: var(--top-navy); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE NAVIGATION
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* Nav collapses */
  .primary-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-5) var(--space-5) var(--space-10);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--t) var(--ease);
    z-index: var(--z-nav);
    border-top: 1px solid var(--warm-gray);
  }

  .primary-nav.is-open {
    transform: translateX(0);
    box-shadow: var(--sh-xl);
  }

  .menu-toggle { display: flex; }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .nav-link {
    padding: 12px 16px;
    font-size: var(--text-md);
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 var(--space-5);
    border-left: 2px solid var(--warm-gray);
    margin-left: 16px;
    margin-top: var(--space-2);
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-newsletter { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-newsletter-form { flex-direction: column; }
  .footer-newsletter-form input { width: 100%; }

  /* Spotlight */
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__image { display: none; }

  /* Member dashboard */
  .dashboard-panel__body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .tier-grid { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .dashboard-panel__body { grid-template-columns: 1fr; }
  .dashboard-panel__header { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════════════ */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .btn { display: none; }
  body { color: #000; background: #fff; }
  h1, h2, h3 { color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ═══════════════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--top-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn--primary,
  .btn--navy,
  .btn--teal {
    forced-color-adjust: none;
  }
}
