@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Nunito:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Regarn';
  src: url('fonts/Regarn-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NexaRust';
  src: url('fonts/NexaRustSans-Trial-BlackShadow1.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DreamAvenue';
  src: url('fonts/Dream Avenue Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SimpleNotes';
  src: url('fonts/SimpleNotes-FreeDemo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheStoryline';
  src: url('fonts/the storyline.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-primary: #15563A;
  --green-light: #EAF3EC;
  --grey-muted: #E5E7EB;
  --accent: #F5C451;
  --text-main: #111827;
  --text-muted: #4B5563;
  --bg-main: #F9FAFB;
  --white: #FFFFFF;

  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
  --mobile-pad: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
}

/* Layout helpers */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-muted);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.3s ease;
}

.site-header--scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  transition: padding 0.3s ease;
}

.site-header--scrolled .site-header-inner {
  padding: 0.45rem 0;
}

.site-logo {
  display: flex;
  flex-direction: column;
}

.site-logo a {
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.site-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Logo image */
.site-logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  display: block;
  transition: height 0.3s ease;
}

.site-header--scrolled .site-logo-img {
  height: 36px;
}

@media (max-width: 700px) {
  .site-logo-img {
    height: 44px;
    max-width: 220px;
  }
}

/* ===== NAV: Desktop bubbles (default) ===== */

.site-nav .nav-desktop {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

/* Hover bubble */
.site-nav a:hover {
  background: var(--green-light);
  color: var(--green-primary);
}

/* Active bubble */
.site-nav a.active {
  background: var(--green-primary);
  color: var(--white);
}

/* CTA (Get Involved) stays square-ish on desktop */
.site-nav a.nav-cta {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
  border-radius: 0.4rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.site-nav a.nav-cta:hover {
  background: var(--green-light);
  color: var(--green-primary);
}

.site-nav a.nav-cta.active {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

/* ===== NAV: Mobile hamburger + overlay ===== */

/* Desktop: hide hamburger */
.nav-mobile { display: none; }

@media (max-width: 700px) {
  /* Header layout: logo left, hamburger right */
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .site-subtitle {
    display: none;
  }

  /* Hide desktop UL, show hamburger */
  .site-nav .nav-desktop { display: none; }
  .nav-mobile { display: block; }

  /* Make details act as anchor for dropdown */
  .site-nav details.nav-mobile {
    position: relative;
    z-index: 999;
    margin-left: auto;
  }

  /* Hamburger button */
  .nav-toggle {
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 40px;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    display: grid;
    place-items: center;
    user-select: none;
    position: relative;
    /* Middle bar drawn via background */
    background-image: linear-gradient(currentColor, currentColor);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 2px;
    transition: background-size 0.25s cubic-bezier(.4,0,.2,1),
                border-color 0.2s ease;
  }

  .nav-toggle::-webkit-details-marker { display: none; }
  .nav-toggle::marker { content: ""; }

  /* Top and bottom bars */
  .nav-toggle::before,
  .nav-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1),
                top 0.3s cubic-bezier(.4,0,.2,1);
  }

  .nav-toggle::before { top: 11px; }
  .nav-toggle::after  { top: 27px; }

  /* Open state: three bars animate to × */
  details.nav-mobile[open] .nav-toggle {
    background-size: 18px 0;
    border-color: rgba(0,0,0,0.2);
  }

  details.nav-mobile[open] .nav-toggle::before {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
  }

  details.nav-mobile[open] .nav-toggle::after {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
  }

  /* Dropdown panel: overlays content */
  .site-nav details.nav-mobile > ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    background: #fff;

    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(85vw, 340px);
    max-height: 70vh;
    overflow: auto;

    box-shadow: 0 8px 32px rgba(15,23,42,0.14);
    animation: nav-drop-in 0.22s cubic-bezier(.4,0,.2,1);
  }

  @keyframes nav-drop-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: none; }
  }

  .site-nav details.nav-mobile li {
    list-style: none;
    margin: 0;
  }

  /* Mobile menu links */
  .site-nav details.nav-mobile a {
    display: block;
    text-align: left;
    padding: 0.65rem 0.65rem;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
  }

  .site-nav details.nav-mobile a:hover {
    background: var(--green-light);
    color: var(--green-primary);
    padding-left: 1rem;
  }

  /* Divider between rows */
  .site-nav details.nav-mobile li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Active indicator */
  .site-nav details.nav-mobile a.active:not(.nav-cta) {
    font-weight: 700;
    color: var(--green-primary);
    background: var(--green-light);
    padding-left: 1rem;
  }

  /* Get Involved: ALWAYS highlighted in mobile menu */
  .site-nav details.nav-mobile a.nav-cta {
    background: var(--green-primary);
    color: var(--white);
    font-weight: 800;
    border: none;
    border-left: none;
    padding-left: 0.65rem;
    border-radius: 8px;
    margin-top: 0.1rem;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .site-nav details.nav-mobile a.nav-cta:hover {
    background: #0f412d;
    color: var(--white);
    padding-left: 0.65rem;
  }

  .site-nav details.nav-mobile a.nav-cta.active {
    background: var(--green-primary);
    color: var(--white);
  }

  /* remove divider above the CTA row since it's last */
  .site-nav details.nav-mobile li:last-child {
    border-top: none;
    margin-top: 0.35rem;
  }
}

