/* =============================================================
   Conwy Beekeepers – main.css
   ============================================================= */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────────
   All colours, fonts, and opacity tokens live here.
   To retheme the site, edit only this :root block.
   ──────────────────────────────────────────────────────────── */
:root {

  /* Customizer-controlled defaults. Saved values are printed in wp_head. */
  --conwy-colour-primary: #F5C623;
  --conwy-colour-text: #1A1A1A;
  --conwy-colour-accent: #2C4A2E;
  --conwy-colour-bg: #FDFAF0;
  --conwy-colour-link: #C9A020;
  --conwy-font-body: Calibri, "Trebuchet MS", sans-serif;
  --conwy-font-heading: Calibri, "Trebuchet MS", sans-serif;
  --conwy-font-size-base: 18px;

  /* Core palette tokens not controlled by the Customizer */
  --bark:  #7A6010;   /* dark gold — replaces old orange-brown */
  --mist:  #F5F0E0;   /* light warm grey — alternate section bg */
  --white: #FFFFFF;

  /* Semantic UI text colours */
  --text-body:   #444444;  /* body copy */
  --text-muted:  #666666;  /* secondary copy */
  --text-subtle: #777777;  /* captions, excerpts */
  --text-faint:  #888888;  /* labels, meta */

  /* Transparent overlays — derived from palette */
  --honey-bg-soft:     rgba(245, 198, 35, 0.12);  /* hero tag bg */
  --honey-border-soft: rgba(245, 198, 35, 0.30);  /* hero tag / nav border */
  --honey-bg-glow:     rgba(245, 198, 35, 0.15);  /* big hex fill */
  --honey-border-glow: rgba(245, 198, 35, 0.40);  /* big hex border */
  --honey-shadow:      rgba(245, 198, 35, 0.35);  /* btn-primary shadow */
  --honey-tag-bg:      rgba(245, 198, 35, 0.20);  /* event tag bg */
  --honey-tag-border:  rgba(245, 198, 35, 0.30);  /* event tag border */

  --forest-overlay-dark:  rgba(44, 74, 46, 0.70); /* hero image overlay */
  --forest-overlay-light: rgba(44, 74, 46, 0.50); /* news card overlay */
  --forest-overlay-sm:    rgba(44, 74, 46, 0.16); /* phone btn hover */
  --forest-overlay-xs:    rgba(44, 74, 46, 0.08); /* phone btn bg */

  --cream-nav: rgba(253, 250, 240, 0.92); /* nav backdrop */

  --dusk-overlay-mid:    rgba(26, 26, 26, 0.40); /* hero overlay dark end */
  --dusk-overlay-strong: rgba(26, 26, 26, 0.85); /* event detail hero overlay */

  --black-border-soft:  rgba(0, 0, 0, 0.06); /* card borders */
  --black-border-mid:   rgba(0, 0, 0, 0.07); /* heavier card border */
  --black-shadow-light: rgba(0, 0, 0, 0.10); /* card hover shadow */
  --black-shadow-mid:   rgba(0, 0, 0, 0.12); /* badge shadow */

  --white-overlay-faint:  rgba(255, 255, 255, 0.06); /* event card bg */
  --white-overlay-soft:   rgba(255, 255, 255, 0.10); /* event card hover */
  --white-overlay-mid:    rgba(255, 255, 255, 0.15); /* past event badge */
  --white-overlay-border: rgba(255, 255, 255, 0.10); /* event card border */
  --white-text-strong:    rgba(255, 255, 255, 0.85); /* prominent on dark */
  --white-text-mid:       rgba(255, 255, 255, 0.60); /* caption, subtitle */
  --white-text-muted:     rgba(255, 255, 255, 0.50); /* meta, footer links */
  --white-text-faint:     rgba(255, 255, 255, 0.35); /* membership trust */
  --white-text-ghost:     rgba(255, 255, 255, 0.20); /* outline btn border */
  --white-divider:        rgba(255, 255, 255, 0.08); /* footer border-top */

  /* Fonts */
  --font-body:    'Calibri', 'Trebuchet MS', sans-serif;
  --font-display: 'Calibri', 'Trebuchet MS', sans-serif;

  /* Type scale */
  --font-size-body: 18px;
  --font-size-body-lg: calc(var(--font-size-body) * 1.08);
  --font-size-body-md: var(--font-size-body);
  --font-size-body-sm: calc(var(--font-size-body) * 0.95);
  --font-size-body-xs: calc(var(--font-size-body) * 0.9);
  --font-size-ui-sm: calc(var(--font-size-body) * 0.88);
  --font-size-ui-xs: calc(var(--font-size-body) * 0.82);
  --font-size-meta: calc(var(--font-size-body) * 0.85);

  /* Layout */
  --max-width:   1280px;
  --spacing-md:  5%;

  /* Customizer aliases. Keep existing theme tokens working. */
  --honey: var(--conwy-colour-primary);
  --amber: var(--conwy-colour-link);
  --cream: var(--conwy-colour-bg);
  --forest: var(--conwy-colour-accent);
  --dusk: var(--conwy-colour-text);
  --text-body: var(--conwy-colour-text);
  --font-body: var(--conwy-font-body);
  --font-display: var(--conwy-font-heading);
  --font-size-body: var(--conwy-font-size-base);

  /* Semantic aliases used by templates */
  --color-primary: var(--forest);
  --color-accent:  var(--honey);
  --color-white:   var(--white);
}


/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.7;
  background: var(--cream);
  color: var(--dusk);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--conwy-colour-link); }
a:hover { color: var(--conwy-colour-primary); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--conwy-font-heading);
  color: var(--conwy-colour-accent);
}
button,
input,
select,
textarea {
  font-family: var(--conwy-font-body);
}
.btn-primary,
.btn-amber,
input[type="button"],
input[type="submit"] {
  background-color: var(--conwy-colour-primary);
  color: var(--conwy-colour-text);
}
.btn-ghost,
.btn-outline-light {
  color: var(--conwy-colour-link);
  border-color: currentColor;
}
.ql-card,
.news-card,
.event-card,
.archive-event-card,
.benefit,
.swarm-info-card,
.collector-card,
.info-card {
  border-color: color-mix(in srgb, var(--conwy-colour-accent) 18%, transparent);
  min-width: 0;
}

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--honey); color: var(--white);
  padding: 0.5rem 1.2rem; border-radius: 0 0 0.6rem 0.6rem;
  text-decoration: none; font-weight: 600; font-size: var(--font-size-body-xs);
  z-index: 9999; transition: top 0.15s ease; white-space: nowrap;
}
.skip-link:focus { top: 0; outline: 3px solid var(--forest); outline-offset: 2px; }

/* Main content landmark */
main#main-content { display: block; }

/* ── HEADER & NAVIGATION ── */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--spacing-md);
  min-height: 96px;
  gap: 2rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  align-self: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
  min-height: 72px;
}

.site-header__branding {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-header__logo img {
  height: 72px;
  width: auto;
  display: block;
  align-self: center;
  vertical-align: middle;
  object-fit: contain;
  object-position: center center;
}

.site-header__site-name {
  display: block;
  line-height: 1.1;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.logo-hex {
  width: 38px; height: 38px; background: var(--honey);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; color: var(--forest); }
.logo-sub  { font-family: var(--font-body); font-size: 0.65rem; letter-spacing: 0.08em; color: var(--honey); text-transform: uppercase; display: block; }

/* WordPress nav menu */
.site-nav { display: flex; align-items: center; margin-left: auto; }
#primary-menu { display: flex; gap: 0.75rem; list-style: none; align-items: center; }
#primary-menu li a {
  position: relative; display: inline-block;
  text-decoration: none; color: var(--dusk);
  font-size: 1.18rem; font-weight: 700; letter-spacing: 0.015em;
  padding: 0.75rem 1rem; transition: color 0.2s;
}
#primary-menu li a::after {
  content: ''; position: absolute; bottom: 0; left: 1rem; right: 1rem;
  height: 2px; background: var(--forest);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
#primary-menu li a:hover { color: var(--forest); }
#primary-menu li a:hover::after { transform: scaleX(1); }
#primary-menu li.current-menu-item > a { color: var(--forest); }
#primary-menu li.current-menu-item > a::after { transform: scaleX(1); }
#primary-menu li.menu-item-join > a { background: var(--forest); color: var(--white) !important; padding: 0.75rem 1.4rem; border-radius: 2rem; transition: background 0.2s; }
#primary-menu li.menu-item-join > a::after { display: none; }
#primary-menu li.menu-item-join > a:hover { background: var(--honey); color: var(--dusk) !important; }

/* Polylang language switcher */
.language-switcher { flex-shrink: 0; }
.language-switcher__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}
.language-switcher li { display: flex; }
.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--honey-border-soft);
  border-radius: 999px;
  color: var(--forest);
  font-size: var(--font-size-ui-xs);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.language-switcher a:hover,
