/* Base resets and variables – single :root and body to avoid “two versions” */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=optional");

:root {
  --font-heading: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --honey: #c98a2e;
  --honey-light: #e8b85c;
  --honey-dark: #8b5b12;
  --forest: #2d4a2a;
  --forest-soft: #426941;
  --forest-light: #4a6b47;
  --cream: #faf6ef;
  --cream-dark: #ebe4d4;
  --white: #ffffff;
  --text-main: #333333;
  --text: #333;
  --text-muted: #666666;
  --charcoal: #2c2c2c;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.hidden { display: none !important; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='103' viewBox='0 0 112 103'%3E%3Cg fill='%23faf6ef' stroke='%23e8b85c' stroke-width='5' stroke-opacity='0.18'%3E%3Cpath d='M28 0L52.25 14 52.25 42 28 56 3.75 42 3.75 14Z'/%3E%3Cpath d='M84 0L108.25 14 108.25 42 84 56 59.75 42 59.75 14Z'/%3E%3Cpath d='M0 48.5L24.25 62.5 24.25 90.5 0 104.5'/%3E%3Cpath d='M56 48.5L80.25 62.5 80.25 90.5 56 104.5 31.75 90.5 31.75 62.5Z'/%3E%3Cpath d='M112 48.5L87.75 62.5 87.75 90.5 112 104.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 112px 103px;
  background-attachment: fixed;
}

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

a {
  color: var(--forest);
}

a:hover {
  color: var(--honey-dark);
}

main {
  flex: 1 0 auto;
}

/* Layout: header, nav, footer – logo/title left, buttons right, no clipping */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--honey-dark);
  overflow: visible;
}

.header-inner {
  width: 100%;
  margin: 0;
  padding: 0.5rem 1.5rem 0.5rem 1.1rem; /* right padding so last button + shadow isn’t cut off */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--honey-dark);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0;
  color: var(--forest);
  line-height: 1.1;
}

/* Navigation bar – pill buttons, golden with dotted texture and 3D shadow */
.main-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4px;
  overflow: visible;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  min-width: max-content;
}

.main-nav a {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-block;
}
.main-nav a > div {
  position: relative;
  border-radius: 9999px;
  background-color: #e5a830;
  border: 1px solid var(--honey-dark);
  box-shadow:
    2px 2px 0 0 var(--honey-dark),
    3px 3px 0 0 var(--honey-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  min-width: 5.75rem;
  text-align: center;
}
.main-nav a > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  opacity: 0.45;
  background-image: radial-gradient(rgba(255,255,255,0.9) 15%, transparent 15%),
    radial-gradient(rgba(255,255,255,1) 15%, transparent 15%);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: btn-dots 0.5s infinite linear;
}
.main-nav a > div > span {
  position: relative;
  display: inline-block;
  padding: 0.28rem 0.5rem;
  font-size: 0.925rem;
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover > div {
  background-color: var(--honey-light);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--honey-dark);
}
.main-nav a:active > div {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 0 var(--honey-dark);
}
.main-nav a.active > div {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 0 var(--honey-dark);
  background-color: #d99a28;
}
.main-nav a.active > div > span {
  color: #000;
}

/* Mobile hamburger + drawer (hidden on wide viewports) */
.nav-menu-toggle {
  display: none;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: 2px solid var(--honey-dark);
  border-radius: 12px;
  background: #ffffff;
  color: var(--forest);
  box-shadow: 2px 2px 0 0 var(--honey-dark);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-menu-toggle:hover {
  background: var(--cream);
}
.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.nav-menu-icon {
  display: block;
}
.nav-backdrop {
  display: none;
}

/* Mobile drawer chrome (header + close inserted by nav-mobile.js) */
.nav-drawer-header,
.nav-drawer-close {
  display: none;
}

@media (max-width: 800px) {
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  }

  .nav-menu-toggle {
    display: flex;
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-shrink: 0;
    margin: 0;
    padding: 1rem 0.65rem 1rem 0.75rem;
    background: var(--cream);
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 6px 6px;
    border-bottom: 1px solid var(--cream-dark);
    position: sticky;
    top: 0;
    z-index: 3;
  }

  .nav-drawer-welcome {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
  }

  .nav-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 50%;
    background: #4a4a4a;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-drawer-close span {
    position: relative;
    top: -1px;
  }
  .nav-drawer-close:hover {
    background: #3a3a3a;
  }
  .nav-drawer-close:focus-visible {
    outline: 2px solid var(--honey-light);
    outline-offset: 2px;
  }

  .nav-backdrop:not([hidden]) {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-title {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    width: min(88vw, 320px);
    height: auto;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #f2f0eb;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0 0 0 12px;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.14);
    z-index: 1001;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
    pointer-events: none;
  }

  body.nav-menu-open .main-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #faf9f7;
  }

  .main-nav li {
    border-bottom: 1px solid #d9d4ca;
    margin: 0;
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
  }

  .main-nav a:hover > div {
    background: rgba(0, 0, 0, 0.04);
  }

  .main-nav a:focus-visible > div {
    background: rgba(45, 74, 42, 0.08);
    outline: none;
  }

  .main-nav a > div {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    min-height: 3.25rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0.9rem 0.85rem 0.9rem 0.95rem;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left;
    transform: none !important;
  }

  .main-nav a > div::before {
    display: none !important;
  }

  .main-nav a > div::after {
    content: '\203A';
    flex-shrink: 0;
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    color: #6f6a62;
  }

  .main-nav a > div > span {
    flex: 1;
    min-width: 0;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-align: left;
  }

  .main-nav a.active > div {
    background: rgba(45, 74, 42, 0.07) !important;
    box-shadow: none !important;
  }

  .main-nav a.active > div > span {
    color: var(--forest);
  }

  .main-nav a.active > div::after {
    color: var(--forest-soft);
  }
}

@media (max-width: 640px) {
  .nav-drawer-welcome {
    font-size: 0.98rem;
  }
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--forest);
}