/* Video hero */

.video-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.video-hero-sticky {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero-bg {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  will-change: transform;
}

.video-hero-overlay {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  background: rgba(0, 0, 0, 0.55);
}

.video-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.25rem;
}

.video-hero-title {
  color: #fff;
  margin: 0;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}

.hero-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
  display: block;
}

.hero-ward {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(0.75rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  display: block;
  opacity: 0.85;
}

/* Hero CTAs */
.video-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  will-change: opacity;
  margin-top: 2.5rem;
}

.btn-campaign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              background 0.2s ease;
}

/* Shimmer sweep */
.btn-campaign::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%
  );
  transform: translateX(-120%) skewX(-15deg);
  pointer-events: none;
}

@keyframes btn-shimmer {
  to { transform: translateX(220%) skewX(-15deg); }
}

.btn-campaign:hover::before {
  animation: btn-shimmer 0.55s ease forwards;
}

.btn-campaign:hover {
  transform: translateY(-4px) scale(1.015);
}

.btn-campaign:active {
  transform: translateY(-1px) scale(0.985);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-campaign--accent {
  background: #fff;
  color: var(--green-primary);
}

/* Green-tinted shimmer for the white button */
.btn-campaign--accent::before {
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(21, 86, 58, 0.12) 50%,
    transparent 60%
  );
}

.btn-campaign--accent:hover {
  background: #f8f8f8;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.35),
              0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-campaign--white {
  background: var(--green-primary);
  color: #fff;
}

.btn-campaign--white:hover {
  background: #0f412d;
  box-shadow: 0 12px 32px rgba(21, 86, 58, 0.6),
              0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
  .video-hero {
    height: 70vh;
  }
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.97);
  filter: blur(4px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(3px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.reveal-child.revealed {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Index vision section */

.index-vision {
  padding: 3.5rem 0 2.5rem;
  background: var(--bg-main);
}

.index-vision-header {
  margin-bottom: 3rem;
}

.index-vision-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-primary);
  margin-bottom: 0.75rem;
}

.index-vision-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
  color: var(--text-main);
}

.index-vision-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Index cards */

.index-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.index-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid transparent;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.index-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--green-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
  border-radius: 4px 0 0 4px;
}

.index-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.13);
  border-color: rgba(21, 86, 58, 0.15);
}

.index-card:hover::before {
  transform: scaleY(1);
}

.index-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-primary);
  margin-bottom: 0.5rem;
}

.index-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.index-card-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.index-card-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.15s ease;
}

.index-card:hover .index-card-link {
  gap: 0.5rem;
}

/* Vision → signup bridge */