.language-switcher li.current-lang a {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--forest); flex-direction: column; justify-content: space-between; height: 2rem; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* Search toggle button */
.search-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--forest); padding: 0.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.search-toggle:hover { color: var(--amber); }

/* Search overlay */
.search-overlay {
  background: var(--white);
  border-bottom: 2px solid var(--honey);
  padding: 0.9rem 8%;
  position: sticky; top: 0; z-index: 99;
}
.search-overlay[hidden] { display: none; }
.search-overlay__inner {
  max-width: var(--max-width); margin-inline: auto;
  display: flex; align-items: center; gap: 0.75rem;
}
.search-overlay .search-form { display: flex; flex: 1; gap: 0.5rem; }
.search-overlay .search-field {
  flex: 1; padding: 0.65rem 1rem;
  border: 1.5px solid var(--black-border-mid); border-radius: 0.5rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--text-body);
  background: var(--cream);
}
.search-overlay .search-field:focus {
  outline: none; border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-overlay-xs);
}
.search-overlay .search-submit {
  padding: 0.65rem 1.2rem; background: var(--forest); color: var(--white);
  border: none; border-radius: 0.5rem; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s;
}
.search-overlay .search-submit:hover { background: var(--amber); color: var(--dusk); }
.search-overlay__close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 0.3rem; flex-shrink: 0;
  display: flex; align-items: center; transition: color 0.2s;
}
.search-overlay__close:hover { color: var(--forest); }

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

/* ── FLOATING DECORATIVE ICON ── */
.floating-icon-cluster {
  position: relative;
  width: 7rem;
  height: 5.5rem;
  pointer-events: none;
}
.floating-icon-cluster__icon {
  position: absolute;
  display: block;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
}
.floating-icon-cluster__icon--lead {
  left: 2.1rem;
  top: 1.1rem;
  font-size: 3rem;
  animation: float 6s ease-in-out infinite;
}
.floating-icon-cluster__icon--left {
  left: 0;
  top: 2.2rem;
  font-size: 2.1rem;
  animation: float 5.4s ease-in-out infinite;
  animation-delay: 0.35s;
}
.floating-icon-cluster__icon--right {
  right: 0;
  top: 0;
  font-size: 2.35rem;
  animation: float 5.8s ease-in-out infinite;
  animation-delay: 0.7s;
}
.floating-icon-single {
  width: 4.6rem;
  height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}
.floating-icon-single__icon {
  display: block;
  line-height: 1;
  font-size: 3.1rem;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
  animation: float 6s ease-in-out infinite;
}
.conwy-icon-motion-disabled .floating-icon-cluster__icon,
.conwy-icon-motion-disabled .floating-icon-single__icon {
  animation: none;
}
.title-bar-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.title-bar-content {
  flex: 1 1 22rem;
  min-width: 0;
}
@media (max-width: 860px) {
  .floating-icon-cluster {
    width: 5.2rem;
    height: 4.2rem;
  }
  .floating-icon-cluster .floating-icon-cluster__icon--lead {
    left: 1.6rem;
    top: 0.85rem;
    font-size: 2.15rem;
  }
  .floating-icon-cluster .floating-icon-cluster__icon--left {
    top: 1.8rem;
    font-size: 1.55rem;
  }
  .floating-icon-cluster .floating-icon-cluster__icon--right {
    font-size: 1.7rem;
  }
  .floating-icon-single {
    width: 3.4rem;
    height: 3.4rem;
  }
  .floating-icon-single__icon {
    font-size: 2.25rem;
  }
}

/* ── TICKER ── */
.ticker-bar { background: var(--mist); color: var(--forest); display: flex; align-items: stretch; overflow: hidden; position: relative; isolation: isolate; border-top: 1px solid var(--honey); box-shadow: inset 0 -1px 0 rgba(44, 74, 46, 0.08); }
.ticker-label { background: rgba(44, 74, 46, 0.10); color: var(--forest); padding: 0 1.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; align-self: stretch; display: flex; align-items: center; flex-shrink: 0; margin-right: 1.5rem; position: relative; z-index: 2; box-shadow: inset -1px 0 0 rgba(44, 74, 46, 0.10); }
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative; z-index: 1; }
.ticker-track { display: flex; align-items: center; gap: 3rem; padding: 0.55rem 0; animation: ticker 60s linear infinite; white-space: nowrap; font-size: 0.84rem; will-change: transform; position: relative; z-index: 1; }
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { 0% { transform: translateX(18%); } 100% { transform: translateX(-100%); } }
.ticker-item { color: inherit; text-decoration: none; }
.ticker-item:hover { color: var(--amber); }
.ticker-item::before { content: '🐝  '; }

/* ── HERO ── */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 5% 6% 5% 8%; position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--honey-bg-soft); color: var(--amber);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 2rem; border: 1px solid var(--honey-border-soft);
  margin-bottom: 1.8rem; width: fit-content;
}
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.08; color: var(--forest); margin-bottom: 1.4rem; }
.hero-title em { font-style: italic; color: var(--honey); }
.hero-sub { font-size: 1.05em; line-height: 1.7; color: var(--text-muted); max-width: 420px; margin-bottom: 2.4rem; }
.hero-sub p,
.hero-sub ul,
.hero-sub ol { margin: 0 0 1rem; }
.hero-sub ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.hero-sub ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.hero-sub ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--honey);
  font-size: 1.05rem;
  line-height: 1;
}
.hero-sub ul li:last-child { margin-bottom: 0; }
.hero-sub > *:last-child { margin-bottom: 0; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; }
.stat-num { font-family: var(--font-display); font-size: 2rem; color: var(--honey); display: block; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }

.hero-right {
  position: relative;
  background: linear-gradient(160deg, #29472f 0%, #223b28 100%);
  overflow: hidden;
  min-height: 500px;
  isolation: isolate;
}
.hero-right.has-hero-image {
  border-radius: 1.5rem;
}
.hex-pattern {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpolygon points='28,2 54,16 54,44 28,58 2,44 2,16' fill='none' stroke='%23F5C623' stroke-width='1'/%3E%3Cpolygon points='28,52 54,66 54,94 28,108 2,94 2,66' fill='none' stroke='%23F5C623' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(245, 198, 35, 0.18), transparent 24%),
    linear-gradient(135deg, var(--forest-overlay-dark) 0%, var(--dusk-overlay-mid) 100%);
}
.hero-right-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-right.no-hero-image .hex-pattern { opacity: 0.12; }
.hero-center-hex {
  position: absolute;
  inset: auto auto 2rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 2;
  max-width: min(26rem, calc(100% - 4rem));
}
.big-hex {
  width: 240px; height: 240px;
  background: var(--honey-bg-glow); border: 2px solid var(--honey-border-glow);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-caption {
  color: var(--white-text-strong);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 1rem 1.15rem;
  background: rgba(26, 26, 26, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-caption strong { color: var(--white); display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; letter-spacing: 0; text-transform: none; margin-bottom: 0.3rem; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--white-text-muted); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; animation: bob 2s ease-in-out infinite; z-index: 2; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }

.hero-illustration {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 198, 35, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 30%);
}

.hero-illustration__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.65;
}

.hero-illustration__glow--one {
  width: 220px;
  height: 220px;
  top: 10%;
  right: 8%;
  background: rgba(245, 198, 35, 0.14);
}

.hero-illustration__glow--two {
  width: 260px;
  height: 260px;
  bottom: 8%;
  left: 6%;
  background: rgba(255, 255, 255, 0.06);
}