.btn > div {
  border-radius: 999px;
  border: 1px solid var(--honey-dark);
  background: #fff9f0;
  padding: 0.3rem 0.9rem;
  box-shadow: 2px 2px var(--honey-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn span {
  font-weight: 600;
}

.btn:hover > div,
.btn:focus-visible > div {
  background: #ffe8bd;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px var(--honey-dark);
}

.btn.active > div {
  background: var(--honey);
  color: var(--white);
}

.btn.active span {
  color: var(--white);
}

.site-footer {
  margin-top: 3rem;
  background: var(--forest);
  color: #f5f3ea;
  padding: 1.75rem 1.25rem 1.5rem;
}

.site-footer a {
  color: #f6e4bd;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.site-footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-copy {
  font-size: 0.85rem;
  margin: 0;
}

.site-footer-social svg {
  width: 22px;
  height: 22px;
  fill: #f6e4bd;
}

/* Hero sections */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-home,
.hero-about,
.hero-events,
.hero-swarm {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.hero-home-bg,
.hero-about-bg,
.hero-events-bg,
.hero-swarm-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-home-bg {
  background: radial-gradient(circle at 10% 10%, #ffe8bd, #f2e4cf 55%, #f6f0e2 100%);
}

.hero-about-bg-img,
.hero-events-bg-img,
.hero-swarm-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  text-align: center;
  color: var(--forest);
}

.hero-about .hero-home-content,
.hero-events .hero-home-content,
.hero-swarm .hero-home-content {
  color: #faf5ea;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-home-content h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin: 0 0 0.4rem;
}

.hero-home-content p {
  margin: 0;
  font-size: 1rem;
}

/* Generic page/layout helpers */
.page-home,
.page-about,
.page-legislative,
.events-page,
.page-swarm-reporting {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.content-section {
  margin-bottom: 1.25rem;
}

.card-well {
  background: var(--cream);
  border-radius: var(--radius);
  border: 2px solid var(--honey-dark);
  box-shadow: 4px 4px var(--honey-dark);
  padding: 1.25rem 1.25rem 1.5rem;
}
.card-well h2 {
  margin-top: 0.25rem;
}
.card-well .content-section:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  background: #fffdf8;
  border-radius: var(--radius);
  border: 1px solid var(--honey-dark);
  padding: 1.25rem;
  box-shadow: 2px 2px 0 var(--honey-dark);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
  color: var(--forest);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.card a {
  color: var(--honey-dark);
  font-weight: 600;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
  color: var(--honey);
}

/* Matches nav gold so one style across header and content */
.notice-banner {
  background: #e5a830;
  border: 1px solid var(--honey-dark);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
  text-align: center;
}
.notice-banner a {
  color: #1a1a1a;
  font-weight: 700;
  text-decoration: underline;
}
.notice-banner a:hover {
  color: #000;
}

/* Home page affiliate cards */
.affiliated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.affiliate-card {
  background: #fffdf8;
  border-radius: 14px;
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  box-shadow: 3px 3px rgba(0, 0, 0, 0.03);
}

.affiliate-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.affiliate-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.affiliate-card-body {
  padding: 0.9rem 1rem 1.0rem;
}

.affiliate-card-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  color: var(--forest);
}

.affiliate-card-cta {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--forest-soft);
}

/* Helpful links */
.helpful-links-intro {
  margin-top: 0;
}

.helpful-links-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.helpful-links-list li {
  margin-bottom: 0.8rem;
}

.helpful-links-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.helpful-links-note {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: #fffdf8;
  border-radius: 12px;
  border: 1px solid var(--cream-dark);
  padding: 0.75rem;
  text-align: center;
}

.gallery-item p {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

/* Members gate (login card) */
.members-gate {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.members-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(201, 138, 46, 0.55);
  pointer-events: none;
}

.members-gate-popup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 0;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  overflow: visible;
}

.members-gate-popup-inner {
  position: relative;
  z-index: 1;
  display: flex;
  background: var(--white);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  box-shadow: 4px 4px var(--honey-dark);
}

.members-gate-details {
  width: 100%;
  max-width: 330px;
  padding: 2.5rem 2rem;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: url("../assets/loginbee.jpg") center / cover no-repeat;
}

.members-gate-details::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 74, 42, 0.5);
  pointer-events: none;
}

.members-gate-details h2,
.members-gate-details p {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.members-gate-details h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.members-gate-details p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.5;
}

.members-gate-form-wrap {
  width: 100%;
  padding: 2.25rem 2.25rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.members-gate-form-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  margin: 0;
  color: var(--forest);
}

.members-gate-input-field {
  position: relative;
  margin-top: 1rem;
}

.members-gate-pass-key {
  width: 100%;
  padding: 0.9rem 3.4rem 0.9rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--cream-dark);
  font-size: 1rem;
}

.members-gate-input-field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.members-gate-show {
  position: absolute;
  right: 1.0rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--honey-dark);
  cursor: pointer;
}

.members-gate-error {
  font-size: 0.9rem;
  color: #b32;
  margin: 0.25rem 0 0.5rem;
}

.members-gate-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn.btn-primary > div {
  background: #e5a830;
  border-color: var(--honey-dark);
  color: #000000;
}

.btn.btn-primary > div span {
  color: #000000;
  font-weight: 700;
}

.btn.btn-primary:hover > div {
  background: var(--honey-light);
}

/* Generic helpers */
.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  margin-top: 0;
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Events page tiles */
.events-when-where {
  margin-bottom: 2rem;
}

.events-section-intro {
  margin-bottom: 0.3rem;
}

.calendar-click-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0;
}

.meeting-calendar-wrap {
  margin-top: 1rem;
}

/* Swarm reporting embed */
.swarm-embed-card {
  position: relative;
  border-radius: 20px;
  background: var(--cream);
  border: 2px solid var(--honey-dark);
  box-shadow: 4px 4px var(--honey-dark);
  padding: 1.25rem;
}

.swarm-card-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--honey);
}

.swarm-embed-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.swarm-iframe {
  width: 100%;
  min-height: 480px;
  border: none;
  display: block;
}