.index-bridge {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.index-bridge-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

/* Index signup section */

.index-signup {
  padding: 5rem 0 4rem;
  background: var(--green-primary);
  border-top: none;
}

.index-signup-header {
  margin-bottom: 2.5rem;
}

.index-signup-header .index-vision-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.index-signup-header .index-vision-title {
  color: var(--white);
}

.index-signup-header .index-vision-intro {
  color: rgba(255, 255, 255, 0.85);
}

.index-signup .contact-form.signup-compact {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 100%;
  padding: 1.75rem;
  border-radius: 1.25rem;
  box-shadow: none;
}

.index-signup .form-row label {
  color: rgba(255, 255, 255, 0.85);
}

.index-signup .form-row input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.index-signup .form-row input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.index-signup .form-row input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.index-signup .checkbox-inline {
  color: rgba(255, 255, 255, 0.85);
}

.index-signup .btn-primary {
  background: var(--white);
  color: var(--green-primary);
}

.index-signup .btn-primary:hover {
  background: var(--green-light);
}

/* Single-row form layout for wide screens */
.index-signup .form-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.index-signup .form-grid-2 .form-row {
  flex: 1 1 180px;
  margin-bottom: 0;
}

.index-signup .form-actions {
  margin-top: 1rem;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .index-signup .form-grid-2 {
    flex-wrap: nowrap;
  }
}

@media (max-width: 700px) {
  /* Full-height immersive video */
  .video-hero {
    height: 100svh;
  }

  /* Buttons on a single line */
  .video-hero-ctas {
    flex-wrap: nowrap;
    gap: 0.625rem;
    width: min(88vw, 380px);
  }

  .btn-campaign {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.7rem 0.875rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  /* Content card slides up over the video as you scroll */
  .index-vision {
    position: relative;
    z-index: 2;
    border-radius: 1.5rem 1.5rem 0 0;
    margin-top: -2rem;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.22);
    padding: 2.5rem 0 2rem;
  }

  .index-vision-header {
    margin-bottom: 2rem;
  }

  .index-vision-title {
    margin-bottom: 1.25rem;
  }

  .index-vision-intro {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .index-signup {
    padding: 3rem 0 2.5rem;
  }

  .index-signup-header {
    margin-bottom: 2rem;
  }

  .index-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .index-card {
    padding: 1.75rem;
  }

  .index-card-title {
    margin-bottom: 0.9rem;
  }

  .index-card-text {
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
}

/* Hero / home */

.hero {
  padding: 3rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-primary);
}

.hero-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0.3rem 0 0.8rem;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.04s ease, box-shadow 0.08s ease, background 0.1s ease;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0f412d;
  box-shadow: 0 8px 24px rgba(21, 86, 58, 0.35);
}

.btn-secondary {
  background: var(--green-light);
  color: var(--green-primary);
}

.btn-secondary:hover {
  background: #d8e9dc;
}

.hero-video-placeholder {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.hero-video-box {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.hero-video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    padding-left: var(--mobile-pad);
    padding-right: var(--mobile-pad);
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.12;
    letter-spacing: -0.01em;
  }

  .hero-tagline {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.92;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Section utilities */

.section {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-primary);
}

.section-title {
  margin: 0.4rem 0;
  font-size: 1.4rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .section-intro {
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* Home priorities */

.priorities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.priority-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.priority-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-primary);
}

.priority-title {
  margin: 0.4rem 0;
  font-weight: 600;
}

.priority-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.priority-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--green-primary);
  text-decoration: none;
}

.priority-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .priorities-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .priority-card,
  .about-bio,
  .contact-form {
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
  }

  .priority-card {
    transition: transform 0.08s ease, box-shadow 0.12s ease;
  }

  .priority-card:active {
    transform: scale(0.99);
  }

  .priority-link {
    font-weight: 600;
  }
}

/* Policy cards grid */

.policy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.policy-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--grey-muted);
  border-left: 3px solid var(--green-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.policy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(21, 86, 58, 0.10);
}

