/*
  IMAGE GUIDANCE (for content editors):
  - Use WebP format for all photos. Include a JPEG fallback using <picture>:

    <picture>
      <source srcset="images/photo.webp" type="image/webp">
      <img src="images/photo.jpg" alt="Description" width="800" height="533" loading="lazy">
    </picture>

  - Always specify width and height attributes to prevent layout shift (CLS).
  - Use loading="lazy" on all images below the fold.
  - Compress images before uploading: target < 200KB per image.
  - Recommended tool: squoosh.app (free, browser-based)
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* ── Brand Colors (Anoka County Color Standards) ────────────────────────── */
  --color-primary:      #904026;  /* AC Burnt Umber — buttons, headings, accents */
  --color-primary-dark: #6A3222;  /* Liver — hover states on primary */
  --color-secondary:    #5B5248;  /* Umber — body text, secondary elements */
  --color-warm:         #BC5839;  /* Crayola Brown — warm accents */
  --color-teal:         #415C5C;  /* Feldgrau — nav, card section bands */
  --color-teal-light:   #6F9191;  /* Desaturated Cyan — teal hover states */
  --color-seaweed:      #137C7D;  /* Metallic Seaweed — links, icon accents */
  --color-sky:          #CFE1E0;  /* Columbia Blue — alt section bg, placeholders */
  --color-bg:           #F8F5EC;  /* Isabelline — page background */
  --color-dark:         #262626;  /* Raisin Black — header, footer */
  --color-text:         #422E1D;  /* Deep brown — body text */
  --color-text-muted:   #6B5B4F;  /* Warm brown — muted text (≥4.5:1 on --color-bg) */
  --color-border:       #ddd8d0;  /* Neutral warm border */
  --color-focus:        #ECE331;  /* Yellow — high-contrast focus ring (WCAG AA) */

  /* ── Backward-compat aliases (used by existing component CSS) ────────────── */
  --color-accent:       var(--color-primary);      /* backward-compat alias — removed in Tasks 2–4 */
  --color-accent-dark:  var(--color-primary-dark);  /* backward-compat alias — removed in Tasks 2–4 */

  /* ── Typography (update @import in HTML if font names change) ────────────── */
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body:    'Poppins', Arial, Helvetica, sans-serif;
  --font-serif:   'Merriweather', Georgia, serif;  /* pull quotes, editorial */

  /* ── Scale & Spacing (unchanged) ─────────────────────────────────────────── */
  --font-size-sm:  0.875rem;
  --font-size-md:  1rem;
  --font-size-lg:  1.25rem;
  --font-size-xl:  1.75rem;
  --font-size-2xl: 2.5rem;
  --line-height:   1.65;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;

  --max-width:  1100px;
  --nav-height: 64px;
  --radius:     4px;
  --radius-lg:  8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--color-seaweed);
  text-decoration: none;
}

a:hover {
  color: var(--color-teal);
}

/* Expanding underline — content links only (not buttons, nav, footer) */
main a:not(.btn):not(.nav-logo):not([class^="card"]):not([class^="events-strip"]):not([class^="donate-fab"]) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease, color 0.15s;
}

main a:not(.btn):not(.nav-logo):not([class^="card"]):not([class^="events-strip"]):not([class^="donate-fab"]):hover {
  background-size: 100% 2px;
}

/* Visible focus ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

.prose-list {
  padding-inline-start: var(--space-lg);
  margin-block: var(--space-md);
}

.prose-list li {
  margin-bottom: var(--space-sm);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--font-size-lg); margin-bottom: var(--space-sm); }

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

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

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

.section--flush-bottom {
  padding-block-end: 0;
}

.section--alt {
  background: var(--color-sky);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* Links on --color-sky background need higher contrast than seaweed provides */
.section--alt a:not(.btn) {
  color: var(--color-teal);  /* #415C5C — 5.1:1 on #CFE1E0 (passes WCAG AA) */
}

.section--alt a:not(.btn):hover {
  color: var(--color-primary-dark);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* Image-left / copy-right two-column row */
.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

/* Copy-left / image-right variant */
.media-row--reverse {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.media-row img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .media-row,
  .media-row--reverse { grid-template-columns: 1fr; }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

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

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

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

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-primary);
  color: #fff;
}

/* Hero outline — cream border/text for use on dark backgrounds */
.btn--hero-outline {
  background: transparent;
  color: var(--color-bg);
  border: 2px solid var(--color-bg);
}

.btn--hero-outline:hover,
.btn--hero-outline:focus-visible {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* Cream — for use on primary-colored backgrounds */
.btn--cream {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-bg);
  font-family: var(--font-heading);
  font-weight: 700;
}

.btn--cream:hover,
.btn--cream:focus-visible {
  background: white;
  border-color: white;
  color: var(--color-primary);
}