.hero-illustration__ridge {
  position: absolute;
  left: -8%;
  right: -8%;
  border-radius: 50% 50% 0 0;
}

.hero-illustration__ridge--back {
  height: 34%;
  bottom: 21%;
  background: linear-gradient(180deg, rgba(83, 103, 39, 0.92), rgba(66, 87, 36, 0.96));
  clip-path: polygon(0 100%, 0 58%, 17% 63%, 32% 44%, 49% 57%, 65% 36%, 78% 48%, 100% 30%, 100% 100%);
}

.hero-illustration__ridge--front {
  height: 30%;
  bottom: 0;
  background: linear-gradient(180deg, rgba(42, 68, 35, 0.98), rgba(34, 56, 29, 1));
  clip-path: polygon(0 100%, 0 52%, 12% 45%, 28% 60%, 42% 50%, 55% 65%, 69% 46%, 82% 58%, 100% 40%, 100% 100%);
}

.hero-illustration__path {
  position: absolute;
  width: 32%;
  height: 44%;
  right: 12%;
  bottom: -4%;
  background: linear-gradient(180deg, rgba(201, 160, 32, 0.32), rgba(201, 160, 32, 0.08));
  clip-path: polygon(45% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(1px);
  opacity: 0.7;
}

.hero-illustration__hive {
  position: absolute;
  right: 18%;
  bottom: 22%;
  width: 88px;
  height: 132px;
  background: linear-gradient(180deg, #d8b04a 0%, #ae7f28 100%);
  border: 3px solid rgba(44, 34, 15, 0.34);
  border-radius: 14px 14px 10px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-illustration__hive::before,
.hero-illustration__hive::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  height: 10px;
  border-radius: 999px;
  background: rgba(62, 46, 18, 0.22);
}

.hero-illustration__hive::before { top: 34px; }
.hero-illustration__hive::after { top: 68px; }

/* ── BUTTONS ── */
.btn-primary { background: var(--honey); color: var(--dusk); text-decoration: none; padding: 0.9rem 2rem; border-radius: 2rem; font-weight: 600; font-size: var(--font-size-body-sm); transition: background 0.25s, transform 0.15s; box-shadow: 0 4px 20px var(--honey-shadow); display: inline-block; }
.btn-primary:hover { background: var(--bark); color: var(--white); transform: translateY(-2px); }
.btn-ghost { color: var(--forest); text-decoration: none; font-size: var(--font-size-body-md); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid var(--forest); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.btn-ghost:hover { color: var(--amber); border-color: var(--amber); }
.btn-light { text-decoration: none; color: var(--forest); background: var(--cream); padding: 0.7rem 1.6rem; border-radius: 2rem; font-size: var(--font-size-body-xs); font-weight: 500; transition: background 0.2s, color 0.2s; display: inline-block; }
.btn-light:hover { background: var(--amber); color: var(--white); }
.btn-amber { display: block; text-decoration: none; background: var(--honey); color: var(--dusk); padding: 1rem; border-radius: 0.8rem; font-weight: 600; font-size: var(--font-size-body-sm); text-align: center; margin-bottom: 1rem; transition: background 0.2s, color 0.2s; }
.btn-amber:hover { background: var(--amber); color: var(--white); }
.btn-outline-light { display: block; text-decoration: none; text-align: center; color: var(--white-text-muted); padding: 0.8rem; border-radius: 0.8rem; font-size: var(--font-size-body-xs); border: 1px solid var(--white-text-ghost); transition: border-color 0.2s, color 0.2s; }
.btn-outline-light:hover { border-color: var(--amber); color: var(--amber); }
.btn-white { background: var(--white); color: var(--forest); text-decoration: none; padding: 0.9rem 2rem; border-radius: 2rem; font-weight: 600; font-size: var(--font-size-body-sm); white-space: nowrap; flex-shrink: 0; transition: background 0.2s; display: inline-block; }
.btn-white:hover { background: var(--cream); }

/* ── SHARED SECTION ELEMENTS ── */
section { padding: 6rem 8%; }
.section-label { font-size: var(--font-size-meta); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.section-label::before { content: ''; width: 2rem; height: 1px; background: var(--amber); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); color: var(--forest); line-height: 1.2; margin-bottom: 1rem; }

/* ── QUICK LINKS ── */
.quick-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; padding: 4rem 8%; background: var(--mist); }
.ql-card { background: var(--white); border-radius: 1.2rem; padding: 2rem 1.8rem; text-decoration: none; color: var(--dusk); transition: transform 0.25s, box-shadow 0.25s; border: 1px solid var(--black-border-soft); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.ql-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--honey); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.ql-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--black-shadow-light); }
.ql-card:hover::after { transform: scaleX(1); }
.ql-image { display: block; margin: -2rem -1.8rem 1.2rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sage); }
.ql-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ql-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.ql-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); margin-bottom: 0.5rem; }
.ql-desc { font-size: 0.95em; color: var(--text-subtle); line-height: 1.6; flex: 1; }
.ql-arrow { display: inline-block; margin-top: 1rem; color: var(--honey); font-size: 1.2rem; transition: transform 0.2s; }
.ql-card:hover .ql-arrow { transform: translateX(4px); }

/* ── ABOUT ── */
.about-section { background: var(--cream); }
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; height: 460px; }
.about-hex-large,
.about-hex-small {
  position: absolute;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  overflow: hidden;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.12);
}
.about-hex-large {
  width: 340px;
  height: 392px;
  background: linear-gradient(160deg, #2d4a30 0%, #1f3522 100%);
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-hex-large::after,
.about-hex-small::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.about-hex-large img,
.about-hex-small img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-hex-small {
  width: 160px;
  height: 185px;
  background: linear-gradient(160deg, #d5ae1d 0%, #b2870f 100%);
  bottom: 40px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-badge { position: absolute; background: var(--white); border-radius: 1rem; padding: 1rem 1.4rem; bottom: 80px; left: 260px; box-shadow: 0 8px 30px var(--black-shadow-mid); font-size: 0.9rem; font-weight: 500; white-space: nowrap; }
.about-badge span { font-family: var(--font-display); font-size: 1.6rem; color: var(--honey); display: block; line-height: 1; }
.about-visual-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-fallback--large {
  background:
    radial-gradient(circle at 68% 22%, rgba(245, 198, 35, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}
.about-visual-fallback--small {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08));
}
.about-visual-fallback__hive {
  position: relative;
  width: 84px;
  height: 120px;
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(180deg, #dfbb5d 0%, #a8761e 100%);
  border: 3px solid rgba(39, 30, 14, 0.34);
}
.about-visual-fallback__hive::before,
.about-visual-fallback__hive::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(57, 40, 14, 0.18);
}
.about-visual-fallback__hive::before { top: 32px; }
.about-visual-fallback__hive::after { top: 64px; }
.about-visual-fallback__flower {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0b2 0%, #f3d76b 56%, #d29a00 100%);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.12);
}
.about-visual-fallback__flower::before,
.about-visual-fallback__flower::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px;
  border-radius: 999px;
  transform: translateX(-50%);
}
.about-visual-fallback__flower::before {
  top: 56px;
  height: 34px;
  background: #446a2f;
}
.about-visual-fallback__flower::after {
  top: 70px;
  width: 28px;
  height: 16px;
  background: #587f3f;
  border-radius: 100% 0 100% 0;
  transform: translateX(-50%) rotate(-22deg);
}
.about-text p { font-size: 1.05em; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.2rem; }
.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
  padding-left: 0;
  font-size: 1.05em;
  line-height: 1.8;
  color: var(--text-muted);
}
.about-features li {
  position: relative;
  padding-left: 1.7rem;
  font-size: inherit;
  line-height: inherit;
}
.about-features li::before {
  content: '🐝';
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9em;
}

/* ── EVENTS ── */
.events-section { background: var(--forest); color: var(--cream); }
.events-section .section-title { color: var(--cream); }
.events-section .section-label { color: var(--amber); }
.events-section .section-label::before { background: var(--amber); }
.events-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.event-card { background: var(--white-overlay-faint); border: 1px solid var(--white-overlay-border); border-radius: 1.2rem; padding: 1.8rem; transition: background 0.2s; text-decoration: none; display: block; color: var(--cream); }
.event-card:hover { background: var(--white-overlay-soft); }
.event-date { font-family: var(--font-display); font-size: 2.5rem; color: var(--amber); line-height: 1; }
.event-month { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-text-muted); margin-bottom: 1rem; }
.event-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--cream); margin-bottom: 0.5rem; }
.event-detail { font-size: 0.95em; color: var(--white-text-mid); line-height: 1.6; overflow-wrap: break-word; }
.event-location,
.event-time { font-size: 0.9em; color: var(--white-text-muted); margin-top: 0.6rem; opacity: 0.7; }
.event-tag { display: inline-block; margin-top: 1rem; background: var(--honey-tag-bg); color: var(--amber); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 2rem; border: 1px solid var(--honey-tag-border); }
.no-events { color: var(--white-text-muted); font-style: italic; }