.policy-card--full {
  grid-column: 1 / -1;
}

.policy-card h4 {
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-main);
}

.policy-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.62;
}


@media (max-width: 700px) {
  .policy-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy-card--full {
    grid-column: 1;
  }
}

/* Policy page hero */

.policy-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.4rem 0 0.75rem;
  color: var(--text-main);
}

.policy-hero-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.policy-hero-intro a {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Policy flat items — kept for legacy use */

.policy-item-flat {
  margin-bottom: 1.5rem;
}

.policy-item-flat h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text-main);
}

.policy-item-flat p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Policy page */

.policy-hero,
.commitments-hero,
.generic-hero {
  padding: 2.5rem 0 0.75rem;
}

.policy-nav {
  background: var(--green-light);
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}

.policy-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.policy-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-primary);
}

.policy-nav a:hover {
  background: #d8e9dc;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  margin-bottom: 0.4rem;
}

.policy-section .section-intro {
  margin-bottom: 0.8rem;
}

.policy-item {
  margin-bottom: 0.6rem;
  background: var(--white);
  border-radius: 0.75rem;
  padding: 0.5rem 0.8rem;
  box-shadow: var(--shadow-soft);
}

.policy-item > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.policy-item > summary::-webkit-details-marker {
  display: none;
}

.policy-item > summary::before {
  content: "+";
  margin-right: 0.5rem;
  color: var(--green-primary);
  font-weight: 700;
}

.policy-item[open] > summary::before {
  content: "–";
}

.policy-body {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.policy-footnotes {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-muted);
}

.policy-footnotes h3 {
  font-size: 0.95rem;
}

.policy-footnotes ol {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Commitments tab layout */

.ctab-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.ctab-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: sticky;
  top: 80px;
  background: var(--white);
  border: 1px solid var(--grey-muted);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

.ctab-btn {
  text-align: left;
  background: none;
  border: none;
  padding: 0.7rem 0.875rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  gap: 0.625rem;
}

.ctab-btn:hover {
  background: var(--green-light);
  color: var(--green-primary);
}

.ctab-btn.active {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(21, 86, 58, 0.28);
}

.ctab-panels {
  min-height: 260px;
  padding-bottom: 5rem;
}

.ctab-panel {
  animation: ctab-fade 0.2s ease;
}

.ctab-panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

@keyframes ctab-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
  .ctab-layout {
    grid-template-columns: 1fr;
  }

  .ctab-list {
    display: none;
  }

  .ctab-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    background: var(--white);
    border: 2px solid var(--green-primary);
    border-radius: var(--radius-md);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315563A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    margin-bottom: 1.25rem;
  }

  .ctab-icon, .ctab-count, .ctab-progress-bar { display: none; }
}

@media (min-width: 701px) {
  .ctab-select {
    display: none;
  }
}

/* ctab icon, count, and scroll-progress enhancements */

.ctab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.ctab-btn:hover .ctab-icon {
  opacity: 0.85;
}

.ctab-btn.active .ctab-icon {
  opacity: 1;
}

.ctab-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.ctab-count {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(21, 86, 58, 0.08);
  color: var(--green-primary);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.ctab-btn:hover .ctab-count,
.ctab-btn.active .ctab-count {
  opacity: 1;
  background: rgba(21, 86, 58, 0.14);
}

.ctab-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.ctab-btn:not(.active) .ctab-progress-bar {
  display: none;
}

/* Commitments */

.commitments-list-section {
  padding-bottom: 2.5rem;
}

.commitments-map-bg {
  position: relative;
  overflow: hidden;
}

.commitments-map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/beybasicmapbackground.png') center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.commitments-map-bg > * {
  position: relative;
}

.commitments-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.commitments-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.checkmark {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-primary);
  color: var(--white);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 3rem;
}

/* Bio: fixed-height scrollable rectangle */
.about-bio-wrap {
  position: relative;
}

.about-bio-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.97) 100%);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  pointer-events: none;
  z-index: 1;
}