/* =============================================
   SKIP TO MAIN (accessibility)
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-sky);
  text-decoration: none;
}

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

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: white;
}

@media (max-width: 767px) {
  .nav-logo-text {
    white-space: normal;
    font-size: var(--font-size-sm);
    max-width: 14ch;
  }
}

/* Wrapper around the <ul> nav items and the donate CTA. On desktop they sit
   in a row inside the header; on mobile this becomes the dropdown panel. */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a,
.nav-menu .nav-donate {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
  color: var(--color-sky);
  padding: 0.625rem var(--space-md);  /* horizontal padding replaces gap so hover zones are contiguous */
  border-radius: var(--radius);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:not(.nav-donate)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
  transition: left 0.22s ease, right 0.22s ease;
}

.nav-links a:not(.nav-donate):hover,
.nav-links a:not(.nav-donate)[aria-current="page"] {
  color: #fff;
}

.nav-links a:not(.nav-donate):hover::after,
.nav-links a:not(.nav-donate)[aria-current="page"]::after {
  left: var(--space-md);
  right: var(--space-md);
}

/* When another nav link is hovered, un-highlight the current page indicator */
.nav-links:has(a:not([aria-current="page"]):hover) a:not(.nav-donate)[aria-current="page"] {
  color: rgba(255, 255, 255, 0.6);
}

.nav-links:has(a:not([aria-current="page"]):hover) a:not(.nav-donate)[aria-current="page"]::after {
  left: 50%;
  right: 50%;
}

/* Donate link styled as button — cream on primary header */
.nav-menu .nav-donate {
  background: var(--color-bg);
  color: var(--color-primary);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  margin-left: var(--space-md);
  text-decoration: none;
}

.nav-menu .nav-donate:hover {
  background: white;
  color: var(--color-primary-dark);
}

/* Keep donate button text primary when on donate page */
.nav-menu .nav-donate[aria-current="page"] {
  color: var(--color-primary);
  text-decoration: none;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bg);  /* #F8F5EC — high contrast on --color-primary header */
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hamburger open state */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  /* The wrapper becomes the absolute-positioned dropdown panel */
  .nav-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-primary-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: var(--space-md) var(--space-lg) calc(var(--space-md) + 12px);
    /* Hidden state — closing transition uses ease-in (fast end) */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.4s ease-in,
                visibility 0s linear 0.4s;
  }

  .nav-menu.is-open {
    /* Opening transition uses ease-out (fast start) */
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.4s ease-out,
                visibility 0s linear 0s;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }

  /* Staggered item reveal — only on open, no reverse animation */
  .nav-menu.is-open li,
  .nav-menu.is-open .nav-donate {
    animation: navItemIn 0.25s ease-out both;
  }

  .nav-menu.is-open li:nth-child(1) { animation-delay: 0.06s; }
  .nav-menu.is-open li:nth-child(2) { animation-delay: 0.10s; }
  .nav-menu.is-open li:nth-child(3) { animation-delay: 0.14s; }
  .nav-menu.is-open li:nth-child(4) { animation-delay: 0.18s; }
  .nav-menu.is-open li:nth-child(5) { animation-delay: 0.22s; }
  .nav-menu.is-open li:nth-child(6) { animation-delay: 0.26s; }
  .nav-menu.is-open li:nth-child(7) { animation-delay: 0.30s; }
  .nav-menu.is-open .nav-donate    { animation-delay: 0.30s; }

  @keyframes navItemIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .nav-links a {
    width: 100%;
    padding: var(--space-sm) 0;
  }

  /* Nav link ::after underline doesn't make sense stacked — remove it */
  .nav-links a::after {
    display: none;
  }

  .nav-menu .nav-donate {
    margin-left: 0;
    margin-top: 10px;
    padding: 0.5rem 1rem;
    align-self: flex-start;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-dark);
  color: var(--color-sky);
  padding-block: var(--space-xl);
}

.site-footer a {
  color: var(--color-sky);
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.footer-copyright {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: var(--font-size-sm);
}

.footer-nav,
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-contact {
  margin-top: 0.5rem;
}

.footer-address {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.footer-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0.85;
  max-width: 28ch;
}

.footer-nav a {
  display: block;
  padding-block: 0.625rem;  /* 10px vertical → ~44px tap target (WCAG 2.5.5) */
}

.footer-nav li:first-child a {
  padding-top: 0;
}

.footer-contact li {
  padding-block: 0.625rem;
}

.footer-contact li:first-child {
  padding-top: 0;
}

.footer-contact a {
  display: block;
}

.footer-links {
  list-style: none;
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
}

.footer-links svg {
  display: block;
}

@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   CARDS (blog posts, volunteer opportunities)
   ============================================= */
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card__date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card__title a {
  color: var(--color-primary);
  text-decoration: none;
}

.card__title a:hover {
  color: var(--color-primary-dark);
}

.card__excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero__logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto var(--space-xl);
}