.swarm-embed-footer {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Gallery / members shared helpers already covered above */

/* Legislative Action – pill toggle bar with sliding glider */
.legislative-tabs {
  display: inline-flex;
  position: relative;
  border-radius: 9999px;
  border: 1px solid #d4c9b8;
  padding: 0.25rem;
  background: #fdf8ee;
  margin-bottom: 0.75rem;
  overflow: hidden;
  width: 100%;
  max-width: 320px;
}

.legislative-tabs-glider {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  border-radius: 9999px;
  background: #c98a2e;
  z-index: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.legislative-tabs.glider-on-bill .legislative-tabs-glider {
  transform: translateX(100%);
}

.legislative-tab {
  flex: 1;
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #6b6b6b;
  transition: color 0.25s ease;
}

.legislative-tab:hover {
  color: #4a4a4a;
}

.legislative-tab.active {
  color: #2c3e2c;
  background: transparent;
}

.legislative-panel {
  display: none;
}

.legislative-panel.active {
  display: block;
}

.legislative-search-wrap {
  margin: 0 0 0.75rem;
}

.legislative-search {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
}

.legislative-search:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 2px rgba(201, 138, 46, 0.2);
}

/* PA county map (Who Voted) – single card, map + legend */
.pa-map-card {
  padding: 1rem 1.25rem 1.25rem;
}
.pa-map-wrap {
  margin: 0 0 1rem;
}
.pa-map-container {
  position: relative;
  max-width: 100%;
  overflow: auto;
  background: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius);
}
.pa-map-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%) translateY(-8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.pa-map-tooltip.is-visible {
  opacity: 1;
}
.pa-map-tooltip-sign {
  display: inline-block;
  background: var(--forest, #00c080);
  color: #fff;
  font-weight: bold;
  padding: 0.35em 0.6em;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 14rem;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  hyphens: auto;
}
.pa-map-legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.75rem;
  text-align: center;
}
.pa-map-legend-caption {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted, #555);
  font-weight: 500;
}
.pa-map-legend-scale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #555);
}
.pa-map-legend-label {
  flex-shrink: 0;
}
.pa-map-legend-bar {
  flex: 0 1 auto;
  width: 200px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(to right, rgb(74, 107, 71) 0%, rgb(74, 107, 71) 12%, rgb(232, 184, 92) 18%, rgb(139, 91, 18) 100%);
}
.pa-map-container .pa-map-svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.pa-map-container .pa-map-county {
  cursor: pointer;
  transition: fill 0.55s ease-in-out;
  outline: none;
}
.pa-map-container .pa-map-county:hover,
.pa-map-container .pa-map-county:focus {
  fill: var(--honey);
}
.pa-map-container .pa-map-county.pa-map-county--selected {
  fill: var(--honey);
}
.pa-map-labels {
  pointer-events: none;
}
.pa-map-county-label {
  font-size: 9px;
  font-family: inherit;
  fill: #fff;
  font-weight: bold;
  stroke: rgba(0, 0, 0, 0.5);
  stroke-width: 1px;
  paint-order: stroke fill;
  pointer-events: none;
}
.pa-map-county-result {
  margin: 0;
  display: grid;
  grid-template-rows: 0fr;
  border-top: 1px solid transparent;
  transition: grid-template-rows 1.25s ease-in-out, border-color 0.5s ease-in-out;
}
.pa-map-county-result.is-expanded {
  grid-template-rows: 1fr;
  border-top-color: var(--honey-dark);
}
.pa-map-county-result-inner {
  min-height: 0;
  overflow: hidden;
  padding-top: 0.75rem;
}
.pa-map-county-result-inner .pa-map-result,
.pa-map-county-result-inner .pa-map-county-cards {
  transition: opacity 0.28s ease-in-out;
}
.pa-map-county-result.is-fading-out .pa-map-result,
.pa-map-county-result.is-fading-out .pa-map-county-cards {
  opacity: 0;
}
.pa-map-county-result.is-fading-in-start .pa-map-result,
.pa-map-county-result.is-fading-in-start .pa-map-county-cards {
  opacity: 0;
}
.pa-map-county-result.is-fading-in .pa-map-result,
.pa-map-county-result.is-fading-in .pa-map-county-cards {
  opacity: 1;
}
.pa-map-result {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.pa-map-result--match { color: var(--text); }
.pa-map-result--none { color: var(--text-muted, #666); }
.pa-map-county-cards {
  margin: 0;
  min-height: 0;
}
.pa-map-county-cards:empty {
  display: none;
}
.pa-map-all-wrap {
  margin: 1.5rem 0 0;
  background: var(--cream);
  border: 2px solid var(--honey-dark);
  border-radius: var(--radius);
  box-shadow: 4px 4px var(--honey-dark);
  overflow: hidden;
}
.pa-map-all-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--forest);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.pa-map-all-toggle:hover,
.pa-map-all-toggle:focus {
  color: var(--honey-dark);
  outline: 2px solid var(--honey-dark);
  outline-offset: -2px;
}
.pa-map-all-chevron {
  flex-shrink: 0;
  margin-left: 0.5rem;
  width: 0;
  height: 0;
  border-left: 0.35em solid transparent;
  border-right: 0.35em solid transparent;
  border-top: 0.4em solid currentColor;
  transition: transform 0.2s ease;
}
.pa-map-all-toggle[aria-expanded="true"] .pa-map-all-chevron {
  transform: rotate(-180deg);
}
.pa-map-all-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 1.25s ease-in-out;
  overflow: hidden;
  min-height: 0;
  background: var(--cream);
}
.pa-map-all-content.is-closed {
  visibility: hidden;
  border-top: none;
}
.pa-map-all-content.is-expanded {
  grid-template-rows: 1fr;
  visibility: visible;
  border-top: 1px solid var(--honey-dark);
}
.pa-map-all-content-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.pa-map-all-content.is-expanded .pa-map-all-content-inner {
  padding: 0.75rem 1rem 1.25rem;
}
.pa-map-all-content-inner > .legislative-grid {
  margin-top: 0;
}

.committee-source {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.committee-members {
  margin: 0;
}
.committee-members p {
  margin: 0.5rem 0 0.25rem;
  font-family: var(--font-heading);
  color: var(--forest);
}
.committee-members p:first-of-type {
  margin-top: 0;
}
.committee-members ul {
  margin: 0 0 0 1.25rem;
  padding: 0;
}

.pa-map-error {
  padding: 0.5rem 0;
  color: var(--text);
}
.pa-map-error code {
  font-size: 0.9em;
  background: rgba(0,0,0,0.06);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

.legislative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 0;
}

.legislative-card {
  background: var(--cream);
  border: 2px solid var(--honey-dark);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 4px 4px var(--honey-dark);
}

.legislative-card--dem {
  background: #f2f7ff;
  border-color: #24579a;
  box-shadow: 4px 4px #24579a;
}

.legislative-card--rep {
  background: #fff5f5;
  border-color: #a32222;
  box-shadow: 4px 4px #a32222;
}

.legislative-card-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.legislative-card-aside {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legislative-card-photo {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  border: 2px solid var(--honey-dark);
  margin: 0;
  vertical-align: middle;
}

.legislative-card-photo-placeholder {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #b0b0b0;
  border: 2px solid var(--honey-dark);
  margin: 0;
}

.legislative-card-main {
  flex: 1 1 auto;
  padding: 0.75rem 1rem;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.legislative-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 0.25rem;
  line-height: 1.3;
  word-wrap: break-word;
}

.legislative-card-district {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  font-weight: 600;
  line-height: 1.35;
  word-wrap: break-word;
}

.legislative-card-phone,
.legislative-card-email,
.legislative-card-address,
.legislative-card-link {
  font-size: 0.8rem;
  margin: 0.15rem 0 0;
  line-height: 1.4;
}

.legislative-card-phone a,
.legislative-card-email a,
.legislative-card-link a {
  color: var(--forest);
  text-decoration: none;
}

.legislative-card-phone a:hover,
.legislative-card-email a:hover,
.legislative-card-link a:hover {
  color: var(--honey-dark);
  text-decoration: underline;
}

.legislative-empty,
.legislative-no-results {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1rem 0 0;
}

/* Simple responsive tweaks */
@media (max-width: 800px) {
  .members-gate-popup-inner {
    flex-direction: column;
  }

  .members-gate-details {
    max-width: none;
    width: 100%;
  }

  .members-gate-form-wrap {
    padding: 1.75rem 1.5rem 2rem;
  }
}

@media (max-width: 640px) {
  .hero-home,
  .hero-about,
  .hero-events,
  .hero-swarm {
    padding: 2.5rem 1rem;
  }

  .hero-home-content h1 {
    font-size: 1.6rem;
  }

  .card-well {
    padding: 1.25rem 1.1rem 1.4rem;
  }

  .legislative-card-inner {
    align-items: flex-start;
  }
}

/* Main content and page-level styles */
main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  width: 100%;
}
.page-home {
  padding-top: 0.75rem;
  padding-bottom: 1.5rem;
}
.page-home .content-section:last-of-type {
  margin-bottom: 0.5rem;
}
.page-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--forest);
  margin: 0 0 0.5rem;
}
.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.content-section {
  margin-bottom: 1.25rem;
}
.content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--forest);
  margin: 0.75rem 0 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--honey-light);
}
.content-section h2:first-child {
  margin-top: 0;
}
.content-section p { margin: 0 0 0.6rem; }
.content-section ul {
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
}
.content-section li { margin-bottom: 0.25rem; }