/* ── SWARM BANNER ── */
.swarm-banner { background: var(--honey); padding: 3rem 8%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.swarm-content h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--dusk); }
.swarm-content p { color: var(--text-body); font-size: 1em; margin-top: 0.4rem; }

/* ── MEMBERSHIP ── */
.membership-section { background: var(--cream); }
.membership-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.benefit { background: var(--white); border-radius: 0.8rem; padding: 1.2rem; border: 1px solid var(--black-border-soft); font-size: 0.95em; line-height: 1.5; }
.benefit-icon { font-size: 1.4rem; margin-bottom: 0.4rem; display: block; }
.benefit-title { font-weight: 600; color: var(--forest); margin-bottom: 0.2rem; }
.membership-cta-box { background: var(--forest); border-radius: 1.5rem; padding: 3rem 2.5rem; color: var(--cream); text-align: center; }
.membership-cta-box .section-label { justify-content: center; color: var(--amber); }
.membership-cta-box .section-label::before { background: var(--amber); }
.price-display { font-family: var(--font-display); font-size: 3rem; color: var(--amber); line-height: 1; margin: 1rem 0 0.5rem; }
.price-period { font-size: var(--font-size-body-xs); color: var(--white-text-muted); margin-bottom: 2rem; }
.membership-trust { margin-top: 1.5rem; font-size: var(--font-size-meta); color: var(--white-text-faint); line-height: 1.6; }
.membership-trust a { color: var(--white-text-muted); text-decoration: none; }
.membership-trust a:hover { color: var(--amber); }

/* ── NEWS ── */
.news-section { background: var(--mist); }
.news-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.news-card { background: var(--white); border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--black-border-soft); display: flex; flex-direction: column; text-decoration: none; color: var(--dusk); transition: transform 0.25s, box-shadow 0.25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px var(--black-shadow-light); }
.news-card-img { background: var(--forest); height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.news-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.news-card-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(245, 198, 35, 0.18), transparent 22%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='96' viewBox='0 0 112 96'%3E%3Cg fill='none' stroke='%23F5C623' stroke-opacity='0.28' stroke-width='2'%3E%3Cpath d='M28 2l24 14v28L28 58 4 44V16z'/%3E%3Cpath d='M84 2l24 14v28L84 58 60 44V16z'/%3E%3Cpath d='M56 38l24 14v28L56 94 32 80V52z'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: auto, 112px 96px;
  z-index: 0;
}
.news-card-placeholder::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%, 75% 93.3%, 25% 93.3%, 0 50%);
  background: rgba(245, 198, 35, 0.18);
  border: 2px solid rgba(245, 198, 35, 0.55);
  box-shadow: 0 0 0 10px rgba(245, 198, 35, 0.06);
}
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.72rem; color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.6rem; }
.news-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--forest); line-height: 1.35; margin-bottom: 0.6rem; }
.news-excerpt { font-size: 0.95em; color: var(--text-subtle); line-height: 1.6; flex: 1; }
.news-read { display: inline-block; margin-top: 1rem; color: var(--amber); font-size: 0.82rem; font-weight: 500; }
.news-card.featured .news-card-img { height: 260px; }
.news-card.featured .news-title { font-size: 1.4rem; }

/* ── PAGE BANNER ── */
.page-banner {
  background-color: var(--color-primary);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.03) 18px,
    rgba(255, 255, 255, 0.03) 36px
  );
  padding-block: 2rem;
  padding-inline: var(--spacing-md);
  border-bottom: 4px solid var(--color-accent);
}

.page-banner h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
  max-width: var(--max-width);
  margin-inline: auto;
}

/* ── INNER PAGE CONTENT ── */
.page-header,
.post-header,
.archive-header,
.swarm-hero,
.members-area-header {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at top right, rgba(245, 198, 35, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='84' viewBox='0 0 96 84'%3E%3Cg fill='%23F5C623' fill-opacity='.025' stroke='%23F5C623' stroke-opacity='.18' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M0 0L24 14V42L0 56-24 42V14Z'/%3E%3Cpath d='M48 0L72 14V42L48 56 24 42V14Z'/%3E%3Cpath d='M96 0l24 14v28L96 56 72 42V14Z'/%3E%3Cpath d='M24 42L48 56V84L24 98 0 84V56Z'/%3E%3Cpath d='M72 42L96 56V84L72 98 48 84V56Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 96px 84px;
  background-repeat: no-repeat, no-repeat, repeat;
  border-bottom: 4px solid var(--honey);
}

.page-header::after,
.post-header::after,
.archive-header::after,
.swarm-hero::after,
.members-area-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.page-header { padding: 8rem 8% 4rem; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); }
.page-header .page-subtitle { color: var(--white-text-mid); margin-top: 0.5rem; font-size: var(--font-size-body-md); }
.page-content { padding: 4rem 8%; max-width: 860px; font-size: 1.08em; line-height: 1.85; }
.page-content--flush { max-width: 100%; }
.page-content h2 { font-family: var(--font-display); color: var(--forest); margin: 2rem 0 1rem; }
.page-content h3 { font-family: var(--font-display); color: var(--forest); margin: 1.5rem 0 0.8rem; }
.page-content p { font-size: inherit; line-height: inherit; color: var(--text-body); margin-bottom: 1rem; }
.page-content ul, .page-content ol { font-size: inherit; margin: 1rem 0 1rem 1.5rem; color: var(--text-body); line-height: inherit; }
.page-content ul { list-style: none; margin-left: 0; padding-left: 0; }
.page-content ul li {
  position: relative;
  padding-left: 1.7rem;
}
.page-content ul li::before {
  content: '🐝';
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9em;
}
.page-content li { font-size: inherit; line-height: inherit; }
.page-content a { color: var(--amber); text-decoration: underline; }
.page-content img { border-radius: 0.8rem; margin: 1.5rem 0; }