.about-bio {
  background: var(--white);
  padding: 1.5rem;
  padding-bottom: 2.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.about-bio::-webkit-scrollbar {
  width: 4px;
}

.about-bio::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.about-bio::-webkit-scrollbar-thumb {
  background: rgba(21, 86, 58, 0.22);
  border-radius: 999px;
}

.about-bio::-webkit-scrollbar-thumb:hover {
  background: rgba(21, 86, 58, 0.5);
}

.about-bio p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.7;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

/* At a glance cards — modern */
.about-key-points {
  display: grid;
  gap: 1rem;
}

.about-card {
  background: var(--white);
  border: 1px solid rgba(21, 86, 58, 0.09);
  border-radius: 1rem;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Top accent bar */
.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--green-primary), transparent);
  opacity: 0.3;
  transition: opacity 0.22s ease, left 0.22s ease, right 0.22s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(21, 86, 58, 0.11);
  border-color: rgba(21, 86, 58, 0.18);
}

.about-card:hover::after {
  opacity: 1;
  left: 0;
  right: 0;
}

.about-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.about-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Accordion summary: hide the browser marker on desktop */
.about-card-summary {
  list-style: none;
  cursor: default;
  display: block;
}
.about-card-summary::-webkit-details-marker { display: none; }
.about-card-summary::marker { content: ''; }
.about-card-summary h3 { margin-bottom: 0.45rem; }

/* Desktop: always show content, no hover state on summary */
@media (min-width: 701px) {
  details.about-card > p { display: block; }
}

/* Mobile: make it an interactive accordion */
@media (max-width: 700px) {
  .about-card-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    user-select: none;
  }

  .about-card-summary h3 { margin-bottom: 0; flex: 1; }

  /* Chevron */
  .about-card-summary::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315563a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  }

  details.about-card[open] .about-card-summary::after {
    transform: rotate(180deg);
  }

  details.about-card[open] .about-card-summary h3 {
    margin-bottom: 0.45rem;
  }

  details.about-card > p {
    animation: accordion-in 0.22s cubic-bezier(.4,0,.2,1);
  }

  @keyframes accordion-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
  }
}

.about-photo {
  display: flex;
}

.about-photo img {
  width: 100%;
  height: 400px;
  border-radius: 14px;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-bio {
    max-height: 340px;
  }
}

/* Forms / Get involved */

.contact-form {
  margin-top: 1rem;
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 0.9rem;
}

.form-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.form-success {
  color: #166534;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
}

.form-error:empty,
.form-success:empty {
  display: none;
}

/* Two-column layout for signup fields on wider screens */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

@media (max-width: 700px) {
  .form-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  max-width: 28rem;
}

.checkbox-inline input[type="checkbox"] {
  margin-top: 0.15rem;
}

.signup-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.contact-form.signup-compact {
  max-width: 520px;
  padding: 0.9rem 1rem;
}

.postal-input {
  text-transform: uppercase;
}

.input-error {
  border-color: #b91c1c !important;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--grey-muted);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--green-primary);
  outline: none;
  box-shadow: 0 0 0 1px rgba(21, 86, 58, 0.2);
}

@media (max-width: 700px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Social links */

.social-links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--green-primary);
  background: var(--green-light);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.social-links a:hover {
  background: #d8e9dc;
}

/* Updates page — calendar layout */

.updates-page {
  padding: 3rem 0 5rem;
  background: var(--bg-main);
  flex: 1;
}

.updates-page-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-primary);
  margin: 0 0 0.6rem;
}

.updates-page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-main);
  margin: 0 0 0.6rem;
}

.updates-page-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 2.5rem;
  max-width: 44rem;
}

/* Tab switcher */

.updates-tab-switch {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.updates-tab {
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--grey-muted);
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.updates-tab:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.updates-tab.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

/* Tab views */

.updates-view {
  display: none;
}

.updates-view.active {
  display: block;
}

/* Calendar entries */

.updates-entry {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 2.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey-muted);
  align-items: start;
}