/* Helpful Links page */
.helpful-links-intro {
  margin-bottom: 1.25rem;
}
.helpful-links-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
}
.helpful-links-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.helpful-links-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.helpful-links-list a {
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
}
.helpful-links-list a:hover {
  color: var(--honey-dark);
  text-decoration: underline;
}
.helpful-links-desc {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 400;
}
.helpful-links-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Legislative Action page */
.page-legislative .card-well {
  padding-bottom: 1.25rem;
}
.legislative-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.legislative-panel-heading-text {
  margin: 0;
  flex: 1 1 10rem;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}
.page-legislative .legislative-panel-head .legislative-tabs {
  margin: 0;
  flex: 0 1 auto;
  align-self: center;
  width: auto;
  min-width: min(100%, 20rem);
  max-width: 28rem;
  padding: 0.125rem;
  border-radius: 9999px;
}
.page-legislative .legislative-panel-head .legislative-tabs-glider {
  top: 0.125rem;
  bottom: 0.125rem;
  left: 0.125rem;
  width: calc(50% - 0.125rem);
}
.page-legislative .legislative-panel-head .legislative-tab {
  padding: 0.28rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.25;
}
.legislative-panel {
  display: none;
}
.legislative-panel.active {
  display: block;
}
.bill-pdf-wrap {
  margin-top: 0.75rem;
}
.bill-pdf-fullscreen-wrap {
  position: relative;
}
.bill-pdf-embed {
  width: 100%;
  min-height: 60vh;
  max-height: 85vh;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
}
.legislative-search-wrap {
  margin: 0 0 0.75rem;
}
.legislative-search {
  width: 100%;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
}
.legislative-search:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 2px rgba(201, 138, 46, 0.2);
}
.legislative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0.75rem 0 0;
}
.legislative-card {
  background: var(--cream);
  border: 2px solid var(--honey-dark);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 4px 4px var(--honey-dark);
}
.legislative-card--dem {
  background: #f2f7ff;
  border-color: #24579a;
  box-shadow: 4px 4px #24579a;
}
.legislative-card--rep {
  background: #fff5f5;
  border-color: #a32222;
  box-shadow: 4px 4px #a32222;
}
.legislative-card-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.legislative-card-aside {
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legislative-card-photo {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 40%;
  border: 2px solid var(--honey-dark);
  margin: 0;
  vertical-align: middle;
}
.legislative-card-main {
  flex: 1 1 auto;
  padding: 0.75rem 1rem;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.legislative-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0 0 0.25rem;
  line-height: 1.3;
  word-wrap: break-word;
}
.legislative-card-district {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  font-weight: 600;
  line-height: 1.35;
  word-wrap: break-word;
}
.legislative-card-phone,
.legislative-card-email,
.legislative-card-address,
.legislative-card-link {
  font-size: 0.8rem;
  margin: 0.15rem 0 0;
  line-height: 1.4;
}
.legislative-card-phone a,
.legislative-card-email a,
.legislative-card-link a {
  color: var(--forest);
  text-decoration: none;
}
.legislative-card-phone a:hover,
.legislative-card-email a:hover,
.legislative-card-link a:hover {
  color: var(--honey-dark);
  text-decoration: underline;
}
.legislative-empty,
.legislative-no-results {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1rem 0 0;
}
.legislative-why-bad,
.legislative-fight-back {
  margin-top: 1rem;
}

/* Affiliated associations (home page) – matches Quick links card-well + card style */
.affiliated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}
.affiliate-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.affiliate-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.affiliate-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.affiliate-card-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--cream);
}
.affiliate-card-body {
  padding: 1.25rem 1.25rem 0.75rem;
}
.affiliate-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--forest);
  margin: 0 0 0.5rem;
}
.affiliate-card-body p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.affiliate-card-cta {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--honey-dark);
  text-decoration: none;
}
.affiliate-card-link:hover .affiliate-card-cta {
  text-decoration: underline;
}

/* Buttons – Uiverse-style (offset shadow, dotted inner) – content buttons only, not nav */
.btn-primary,
.btn-outline,
.btn-swarm-report {
  --btn-dark: var(--charcoal);
  --btn-inner: var(--honey-light);
  --btn-inner-border: rgba(255, 255, 255, 0.3);
  --btn-cream: var(--cream);

  display: inline-block;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 1px;
  transform: translate(-4px, -4px);
  outline: 2px solid transparent;
  outline-offset: 5px;
  border-radius: 9999px;
  background-color: var(--btn-dark);
  color: var(--btn-dark);
  text-align: center;
  text-decoration: none;
  border: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow:
    0.5px 0.5px 0 0 var(--btn-dark),
    1px 1px 0 0 var(--btn-dark),
    1.5px 1.5px 0 0 var(--btn-dark),
    2px 2px 0 0 var(--btn-dark),
    2.5px 2.5px 0 0 var(--btn-dark),
    3px 3px 0 0 var(--btn-dark),
    0 0 0 2px var(--btn-cream),
    0.5px 0.5px 0 2px var(--btn-cream),
    1px 1px 0 2px var(--btn-cream),
    1.5px 1.5px 0 2px var(--btn-cream),
    2px 2px 0 2px var(--btn-cream),
    2.5px 2.5px 0 2px var(--btn-cream),
    3px 3px 0 2px var(--btn-cream),
    3.5px 3.5px 0 2px var(--btn-cream),
    4px 4px 0 2px var(--btn-cream);
}
.btn-primary:hover,
.btn-outline:hover,
.btn-swarm-report:hover {
  transform: translate(0, 0);
  box-shadow: 0 0 0 2px var(--btn-cream);
  color: var(--btn-dark);
}
.btn-primary:active,
.btn-primary:focus-visible,
.btn-outline:active,
.btn-outline:focus-visible,
.btn-swarm-report:active,
.btn-swarm-report:focus-visible {
  outline-color: var(--honey);
}
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.btn-swarm-report:focus-visible {
  outline-style: dashed;
}
.btn-primary > div,
.btn-outline > div,
.btn-swarm-report > div {
  position: relative;
  pointer-events: none;
  background-color: var(--btn-inner);
  border: 2px solid var(--btn-inner-border);
  border-radius: 9999px;
}
.btn-primary > div::before,
.btn-outline > div::before,
.btn-swarm-report > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  opacity: 0.5;
  background-image: radial-gradient(rgb(255 255 255 / 80%) 20%, transparent 20%),
    radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  mix-blend-mode: hard-light;
  animation: btn-dots 0.5s infinite linear;
}
.btn-primary > div > span,
.btn-outline > div > span,
.btn-swarm-report > div > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  gap: 0.25rem;
  filter: drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.25));
  color: var(--charcoal);
}
.btn-primary > div > span:active,
.btn-outline > div > span:active,
.btn-swarm-report > div > span:active {
  transform: translateY(2px);
}