/* ── MEMBERS AREA ── */
.members-area-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.members-area-header__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.members-area-header__button {
  min-width: 11rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.members-area-header__button:not(.members-area-header__button--primary) {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.members-area-header__button:hover {
  transform: translateY(-1px);
}
.members-area-header__button:not(.members-area-header__button--primary):hover {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--dusk);
}
.members-area-shell {
  padding: 4rem 8%;
  background:
    radial-gradient(circle at top left, rgba(245, 198, 35, 0.09), transparent 22%),
    linear-gradient(180deg, var(--cream) 0%, var(--mist) 100%);
}
.members-login-grid,
.members-dashboard {
  max-width: var(--max-width);
  margin: 0 auto;
}
.members-login-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
}
.members-login-card,
.members-panel-card,
.members-doc-group,
.members-stat-card {
  background: var(--white);
  border: 1px solid var(--black-border-soft);
  border-radius: 1.4rem;
  box-shadow: 0 16px 40px rgba(44, 74, 46, 0.08);
}
.members-login-card,
.members-panel-card,
.members-doc-group {
  padding: 2rem;
}
.members-login-card h2,
.members-login-aside h2,
.members-doc-group h2,
.members-panel-card h2 {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.members-login-card p,
.members-login-aside p,
.members-panel-card p,
.members-doc-card p {
  color: var(--text-body);
}
.members-login-form {
  margin-top: 1.8rem;
}
.members-login-form form {
  display: grid;
  gap: 1rem;
}
.members-login-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--forest);
  font-weight: 700;
}
.members-login-form input[type="text"],
.members-login-form input[type="password"] {
  width: 100%;
  border: 1px solid rgba(44, 74, 46, 0.18);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font: inherit;
  background: #fffef9;
}
.members-login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-size-body-sm);
}
.members-login-form .login-remember label {
  margin-bottom: 0;
  font-weight: 600;
}
.members-login-form .button-primary,
.members-login-form input[type="submit"] {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--honey);
  color: var(--dusk);
  padding: 0.95rem 1.5rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  justify-self: start;
  box-shadow: 0 4px 20px var(--honey-shadow);
}
.members-login-form .button-primary:hover,
.members-login-form input[type="submit"]:hover {
  background: var(--bark);
  color: var(--white);
}
.members-dashboard {
  display: grid;
  gap: 2rem;
}
.members-panel-card--intro {
  font-size: var(--font-size-body-md);
  line-height: 1.8;
}
.members-panel-card--intro > *:last-child {
  margin-bottom: 0;
}
.members-dashboard__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.members-stat-card {
  padding: 1.5rem 1.6rem;
}
.members-stat-card__value {
  display: block;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1.1;
}
.members-stat-card__label {
  display: block;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-size: var(--font-size-body-xs);
}
.members-doc-groups {
  display: grid;
  gap: 1.5rem;
}
.members-doc-group__header {
  margin-bottom: 1.4rem;
}
.members-doc-list {
  display: grid;
  gap: 1rem;
}
.members-doc-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, rgba(253, 250, 240, 0.88), rgba(245, 240, 224, 0.92));
  border: 1px solid rgba(44, 74, 46, 0.08);
  border-radius: 1rem;
}
.members-doc-card h3 {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.members-doc-card__meta {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
  color: var(--text-muted);
  font-size: var(--font-size-ui-sm);
}
.members-doc-card__meta-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}
.members-doc-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(44, 74, 46, 0.12);
  border: 1px solid rgba(44, 74, 46, 0.16);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.members-doc-card__link {
  min-width: 10rem;
  text-align: center;
}
.members-panel-card--empty {
  text-align: center;
}
.members-panel-card--empty .section-label {
  justify-content: center;
}

/* ── SINGLE POST ── */
.post-header { padding: 5.5rem 8% 3rem; }
.post-header-inner { max-width: var(--max-width); margin: 0 auto; display: grid; gap: 0.9rem; }
.post-header .section-label { font-size: 0.9rem; letter-spacing: 0.18em; margin-bottom: 0; }
.post-header .section-label::before { width: 2.5rem; }
.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.08;
  color: var(--white);
}
.post-meta {
  color: var(--white-text-muted);
  font-size: 1rem;
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.post-hero-media { max-width: var(--max-width); margin: 3rem auto 0; padding: 0 8%; }
.post-hero-media img { width: 100%; border-radius: 1.2rem; }
.post-body { padding: 4rem 8%; max-width: var(--max-width); margin: 0 auto; font-size: 1.1em; line-height: 1.9; }
.post-body p { font-size: inherit; line-height: inherit; color: var(--text-body); margin-bottom: 1.2rem; }
.post-body h2 { font-family: var(--font-display); color: var(--forest); margin: 2rem 0 1rem; }
.post-body a { color: var(--amber); }
.post-body img { border-radius: 0.8rem; margin: 1.5rem 0; }
.post-body ul, .post-body ol { font-size: inherit; line-height: inherit; margin: 1rem 0 1.2rem 1.5rem; color: var(--text-body); }
.post-body li { font-size: inherit; line-height: inherit; }
.post-body blockquote { border-left: 3px solid var(--honey); padding-left: 1.5rem; margin: 2rem 0; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--text-muted); }
.post-nav { padding: 2rem 8% 4rem; max-width: var(--max-width); margin: 0 auto; }

/* ── ARCHIVE ── */
.archive-header { padding: 5rem 8% 3rem; }
.archive-header-inner { max-width: var(--max-width); margin: 0 auto; }
.archive-header h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.08; color: var(--white); }
.archive-description { color: var(--white-text-mid); font-size: 1.05em; margin-top: 0.9rem; max-width: 52rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; padding: 4rem 8%; background: var(--mist); }
.archive-pagination { padding: 2rem 8% 3rem; display: flex; gap: 1rem; max-width: var(--max-width); margin: 0 auto; }
.archive-pagination .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.archive-pagination .btn-primary a {
  color: var(--dusk);
  text-decoration: none;
  font-weight: 700;
}
.archive-pagination .btn-primary a:hover {
  color: var(--dusk);
}

/* ── FOOTER ── */
.site-footer { background: var(--dusk); color: var(--white-text-muted); padding: 4rem 8% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.footer-brand-logo {
  width: auto;
  height: 52px;
  display: block;
  flex-shrink: 0;
}
.footer-brand-mark {
  width: 46px;
  height: 46px;
  font-size: 1rem;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
}
.footer-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.footer-brand p { font-size: 1em; line-height: 1.75; margin-top: 1rem; max-width: 320px; }
.footer-brand-email { margin-top: 0.8rem; }
.footer-brand-email a { color: var(--amber); text-decoration: none; font-size: var(--font-size-body-md); }
.footer-brand-email a:hover { color: var(--honey); }
.footer-members-link-wrap { margin-top: 1rem; }
.footer-members-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--white-overlay-border);
  border-radius: 999px;
  background: var(--white-overlay-faint);
  color: var(--white);
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-members-link:hover {
  background: var(--honey-tag-bg);
  border-color: var(--honey-tag-border);
  color: var(--amber);
}
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--white-text-muted); text-decoration: none; font-size: var(--font-size-body-md); line-height: 1.6; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--white-divider); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: var(--font-size-body-sm); }
.footer-bottom a { color: var(--amber); text-decoration: none; }

.post-nav .btn-ghost { font-size: var(--font-size-body-lg); }

/* WordPress alignment helpers */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.post-body figure,
.page-content figure,
.page-fw-content figure,
.event-detail-content figure {
  display: table;
  max-width: 100%;
  margin: 1.5rem 0;
}

.post-body figure.aligncenter,
.page-content figure.aligncenter,
.page-fw-content figure.aligncenter,
.event-detail-content figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.post-body figure img,
.page-content figure img,
.page-fw-content figure img,
.event-detail-content figure img {
  margin-bottom: 0;
}

.post-body .wp-block-gallery.has-nested-images,
.page-content .wp-block-gallery.has-nested-images,
.page-fw-content .wp-block-gallery.has-nested-images,
.event-detail-content .wp-block-gallery.has-nested-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-body .wp-block-gallery.has-nested-images figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.page-fw-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.event-detail-content .wp-block-gallery.has-nested-images figure.wp-block-image {
  display: block;
  margin: 0;
}

.post-body .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image,
.page-fw-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image,
.event-detail-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image {
  width: calc((100% - 1rem) / 2);
}

.post-body .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image,
.page-fw-content .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image,
.event-detail-content .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image {
  width: calc((100% - 2rem) / 3);
}

.post-body .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image,
.page-fw-content .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image,
.event-detail-content .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image {
  width: calc((100% - 3rem) / 4);
}

.post-body .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image,
.page-fw-content .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image,
.event-detail-content .wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image {
  width: calc((100% - 4rem) / 5);
}

.post-body .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
.page-content .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
.page-fw-content .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image,
.event-detail-content .wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image {
  width: calc((100% - 5rem) / 6);
}

.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption,
.blocks-gallery-caption {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
}

/* Ensure single image figures have captions as a bottom overlay */
figure.wp-block-image,
.wp-caption {
  position: relative;
  overflow: hidden;
}

