/* =============================================================================
   MVOC Theme — Main Stylesheet
   Miami Valley Orienteering Club
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   --------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary:       #1a5c2e;   /* deep forest green */
  --color-primary-dark:  #0f3b1c;   /* darker green for hover states */
  --color-primary-light: #2e7d45;   /* mid green */
  --color-accent:        #52a86b;   /* bright accent green */
  --color-accent-light:  #e8f5ec;   /* very light green tint */
  --color-map-tan:       #f2ead8;   /* orienteering map parchment */
  --color-bg:            #ffffff;
  --color-bg-alt:        #f9fdf9;   /* barely-there green tint */
  --color-bg-dark:       #0f2217;   /* footer background */
  --color-text:          #1a1a1a;
  --color-text-muted:    #4a6052;
  --color-text-light:    #6b7a6f;
  --color-border:        #d4e8d9;
  --color-border-light:  #eaf4ed;

  /* Typography */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Font sizes (fluid) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --content-max:  760px;
  --sidebar-w:    300px;
  --nav-h:        72px;

  /* Effects */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full: 9999px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07);
  --shadow:     0 2px 8px rgba(0,0,0,0.09);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.11);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
  --transition: 200ms ease;
}

/* ---------------------------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, var(--text-4xl)); }
h2 { font-size: clamp(1.5rem, 3vw, var(--text-3xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
li { margin-bottom: var(--space-1); }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-family: var(--font-heading);
  font-weight: 600;
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tr:hover td { background: var(--color-bg-alt); }
table a { text-decoration: none; font-weight: 500; }
table a:hover { text-decoration: underline; }

blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
}
code { padding: 0.1em 0.4em; }
pre { padding: var(--space-4); overflow-x: auto; }

input, textarea, select, button {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ---------------------------------------------------------------------------
   3. Layout Utilities
   --------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.page-content {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-12);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-12);
}
@media (max-width: 900px) {
  .page-content { grid-template-columns: 1fr; }
  .page-sidebar { order: -1; }
}

.main-content { min-width: 0; }

.section { padding-block: var(--space-16); }
.section--sm { padding-block: var(--space-10); }
.section--lg { padding-block: var(--space-24); }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: #e0f0e4;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.section-header h2 {
  margin-bottom: var(--space-3);
  color: var(--color-primary-dark);
}
.section-header p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--color-text-muted);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
}

/* ---------------------------------------------------------------------------
   5. Badge / Tag
   --------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-green  { background: var(--color-accent-light); color: var(--color-primary); }
.badge-tan    { background: var(--color-map-tan); color: #7a6030; }
.badge-dark   { background: var(--color-primary); color: #fff; }

/* ---------------------------------------------------------------------------
   6. Site Header & Navigation
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);  /* white logo on dark header */
}
.site-logo-text {
  display: flex;
  flex-direction: column;
}
.site-logo-text .name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.site-logo-text .abbr {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* WordPress wp_nav_menu() wraps items in a <ul> — make it horizontal */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Dropdown sub-menus */
.primary-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background: var(--color-primary-dark);
  border-radius: var(--radius);
  padding: var(--space-2) 0;
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 200;
}
.primary-nav li {
  position: relative;
  margin: 0;
}
.primary-nav li:hover > ul { display: flex; }
.primary-nav ul ul li { width: 100%; }
.primary-nav ul ul a {
  border-radius: 0;
  padding: var(--space-2) var(--space-5);
  white-space: nowrap;
}

.primary-nav a {
  display: block;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.primary-nav .current-menu-item > a {
  background: rgba(255,255,255,0.18);
}


/* Header CTA */
.header-cta {
  flex-shrink: 0;
}
.header-cta .btn {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
}
.header-cta .btn:hover {
  background: #3e9058;
  border-color: #3e9058;
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-primary-dark);
    padding: var(--space-4) var(--space-6) var(--space-6);
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }
}

/* ---------------------------------------------------------------------------
   7. Hero Section (Homepage)
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 34, 18, 0.80) 0%,
    rgba(10, 34, 18, 0.40) 60%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-16) var(--space-6);
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  margin-bottom: var(--space-5);
  line-height: 1.1;
}
.hero p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin-bottom: var(--space-8);
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Hero slide indicators */
.hero-indicators {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 3;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.hero-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ---------------------------------------------------------------------------
   8. Upcoming Events (Homepage + Events page)
   --------------------------------------------------------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.event-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: var(--color-primary);
  color: #fff;
  min-width: 90px;
  flex-shrink: 0;
}
.event-card-date .month {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}
.event-card-date .day {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
}

.event-card-body {
  padding: var(--space-5) var(--space-5) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.event-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.event-card-title:hover { color: var(--color-primary); text-decoration: none; }

.event-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.event-meta-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  opacity: 0.6;
}

.event-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
  flex-wrap: wrap;
}

/* Horizontal event card (for full list view) */
.event-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.event-row:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow);
}
.event-row + .event-row { margin-top: var(--space-3); }