@keyframes btn-dots {
  0% { background-position: 0 0, 4px 4px; }
  100% { background-position: 8px 0, 12px 4px; }
}

/* Primary: match nav pill color (#e5a830), black text, honey-light on hover */
.btn-primary {
  --btn-dark: var(--charcoal);
  --btn-inner: #e5a830;
}
.btn-primary > div > span {
  color: #000000;
}
.btn-primary:hover > div {
  background-color: var(--honey-light);
}

/* Outline variant: cream inner, forest text */
.btn-outline {
  --btn-inner: var(--cream);
  --btn-inner-border: rgba(45, 74, 42, 0.4);
}
.btn-outline > div > span {
  color: var(--forest);
}
.btn-outline:hover > div > span {
  color: var(--forest);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  color: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
}

/* Home page hero – full-width top area, image with transparent green overlay */
.hero-home {
  background: none;
  background-color: var(--cream);
  position: relative;
  width: 100%;
  padding: 0;
  min-height: 42vh;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
}
.hero-home-bg {
  position: absolute;
  inset: 0;
  background-color: var(--cream);
  background-image: url('../assets/2BeeKeepers.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(45, 74, 42, 0.4) 0%, rgba(45, 74, 42, 0.55) 100%);
}
.hero-home-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  color: var(--white);
  text-align: center;
  max-width: 720px;
}
.hero-home h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-home p {
  margin: 0;
  opacity: 0.95;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.hero p {
  margin: 0;
  opacity: 0.95;
  font-size: 1.05rem;
}

/* Swarm reporting page – image hero (swarmheroimage.jpg), no green fill */
.hero-swarm {
  background: none;
  position: relative;
  width: 100%;
  padding: 0;
  min-height: 28vh;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
}
.hero-swarm-bg {
  position: absolute;
  inset: 0;
  background-color: var(--cream);
}
.hero-swarm-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-swarm-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hero-swarm-loaded .hero-swarm-bg::after {
  opacity: 1;
}
.hero-swarm .hero-home-content {
  position: relative;
  z-index: 1;
}

/* Events page – image hero (beekeeperevent.jpg only, no green fill) */
.hero-events {
  background: none;
  position: relative;
  width: 100%;
  padding: 0;
  min-height: 28vh;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
}
.hero-events-bg {
  position: absolute;
  inset: 0;
}
.hero-events-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-events-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.hero-events .hero-home-content {
  position: relative;
  z-index: 1;
}

/* About page – image hero (beehivesaboutus.jpg) */
.hero-about {
  background: none;
  position: relative;
  width: 100%;
  padding: 0;
  min-height: 28vh;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
}
.hero-about-bg {
  position: absolute;
  inset: 0;
  background-color: var(--cream);
}
.hero-about-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-about-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.hero-about .hero-home-content {
  position: relative;
  z-index: 1;
}
.page-about {
  padding-top: 0.75rem;
}

/* Swarm reporting page – report flow */
.swarm-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  color: var(--cream);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  text-align: center;
}
.swarm-hero-headline {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--white);
}
.swarm-hero-sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}
.swarm-hero-sub a {
  color: var(--honey-light);
  text-decoration: underline;
}
.swarm-hero-sub a:hover {
  color: var(--white);
}

.swarm-report-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
.swarm-report-grid .swarm-what:only-child {
  max-width: 480px;
}

.swarm-steps {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.swarm-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.swarm-step:last-of-type { margin-bottom: 1.5rem; }
.swarm-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--honey);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swarm-step-body strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--forest);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.swarm-step-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.swarm-cta-box {
  padding-top: 0.5rem;
  border-top: 1px solid var(--cream-dark);
}
.btn-swarm-report {
  display: block;
  width: 100%;
}
.btn-swarm-report > div > span {
  padding: 0.75rem 1.25rem;
  width: 100%;
}
.swarm-powered {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.swarm-powered a {
  color: var(--honey-dark);
  text-decoration: none;
}
.swarm-powered a:hover { text-decoration: underline; }

.swarm-what {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.swarm-what-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--forest);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--honey-light);
}
.swarm-what p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.swarm-what p:last-child { margin-bottom: 0; }

.swarm-powered-inline {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.swarm-powered-inline a {
  color: var(--honey-dark);
  text-decoration: none;
}
.swarm-powered-inline a:hover { text-decoration: underline; }

/* Embedded Swarmed form – stay on site */
.page-swarm-reporting {
  padding-top: 0.75rem;
}
.swarm-embed-section {
  margin-bottom: 2.5rem;
  width: 100%;
  padding: 0;
}
/* Tighter spacing between subtitle and line on swarm reporting page */
.page-swarm-reporting .page-subtitle {
  margin-bottom: 0.5rem;
}
.swarm-embed-header {
  margin-bottom: 0.75rem;
}
.swarm-embed-line {
  display: block;
  height: 0;
  border-bottom: 3px solid var(--honey-light);
  margin-bottom: 0.75rem;
}
.swarm-embed-fallback {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.swarm-embed-fallback a {
  color: var(--honey-dark);
  text-decoration: underline;
}

/* Card with line tracing the edge (rectangle) */
.swarm-embed-card {
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: var(--cream-dark);
  padding: 4px;
}
.swarm-card-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  color: #f7c20c;
}
.swarm-card-border-path {
  stroke-dasharray: 12 88;
  animation: swarm-trace-edge 6s ease-in-out infinite;
}
@keyframes swarm-trace-edge {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -100; }
}