figure.wp-block-image > figcaption,
figure.wp-block-image .wp-element-caption,
.wp-caption .wp-caption-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.78) 70%, rgba(26, 26, 26, 0.95) 100%);
  color: var(--white);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.45;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .site-header__inner { min-height: 84px; gap: 1rem; }
  .site-header__logo { min-height: 60px; }
  .site-header__logo img { height: 60px; }
  .site-header__branding { gap: 0.65rem; }
  .site-header__site-name { font-size: 1.15rem; }
  .site-nav { margin-left: auto; }
  #primary-menu { display: none; }
  .nav-toggle { display: flex; }
  #primary-menu.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 2px solid var(--honey); padding: 1rem var(--spacing-md); }
  #primary-menu.open li a { font-size: 1.08rem; padding: 0.9rem 0; display: block; border-bottom: 1px solid var(--black-border-soft); }
  #primary-menu.open li a::after { display: none; }
  .about-strip { gap: 3rem; }
  .about-badge {
    left: auto;
    right: 1rem;
    bottom: 2rem;
    max-width: min(16rem, calc(100% - 2rem));
    white-space: normal;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 350px; }
  .hero-center-hex {
    inset: auto 1rem 1rem 1rem;
    max-width: none;
  }
  .hero-caption {
    width: 100%;
    padding: 0.85rem 1rem;
  }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .about-strip { grid-template-columns: 1fr; }
  .about-visual { height: 340px; }
  .about-hex-large { width: 260px; height: 300px; }
  .about-hex-small { width: 132px; height: 152px; }
  .about-badge { left: 200px; bottom: 20px; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .membership-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .members-login-grid,
  .members-dashboard__meta,
  .members-doc-card { grid-template-columns: 1fr; }
  .members-area-header__inner { align-items: flex-start; }
  .members-doc-card__meta { justify-items: start; }
  .members-doc-card__meta-top { justify-content: flex-start; }

  .post-body .wp-block-gallery.has-nested-images figure.wp-block-image,
  .page-content .wp-block-gallery.has-nested-images figure.wp-block-image,
  .page-fw-content .wp-block-gallery.has-nested-images figure.wp-block-image,
  .event-detail-content .wp-block-gallery.has-nested-images figure.wp-block-image {
    width: 100%;
  }
  /* Fix Gutenberg gallery columns */
.page-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image {
  width: calc((100% - 1rem) / 2);
}

.page-content .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image {
  width: calc((100% - 2rem) / 3);
}
}
@media (max-width: 600px) {
  .site-header__inner { min-height: 76px; gap: 0.75rem; }
  .site-header__logo {
    min-height: 52px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .site-header__logo img { height: 52px; }
  .site-header__branding {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.6rem;
    row-gap: 0.1rem;
  }
  .site-header__site-name {
    grid-column: 2;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.05;
  }
  .language-switcher__list { gap: 0.25rem; }
  .language-switcher a {
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding-inline: 0.45rem;
  }
  .quick-links { grid-template-columns: 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .about-badge {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
    white-space: normal;
  }
  .members-area-shell { padding: 3rem 6%; }
  .members-login-card,
  .members-panel-card,
  .members-doc-group,
  .members-stat-card { padding: 1.4rem; }
  .members-area-header__actions,
  .members-area-header__button { width: 100%; }
  section { padding: 4rem 6%; }
}

/* =============================================================
   SINGLE EVENT PAGE (single-conwy_event.php)
   ============================================================= */

.event-detail-hero {
  position: relative; min-height: 360px;
  display: flex; align-items: flex-end;
  background: var(--forest); overflow: hidden;
  border-bottom: 4px solid var(--honey);
}
.event-detail-bg { position: absolute; inset: 0; }
.event-detail-bg img { width: 100%; height: 100%; object-fit: cover; }
.event-detail-bg--pattern {
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at top right, rgba(245, 198, 35, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='84' viewBox='0 0 96 84'%3E%3Cg fill='%23F5C623' fill-opacity='.025' stroke='%23F5C623' stroke-opacity='.18' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M0 0L24 14V42L0 56-24 42V14Z'/%3E%3Cpath d='M48 0L72 14V42L48 56 24 42V14Z'/%3E%3Cpath d='M96 0l24 14v28L96 56 72 42V14Z'/%3E%3Cpath d='M24 42L48 56V84L24 98 0 84V56Z'/%3E%3Cpath d='M72 42L96 56V84L72 98 48 84V56Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 96px 84px;
  background-repeat: no-repeat, no-repeat, repeat;
}
.event-detail-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--dusk-overlay-strong) 0%, var(--forest-overlay-light) 100%),
    radial-gradient(circle at top right, rgba(245, 198, 35, 0.12), transparent 28%);
}
.event-detail-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 1;
}
.event-detail-hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: 3rem;
  padding: 2.75rem 8%; width: 100%; flex-wrap: wrap; max-width: var(--max-width); margin: 0 auto;
}
.event-detail-date-block {
  background: var(--honey); border-radius: 1rem;
  padding: 1.2rem 1.6rem; text-align: center; flex-shrink: 0; min-width: 90px;
}
.event-detail-day   { display: block; font-family: var(--font-display); font-size: 3rem; color: var(--white); line-height: 1; }
.event-detail-month { display: block; font-size: 0.85rem; color: var(--white-text-strong); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.event-detail-year  { display: block; font-size: 0.75rem; color: var(--white-text-muted); margin-top: 0.1rem; }
.event-detail-title-block { flex: 1; min-width: 260px; }
.event-detail-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--honey-tag-bg); color: var(--amber);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 2rem;
  border: 1px solid var(--honey-border-glow); margin-bottom: 0.8rem;
}
.event-detail-past-badge {
  display: inline-block; background: var(--white-overlay-mid);
  color: var(--white-text-muted); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 2rem; margin-bottom: 0.8rem; margin-left: 0.5rem;
}
.event-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); line-height: 1.1; margin-bottom: 0.7rem;
}
.event-detail-subtitle { color: var(--white-text-mid); font-size: var(--font-size-body-md); margin-bottom: 0.4rem; }
.event-detail-location { color: var(--white-text-muted); font-size: var(--font-size-body-xs); }

.event-detail-layout {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 3rem; padding: 4rem 8%; align-items: start;
}
.event-detail-content { font-size: 1.08em; line-height: 1.85; color: var(--text-body); }
.event-detail-content p  { font-size: inherit; line-height: inherit; margin-bottom: 1.2rem; }
.event-detail-content h2 { font-family: var(--font-display); color: var(--forest); margin: 2rem 0 1rem; font-size: 1.6rem; }
.event-detail-content h3 { font-family: var(--font-display); color: var(--forest); margin: 1.5rem 0 0.8rem; }
.event-detail-content a  { color: var(--amber); }
.event-detail-content ul,
.event-detail-content ol { font-size: inherit; line-height: inherit; margin: 1rem 0 1rem 1.5rem; }
.event-detail-content ul { list-style: none; margin-left: 0; padding-left: 0; }
.event-detail-content ul li {
  position: relative;
  padding-left: 1.7rem;
}
.event-detail-content ul li::before {
  content: '🐝';
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.9em;
}
.event-detail-content li { font-size: inherit; line-height: inherit; }
.event-detail-photo { border-radius: 1rem; margin-top: 2rem; width: 100%; }
.event-detail-placeholder { color: var(--text-faint); font-style: italic; }