.event-row-date {
  text-align: center;
  padding: var(--space-2);
  background: var(--color-accent-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.event-row-date .month {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}
.event-row-date .day {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.1;
}
.event-row-date .year {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.event-row-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.event-row-body h3 a { text-decoration: none; color: var(--color-text); }
.event-row-body h3 a:hover { color: var(--color-primary); }

@media (max-width: 600px) {
  .event-row { grid-template-columns: 70px 1fr; }
  .event-row-actions { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------------
   9. News / Posts
   --------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-accent-light);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-no-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.post-card-category a {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}

.post-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.post-card-title a { text-decoration: none; color: var(--color-text); }
.post-card-title a:hover { color: var(--color-primary); }

.post-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: var(--space-4);
}

.post-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
}
.post-card-link:hover { text-decoration: underline; color: var(--color-primary-dark); }

/* ---------------------------------------------------------------------------
   10. Results Archive
   --------------------------------------------------------------------------- */
.results-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.results-year-nav a {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.results-year-nav a:hover,
.results-year-nav a.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.results-section { margin-bottom: var(--space-12); }
.results-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}
.results-section-header h2 {
  font-size: var(--text-2xl);
  color: var(--color-primary-dark);
}
.results-section-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.results-list { list-style: none; padding: 0; margin: 0; }
.results-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
  flex-wrap: wrap;
}
.results-list li:last-child { border-bottom: none; }

.results-date {
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 100px;
  padding-top: 2px;
}
.results-event { flex: 1; min-width: 200px; }
.results-event-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-base);
}
.results-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.results-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.results-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   11. Info Cards / Feature Blocks
   --------------------------------------------------------------------------- */
.info-card {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.5rem;
}
.info-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.info-card p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------------------------------------------------------------------------
   12. Officers Table / Contact Cards
   --------------------------------------------------------------------------- */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}
.officer-card {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}
.officer-card .role {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.officer-card .name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.officer-card .contact {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------------
   13. Partner Logos Strip
   --------------------------------------------------------------------------- */
.partners-section {
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-border);
}
.partners-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
}
.partner-logo {
  opacity: 0.55;
  transition: opacity var(--transition);
  filter: grayscale(100%);
}
.partner-logo:hover { opacity: 1; filter: none; }
.partner-logo img { height: 40px; width: auto; }

/* ---------------------------------------------------------------------------
   14. Sidebar
   --------------------------------------------------------------------------- */
.page-sidebar { min-width: 0; }

.widget {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
}
.widget-title {
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
}
.widget-content { padding: var(--space-5); }

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li + li { margin-top: var(--space-2); border-top: 1px solid var(--color-border-light); padding-top: var(--space-2); }
.widget ul li a { text-decoration: none; font-size: var(--text-sm); }

/* Next meeting callout widget */
.next-meeting-widget {
  background: var(--color-primary);
  border: none;
  color: #fff;
}
.next-meeting-widget .widget-title {
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.8);
  border-bottom-color: rgba(255,255,255,0.15);
}
.next-meeting-widget .widget-content {
  text-align: center;
  padding: var(--space-6);
}
.next-meeting-date {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-1);
}
.next-meeting-time {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-4);
}
.next-meeting-widget .btn { width: 100%; justify-content: center; font-size: var(--text-xs); }

/* ---------------------------------------------------------------------------
   15. Breadcrumbs
   --------------------------------------------------------------------------- */
.breadcrumbs {
  padding: var(--space-3) 0;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs-sep { color: var(--color-border); }

/* ---------------------------------------------------------------------------
   16. Page Hero (inner pages)
   --------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-12) 0 var(--space-10);
  color: #fff;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: var(--space-3);
}
.page-hero .lead {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-lg);
  max-width: 600px;
}

/* ---------------------------------------------------------------------------
   17. WPForms overrides
   --------------------------------------------------------------------------- */
.wpforms-form .wpforms-field-label { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-1); }
.wpforms-form input,
.wpforms-form textarea,
.wpforms-form select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  transition: border-color var(--transition);
}
.wpforms-form input:focus,
.wpforms-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(82,168,107,0.15);
}
.wpforms-form .wpforms-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.wpforms-form .wpforms-submit:hover { background: var(--color-primary-dark); }

/* ---------------------------------------------------------------------------
   18. The Events Calendar overrides
   --------------------------------------------------------------------------- */
.tribe-events-page-title { font-family: var(--font-heading); }
.tribe-event-url { color: var(--color-primary); }
.tribe-events .tribe-events-calendar td.tribe-events-past { background: var(--color-bg-alt); }

/* ---------------------------------------------------------------------------
   19. Pagination
   --------------------------------------------------------------------------- */
.pagination, .nav-links {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
}
.pagination a, .pagination span,
.nav-links a, .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition);
}
.pagination a:hover, .nav-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.pagination .current, .nav-links .current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---------------------------------------------------------------------------
   20. Footer
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #c8ddd0;
}

.footer-main {
  padding: var(--space-16) 0 var(--space-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: var(--space-10);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .site-logo { margin-bottom: var(--space-4); }
.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); }
.footer-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: var(--space-2); }
.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   21. Announcements / Notices
   --------------------------------------------------------------------------- */
.notice {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: var(--space-6);
}
.notice-info { background: #e8f4fe; border-color: #3b82f6; color: #1e3a5f; }
.notice-warning { background: #fef9e7; border-color: #f59e0b; color: #5c3a0a; }
.notice-success { background: var(--color-accent-light); border-color: var(--color-accent); color: var(--color-primary-dark); }

.notice-urgent {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  border-left: none;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}
.notice-urgent h3 { color: #fff; margin-bottom: var(--space-2); }
.notice-urgent p { color: rgba(255,255,255,0.85); }
.notice-urgent a { color: rgba(255,255,255,0.9); font-weight: 600; }

/* ---------------------------------------------------------------------------
   22. Price / Fee Table
   --------------------------------------------------------------------------- */
.fee-table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.fee-table th { background: var(--color-primary); color: #fff; }
.fee-table td:nth-child(2) {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary);
}

/* ---------------------------------------------------------------------------
   23. WordPress Core / Admin bar adjustments
   --------------------------------------------------------------------------- */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Screen reader only */
.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;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-6);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-2); color: #fff; }

/* Print */
@media print {
  .site-header, .site-footer, .page-sidebar, .nav-toggle { display: none; }
  .page-content { grid-template-columns: 1fr; }
  a { color: #000; }
}