/* Tall iframe so Swarmed can lay out without internal scroll; we clip the bottom to hide EN and extra white */
.swarm-embed-wrap {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  height: 920px;
  -webkit-overflow-scrolling: touch;
}

/* Loader overlay while iframe loads (Uiverse-style) */
.swarm-iframe-loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.swarm-iframe-loader.swarm-loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.swarm-loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}
/* Bee loader – Uiverse.io by anand_4957 */
.swarm-iframe-loader .loader {
  width: 120px;
  aspect-ratio: 1 / 1;
  position: relative;
  container-type: size;
  transform: scaleY(-1);
  transform-style: preserve-3d;
}
.swarm-iframe-loader .loader span {
  width: 90%;
  aspect-ratio: 10 / 2.25;
  position: absolute;
  top: 0%;
  left: 50%;
  translate: -50% 0%;
  border-radius: 50%;
  background: linear-gradient(to bottom, #ffe27a, #ffcc00, #f4b400, #d48a00);
  border: 1px solid #8c5a00;
  box-shadow:
    inset 0 2px 4px #fff2a6,
    inset 0 -3px 6px #c27a00;
  scale: 0.25;
  animation:
    swarm-loader-travel 4.2s calc((-1 * 4.2s) * (var(--idx) / 10)) infinite linear,
    swarm-loader-scaleAnim calc(4.2s * 0.5) calc((-1 * 4.2s) * (var(--idx) / 10)) infinite alternate;
}
@keyframes swarm-loader-scaleAnim {
  0% { opacity: 0; }
  15%, 25% { opacity: 1; }
  100% { opacity: 1; scale: 1; }
}
@keyframes swarm-loader-travel {
  0%, 5% {
    transform: translate3d(0, 0, 0);
    translate: -50% -5%;
  }
  95%, 100% {
    transform: translate3d(0, 0, 10px);
    translate: -50% calc(100cqb - 95%);
  }
}
.swarm-iframe-loader .bee {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  z-index: 10;
  transform: translate(-50%, -50%);
}
.swarm-iframe-loader .bee svg {
  width: 100%;
  height: 100%;
  display: block;
}
.swarm-iframe-loader .bee.b1 { animation: swarm-fly1 9s linear infinite; }
.swarm-iframe-loader .bee.b2 { animation: swarm-fly2 10s linear infinite; }
.swarm-iframe-loader .bee.b3 { animation: swarm-fly3 8s linear infinite; }
.swarm-iframe-loader .bee.b4 { animation: swarm-fly4 8s linear infinite; }
.swarm-iframe-loader .bee.b5 { animation: swarm-fly5 9.5s linear infinite; }
.swarm-iframe-loader .bee.b6 { animation: swarm-fly6 14.2s linear infinite; }
@keyframes swarm-fly1 {
  0% { transform: translate(-50%, -50%) translate(-50px, -40px); }
  20% { transform: translate(-50%, -50%) translate(40px, -40px); }
  40% { transform: translate(-50%, -50%) translate(100px, 20px); }
  60% { transform: translate(-50%, -50%) translate(-60px, 80px); }
  80% { transform: translate(-50%, -50%) translate(-90px, 0); }
  100% { transform: translate(-50%, -50%) translate(-40px, -40px); }
}
@keyframes swarm-fly2 {
  0% { transform: translate(-50%, -50%) translate(60px, 0); }
  25% { transform: translate(-50%, -50%) translate(-80px, -50px); }
  50% { transform: translate(-50%, -50%) translate(-40px, 90px); }
  75% { transform: translate(-50%, -50%) translate(90px, 40px); }
  100% { transform: translate(-50%, -50%) translate(60px, 0); }
}
@keyframes swarm-fly3 {
  0% { transform: translate(-50%, -50%) translate(0, -60px); }
  20% { transform: translate(-50%, -50%) translate(80px, -20px); }
  40% { transform: translate(-50%, -50%) translate(40px, 60px); }
  60% { transform: translate(-50%, -50%) translate(-60px, 40px); }
  80% { transform: translate(-50%, -50%) translate(-20px, -60px); }
  100% { transform: translate(-50%, -50%) translate(0, -80px); }
}
@keyframes swarm-fly4 {
  0% { transform: translate(-50%, -50%) translate(-50px, 10px); }
  25% { transform: translate(-50%, -50%) translate(30px, -60px); }
  50% { transform: translate(-50%, -50%) translate(60px, 40px); }
  75% { transform: translate(-50%, -50%) translate(-40px, 90px); }
  100% { transform: translate(-50%, -50%) translate(-70px, 10px); }
}
@keyframes swarm-fly5 {
  0% { transform: translate(-50%, -50%) translate(50px, -50px); }
  25% { transform: translate(-50%, -50%) translate(-100px, 20px); }
  50% { transform: translate(-50%, -50%) translate(80px, 80px); }
  75% { transform: translate(-50%, -50%) translate(-60px, -20px); }
  100% { transform: translate(-50%, -50%) translate(50px, -50px); }
}
@keyframes swarm-fly6 {
  0% { transform: translate(-50%, -50%) translate(-20px, 60px); }
  20% { transform: translate(-50%, -50%) translate(90px, -40px); }
  40% { transform: translate(-50%, -50%) translate(-80px, -70px); }
  60% { transform: translate(-50%, -50%) translate(40px, 90px); }
  80% { transform: translate(-50%, -50%) translate(100px, 10px); }
  100% { transform: translate(-50%, -50%) translate(-20px, 60px); }
}

.swarm-iframe {
  display: block;
  width: 100%;
  height: 1150px;
  border: none;
  margin-top: 0;
}
.swarm-embed-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.swarm-embed-section .swarm-powered {
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Swarm embed – mobile */
@media (max-width: 767px) {
  .swarm-embed-section {
    margin-bottom: 2rem;
  }
  .swarm-embed-card {
    margin-bottom: 1.25rem;
  }
  .swarm-embed-footer {
    margin-top: 1.25rem;
  }
  .swarm-embed-fallback {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  .swarm-embed-fallback a {
    padding: 0.25em 0;
    display: inline-block;
    min-height: 44px;
    line-height: 1.4;
    margin-top: 0.25rem;
  }
  .swarm-embed-wrap {
    height: 850px;
    border-radius: calc(var(--radius) - 2px);
  }
  .swarm-iframe {
    height: 1080px;
  }
}
@media (max-width: 480px) {
  .swarm-embed-card {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-bottom: 1.5rem;
    width: calc(100% + 1.5rem);
    max-width: none;
    border-radius: 0;
    padding: 3px;
  }
  .swarm-embed-footer {
    margin-top: 1.5rem;
  }
  .swarm-embed-wrap {
    border-radius: 0;
    height: 810px;
  }
  .swarm-iframe {
    height: 1030px;
  }
}

/* Members gate – two-panel login (CodingNepal-style) */
.members-gate {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}
.members-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(201, 138, 46, 0.55);
  pointer-events: none;
}
.members-gate-popup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: 0;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  overflow: visible;
}
.members-gate-popup-inner {
  position: relative;
  z-index: 1;
  display: flex;
  background: var(--white);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  box-shadow: 4px 4px var(--honey-dark);
}
.members-gate-details {
  width: 100%;
  max-width: 330px;
  padding: 2.5rem 2rem;
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: url('../assets/loginbee.jpg') center / cover no-repeat;
}
.members-gate-details::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 74, 42, 0.5);
  pointer-events: none;
}
.members-gate-details h2,
.members-gate-details p {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.members-gate-details h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.members-gate-details p {
  font-size: 0.95rem;
  opacity: 0.95;
  margin: 0;
  line-height: 1.5;
}
.members-gate-form-wrap {
  width: 100%;
  padding: 2.25rem 2rem;
  background: var(--white);
}
.members-gate-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
  text-align: center;
  margin: 0 0 1.25rem;
}
.members-gate form {
  margin: 0;
}
.members-gate-input-field {
  position: relative;
  height: 52px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.members-gate-input-field input[type="password"],
.members-gate-input-field input[type="text"] {
  height: 100%;
  width: 100%;
  background: var(--cream);
  outline: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0 15px;
  padding-right: 52px;
  border: 2px solid var(--honey-dark);
  border-radius: 9999px;
  color: var(--charcoal);
  box-shadow: 4px 4px var(--honey-dark);
  transition: border-color var(--transition), box-shadow 0.2s ease;
}
.members-gate-input-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.members-gate-input-field input:focus {
  border-color: var(--honey);
  box-shadow: 4px 4px var(--honey-dark), 0 0 0 2px rgba(201, 138, 46, 0.25);
}
.members-gate-input-field input:is(:focus, :valid) {
  padding-top: 18px;
}
.members-gate-input-field label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
  font-size: 0.95rem;
}
.members-gate-input-field input:is(:focus, :valid) ~ label {
  transform: translateY(-120%);
  color: var(--honey);
  font-size: 0.75rem;
}
.members-gate-show {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  letter-spacing: 0.03em;
  display: none;
}
.members-gate-pass-key:valid ~ .members-gate-show {
  display: block;
}
.members-gate-show-visible {
  color: var(--forest);
}
.members-gate-error {
  color: #c62828;
  font-size: 0.9rem;
  margin: 0.25rem 0 0.75rem;
  text-align: left;
}
.members-gate-error.hidden {
  margin: 0;
}
.members-gate form button.btn {
  display: block;
  width: 100%;
  margin: 0.75rem 0 0;
}
.members-gate form button.btn > div > span {
  width: 100%;
  padding: 0.75rem 1.25rem;
  justify-content: center;
}
.members-gate-hint {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.members-gate .content-section { margin-bottom: 0; }

@media (max-width: 760px) {
  .members-gate-popup {
    max-width: 95%;
  }
  .members-gate-details {
    display: none;
  }
  .members-gate-form-wrap {
    padding: 2rem 1.5rem;
  }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-item p {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
}
.gallery-item code { font-size: 0.8rem; }

/* Gallery hero: skewed infinite marquee (inspired by CSS-only marquee pattern) */
.gallery-hero {
  margin: 1.5rem 0 2rem;
  position: relative;
}
.gallery-marquee-stack {
  --gallery-marquee-space: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--gallery-marquee-space);
}
.gallery-hero .marquee {
  --duration: 60s;
  --gap: var(--gallery-marquee-space);
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  transform: skewY(-3deg);
}
.gallery-hero .marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: gallery-marquee-scroll var(--duration) linear infinite;
}
.gallery-hero .marquee:hover .marquee__group,
.gallery-hero .marquee:focus-within .marquee__group {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-hero .marquee__group {
    animation-play-state: paused;
  }
}
.gallery-hero .marquee__group img {
  max-width: clamp(10rem, 1rem + 28vmin, 20rem);
  width: auto;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.gallery-hero .marquee__group p {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  background-image: linear-gradient(
    75deg,
    var(--forest) 0%,
    var(--forest-soft) 22%,
    var(--honey-dark) 48%,
    var(--honey) 72%,
    var(--honey-light) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gallery-hero .marquee--borders {
  border-block: 3px solid var(--forest);
  padding-block: 0.75rem;
}
.gallery-hero .marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: calc(var(--duration) / -2);
}
@keyframes gallery-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

/* Marquee thumbnails open the member lightbox */
main .gallery-hero .marquee img {
  cursor: zoom-in;
}

.gallery-footer-note {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Member gallery lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-lightbox.gallery-lightbox-open {
  display: flex;
}
.gallery-lightbox-inner {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gallery-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.gallery-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.7);
}
.gallery-lightbox-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--honey);
}
.gallery-lightbox-title {
  padding: 1rem 1rem 0;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--forest);
}
.gallery-lightbox-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
}
.gallery-lightbox-prev { left: 0.5rem; }
.gallery-lightbox-next { right: 0.5rem; }
.gallery-lightbox-prev:focus,
.gallery-lightbox-next:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--honey);
}
.gallery-lightbox-caption {
  padding: 0.75rem 1rem 1rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

/* Floating bee (home page) */
.bee-float {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  width: 48px;
  height: 48px;
  transition: left 10s linear, top 10s linear;
}
.bee-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Contact section (full-width dark block) */
.contact-section {
  background: var(--forest);
  color: var(--cream);
  padding: 3rem 1.5rem;
  border-top: 4px solid var(--honey);
  margin-top: 0;
}
.contact-inner {
  max-width: 960px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.contact-surtitle {
  font-size: 0.95rem;
  color: var(--honey-light);
  margin: 0 0 0.5rem;
}
.contact-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--cream);
}
.contact-desc {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
.contact-desc a {
  color: var(--honey-light);
  text-decoration: none;
}
.contact-desc a:hover {
  text-decoration: underline;
  color: var(--cream);
}
.contact-icon-box {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-icon-box:last-child {
  border-bottom: none;
}
.contact-icon-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  flex-shrink: 0;
  stroke: var(--honey-light);
}
.contact-icon-text {
  flex: 1;
}
.contact-icon-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 0.25rem;
}
.contact-icon-p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.contact-link {
  color: var(--honey-light);
  text-decoration: none;
}
.contact-link:hover {
  text-decoration: underline;
  color: var(--cream);
}
.contact-form-card {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.contact-form-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--charcoal);
}
.contact-form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}
.contact-section .form-group { margin-bottom: 1rem; }
.contact-section .form-group input,
.contact-section .form-group textarea {
  max-width: none;
}
/* Footer – centered layout (Colorlib-style) */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
  text-align: center;
}
.site-footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.site-footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}
.site-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.site-footer-nav a {
  color: rgba(250, 246, 239, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer-nav a:hover {
  color: var(--honey-light);
  text-decoration: underline;
}
.site-footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.site-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--honey-light);
  color: var(--cream);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.site-footer-social a:hover {
  background: var(--honey-light);
  border-color: var(--honey-light);
  color: var(--forest);
}
.site-footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.site-footer-copy {
  font-size: 0.8rem;
  color: rgba(250, 246, 239, 0.8);
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.site-footer-copy a {
  color: var(--honey-light);
  text-decoration: none;
}
.site-footer-copy a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* Forms (for Swarm Reporting / Members) */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--white);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(201, 138, 46, 0.2);
}