.updates-entry:first-child {
  border-top: 1px solid var(--grey-muted);
}

.updates-entry-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 0.2rem;
  gap: 0.15rem;
}

.updates-entry-date span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.updates-entry-date strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.updates-entry-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.updates-entry-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  background: var(--green-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  align-self: flex-start;
}

.updates-entry-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0;
}

.updates-entry-info p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 600px) {
  .updates-entry {
    grid-template-columns: 64px 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
  }

  .updates-entry-date strong {
    font-size: 0.9rem;
  }

  .updates-entry-info h2 {
    font-size: 1.05rem;
  }
}

/* Legacy tag pills (kept for any other use) */

.tag-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1.5px solid var(--grey-muted);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.tag-pill:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.tag-pill.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--grey-muted);
  background: var(--white);
}

.site-footer-inner {
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--green-primary);
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }
}

/* ===== Mobile banding for sections ===== */
@media (max-width: 700px) {
  body.page main > section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  body.page main > section:first-of-type {
    border-top: none;
  }

  body.page main > section:nth-of-type(odd) {
    background: var(--white);
  }

  body.page main > section:nth-of-type(even) {
    background: var(--green-light);
  }

  /* Dark / light / dark home look */
  body.page main > section:nth-of-type(1) {
    background: var(--green-primary) !important;
    color: var(--white);
    border-top: none;
  }

  body.page main > section:nth-of-type(1) .hero-kicker,
  body.page main > section:nth-of-type(1) .hero-tagline,
  body.page main > section:nth-of-type(1) .hero-video-caption {
    color: rgba(255, 255, 255, 0.85);
  }

  body.page main > section:nth-of-type(1) .hero-title {
    color: var(--white);
  }

  body.page main > section:nth-of-type(1) .btn-primary {
    background: var(--white);
    color: var(--green-primary);
  }

  body.page main > section:nth-of-type(1) .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  body.page main > section:nth-of-type(3) {
    background: var(--green-primary) !important;
    color: var(--white);
  }

  body.page main > section:nth-of-type(3) .section-kicker,
  body.page main > section:nth-of-type(3) .section-intro {
    color: rgba(255, 255, 255, 0.85);
  }

  body.page main > section:nth-of-type(3) .section-title {
    color: var(--white);
  }

  body.page main > section:nth-of-type(3) .btn-primary {
    background: var(--white);
    color: var(--green-primary);
  }
}

/* Card readability inside dark bands (mobile) */
@media (max-width: 700px) {
  .priority-card,
  .about-bio,
  .contact-form,
  .commitments-list li {
    color: var(--text-main);
  }

  .priority-text,
  .update-preview,
  .about-bio p,
  .contact-form p,
  .commitments-list .commitment-text {
    color: var(--text-muted);
  }

  .contact-form label {
    color: var(--text-main);
  }
}

/* Optional dark band utility (for specific sections if you add band-dark class) */
.band-dark {
  background: var(--green-primary);
  color: var(--white);
}

.band-dark .section-kicker,
.band-dark .section-title,
.band-dark .section-intro {
  color: rgba(255, 255, 255, 0.88);
}

.band-dark .contact-form,
.band-dark .commitments-list li,
.band-dark .priority-card,
.band-dark .about-bio {
  background: var(--white);
  color: var(--text-main);
}

/* ===== Policy page — mobile 2-col category grid ===== */

.pmob-wrap { display: none; }