.hero {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-dark) 100%);
  color: #fff;
  padding: 3rem 0 6rem;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sky);
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-bg);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero > .container > p {
  color: var(--color-sky);
  font-size: var(--font-size-lg);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

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

/* =============================================
   MEMBERSHIP TIERS
   ============================================= */
.tier-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.tier {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.tier--featured {
  border-color: var(--color-primary);
}

.tier__price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-block: var(--space-sm);
}

.tier__benefits,
.tier__perks {
  list-style: none;
  margin-bottom: var(--space-lg);
  text-align: left;
}

.tier__benefits li::before,
.tier__perks li::before {
  content: "✓ ";
  color: var(--color-primary);
  font-weight: 700;
}

/* =============================================
   BLOG
   ============================================= */
.news-post__header {
  margin-bottom: var(--space-lg);
}

.news-post__meta {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.news-post__body {
  max-width: 100%;
}

.news-post__body h2 { margin-top: var(--space-lg); }
.news-post__body h3 { margin-top: var(--space-md); }
.news-post__body ul,
.news-post__body ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.pagination {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  padding-top: var(--space-lg);
}

.pagination a,
.pagination span {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
}

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* =============================================
   GOOGLE CALENDAR EMBED
   ============================================= */
.calendar-wrapper {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 720px;
  margin-inline: auto;
}

.calendar-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   VOLUNTEER OPPORTUNITIES
   ============================================= */
.volunteer-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.volunteer-card__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.volunteer-card__cta {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .volunteer-card {
    flex-direction: column;
  }
}

/* =============================================
   DONATE PAGE
   ============================================= */
.donate-section {
  text-align: center;
  padding-block: var(--space-xl);
}

[data-page="donate"] .section {
  padding-block-start: var(--space-sm);
  padding-block-end: var(--space-md);
}

[data-page="donate"] .donate-section {
  padding-block: var(--space-md);
}

.btn--paypal {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-lg);
  padding: 1rem 2.5rem;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s, border-color 0.15s;
}

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

.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.donate-address {
  font-style: normal;
  line-height: 1.6;
  margin-block: var(--space-sm);
}

/* =============================================
   PAGE BANNER (inner pages)
   ============================================= */
.page-banner {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-dark) 100%);
  padding-block: 3rem;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-bg);
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.page-banner__subtitle {
  color: var(--color-sky);
  font-size: var(--font-size-md);
  margin: 0;
}

.page-banner__cta {
  margin: 1.25rem 0 0;
}

.page-banner__cta .btn {
  display: inline-block;
}

/* =============================================
   EVENTS STRIP (homepage)
   ============================================= */
.events-strip {
  background: var(--color-bg);
}

.events-strip h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.event-list {
  list-style: none;
}

.event-item {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.event-item:first-child {
  border-top: 1px solid var(--color-border);
}

.event-date {
  flex-shrink: 0;
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  min-width: 52px;
  font-family: var(--font-heading);
}

.event-date__month {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.event-date__day {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-xs);
}

.event-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.events-strip__link {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-seaweed);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-sm);
  text-decoration: none;
}

.events-strip__link:hover {
  color: var(--color-teal);
}

/* =============================================
   TEAL NEWS SECTION (homepage latest news)
   ============================================= */
.section--teal {
  background: var(--color-teal);
}

.section--teal h2 {
  color: var(--color-bg);
}

.section--teal .card {
  background: white;
}

/* =============================================
   CTA BAND (homepage join section)
   ============================================= */
.cta-band {
  background: var(--color-primary);
  text-align: center;
  padding-block: var(--space-xl);
}

.cta-band h2 {
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta-band p {
  color: var(--color-sky);
  margin-bottom: var(--space-lg);
  max-width: 560px;
  margin-inline: auto;
}

.cta-band__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FLOATING DONATE BUTTON
   ============================================= */
.donate-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0 1.5rem;
  height: 56px;           /* WCAG 2.5.5: minimum 44px tap target */
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.02em;
}

.donate-fab:hover,
.donate-fab:focus-visible {
  background: var(--color-primary-dark);
  color: #fff;
  transform: scale(1.05);
}

/* =============================================
   MOBILE LAYOUT TWEAKS
   ============================================= */
@media (max-width: 767px) {
  /* Footer: tighter link tap targets on mobile to reduce vertical bulk */
  .footer-nav a,
  .footer-contact a {
    padding-block: 0.375rem;
  }

  /* Footer: stack columns on mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* CTA band: stack and center buttons on mobile */
  .cta-band__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* =============================================
   UTILITIES (replace inline styles so CSP can stay strict)
   ============================================= */
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }

.text-small { font-size: 0.875rem; }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }

/* Responsive figure image with rounded corners */
.figure-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.figure-img--sm {
  max-width: 560px;
  display: block;
  margin-inline: auto;
}

/* Large CTA button variant */
.btn--lg {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
}

/* =============================================
   CONTAINER VARIANTS
   ============================================= */
.container--narrow {
  max-width: 720px;
}

/* =============================================
   TIER LIST MODIFIERS
   ============================================= */
.tier-list--narrow {
  max-width: 50%;
  min-width: 280px;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .tier-list--narrow {
    max-width: 100%;
  }
}

/* =============================================
   BOARD MEMBER ROW
   ============================================= */
.board-member {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.board-member__photo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.board-member__content {
  flex: 1;
  min-width: 16rem;
}

.board-member__name {
  font-size: 1.1rem;
}

/* =============================================
   EVENT LOCATION (list items with pin icon)
   ============================================= */
.event-location {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.event-location__icon {
  vertical-align: -1px;
  margin-right: 3px;
  flex-shrink: 0;
}

/* =============================================
   EVENTS PAGE HEADING
   ============================================= */
.events-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

/* =============================================
   VOLUNTEER CARD CONTACT LINE
   ============================================= */
.volunteer-card__contact {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* =============================================
   PAST VOLUNTEER OPPORTUNITIES
   ============================================= */
.past-opps {
  margin-top: 2rem;
}

.past-opps__summary {
  cursor: pointer;
  font-weight: 600;
}

.past-opps__list {
  margin-top: 1rem;
  opacity: 0.75;
}

/* =============================================
   DONATE PAGE NOTE
   ============================================= */
.donate-note {
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* =============================================
   GALA PAGE
   ============================================= */
.gala-hero-img {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-lg);
}

.event-details-card {
  background: white;
  border: 2px solid var(--color-teal, #415c5c);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 4px 16px rgba(65, 92, 92, 0.12);
  margin: var(--space-lg) 0;
}

.event-details-card h2 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.gala-ticket-cta {
  margin-top: var(--space-md);
}

@media (max-width: 640px) {
  .gala-cta {
    text-align: center;
  }
}

.author-entry {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  align-items: flex-start;
}

.author-entry__photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.author-entry p {
  margin: 0;
}

@media (max-width: 640px) {
  .author-entry {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  .author-entry__photo {
    width: 60%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* Sponsorship levels & benefits table (gala page) */
.sponsor-table-wrap {
  margin: var(--space-lg) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.sponsor-table-wrap:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.sponsor-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  min-width: 640px;
}

/* Visually hide the table caption + first-column header label (kept for SR users) */
.sponsor-table__caption,
.sponsor-table > caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sponsor-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  vertical-align: middle;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.sponsor-table thead th:last-child {
  border-right: none;
}

.sponsor-table__name {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
}

.sponsor-table__price {
  display: block;
  font-weight: 400;
  font-size: 0.85em;
  margin-top: 2px;
  opacity: 0.95;
}

.sponsor-table tbody th {
  text-align: left;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-text);
  padding: var(--space-md);
  background: white;
  border-top: 1px solid var(--color-border);
  vertical-align: middle;
  min-width: 11rem;
}

.sponsor-table tbody td {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  vertical-align: middle;
  color: var(--color-text);
  font-weight: 500;
}

.sponsor-table tbody tr:first-child td {
  border-top: none;
}

.sponsor-table .t--1 { background: #D7E7E3; }
.sponsor-table .t--2 { background: #A8C7C2; }
.sponsor-table .t--3 { background: #7CA59E; }
.sponsor-table .t--4 { background: #5C8580; color: #fff; }

@media (max-width: 640px) {
  /* Break the table out of the .container padding so it spans the full viewport */
  .sponsor-table-wrap {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Fixed layout: first column 25%, four tier columns share the remaining 75% */
  .sponsor-table {
    table-layout: fixed;
  }

  .sponsor-table thead th,
  .sponsor-table tbody td {
    width: 18.75%;
  }

  .sponsor-table thead th:first-child,
  .sponsor-table tbody th {
    width: 25%;
    min-width: 0;
    padding: var(--space-sm);
  }
}

.sponsor-tier {
  border-left: 4px solid var(--color-teal, #415c5c);
  padding-left: var(--space-md);
  margin-bottom: var(--space-xl);
}

.sponsor-tier h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.sponsor-tier ul {
  padding-left: 1.25rem;
  margin: var(--space-sm) 0;
}

.sponsor-tier ul li {
  margin-bottom: 0.35rem;
}

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