/* Events page */
.events-page {
  padding-top: 0.75rem;
}
.events-page .content-section { margin-bottom: 2.5rem; }
.events-page .content-section:first-of-type { margin-top: 0; }
.events-when-where {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.events-when-where h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  padding-bottom: 0.15rem;
}
.events-when-where .events-section-intro.events-lead {
  margin-bottom: 0.4rem;
}
.events-when-where .calendar-click-hint {
  margin-bottom: 0.5rem;
}
.events-when-where .page-title {
  margin-top: 0;
  margin-bottom: 0.25rem;
}
.events-when-where .page-subtitle {
  margin-bottom: 0.25rem;
}
.events-when-where .page-subtitle-year {
  margin-bottom: 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--honey-light);
  margin-bottom: 1rem;
}
.events-lead { margin-bottom: 1.25rem; }
.meeting-calendar-wrap { margin: 1rem 0; }
.calendar-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.events-location {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}
.events-location a { color: var(--honey-dark); font-weight: 500; }
.events-location a:hover { text-decoration: underline; }
.events-other { margin-top: 1rem; margin-bottom: 0; }
.events-section-intro { margin-bottom: 1rem; }
.events-more { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.75rem; margin-bottom: 0; }
.event-list-past .date { font-style: italic; }
.calendar-click-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