@keyframes pmob-pulse {
  0%   { box-shadow: 0 0 0 0px rgba(21,86,58,.5); border-color: var(--green-primary); }
  50%  { box-shadow: 0 0 0 3px rgba(21,86,58,.15), 0 0 10px 2px rgba(21,86,58,.1); border-color: #2a8a5e; }
  100% { box-shadow: 0 0 0 0px rgba(21,86,58,0); border-color: var(--green-primary); }
}

@media (max-width: 700px) {
  .pmob-wrap {
    display: block;
    margin: 0.75rem 0 0;
  }

  .pmob-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0.75rem;
  }

  .pmob-grid.pmob-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .pmob-tile {
    background: var(--white);
    border: 1px solid var(--grey-muted);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: border-color .2s, background .2s;
  }

  .pmob-tile:hover {
    border-color: rgba(21,86,58,.3);
    background: var(--green-light);
  }

  .pmob-tile.active {
    border: 1.5px solid var(--green-primary);
    background: var(--green-light);
    animation: pmob-pulse 2s ease-in-out infinite;
  }

  .pmob-tile.pmob-hidden {
    display: none;
  }

  .pmob-tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    flex-shrink: 0;
  }

  .pmob-tile.active .pmob-tile-icon {
    background: rgba(21,86,58,.12);
  }

  .pmob-tile-icon .ctab-icon {
    display: block;
    width: 15px;
    height: 15px;
    opacity: 0.55;
  }

  .pmob-tile.active .pmob-tile-icon .ctab-icon {
    opacity: 1;
    stroke: var(--green-primary);
  }

  .pmob-tile-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
  }

  .pmob-tile.active .pmob-tile-label {
    color: var(--green-primary);
  }

  .pmob-back-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
  }

  .pmob-back-row.pmob-visible {
    display: flex;
  }

  .pmob-back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-primary);
    font-family: inherit;
    padding: 6px 0;
  }

  .pmob-back-btn svg {
    width: 15px;
    height: 15px;
    stroke: var(--green-primary);
  }

  .pmob-back-label {
    font-size: 11px;
    color: var(--text-muted);
  }

  /* hide the desktop sidebar on mobile; panels only shown after a tile is tapped */
  .ctab-layout {
    display: none;
  }

  .ctab-layout.pmob-panel-visible {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ctab-list {
    display: none !important;
  }

  /* hide old select if it exists */
  .ctab-select {
    display: none !important;
  }
}

/* ===== Policy page — accordion redesign ===== */

.policy-page-body {
  padding: 0.5rem 0 4rem;
}

.pa-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pa-item {
  background: var(--white);
  border: 1px solid var(--grey-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pa-item:hover {
  background: var(--green-light);
  border-color: rgba(21, 86, 58, 0.22);
}

.pa-item[data-open] {
  background: #d6ebdc;
  border-color: var(--green-primary);
  box-shadow: 0 4px 18px rgba(21, 86, 58, 0.1);
}

.pa-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  font-family: inherit;
  line-height: 1.35;
  transition: color 0.15s ease;
}

.pa-item:hover .pa-trigger {
  color: var(--green-primary);
}

.pa-item[data-open] .pa-trigger {
  color: var(--green-primary);
}

.pa-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.15s ease;
  opacity: 0.4;
}

.pa-item:hover .pa-chevron {
  opacity: 0.7;
}

.pa-item[data-open] .pa-chevron {
  opacity: 1;
  transform: rotate(180deg);
}

/* Smooth height reveal — CSS grid row trick */
.pa-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.27s ease;
}

.pa-item[data-open] .pa-body {
  grid-template-rows: 1fr;
}

.pa-inner {
  overflow: hidden;
}

.pa-inner p {
  padding: 0 1rem 1rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}