.event-info-card {
  background: var(--white); border-radius: 1.2rem; padding: 1.8rem;
  border: 1px solid var(--black-border-mid); position: sticky; top: 96px;
}
.event-info-card + .event-info-card { margin-top: 1.5rem; }
.event-info-card-title {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--forest);
  margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--black-border-soft);
}
.event-info-list   { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.event-info-item   { display: flex; align-items: flex-start; gap: 0.8rem; font-size: var(--font-size-ui-sm); }
.event-info-icon   { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.event-info-item strong { display: block; color: var(--forest); font-weight: 600; margin-bottom: 0.1rem; }
.event-info-item span   { color: var(--text-muted); }
.event-info-cta    { border-top: 1px solid var(--black-border-soft); padding-top: 1.2rem; }
.event-info-note   { font-size: 0.78rem; color: var(--text-faint); text-align: center; margin-top: 0.8rem; }

.event-upcoming-list  { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.event-upcoming-item a {
  display: flex; flex-direction: column; gap: 0.1rem;
  text-decoration: none; padding: 0.6rem 0;
  border-bottom: 1px solid var(--black-border-soft); transition: color 0.2s;
}
.event-upcoming-item a:hover .event-upcoming-title { color: var(--amber); }
.event-upcoming-date  { font-size: 0.72rem; color: var(--amber); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.event-upcoming-title { font-size: var(--font-size-body-xs); color: var(--forest); font-weight: 500; }
.event-upcoming-more  { margin-top: 1rem; display: inline-flex; }

@media (max-width: 860px) {
  .event-detail-layout { grid-template-columns: 1fr; }
  .event-info-card { position: static; }
  .event-detail-hero-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
}


/* =============================================================
   SWARM HELP PAGE (page-swarm-help.php)
   ============================================================= */

.swarm-hero { padding: 5rem 8% 3rem; }
.swarm-hero--has-image {
  padding-top: 7rem;
  padding-bottom: 5rem;
  background-image:
    linear-gradient(135deg, rgba(26, 26, 26, 0.74), rgba(44, 74, 46, 0.58)),
    var(--swarm-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.swarm-hero-inner { display: flex; align-items: flex-start; gap: 2rem; max-width: var(--max-width); margin: 0 auto; flex-wrap: wrap; position: relative; z-index: 1; }
.swarm-hero .floating-icon-cluster--inline { flex-shrink: 0; }
.swarm-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem); color: var(--cream); line-height: 1.08; margin: 0.5rem 0 0.8rem;
}
.swarm-hero-sub { color: var(--white-text-mid); font-size: 1.08em; line-height: 1.7; max-width: 52rem; }

.swarm-explainer { padding: 3rem 8%; background: var(--mist); }
.swarm-explainer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.swarm-info-card { background: var(--white); border-radius: 1rem; padding: 1.5rem; border-top: 3px solid transparent; display: flex; flex-direction: column; overflow: hidden; }
.swarm-info-card--green  { border-top-color: #4CAF50; }  /* traffic-light green — semantic, not brand */
.swarm-info-card--amber  { border-top-color: var(--amber); }
.swarm-info-card--red    { border-top-color: #E53935; }  /* traffic-light red — semantic, not brand */
.swarm-info-card--forest { border-top-color: var(--forest); }
.swarm-info-image { display: block; margin: -1.5rem -1.5rem 1rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sage); }
.swarm-info-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swarm-info-icon { font-size: 1.8rem; margin-bottom: 0.7rem; display: block; }
.swarm-info-card h3 { font-family: var(--font-display); font-size: 1rem; color: var(--forest); margin-bottom: 0.5rem; }
.swarm-info-card p  { font-size: 0.95em; color: var(--text-muted); line-height: 1.6; flex: 1; }
.swarm-info-card a  { color: var(--amber); }
.swarm-info-card__btn {
  display: inline-block; margin-top: 0.9rem;
  font-size: var(--font-size-ui-xs); font-weight: 600;
  color: var(--forest); text-decoration: none;
  border-bottom: 1.5px solid var(--forest); padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.swarm-info-card__btn:hover { color: var(--amber); border-color: var(--amber); }

.page-template-page-swarm-help .page-content--flush {
  --swarm-gallery-max-width: 1120px;
  --swarm-gallery-columns: 3;
  --swarm-gallery-gap: 1rem;
  --swarm-gallery-image-height: clamp(220px, 24vw, 320px);
}

/* Remove coloured top borders on swarm page info cards */
.page-template-page-swarm-help .swarm-info-card {
  border-top-color: transparent;
}


.page-template-page-swarm-help .page-content--flush > .wp-block-gallery.has-nested-images {
  max-width: var(--swarm-gallery-max-width);
  margin: 0 auto 2rem;
}

.page-template-page-swarm-help .page-content--flush > .wp-block-gallery.has-nested-images.columns-3 {
  display: grid;
  grid-template-columns: repeat(var(--swarm-gallery-columns), minmax(0, 1fr));
  gap: var(--swarm-gallery-gap);
}

.page-template-page-swarm-help .page-content--flush > .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image {
  width: 100% !important;
  margin: 0;
  overflow: hidden;
}

.page-template-page-swarm-help .page-content--flush > .wp-block-gallery.has-nested-images.columns-3 img {
  display: block;
  width: 100%;
  height: var(--swarm-gallery-image-height);
  margin: 0;
  object-fit: cover;
}

.collector-section { padding: 4rem 8%; background: var(--cream); }
.collector-header  { margin-bottom: 2.5rem; }
.collector-subhead { color: var(--text-muted); font-size: var(--font-size-body-xs); margin-top: 0.4rem; }
.collector-search-wrap { margin-bottom: 1.8rem; }
.collector-search-input {
  width: 100%; max-width: 420px; padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 1.5px solid var(--black-border-mid); border-radius: 2rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232C4A2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.75rem center;
  font-family: var(--font-body); font-size: var(--font-size-body-xs); color: var(--text-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.collector-search-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-overlay-xs); }
.collector-search-input::placeholder { color: var(--text-faint); }
.collector-no-results { color: var(--text-muted); font-size: var(--font-size-body-xs); margin-bottom: 1rem; }
.collector-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.collector-card {
  background: var(--white); border-radius: 1.2rem; padding: 1.6rem;
  border: 1px solid var(--black-border-mid); transition: box-shadow 0.2s, transform 0.2s;
}
.collector-card:hover { box-shadow: 0 8px 30px var(--black-shadow-light); transform: translateY(-3px); }
.collector-card-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.collector-avatar {
  width: 48px; height: 48px; background: var(--mist); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.collector-name   { font-family: var(--font-display); font-size: 1.05rem; color: var(--forest); font-weight: 700; }
.collector-area   { font-size: 0.8rem; color: var(--text-faint); margin-top: 0.2rem; }
.collector-radius { font-size: 0.78rem; color: var(--amber); margin-top: 0.1rem; font-weight: 500; }
.collector-notes  { font-size: 0.95em; color: var(--text-subtle); line-height: 1.5; margin-bottom: 1rem; font-style: italic; }
.collector-contacts { display: flex; flex-direction: column; gap: 0.6rem; }
.collector-contact-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem;
  border-radius: 0.6rem; font-size: var(--font-size-meta); font-weight: 500; text-decoration: none; transition: background 0.2s;
}
.collector-contact-btn--phone { background: var(--forest-overlay-xs); color: var(--forest); }
.collector-contact-btn--phone:hover { background: var(--forest-overlay-sm); }
.collector-contact-btn--email { background: var(--honey-bg-soft); color: var(--bark); }
.collector-contact-btn--email:hover { background: var(--honey-tag-bg); }
.collector-fallback {
  background: var(--white); border-radius: 1.2rem; padding: 3rem;
  text-align: center; color: var(--text-muted); max-width: 520px; margin: 0 auto;
  border: 1px solid var(--black-border-mid);
}

.swarm-season-bar { background: var(--dusk); padding: 3rem 8%; }
.swarm-season-inner { max-width: 860px; }
.swarm-season-bar h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--cream); margin-bottom: 1.2rem; }
.swarm-season-months { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.swarm-month {
  width: 52px; height: 52px; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.03em;
  background: var(--white-overlay-faint); color: var(--white-text-muted);
}
.swarm-month--active  { background: var(--honey-tag-bg); color: var(--amber); border: 1px solid var(--honey-tag-border); }
.swarm-month--current { background: var(--honey); color: var(--dusk); border: none; font-weight: 700; }
.swarm-season-note    { font-size: 0.82rem; color: var(--white-text-faint); margin-top: 0.8rem; }

.swarm-volunteer { background: var(--mist); padding: 4rem 8%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.swarm-volunteer h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--forest); margin-bottom: 0.4rem; }
.swarm-volunteer p  { color: var(--text-muted); font-size: var(--font-size-body-sm); max-width: 520px; }

@media (max-width: 1000px) {
  .swarm-explainer-grid { grid-template-columns: 1fr 1fr; }
  .collector-grid { grid-template-columns: 1fr 1fr; }

  .page-template-page-swarm-help .page-content--flush > .wp-block-gallery.has-nested-images.columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .swarm-explainer-grid { grid-template-columns: 1fr; }
  .collector-grid { grid-template-columns: 1fr; }

  .page-template-page-swarm-help .page-content--flush > .wp-block-gallery.has-nested-images.columns-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-template-page-swarm-help .page-content--flush > .wp-block-gallery.has-nested-images.columns-3 img {
    height: 240px;
  }
}


/* =============================================================
   ARCHIVE PAGE (archive.php)
   ============================================================= */

.archive-event-card {
  background: var(--white); color: var(--dusk);
  border: 1px solid var(--black-border-mid);
  box-shadow: 0 1px 0 var(--black-shadow-light);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.archive-event-card:hover {
  background: var(--cream);
  border-color: var(--honey-tag-border);
  box-shadow: 0 12px 32px var(--black-shadow-light);
  transform: translateY(-3px);
}
.archive-event-card .event-date  { color: var(--honey); }
.archive-event-card .event-month { color: var(--text-faint); }
.archive-event-card .event-name  { color: var(--forest); }
.archive-event-card .event-detail { color: var(--text-muted); }
.archive-event-card .event-location,
.archive-event-card .event-time { color: var(--text-faint); }
.archive-event-filters {
  background: var(--mist);
  padding: 2rem 8% 0;
}
.archive-event-filters__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.archive-event-filters__label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.archive-event-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.archive-event-filter {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--black-border-mid);
  border-radius: 999px;
  background: var(--white);
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.archive-event-filter:hover,
.archive-event-filter:focus-visible {
  border-color: var(--amber);
  background: var(--cream);
  color: var(--forest);
}
.archive-event-filter.is-active {
  border-color: var(--amber);
  background: var(--honey);
  color: var(--forest);
}
.archive-event-filters__summary {
  margin: 1rem 0 0;
  color: var(--text-muted);
}
.archive-event-section { background: var(--mist); }
.archive-event-section + .archive-event-section { padding-top: 0; }
.archive-section-title {
  background: var(--mist);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
  padding: 3rem 8% 0;
}
.archive-section-title + .archive-grid { padding-top: 2rem; }
.archive-event-section--past .archive-event-card { opacity: 0.82; }
.archive-nothing { padding: 2rem; color: var(--text-muted); }
.search-nothing { padding: 2rem; max-width: 480px; }
.search-nothing p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* =============================================================
   UTILITY CLASSES (used across templates, replaces inline styles)
   ============================================================= */

/* Section label on amber/dark bg */
.section-label--amber { color: var(--amber); }
.section-label--amber::before { background: var(--amber); }

/* Section title with tighter bottom margin */
.section-title--tight { margin-bottom: 0.5rem; }

/* Page content flush (no bottom padding) */
.page-content--flush { padding-bottom: 0; }

/* Button full-width block */
.btn-block { display: block; text-align: center; }

/* Button with top margin */
.btn-primary--mt { margin-top: 1.2rem; display: inline-block; }

/* Membership intro paragraph */
.membership-intro { color: var(--text-body); font-size: 1em; line-height: 1.7; margin-bottom: 0.5rem; }

/* Back-link bar */
.back-link-bar { padding: 2rem 8% 4rem; }

/* Archive description (on dark bg) */
.archive-description { color: var(--white-text-mid); margin-top: 0.8rem; }


/* Container spacing */
.faq-block details,
.wp-block-details {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(44, 74, 46, 0.08);
  border-radius: 1rem;
  margin: 0 0 0.8rem;
  overflow: hidden;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

/* Summary (question row) */
.faq-block summary,
.wp-block-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.15rem 1.3rem;
  color: var(--dusk);
  transition: color 0.2s ease, background 0.2s ease;
}

/* Remove default marker */
.faq-block summary::-webkit-details-marker,
.wp-block-details summary::-webkit-details-marker {
  display: none;
}

/* Chevron */
.faq-block summary::after,
.wp-block-details summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: rgba(44, 74, 46, 0.6);
  transform: rotate(45deg);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Open state (rotate chevron) */
.faq-block details[open] summary::after,
.wp-block-details[open] summary::after {
  transform: rotate(-135deg);
  color: var(--forest);
}

/* Hover + focus */
.faq-block summary:hover,
.faq-block summary:focus,
.wp-block-details summary:hover,
.wp-block-details summary:focus {
  color: var(--forest);
  background: rgba(245, 198, 35, 0.14);
  outline: none;
}

.faq-block details:hover,
.faq-block details:focus-within,
.faq-block details[open],
.wp-block-details:hover,
.wp-block-details:focus-within,
.wp-block-details[open] {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(245, 198, 35, 0.58);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(245, 198, 35, 0.12);
  transform: translateY(-1px);
}

/* Answer text */
.faq-block details > :not(summary),
.wp-block-details > :not(summary) {
  padding: 0 1.3rem 1.1rem;
}

.faq-block details p,
.wp-block-details p {
  margin: 0.2rem 0 0.75rem;
  color: #444;
  line-height: 1.6;
}

/* Improve spacing between sections */
.faq-block h2 {
  margin-top: 2rem;
}

/* Optional: tighten headings slightly */
.faq-block h1 {
  margin-bottom: 0.5rem;
}

/* Info cards */
.info-card {
  background: var(--white);
  border: 1px solid var(--black-border-mid);
  border-radius: 0.8rem;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--text-body);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
/* Optional: stronger separation */
.info-card + .info-card {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}
.info-card:hover {
  box-shadow: 0 8px 30px var(--black-shadow-light);
  transform: translateY(-2px);
}

.info-card > *:first-child {
  margin-top: 0;
}

.info-card > *:last-child {
  margin-bottom: 0;
}

/* Keep CTA/link aligned at the bottom when cards have different content lengths */
.info-card p:last-child {
  margin-top: auto;
}

.info-card h2,
.info-card h3,
.info-card h4 {
  color: var(--forest);
}

.info-card a {
  color: var(--amber);
}

/* Warning variant for urgent notices */
.info-card.warning {
  background: #fff4f4;
  border-color: #cc0000;
}

.info-card.warning h2,
.info-card.warning h3,
.info-card.warning h4 {
  color: #990000;
}

.wp-block-group.is-style-important-note {
  background: #fff7f7;
  border: 1.5px solid #ff4b4b;
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: 0 12px 36px rgba(153, 0, 0, 0.06);
}

.wp-block-group.is-style-important-note > *:last-child {
  margin-bottom: 0;
}

.wp-block-group.is-style-important-note p {
  color: var(--dusk);
}

.wp-block-group.is-style-important-note strong,
.wp-block-group.is-style-important-note b,
.wp-block-group.is-style-important-note h2,
.wp-block-group.is-style-important-note h3,
.wp-block-group.is-style-important-note h4 {
  color: #7f0d0d;
}

.wp-block-group.is-style-important-note a {
  color: #c99000;
}
/* Card row spacing */
.wp-block-columns.info-card-row {
  gap: 20px;
}

/* Make Gutenberg columns stretch so cards align cleanly */
.wp-block-columns.info-card-row > .wp-block-column {
  display: flex;
}

/* Gutenberg gallery columns-2 override */
.page-content .wp-block-gallery.has-nested-images.columns-2,
.post-body .wp-block-gallery.has-nested-images.columns-2,
.page-fw-content .wp-block-gallery.has-nested-images.columns-2,
.event-detail-content .wp-block-gallery.has-nested-images.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.page-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image,
.post-body .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image,
.page-fw-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image,
.event-detail-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image {
  position: relative;
  overflow: hidden;
  width: auto;
  margin: 0;
}

.page-content .wp-block-gallery.has-nested-images.columns-2 img,
.post-body .wp-block-gallery.has-nested-images.columns-2 img,
.page-fw-content .wp-block-gallery.has-nested-images.columns-2 img,
.event-detail-content .wp-block-gallery.has-nested-images.columns-2 img {
  width: 100%;
  height: auto;
}

.page-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image figcaption,
.post-body .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image figcaption,
.page-fw-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image figcaption,
.event-detail-content .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.78) 70%, rgba(26, 26, 26, 0.95) 100%);
  color: var(--white);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .page-content .wp-block-gallery.has-nested-images.columns-2,
  .post-body .wp-block-gallery.has-nested-images.columns-2,
  .page-fw-content .wp-block-gallery.has-nested-images.columns-2,
  .event-detail-content .wp-block-gallery.has-nested-images.columns-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