/* Event tiles grid: half image, half solid color with text (museum-style) */
.event-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 0;
  list-style: none;
  padding: 0;
}
.event-tile {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 180px;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}
.event-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(45, 74, 42, 0.12);
}
.event-tile:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--honey);
  transition: transform 0.3s ease, box-shadow 0.2s ease;
}
.event-tile.event-tile-past {
  display: none !important;
}
.event-tile-image-wrap {
  position: relative;
  min-height: 0;
  background: var(--cream-dark);
  overflow: hidden;
}
.event-tile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.event-tile:hover .event-tile-image-wrap img {
  transform: scale(1.08);
}
.event-tile-info {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 5px 0.6rem;
  background: var(--forest);
  color: var(--white);
}
.event-tile-beesnbrew .event-tile-info {
  background: #d4a34b;
  color: var(--charcoal);
}
.event-tile-beesnbrew .event-tile-time::before {
  filter: brightness(0);
  opacity: 0.85;
}
.event-tile-beesnbrew .event-tile-category {
  opacity: 0.85;
}
.event-tile-beesnbrew .event-tile-time::before {
  opacity: 0.85;
}
.event-tile-date {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  border-radius: 4px;
  letter-spacing: 0.02em;
  display: inline-block;
  height: fit-content;
}
.event-tile-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.15rem;
}
.event-tile-info .event-tile-category {
  color: var(--honey);
  opacity: 1;
}
.event-tile-info .event-tile-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  line-height: 1.2;
  color: #fff;
}
.event-tile-info .event-tile-location,
.event-tile-info .event-tile-time {
  font-size: 0.88rem;
  margin: 0 0 0.2rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.95);
}
.event-tile-info .event-tile-time {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.event-tile-beesnbrew .event-tile-info .event-tile-category {
  color: var(--honey-dark);
}
.event-tile-beesnbrew .event-tile-info .event-tile-title,
.event-tile-beesnbrew .event-tile-info .event-tile-location,
.event-tile-beesnbrew .event-tile-info .event-tile-time {
  color: #1a1a1a;
}
.event-tile-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.event-tile-location {
  font-size: 0.88rem;
  margin: 0 0 0.2rem;
  line-height: 1.25;
}
.event-tile-time {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.event-tile-time::before {
  content: '';
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  /* SVG uses white stroke to match text on green background */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.9;
}
.meeting-calendar {
  margin: 0;
}

/* Clickable event list cards */
.event-list-clickable .event-card {
  cursor: pointer;
  transition: box-shadow var(--transition), border-left-color var(--transition);
}
.event-list-clickable .event-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-left-color: var(--forest);
}

/* Event detail modal */
.event-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}
.event-modal-overlay.event-modal-open {
  display: flex;
}
.event-modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
}
.event-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--charcoal);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.event-modal-close:hover {
  background: var(--cream);
}
.event-modal-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--honey);
}
.event-modal-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
}
.event-modal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--forest);
  margin: 0 0 0.75rem;
}
.event-modal-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 1.25rem;
}
.event-modal-when,
.event-modal-where {
  margin-bottom: 1rem;
}
.event-modal-when strong,
.event-modal-where strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.event-modal-when p,
.event-modal-where p {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.event-modal-link {
  font-size: 0.95rem;
  color: var(--honey-dark);
  font-weight: 500;
  text-decoration: none;
}
.event-modal-link:hover {
  text-decoration: underline;
}
.event-modal-map {
  margin-top: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
}
.event-modal-map iframe {
  display: block;
  vertical-align: middle;
}
@media (max-width: 380px) {
  .meeting-calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .meeting-calendar-cell:nth-child(3n) { border-right: 1px solid var(--cream-dark); }
  .meeting-calendar-cell:nth-child(2n) { border-right: none; }
  .meeting-calendar-cell:nth-child(n+7) { border-bottom: 1px solid var(--cream-dark); }
  .meeting-calendar-cell:nth-child(n+9) { border-bottom: none; }
}

/* Events list */
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--honey);
}
.event-list strong { color: var(--forest); }
.event-list .date { color: var(--text-muted); font-size: 0.9rem; }

/* Events page — member gallery CTA (replaces past-events grid) */
.gallery-cta-card {
  margin-top: 1rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 2px solid var(--honey-dark);
  box-shadow: 4px 4px var(--honey-dark);
}
.gallery-cta-card-text {
  margin: 0;
  line-height: 1.55;
  color: var(--text);
}
.gallery-cta-card-text a {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .page-title { font-size: 1.75rem; }
  .card-grid { grid-template-columns: 1fr; }
}