/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Mobile floating button (FAB) */
@media (max-width: 700px) {
  .mobile-fab {
    position: fixed;
    right: 16px;      /* bottom-right */
    bottom: 16px;
    z-index: 50;

    background: var(--green-primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;

    padding: 0.75rem 1rem;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
  }

  .mobile-fab:active {
    transform: scale(0.98);
  }
}

/* ===== Additional mobile & touch polish ===== */

/* Adequate touch-target height for tab-style controls (WCAG 2.5.5) */
.ctab-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.updates-tab {
  min-height: 44px;
}

/* Hero pages: trim excess padding on small screens */
@media (max-width: 700px) {
  .policy-hero,
  .commitments-hero,
  .generic-hero {
    padding: 1.5rem 0 1rem;
  }

  /* Prevent iOS auto-zoom when a form input is tapped
     (browser zooms when font-size < 16 px)                */
  .form-row input,
  .form-row textarea {
    font-size: 1rem;
    padding: 0.7rem 0.75rem;
  }
}

/* About page: photo first, bio second when stacked to one column */
@media (max-width: 900px) {
  .about-photo {
    order: -1;
  }

  .about-photo img {
    height: 300px;
  }
}

@media (max-width: 700px) {
  .about-photo img {
    height: 260px;
  }
}


/* Policy / Commitments: horizontal-scroll tab strip on mobile.
   Prevents 8 categories from wrapping into 3+ cramped rows.   */
@media (max-width: 700px) {
  .ctab-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ctab-list::-webkit-scrollbar {
    display: none;
  }

  .ctab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ===== Commitments: square tiles + panel ===== */

.ctile-wrap {
  margin-top: 2rem;
  padding-bottom: 3rem;
}

.ctile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ctile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border: 2px solid var(--grey-muted);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease,
              transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.ctile:hover {
  background: var(--green-light);
  border-color: var(--green-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(21, 86, 58, 0.14);
  z-index: 1;
}

.ctile:active {
  transform: scale(0.97) translateY(0);
}

.ctile.active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  transform: none;
  box-shadow: none;
}

.ctile-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  transition: color 0.2s ease;
  pointer-events: none;
}

.ctile.active .ctile-title {
  color: var(--white);
}

/* Panel below the tiles */

.ctile-panel-wrap {
  margin-top: 1rem;
  border: 2px solid var(--green-primary);
  background: var(--white);
  min-height: 8rem;
  padding: 1.5rem;
  position: relative;
}

.ctile-panel {
  display: none;
}

.ctile-panel.active {
  display: block;
  animation: ctile-in 0.25s ease;
}

@keyframes ctile-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ctile-panel-wrap .commitments-list {
  margin-top: 0;
}

@media (max-width: 700px) {
  .ctile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .ctile {
    padding: 1rem 0.5rem;
  }

  .ctile-title {
    font-size: 0.82rem;
  }
}

/* ===== Commitments page — mobile vertical dropdown ===== */

.cvdrop-wrap { display: none; }

@media (max-width: 700px) {
  .cvdrop-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 1rem 0;
  }

  .cvdrop-item {
    background: var(--white);
    border: 1px solid var(--grey-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color .2s;
  }

  .cvdrop-item.open {
    border-color: var(--green-primary);
  }

  .cvdrop-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 12px;
    font-family: inherit;
    text-align: left;
  }

  .cvdrop-item.open .cvdrop-trigger {
    background: var(--green-light);
  }

  .cvdrop-trigger-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .cvdrop-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--grey-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background .2s, color .2s;
  }

  .cvdrop-item.open .cvdrop-num {
    background: var(--green-primary);
    color: var(--white);
  }

  .cvdrop-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
  }

  .cvdrop-item.open .cvdrop-title {
    color: var(--green-primary);
  }

  .cvdrop-chevron {
    width: 16px;
    height: 16px;
    stroke: var(--text-muted);
    flex-shrink: 0;
    transition: transform .25s, stroke .2s;
  }

  .cvdrop-item.open .cvdrop-chevron {
    transform: rotate(180deg);
    stroke: var(--green-primary);
  }

  .cvdrop-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .27s ease;
  }

  .cvdrop-item.open .cvdrop-body {
    grid-template-rows: 1fr;
  }

  .cvdrop-body .commitments-list {
    overflow: hidden;
    margin: 0;
    padding: 0 12px 12px;
  }

  .cvdrop-body .commitments-list li {
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    box-shadow: none;
    border: 1px solid var(--grey-muted);
  }

  /* hide desktop sidebar on mobile */
  .commitments-list-section .ctab-layout {
    grid-template-columns: 1fr;
  }

  .commitments-list-section .ctab-list {
    display: none !important;
  }

  .commitments-list-section .ctab-select {
    display: none !important;
  }

  .commitments-list-section .ctab-panels {
    display: none;
  }
}
