/* ==========================================================================
   EDEVF shared site styles  (assets/site/site.css)
   Every class starts with "ed-" so it can sit next to Bootstrap and older
   page styles while pages are moved over one at a time.
   ========================================================================== */

:root {
  /* colour */
  --ed-creek: #0E3B36;        /* deep mangrove water: header, hero, footer */
  --ed-creek-2: #134A43;
  --ed-creek-3: #1C5C53;
  --ed-mangrove: #0B6E4F;     /* brand green: links, outlines */
  --ed-mangrove-dk: #08573F;
  --ed-gold: #E2A82B;         /* raffia gold: donate and main actions only */
  --ed-gold-dk: #C98F17;
  --ed-paper: #F4F7F5;        /* cool water-tinted page background */
  --ed-white: #FFFFFF;
  --ed-ink: #13231F;
  --ed-silt: #5B6B66;
  --ed-line: #DCE4E0;
  --ed-mist: #E7EFEB;
  --ed-on-dark: #EAF2EE;
  --ed-on-dark-muted: #A9C2BA;

  /* type */
  --ed-font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --ed-font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ed-step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --ed-step-0: clamp(0.94rem, 0.92rem + 0.12vw, 1rem);
  --ed-step-1: clamp(1.04rem, 1rem + 0.22vw, 1.16rem);
  --ed-step-2: clamp(1.18rem, 1.08rem + 0.45vw, 1.42rem);
  --ed-step-3: clamp(1.38rem, 1.2rem + 0.9vw, 1.9rem);
  --ed-step-4: clamp(1.7rem, 1.32rem + 1.9vw, 2.8rem);

  /* space and shape */
  --ed-gutter: clamp(16px, 4vw, 40px);
  --ed-wrap: 1240px;
  --ed-section: clamp(40px, 6vw, 84px);
  --ed-r-sm: 8px;
  --ed-r: 14px;
  --ed-r-lg: 24px;
  --ed-header-h: 64px;
  --ed-tabbar-h: 0px;
  --ed-shadow: 0 1px 2px rgba(14, 59, 54, .06), 0 8px 24px -12px rgba(14, 59, 54, .25);
  --ed-shadow-lg: 0 24px 60px -24px rgba(6, 30, 27, .45);
  --ed-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
.ed *, .ed *::before, .ed *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ed-header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.ed { -webkit-tap-highlight-color: transparent; }
body.ed {
  margin: 0;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-font-body);
  font-size: var(--ed-step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--ed-tabbar-h);
}
:where(.ed) img { max-width: 100%; height: auto; display: block; }
:where(.ed) a { color: var(--ed-mangrove); text-underline-offset: .18em; }
:where(.ed) a:hover { color: var(--ed-mangrove-dk); }
:where(.ed) button { font: inherit; color: inherit; }
.ed :focus-visible { outline: 3px solid var(--ed-gold); outline-offset: 3px; border-radius: 4px; }
.ed-main { display: block; outline: none; }
.ed-wrap { width: 100%; max-width: calc(var(--ed-wrap) + 2 * var(--ed-gutter)); margin-inline: auto; padding-inline: var(--ed-gutter); }
.ed-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ed-skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ed-gold); color: var(--ed-ink) !important; padding: 10px 16px; border-radius: var(--ed-r-sm); font-weight: 700; text-decoration: none; }
.ed-skip:focus { top: 12px; }
.ed-icon { width: 1.25em; height: 1.25em; flex: none; }

.ed-h2 { font-family: var(--ed-font-display); font-size: var(--ed-step-3); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; color: var(--ed-ink); font-variation-settings: "opsz" 72; }
.ed-h2--sm { font-size: var(--ed-step-2); }
.ed-h3 { font-family: var(--ed-font-display); font-size: var(--ed-step-1); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; }

/* ---------- buttons ---------- */
.ed-btn {
  --b-bg: transparent; --b-fg: currentColor; --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.15em;
  border: 1.5px solid var(--b-bd); border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg) !important;
  font-family: var(--ed-font-body); font-weight: 700; font-size: var(--ed-step-0); line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s var(--ed-ease);
}
.ed-btn:active { transform: translateY(1px); }
.ed-btn .ed-icon { width: 1.15em; height: 1.15em; }
.ed-btn--gold { --b-bg: var(--ed-gold); --b-fg: var(--ed-ink); }
.ed-btn--gold:hover { --b-bg: #EDB641; }
.ed-btn--solid { --b-bg: var(--ed-mangrove); --b-fg: #fff; }
.ed-btn--solid:hover { --b-bg: var(--ed-mangrove-dk); }
.ed-btn--outline { --b-bd: var(--ed-line); --b-fg: var(--ed-ink); --b-bg: var(--ed-white); }
.ed-btn--outline:hover { --b-bd: var(--ed-mangrove); }
.ed-btn--ghost { --b-bd: rgba(234, 242, 238, .35); --b-fg: var(--ed-on-dark); }
.ed-btn--ghost:hover { --b-bd: var(--ed-on-dark); }
.ed-btn--light { --b-bg: rgba(255, 255, 255, .08); --b-bd: rgba(234, 242, 238, .45); --b-fg: #fff; }
.ed-btn--light:hover { --b-bg: rgba(255, 255, 255, .16); }
.ed-btn--lg { min-height: 48px; padding: .7em 1.3em; font-size: var(--ed-step-0); }
.ed-btn--sm { min-height: 36px; padding: .4em .9em; font-size: var(--ed-step--1); }
.ed-btn--block { width: 100%; }
.ed-link-btn { color: var(--ed-on-dark) !important; font-weight: 700; text-decoration: none; padding: .5em .6em; border-radius: var(--ed-r-sm); }
.ed-link-btn:hover { text-decoration: underline; }
.ed-arrow-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.ed-arrow-link .ed-icon { transition: transform .2s var(--ed-ease); }
.ed-arrow-link:hover .ed-icon { transform: translateX(3px); }

/* ---------- status pill ---------- */
.ed-status { display: inline-flex; align-items: center; gap: .5em; margin: 0; font-size: var(--ed-step--1); font-weight: 700; color: var(--ed-ink); }
.ed-status__dot { width: .62em; height: .62em; border-radius: 50%; background: var(--ed-silt); box-shadow: 0 0 0 3px rgba(91, 107, 102, .18); }
.ed-status--open .ed-status__dot { background: #2BB673; box-shadow: 0 0 0 3px rgba(43, 182, 115, .22); }
.ed-status--on_hold .ed-status__dot { background: var(--ed-gold); box-shadow: 0 0 0 3px rgba(226, 168, 43, .25); }
.ed-status--closed .ed-status__dot { background: #C8553D; box-shadow: 0 0 0 3px rgba(200, 85, 61, .22); }
.ed-status--on-dark { color: var(--ed-on-dark); }

/* ==========================================================================
   Header
   ========================================================================== */
.ed-header { position: sticky; top: 0; z-index: 100; background: var(--ed-creek); color: var(--ed-on-dark); transition: box-shadow .2s; }
.ed-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6); }
.ed-header { transition: transform .28s var(--ed-ease), box-shadow .2s; will-change: transform; }
.ed-header.is-hidden { transform: translateY(-100%); }
.ed-header:focus-within { transform: none; }

/* page-load progress bar */
.ed-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.ed-progress__bar { height: 100%; width: 100%; background: var(--ed-gold); transform-origin: left; transform: scaleX(0); opacity: 0; transition: transform .25s ease, opacity .3s ease .1s; }
.ed-progress.is-active .ed-progress__bar { opacity: 1; transition: transform 8s cubic-bezier(.1, .8, .2, 1); transform: scaleX(.9); }
.ed-progress.is-done .ed-progress__bar { opacity: 0; transform: scaleX(1); transition: transform .2s ease, opacity .3s ease .15s; }

/* press feedback on anything tappable */
@media (prefers-reduced-motion: no-preference) {
  .ed-btn:active, .ed-path:active, .ed-tabbar__item:active, .ed-drawer__link:active, .ed-drawer__sublink:active, .ed-card:active { transform: scale(.97); }
  .ed-path, .ed-tabbar__item, .ed-card, .ed-drawer__link, .ed-drawer__sublink { transition: transform .12s ease, background-color .18s; }
}

/* images fade in once loaded instead of popping */
.ed-fade { opacity: 0; transition: opacity .4s ease; }
.ed-fade.is-loaded { opacity: 1; }

/* toast */
.ed-toast {
  position: fixed; left: 50%; bottom: calc(var(--ed-tabbar-h) + 16px); z-index: 400;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--ed-ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: var(--ed-step--1); font-weight: 700; box-shadow: var(--ed-shadow-lg);
  transition: transform .25s var(--ed-ease), opacity .2s;
}
.ed-toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* main content swap */
.ed-main.is-leaving { opacity: .55; transition: opacity .15s; }
::view-transition-old(ed-main) { animation: ed-vt-out .16s ease both; }
::view-transition-new(ed-main) { animation: ed-vt-in .26s var(--ed-ease) both; }
@keyframes ed-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes ed-vt-in { from { opacity: 0; transform: translateY(10px); } }
.ed-main { view-transition-name: ed-main; }
.ed-header__bar { display: flex; align-items: center; gap: 16px; min-height: var(--ed-header-h); }
.ed-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit !important; min-width: 0; margin-right: auto; }
.ed-brand__logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.ed-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; max-width: 15ch; }
.ed-brand__name { font-family: var(--ed-font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.1; }
.ed-brand__sub { font-size: .78rem; color: var(--ed-on-dark-muted); }

.ed-nav { display: none; }
.ed-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ed-nav__item { position: relative; }
.ed-nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: var(--ed-r-sm);
  color: var(--ed-on-dark) !important; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; position: relative;
}
.ed-nav__link:hover { background: rgba(255, 255, 255, .07); }
.ed-nav__link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--ed-gold); }
.ed-nav__chev { width: 1em; height: 1em; transition: transform .2s; }
[aria-expanded="true"] > .ed-nav__chev { transform: rotate(180deg); }

.ed-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ed-burger, .ed-drawer__close {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid rgba(234, 242, 238, .25); border-radius: 12px; background: transparent; color: var(--ed-on-dark); cursor: pointer;
}
.ed-burger .ed-icon { width: 22px; height: 22px; }

/* dropdown menus */
.ed-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(640px, 92vw); display: grid; grid-template-columns: 220px 1fr; gap: 8px;
  background: var(--ed-white); color: var(--ed-ink); border-radius: var(--ed-r-lg); box-shadow: var(--ed-shadow-lg); padding: 10px;
  animation: ed-pop .16s var(--ed-ease);
}
.ed-menu[hidden] { display: none; }
.ed-menu__intro { background: var(--ed-mist); border-radius: var(--ed-r); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ed-menu__title { font-family: var(--ed-font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; margin: 0; }
.ed-menu__note { margin: 0; color: var(--ed-silt); font-size: var(--ed-step--1); line-height: 1.5; }
.ed-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ed-menu__link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--ed-r); color: var(--ed-ink) !important; text-decoration: none; }
.ed-menu__link:hover, .ed-menu__link.is-active { background: var(--ed-paper); }
.ed-menu__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ed-mist); color: var(--ed-mangrove); flex: none; }
.ed-menu__icon .ed-icon { width: 20px; height: 20px; }
.ed-menu__label { display: block; font-weight: 700; line-height: 1.3; }
.ed-menu__desc { display: block; font-size: var(--ed-step--1); color: var(--ed-silt); line-height: 1.4; }
.ed-menu__link:has(.ed-menu__desc:empty) { align-items: center; }

.ed-account { position: relative; }
.ed-account__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 10px 3px 3px; border: 1.5px solid rgba(234, 242, 238, .25); border-radius: 999px; background: none; color: var(--ed-on-dark); cursor: pointer; font-weight: 700; }
.ed-account__name { max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.ed-avatar--initials { display: grid; place-items: center; background: var(--ed-gold); color: var(--ed-ink); font-weight: 700; font-size: .85rem; }
.ed-menu--account { left: auto; right: 0; transform: none; width: 260px; grid-template-columns: 1fr; }
.ed-menu__who { margin: 6px 12px 8px; font-size: var(--ed-step--1); color: var(--ed-silt); line-height: 1.4; }
.ed-menu__who strong { color: var(--ed-ink); font-size: var(--ed-step-0); }

@keyframes ed-pop { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ed-menu--account { animation-name: ed-pop-r; }
@keyframes ed-pop-r { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- drawer (phones and tablets) ---------- */
.ed-drawer { position: fixed; inset: 0; z-index: 150; }
.ed-drawer[hidden] { display: none; }
.ed-drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 26, 23, .55); opacity: 0; transition: opacity .25s; }
.ed-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  display: flex; flex-direction: column; background: var(--ed-white);
  transform: translateX(100%); transition: transform .3s var(--ed-ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.ed-drawer.is-open .ed-drawer__backdrop { opacity: 1; }
.ed-drawer.is-open .ed-drawer__panel { transform: none; }
.ed-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--ed-gutter); min-height: var(--ed-header-h); background: var(--ed-creek); color: var(--ed-on-dark); }
.ed-drawer__title { font-family: var(--ed-font-display); font-weight: 700; font-size: 1.2rem; }
.ed-drawer__user { display: flex; align-items: center; gap: 10px; min-width: 0; line-height: 1.2; }
.ed-drawer__user strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-drawer__hello { display: block; font-size: .78rem; color: var(--ed-on-dark-muted); }
.ed-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--ed-gutter) 24px; }
.ed-drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ed-drawer__auth .ed-btn--outline { --b-bd: var(--ed-mangrove); --b-fg: var(--ed-mangrove); }
.ed-drawer__list { list-style: none; margin: 0; padding: 0; }
.ed-drawer__list > li + li { border-top: 1px solid var(--ed-line); }
.ed-drawer__link {
  display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 4px;
  font-family: var(--ed-font-display); font-weight: 700; font-size: 1.04rem; color: var(--ed-ink) !important; text-decoration: none; cursor: pointer; list-style: none;
}
.ed-drawer__link::-webkit-details-marker { display: none; }
.ed-drawer__link.is-active { color: var(--ed-mangrove) !important; }
.ed-drawer__link .ed-icon { transition: transform .2s; color: var(--ed-silt); }
.ed-drawer__group[open] > .ed-drawer__link .ed-icon { transform: rotate(180deg); }
.ed-drawer__group > .ed-status { margin: 0 4px 6px; }
.ed-drawer__group ul { list-style: none; margin: 0 0 10px; padding: 4px; background: var(--ed-paper); border-radius: var(--ed-r); }
.ed-drawer__sublink { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px; border-radius: 10px; color: var(--ed-ink) !important; text-decoration: none; font-weight: 700; }
.ed-drawer__sublink .ed-icon { color: var(--ed-mangrove); }
.ed-drawer__sublink:hover, .ed-drawer__sublink.is-active { background: var(--ed-mist); }
.ed-drawer__list--small > li + li { border: 0; }
.ed-drawer__list--small .ed-drawer__sublink { min-height: 44px; font-weight: 400; }
.ed-drawer__heading { margin: 22px 4px 4px; font-size: var(--ed-step--1); color: var(--ed-silt); font-weight: 700; }
.ed-drawer__foot { padding: 14px var(--ed-gutter) 18px; border-top: 1px solid var(--ed-line); display: grid; gap: 10px; }
.ed-drawer__contact { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ed-silt) !important; text-decoration: none; font-size: var(--ed-step--1); }
.ed-drawer-open { overflow: hidden; }

/* ---------- phone bottom bar ---------- */
.ed-tabbar {
  view-transition-name: ed-tabbar;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--ed-line);
  padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ed-tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 54px; padding: 4px 2px; border: 0; background: none; border-radius: 12px;
  color: var(--ed-silt) !important; text-decoration: none; font-size: .7rem; font-weight: 700; line-height: 1.1; text-align: center; cursor: pointer;
}
.ed-tabbar__item .ed-icon { width: 22px; height: 22px; }
.ed-tabbar__item.is-active { color: var(--ed-mangrove) !important; }
.ed-tabbar__item.is-active .ed-icon { stroke-width: 2.3; }
.ed-tabbar__item--gold .ed-icon { color: var(--ed-gold-dk); }
.ed-tabbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================================================
   Home: hero with the creek waterline
   ========================================================================== */
.ed-hero { position: relative; background: var(--ed-creek); color: var(--ed-on-dark); overflow: hidden; isolation: isolate; }
.ed-hero::before { /* faint ripple texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(120% 70% at 90% 0%, var(--ed-creek-3) 0%, transparent 60%),
    repeating-radial-gradient(circle at 78% 30%, transparent 0 22px, rgba(255, 255, 255, .025) 22px 23px);
}
.ed-hero__inner { display: grid; gap: 28px; padding-top: clamp(24px, 5vw, 60px); padding-bottom: clamp(80px, 10vw, 130px); align-items: center; }
.ed-hero__place { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--ed-on-dark-muted); font-size: var(--ed-step--1); font-weight: 700; }
.ed-hero__place .ed-icon { width: 1.1em; height: 1.1em; color: var(--ed-gold); }
.ed-hero__title {
  font-family: var(--ed-font-display); font-weight: 750; font-size: var(--ed-step-4);
  line-height: 1.04; letter-spacing: -.022em; margin: 0; max-width: 17ch; color: #fff;
  font-variation-settings: "opsz" 72; text-wrap: balance;
}
.ed-hero__lead { font-size: calc(var(--ed-step-0) * 1.06); line-height: 1.55; color: var(--ed-on-dark); opacity: .9; max-width: 54ch; margin: 18px 0 0; }
.ed-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ed-hero__status { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(234, 242, 238, .16); max-width: 54ch; }
.ed-hero__note { margin: 6px 0 0; font-size: var(--ed-step--1); color: var(--ed-on-dark-muted); line-height: 1.5; }
.ed-hero__media { margin: 0; position: relative; }
.ed-hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ed-creek-2);
  border-radius: 28px 28px 28px 120px;
  box-shadow: var(--ed-shadow-lg);
}
.ed-hero__media::after { /* gold reed line beside the photo */
  content: ""; position: absolute; left: -14px; top: 12%; bottom: 22%; width: 4px; border-radius: 4px; background: var(--ed-gold);
}

.ed-waterline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(56px, 9vw, 120px); display: block; }
.ed-waterline__back { fill: var(--ed-creek-3); opacity: .8; }
.ed-waterline__front { fill: var(--ed-paper); }
@media (prefers-reduced-motion: no-preference) {
  .ed-waterline__back { animation: ed-tide 14s ease-in-out infinite alternate; transform-origin: center; }
  .ed-hero__title, .ed-hero__lead, .ed-hero__actions, .ed-hero__status { animation: ed-rise .7s var(--ed-ease) both; }
  .ed-hero__lead { animation-delay: .08s; }
  .ed-hero__actions { animation-delay: .16s; }
  .ed-hero__status { animation-delay: .24s; }
}
@keyframes ed-tide { from { transform: translateX(-2%) scaleY(1); } to { transform: translateX(2%) scaleY(1.18); } }
@keyframes ed-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- hero carousel ---------- */
.ed-slider { position: relative; background: var(--ed-creek); color: #fff; overflow: hidden; isolation: isolate; --ed-slide-h: clamp(500px, 76vh, 660px); }
.ed-slider__track {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; outline: none;
}
.ed-slider__track::-webkit-scrollbar { display: none; }
.ed-slide { position: relative; flex: 0 0 100%; min-height: var(--ed-slide-h); scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; overflow: hidden; }
.ed-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); }
.ed-slide::before { /* keeps text readable over any photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 42, 38, .92) 0%, rgba(10, 42, 38, .72) 42%, rgba(10, 42, 38, .15) 78%), linear-gradient(0deg, rgba(10, 42, 38, .7), transparent 45%);
}
.ed-slide__body { padding-top: 40px; padding-bottom: 150px; }
.ed-slide__text { max-width: 600px; }
.ed-slide__title {
  font-family: var(--ed-font-display); font-weight: 750; font-size: var(--ed-step-4); line-height: 1.05; letter-spacing: -.022em;
  margin: 0; color: #fff; text-wrap: balance; font-variation-settings: "opsz" 72;
}
.ed-slide__lead { margin: 14px 0 0; font-size: calc(var(--ed-step-0) * 1.06); line-height: 1.55; color: var(--ed-on-dark); max-width: 48ch; }
.ed-slide .ed-hero__actions { margin-top: 24px; }

.ed-slider__bar { position: absolute; left: 0; right: 0; bottom: clamp(64px, 9vw, 112px); display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.ed-slider__bar > * { pointer-events: auto; }
.ed-slider__status { background: rgba(10, 42, 38, .6); padding: 6px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ed-slider__controls { display: flex; align-items: center; gap: 6px; }
.ed-slider__dots { display: flex; gap: 6px; margin-right: 6px; }
.ed-slider__dot { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.ed-slider__dot span { display: block; width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.ed-slider__dot span::after { content: ""; position: absolute; inset: 0; background: var(--ed-gold); transform: scaleX(0); transform-origin: left; }
.ed-slider__dot[aria-current="true"] span::after { transform: scaleX(1); }
.ed-slider.is-playing .ed-slider__dot[aria-current="true"] span::after { animation: ed-dot var(--ed-interval, 6500ms) linear both; }
@keyframes ed-dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ed-slider__btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(10, 42, 38, .45); color: #fff; cursor: pointer; }
.ed-slider .ed-waterline { z-index: 1; pointer-events: none; }
.ed-slider__btn:hover { background: rgba(255, 255, 255, .15); }
.ed-slider__btn .ed-icon { width: 18px; height: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .ed-slide.is-active .ed-slide__img { animation: ed-kenburns 9s ease-out both; }
  .ed-slide.is-active .ed-slide__text > * { animation: ed-rise .6s var(--ed-ease) both; }
  .ed-slide.is-active .ed-slide__text > :nth-child(2) { animation-delay: .06s; }
  .ed-slide.is-active .ed-slide__text > :nth-child(3) { animation-delay: .12s; }
  .ed-slide.is-active .ed-slide__text > :nth-child(4) { animation-delay: .18s; }
}
@keyframes ed-kenburns { from { transform: scale(1.12); } to { transform: scale(1.03); } }

@media (max-width: 599px) {
  .ed-slider { --ed-slide-h: min(660px, 86svh); }
  .ed-slide { align-items: flex-end; }
  .ed-slide::before { background: linear-gradient(0deg, rgba(10, 42, 38, .96) 0%, rgba(10, 42, 38, .8) 45%, rgba(10, 42, 38, .25) 100%); }
  .ed-slide__body { padding-bottom: 168px; }
  .ed-slider__bar { flex-direction: column-reverse; align-items: flex-start; bottom: 64px; }
  .ed-slider__btn[data-prev], .ed-slider__btn[data-next] { display: none; }
  .ed-slider__dots { margin: 0; }
}

/* ---------- quick paths (overlap the waterline) ---------- */
.ed-paths { position: relative; z-index: 2; margin-top: -28px; }
.ed-paths__list {
  list-style: none; margin: 0; padding: 6px; display: grid; gap: 6px;
  background: var(--ed-white); border-radius: var(--ed-r-lg); box-shadow: var(--ed-shadow-lg);
}
.ed-path {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 64px; padding: 12px 14px;
  border: 0; border-radius: 18px; background: transparent; text-align: left; cursor: pointer;
  color: var(--ed-ink) !important; text-decoration: none; transition: background-color .18s;
}
.ed-path:hover { background: var(--ed-paper); }
.ed-path__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--ed-mist); color: var(--ed-mangrove); flex: none; }
.ed-path--gold .ed-path__icon { background: #FBEFD3; color: var(--ed-gold-dk); }
.ed-path__body { flex: 1; min-width: 0; }
.ed-path__title { display: block; font-family: var(--ed-font-display); font-weight: 700; font-size: .98rem; line-height: 1.25; }
.ed-path__text { display: block; color: var(--ed-silt); font-size: var(--ed-step--1); line-height: 1.4; margin-top: 2px; }
.ed-path__go { color: var(--ed-silt); transition: transform .2s var(--ed-ease), color .2s; }
.ed-path:hover .ed-path__go { transform: translateX(3px); color: var(--ed-mangrove); }

/* ---------- sections ---------- */
.ed-section { padding-block: var(--ed-section); }
.ed-section__head { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 62ch; }
.ed-section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; }
.ed-section__lead { margin: 0; color: var(--ed-silt); font-size: var(--ed-step-0); line-height: 1.5; }

/* focus areas */
.ed-focus__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ed-focus__item { position: relative; display: flex; flex-direction: column; background: var(--ed-white); border-radius: var(--ed-r-lg); overflow: hidden; border: 1px solid var(--ed-line); }
.ed-focus__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ed-mist); }
.ed-focus__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ed-focus__body p { margin: 0 0 12px; color: var(--ed-silt); }
.ed-focus__body .ed-arrow-link { margin-top: auto; align-self: flex-start; }
.ed-focus__icon { display: grid; place-items: center; width: 40px; height: 40px; margin: -42px 0 10px; position: relative; border-radius: 12px; background: var(--ed-gold); color: var(--ed-ink); box-shadow: 0 0 0 5px var(--ed-white); }

/* posts */
.ed-posts { background: var(--ed-white); border-block: 1px solid var(--ed-line); }
.ed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 8px; color: var(--ed-silt); font-size: var(--ed-step--1); }
.ed-meta__views { display: inline-flex; align-items: center; gap: 4px; }
.ed-meta__views .ed-icon { width: 1.05em; height: 1.05em; }
.ed-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--ed-gold); color: var(--ed-ink); font-weight: 700; font-size: .78rem; }
.ed-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(140deg, var(--ed-creek-2), var(--ed-mangrove)); }
.ed-noimg img { width: 56px !important; height: 56px !important; border-radius: 14px; opacity: .9; object-fit: cover; }

.ed-feature { display: grid; gap: 0; margin-bottom: 28px; border-radius: var(--ed-r-lg); overflow: hidden; background: var(--ed-paper); }
.ed-feature__media { display: block; aspect-ratio: 16 / 10; background: var(--ed-mist); }
.ed-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.ed-feature__body { padding: clamp(20px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.ed-feature__title { font-family: var(--ed-font-display); font-size: var(--ed-step-2); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; text-wrap: balance; }
.ed-feature__title a { color: var(--ed-ink) !important; text-decoration: none; }
.ed-feature__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.ed-feature__text { margin: 0 0 18px; color: var(--ed-silt); max-width: 60ch; }

.ed-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.ed-card { position: relative; display: flex; flex-direction: column; }
.ed-card__media { aspect-ratio: 16 / 10; border-radius: var(--ed-r); overflow: hidden; background: var(--ed-mist); margin-bottom: 14px; }
.ed-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ed-ease); }
.ed-card:hover .ed-card__media img { transform: scale(1.03); }
.ed-card__title { font-family: var(--ed-font-display); font-size: var(--ed-step-1); font-weight: 700; line-height: 1.25; margin: 0 0 6px; }
.ed-card__link { color: var(--ed-ink) !important; text-decoration: none; }
.ed-card__link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.ed-card:hover .ed-card__link { text-decoration: underline; }
.ed-card__link:focus-visible { outline: none; }
.ed-card:has(.ed-card__link:focus-visible) { outline: 3px solid var(--ed-gold); outline-offset: 6px; border-radius: var(--ed-r); }
.ed-card__text { margin: 0; color: var(--ed-silt); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ed-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 44px; }
.ed-pager__nums { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ed-pager__num, .ed-pager__step { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--ed-line); color: var(--ed-ink) !important; text-decoration: none; font-weight: 700; }
.ed-pager__num:hover, .ed-pager__step:hover { border-color: var(--ed-mangrove); }
.ed-pager__num.is-current { background: var(--ed-creek); border-color: var(--ed-creek); color: #fff !important; }
.ed-pager__gap { align-self: center; color: var(--ed-silt); }

.ed-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; border: 1.5px dashed var(--ed-line); border-radius: var(--ed-r-lg); color: var(--ed-silt); }
.ed-empty .ed-icon { width: 32px; height: 32px; color: var(--ed-mangrove); }
.ed-empty p { margin: 0; max-width: 46ch; }
.ed-empty--left { justify-items: start; text-align: left; padding: 24px; }

/* about */
.ed-about__inner { display: grid; gap: 32px; }
.ed-about__intro p { color: var(--ed-silt); font-size: var(--ed-step-0); line-height: 1.55; margin: 14px 0 18px; max-width: 52ch; }
.ed-about__vm { display: grid; gap: 16px; }
.ed-vm { padding: 24px 26px; border-radius: var(--ed-r-lg); background: var(--ed-white); border: 1px solid var(--ed-line); border-left: 4px solid var(--ed-mangrove); }
.ed-vm + .ed-vm { border-left-color: var(--ed-gold); }
.ed-vm__h { font-family: var(--ed-font-display); font-size: var(--ed-step-1); margin: 0 0 6px; }
.ed-vm p { margin: 0; }

/* events and story band */
.ed-band { padding-top: 0; }
.ed-band__inner { display: grid; gap: 24px; }
.ed-events, .ed-story { background: var(--ed-white); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: clamp(20px, 3vw, 32px); }
.ed-events .ed-section__head { margin-bottom: 18px; }
.ed-events__list { list-style: none; margin: 0; padding: 0; display: grid; }
.ed-event { display: flex; gap: 16px; align-items: center; padding: 14px 0; }
.ed-event + .ed-event { border-top: 1px solid var(--ed-line); }
.ed-event__date { display: grid; place-items: center; width: 60px; height: 64px; border-radius: 14px; background: var(--ed-creek); color: #fff; flex: none; line-height: 1; }
.ed-event__day { font-family: var(--ed-font-display); font-weight: 800; font-size: 1.3rem; }
.ed-event__mon { font-size: .78rem; color: var(--ed-gold); font-weight: 700; margin-top: -6px; }
.ed-event__title { margin: 0; font-weight: 700; font-size: .98rem; line-height: 1.3; }
.ed-event__where { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; color: var(--ed-silt); font-size: var(--ed-step--1); }
.ed-event__where .ed-icon { width: 1em; height: 1em; }

.ed-story { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-content: start; background: var(--ed-creek); color: var(--ed-on-dark); border-color: var(--ed-creek); }
.ed-story__img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ed-gold); background: var(--ed-creek-2); }
.ed-story__body { align-self: center; }
.ed-story__who { display: block; color: var(--ed-on-dark-muted); font-size: var(--ed-step--1); }
.ed-story__who strong { display: block; color: #fff; font-family: var(--ed-font-display); font-size: 1.08rem; }
.ed-story__text { margin: 10px 0 0; line-height: 1.55; }
.ed-story .ed-arrow-link { grid-column: 1 / -1; color: var(--ed-gold) !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ed-footer { position: relative; background: var(--ed-creek); color: var(--ed-on-dark); margin-top: clamp(48px, 7vw, 96px); }
.ed-footer__wave { position: absolute; left: 0; top: -1px; width: 100%; height: 40px; transform: scaleY(-1); }
.ed-footer__wave path { fill: var(--ed-paper); }
.ed-footer__inner { padding-top: 72px; padding-bottom: 24px; }
.ed-footer__h { font-family: var(--ed-font-display); font-size: 1.08rem; font-weight: 700; margin: 0 0 12px; color: #fff; }
.ed-footer__p { color: var(--ed-on-dark-muted); margin: 0; line-height: 1.55; }
.ed-footer__small { color: var(--ed-on-dark-muted); font-size: var(--ed-step--1); margin: 12px 0 0; line-height: 1.5; }
.ed-footer a { color: var(--ed-on-dark) !important; text-decoration: none; }
.ed-footer a:hover { text-decoration: underline; }

.ed-footer__news { display: grid; gap: 18px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(234, 242, 238, .14); }
.ed-footer__news .ed-footer__h { font-size: var(--ed-step-2); }
.ed-subscribe { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-content: start; }
.ed-input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(234, 242, 238, .3); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.ed-input::placeholder { color: var(--ed-on-dark-muted); }
.ed-input:focus { outline: none; border-color: var(--ed-gold); }
.ed-subscribe .ed-btn { min-height: 48px; }
.ed-subscribe__msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: var(--ed-step--1); color: var(--ed-on-dark-muted); }
.ed-subscribe__msg.is-ok { color: #8FE0B5; }
.ed-subscribe__msg.is-err { color: #FFB4A3; }
.ed-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ed-footer__cols { display: grid; gap: 32px; }
.ed-brand--footer { margin: 0 0 14px; }
.ed-brand--footer .ed-brand__logo { width: 44px; height: 44px; }
.ed-brand--footer .ed-brand__name { white-space: normal; }
.ed-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ed-footer__col li a { display: inline-block; padding: 5px 0; }
.ed-footer__statusline { padding: 2px 0 8px; }
.ed-footer__toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.ed-footer__toggle .ed-icon { display: none; }
.ed-footer__contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--ed-on-dark-muted); padding: 5px 0; line-height: 1.45; }
.ed-footer__contact .ed-icon { color: var(--ed-gold); margin-top: .1em; }
.ed-footer__contact a { padding: 0 !important; word-break: break-word; }
.ed-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(234, 242, 238, .14); font-size: var(--ed-step--1); color: var(--ed-on-dark-muted); }

/* ==========================================================================
   Donate dialog
   ========================================================================== */
.ed-dialog {
  width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: clamp(22px, 5vw, 34px); border: 0; border-radius: var(--ed-r-lg);
  background: var(--ed-white); color: var(--ed-ink); box-shadow: var(--ed-shadow-lg);
}
.ed-dialog::backdrop { background: rgba(6, 26, 23, .6); }
.ed-dialog[open] { animation: ed-rise .25s var(--ed-ease); }
.ed-dialog__close-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.ed-dialog__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ed-paper); cursor: pointer; color: var(--ed-ink); }
.ed-dialog__title { font-family: var(--ed-font-display); font-size: var(--ed-step-2); font-weight: 700; margin: 0 52px 8px 0; line-height: 1.15; }
.ed-dialog__lead { color: var(--ed-silt); margin: 0 0 20px; }
.ed-bank { margin: 0; display: grid; gap: 2px; background: var(--ed-paper); border-radius: var(--ed-r); padding: 6px; }
.ed-bank > div { padding: 12px 14px; border-radius: 10px; background: var(--ed-white); }
.ed-bank dt { font-size: var(--ed-step--1); color: var(--ed-silt); }
.ed-bank dd { margin: 2px 0 0; font-weight: 700; }
.ed-bank__num dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ed-bank__num [data-copy-source] { font-family: var(--ed-font-display); font-size: 1.4rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ed-dialog__note { margin: 18px 0 0; font-size: var(--ed-step--1); color: var(--ed-silt); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* phones */
@media (max-width: 599px) {
  :root { --ed-tabbar-h: calc(64px + env(safe-area-inset-bottom)); --ed-header-h: 60px; }
  .ed-hide-sm { display: none !important; }
  .ed-brand__logo { width: 36px; height: 36px; }
  .ed-brand__name { font-size: .95rem; }
  .ed-hero__actions .ed-btn { flex: 1 1 100%; }
  .ed-hero__media img { aspect-ratio: 16 / 10; border-radius: 22px 22px 22px 64px; }
  .ed-hero__media::after { display: none; }
  .ed-subscribe { grid-template-columns: 1fr; }
  .ed-footer__inner { padding-top: 56px; }
  .ed-footer__news { padding-bottom: 28px; margin-bottom: 8px; }
  .ed-footer__cols { gap: 0; }
  .ed-footer__about { order: 3; padding-top: 24px; }
  .ed-footer__col { border-bottom: 1px solid rgba(234, 242, 238, .14); }
  .ed-footer__col .ed-footer__h { margin: 0; }
  .ed-footer__toggle { min-height: 56px; cursor: pointer; }
  .ed-footer__toggle .ed-icon { display: block; color: var(--ed-on-dark-muted); transition: transform .2s; }
  .ed-footer__toggle[aria-expanded="true"] .ed-icon { transform: rotate(180deg); }
  .ed-js .ed-footer__links { display: none; }
  .ed-js .ed-footer__links.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding-bottom: 16px; animation: ed-rise .2s var(--ed-ease); }
  .ed-footer__links .ed-footer__statusline { grid-column: 1 / -1; }
  .ed-footer__col--contact { border-bottom: 0 !important; padding: 16px 0 4px; }
  .ed-footer__col--contact .ed-footer__h { margin-bottom: 8px !important; }
  .ed-footer__contact li { padding: 4px 0; }
  .ed-footer__base { margin-top: 20px; }
  .ed-paths__list { grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
  .ed-path { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-height: 0; }
  .ed-path__text, .ed-path__go { display: none; }
  .ed-path__title { font-size: .9rem; }
  .ed-story { grid-template-columns: 1fr; }
  .ed-section__head--row .ed-btn { width: 100%; }
  .ed-cards { gap: 0; }
  .ed-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ed-line); }
  .ed-card__media { margin: 0; aspect-ratio: 1; border-radius: 12px; }
  .ed-card__title { font-size: 1.05rem; }
  .ed-card__text { display: none; }
  .ed-card .ed-meta { margin-bottom: 4px; }
  .ed-feature__title { font-size: var(--ed-step-2); }

  /* focus areas become a swipe row */
  .ed-focus__list {
    grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--ed-gutter)); padding: 4px var(--ed-gutter) 12px; scroll-padding-inline: var(--ed-gutter);
    scrollbar-width: none;
  }
  .ed-focus__list::-webkit-scrollbar { display: none; }
  .ed-focus__item { scroll-snap-align: start; }
}
@media (max-width: 359px) {
  .ed-brand__sub { display: none; }
  .ed-tabbar__item { font-size: .64rem; }
  .ed-bank__num [data-copy-source] { font-size: 1.35rem; }
}
@media (min-width: 600px) {
  .ed-tabbar { display: none; }
  .ed-paths__list { grid-template-columns: 1fr 1fr; }
  .ed-footer__news { grid-template-columns: 1fr 1fr; align-items: center; }
  .ed-footer__cols { grid-template-columns: 1fr 1fr; }
  .ed-about__vm { grid-template-columns: 1fr 1fr; }
  .ed-focus__list { grid-template-columns: 1fr 1fr; }
  .ed-focus__item--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
  .ed-focus__item--lead .ed-focus__img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .ed-focus__item--lead .ed-focus__body { justify-content: center; padding: 32px; }
  .ed-focus__item--lead .ed-focus__icon { margin-top: 0; box-shadow: none; }
}
@media (max-width: 1279px) { .ed-hide-md { display: none !important; } }
@media (min-width: 600px) and (max-width: 899px) {
  .ed-hero__media img { aspect-ratio: 16 / 9; border-radius: 26px 26px 26px 96px; }
  .ed-hero__media::after { display: none; }
}

/* tablets landscape and up */
@media (min-width: 900px) {
  .ed-hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .ed-hero__media img { aspect-ratio: 4 / 5; }
  .ed-feature { grid-template-columns: 1.15fr 1fr; }
  .ed-feature__media { aspect-ratio: auto; min-height: 360px; }
  .ed-about__inner { grid-template-columns: .9fr 1.1fr; align-items: start; gap: 56px; }
  .ed-about__vm { grid-template-columns: 1fr; }
  .ed-band__inner { grid-template-columns: 1.4fr 1fr; }
  .ed-footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
}

/* desktop: full menu replaces the drawer */
@media (min-width: 1080px) {
  .ed-nav { display: block; }
  .ed-burger { display: none; }
  .ed-brand { margin-right: 8px; }
  .ed-nav { margin-right: auto; }
  .ed-paths__list { grid-template-columns: repeat(4, 1fr); }
  .ed-path { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .ed-path__go { display: none; }
  .ed-focus__list { grid-template-columns: 1.3fr 1fr 1fr; }
  .ed-focus__item--lead { grid-column: auto; grid-row: span 1; display: flex; }
  .ed-focus__item--lead .ed-focus__img { height: auto; aspect-ratio: 16 / 11; min-height: 0; }
  .ed-focus__item--lead .ed-focus__body { justify-content: flex-start; padding: 20px 22px 24px; }
  .ed-focus__item--lead .ed-focus__icon { margin-top: -42px; box-shadow: 0 0 0 5px var(--ed-white); }
  .ed-focus__item--lead .ed-h3 { font-size: var(--ed-step-2); }
}
@media (min-width: 1080px) and (max-width: 1199px) {
  .ed-brand__sub { display: none; }
  .ed-nav__link { padding: 0 9px; }
}
/* large and ultra-wide screens */
@media (min-width: 1600px) {
  :root { --ed-wrap: 1400px; }
}

/* touch devices: no hover lift on cards */
@media (hover: none) {
  .ed-card:hover .ed-card__media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ed *, .ed *::before, .ed *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .ed-header, .ed-tabbar, .ed-drawer, .ed-footer__news, .ed-waterline, .ed-dialog { display: none !important; }
  body.ed { background: #fff; padding: 0; }
}

/* ==========================================================================
   Inner pages: header band, panels, forms, alerts, tabs, accordions
   ========================================================================== */
.ed-pagehead { position: relative; background: var(--ed-creek); color: var(--ed-on-dark); overflow: hidden; isolation: isolate; }
.ed-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: radial-gradient(90% 120% at 100% 0%, var(--ed-creek-3) 0%, transparent 60%); }
.ed-pagehead__inner { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(52px, 7vw, 84px); }
.ed-pagehead--compact .ed-pagehead__inner { padding-top: clamp(22px, 4vw, 40px); padding-bottom: clamp(44px, 6vw, 64px); }
.ed-pagehead__kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--ed-on-dark-muted); font-size: var(--ed-step--1); font-weight: 700; }
.ed-pagehead__kicker .ed-icon { width: 1.1em; height: 1.1em; color: var(--ed-gold); }
.ed-pagehead__title { font-family: var(--ed-font-display); font-weight: 750; font-size: var(--ed-step-4); line-height: 1.06; letter-spacing: -.022em; margin: 0; color: #fff; max-width: 22ch; text-wrap: balance; }
.ed-pagehead__lead { margin: 12px 0 0; color: var(--ed-on-dark); opacity: .88; max-width: 60ch; }
.ed-pagehead__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 28px; }
.ed-pagehead__wave path { fill: var(--ed-paper); }

.ed-page { padding-top: clamp(20px, 3vw, 36px); }
.ed-split { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .ed-split { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 28px; }
  .ed-split--rev { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.6fr); }
  .ed-sticky { position: sticky; top: calc(var(--ed-header-h) + 16px); }
}
.ed-panel { background: var(--ed-white); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); padding: clamp(18px, 3.2vw, 32px); }
.ed-panel + .ed-panel { margin-top: 16px; }
.ed-panel--tint { background: var(--ed-mist); border-color: transparent; }
.ed-panel--dark { background: var(--ed-creek); color: var(--ed-on-dark); border-color: var(--ed-creek); }
.ed-panel__title { font-family: var(--ed-font-display); font-size: var(--ed-step-2); font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.ed-panel__sub { margin: 0 0 18px; color: var(--ed-silt); font-size: .95rem; }
.ed-panel--dark .ed-panel__sub { color: var(--ed-on-dark-muted); }
.ed-narrow { max-width: 520px; margin-inline: auto; }

/* lists inside asides */
.ed-infolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ed-infolist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.ed-infolist .ed-icon { color: var(--ed-mangrove); margin-top: .1em; }
.ed-panel--dark .ed-infolist .ed-icon { color: var(--ed-gold); }
.ed-panel--dark a { color: #fff !important; }
.ed-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.ed-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.ed-steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ed-gold); color: var(--ed-ink); font-weight: 700; font-size: .9rem; }
.ed-steps strong { display: block; color: #fff; }
.ed-steps span { color: var(--ed-on-dark-muted); font-size: .92rem; }

/* alerts */
.ed-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--ed-r); margin-bottom: 18px; border: 1px solid; font-size: .95rem; line-height: 1.5; }
.ed-alert p { margin: 0; }
.ed-alert ul { margin: 4px 0 0; padding-left: 18px; }
.ed-alert__title { font-weight: 700; margin-bottom: 2px !important; }
.ed-alert__icon { flex: none; margin-top: .1em; }
.ed-alert--success { background: #E8F6EE; border-color: #B7E2C8; color: #0B4A2F; }
.ed-alert--error { background: #FDECE8; border-color: #F3C2B6; color: #7A2414; }
.ed-alert--info { background: #EAF2F8; border-color: #C3D9EA; color: #123F5E; }
.ed-alert a { color: inherit !important; font-weight: 700; }

/* forms */
.ed-form { display: grid; gap: 18px; }
.ed-form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .ed-form__row--2 { grid-template-columns: 1fr 1fr; } .ed-form__row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.ed-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.ed-fieldset + .ed-fieldset { margin-top: 10px; }
.ed-fieldset__legend { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 2px; font-family: var(--ed-font-display); font-weight: 700; font-size: 1.05rem; }
.ed-fieldset__legend .ed-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--ed-mist); color: var(--ed-mangrove); }
.ed-fieldset__note { margin: -10px 0 0; color: var(--ed-silt); font-size: .9rem; }
.ed-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ed-label { font-weight: 700; font-size: .92rem; color: var(--ed-ink); }
.ed-label .ed-opt { font-weight: 400; color: var(--ed-silt); }
.ed-control {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--ed-line);
  background: var(--ed-white); color: var(--ed-ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.ed-control::placeholder { color: #93A29D; }
.ed-control:hover { border-color: #C5D2CC; }
.ed-control:focus { outline: none; border-color: var(--ed-mangrove); box-shadow: 0 0 0 4px rgba(11, 110, 79, .14); }
textarea.ed-control { min-height: 150px; resize: vertical; }
select.ed-control { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select.ed-control:disabled { opacity: .6; }
.ed-control.is-invalid, .ed-field.is-invalid .ed-control { border-color: #C8553D; }
.ed-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(200, 85, 61, .15); }
.ed-hint { margin: 0; font-size: .85rem; color: var(--ed-silt); line-height: 1.45; }
.ed-err { margin: 0; font-size: .85rem; color: #A3361F; font-weight: 700; }
.ed-err:empty { display: none; }
.ed-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ed-pw { position: relative; }
.ed-pw .ed-control { padding-right: 52px; }
.ed-pw__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ed-silt); cursor: pointer; border-radius: 10px; }
.ed-pw__btn:hover { color: var(--ed-ink); }
.ed-meter { height: 4px; border-radius: 4px; background: var(--ed-line); overflow: hidden; }
.ed-meter span { display: block; height: 100%; width: 0; background: #C8553D; transition: width .25s, background-color .25s; }

.ed-check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; line-height: 1.45; cursor: pointer; }
.ed-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ed-mangrove); flex: none; }

/* photo picker with preview */
.ed-photo { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1.5px dashed var(--ed-line); border-radius: var(--ed-r); background: var(--ed-paper); }
.ed-photo__preview { width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ed-mist); color: var(--ed-mangrove); overflow: hidden; }
.ed-photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.ed-photo__body { display: grid; gap: 6px; min-width: 0; }
.ed-photo input[type=file], .ed-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ed-photo:focus-within, .ed-drop:focus-within { border-color: var(--ed-mangrove); }

/* drag-and-drop file box */
.ed-drop { position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 18px; text-align: center; border: 1.5px dashed #BFCEC7; border-radius: var(--ed-r-lg); background: var(--ed-paper); cursor: pointer; transition: border-color .15s, background-color .15s; }
.ed-drop.is-over { border-color: var(--ed-mangrove); background: var(--ed-mist); }
.ed-drop > .ed-icon { width: 34px; height: 34px; color: var(--ed-mangrove); }
.ed-drop__title { margin: 0; font-weight: 700; }
.ed-drop__meta { margin: 0; font-size: .85rem; color: var(--ed-silt); }
.ed-drop__file { display: none; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--ed-white); border: 1px solid var(--ed-line); font-size: .88rem; font-weight: 700; max-width: 100%; }
.ed-drop__file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-drop.has-file .ed-drop__file { display: inline-flex; }

.ed-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ed-form__actions .ed-btn { min-width: 160px; }
.ed-btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.ed-btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ed-spin .7s linear infinite; }
@keyframes ed-spin { to { transform: rotate(360deg); } }
.ed-muted-link { color: var(--ed-silt) !important; font-weight: 700; font-size: .92rem; }
@media (max-width: 599px) { .ed-form__actions .ed-btn { width: 100%; } .ed-form__actions { justify-content: center; } }

/* auth pages (register, login, forgot password) */
.ed-auth { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .ed-auth { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr); gap: 28px; } }
.ed-auth__switch { margin: 16px 0 0; text-align: center; color: var(--ed-silt); font-size: .95rem; }

/* status result card (subscription confirmation and similar) */
.ed-result { text-align: center; display: grid; justify-items: center; gap: 10px; }
.ed-result__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.ed-result__icon .ed-icon { width: 30px; height: 30px; }
.ed-result--success .ed-result__icon { background: #E8F6EE; color: #0B8A4F; }
.ed-result--error .ed-result__icon { background: #FDECE8; color: #B3261E; }
.ed-result--info .ed-result__icon { background: #EAF2F8; color: #045C9D; }
.ed-result h2 { font-family: var(--ed-font-display); font-size: var(--ed-step-3); line-height: 1.15; margin: 0; }
.ed-result p { margin: 0; color: var(--ed-silt); max-width: 46ch; }
.ed-result .ed-form__actions { justify-content: center; margin-top: 10px; }

/* tabs (segmented) */
.ed-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ed-white); border: 1px solid var(--ed-line); max-width: 100%; overflow-x: auto; }
.ed-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; color: var(--ed-silt) !important; text-decoration: none; font-weight: 700; white-space: nowrap; }
.ed-tab:hover { color: var(--ed-ink) !important; }
.ed-tab.is-active { background: var(--ed-creek); color: #fff !important; }
.ed-tab .ed-icon { width: 18px; height: 18px; }
.ed-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.ed-count { color: var(--ed-silt); font-size: .92rem; margin: 0; }

/* beneficiary cards */
.ed-bgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ed-bcard { display: flex; flex-direction: column; background: var(--ed-white); border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); overflow: hidden; }
.ed-bcard__media { display: block; aspect-ratio: 4 / 3; background: var(--ed-mist); overflow: hidden; }
.ed-bcard__media img { width: 100%; height: 100%; object-fit: cover; }
.ed-bcard__body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.ed-bcard__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ed-bcard__who .ed-avatar { width: 44px; height: 44px; }
.ed-bcard__name { margin: 0; font-weight: 700; line-height: 1.25; }
.ed-bcard__meta { margin: 2px 0 0; font-size: .82rem; color: var(--ed-silt); line-height: 1.35; }
.ed-bcard__quote { margin: 0; font-size: .93rem; color: var(--ed-ink); line-height: 1.5; padding-left: 12px; border-left: 3px solid var(--ed-gold); }
.ed-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ed-mist); color: var(--ed-mangrove); font-size: .76rem; font-weight: 700; }

/* lightbox for receipt images */
.ed-lightbox { padding: 0; border: 0; background: transparent; max-width: min(960px, 96vw); max-height: 92dvh; }
.ed-lightbox::backdrop { background: rgba(6, 26, 23, .85); }
.ed-lightbox img { max-width: 100%; max-height: 86dvh; border-radius: var(--ed-r); display: block; margin: auto; }
.ed-lightbox form { position: fixed; top: 12px; right: 12px; margin: 0; }
.ed-lightbox .ed-dialog__x { background: rgba(255, 255, 255, .9); }

/* accordion */
.ed-acc { border: 1px solid var(--ed-line); border-radius: var(--ed-r-lg); background: var(--ed-white); overflow: hidden; }
.ed-acc details + details { border-top: 1px solid var(--ed-line); }
.ed-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; line-height: 1.35; }
.ed-acc summary::-webkit-details-marker { display: none; }
.ed-acc summary:hover { background: var(--ed-paper); }
.ed-acc summary .ed-acc__num { flex: none; min-width: 34px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; background: var(--ed-mist); color: var(--ed-mangrove); font-size: .8rem; }
.ed-acc summary .ed-acc__t { flex: 1; }
.ed-acc summary > .ed-icon { flex: none; color: var(--ed-silt); transition: transform .2s; }
.ed-acc details[open] > summary > .ed-icon { transform: rotate(180deg); }
.ed-acc details[open] > summary { background: var(--ed-paper); }
.ed-acc__body { padding: 4px 20px 20px; max-width: 75ch; }
.ed-acc__body p, .ed-acc__body li { line-height: 1.65; }
.ed-acc__body ul, .ed-acc__body ol { padding-left: 20px; }

/* prose */
.ed-prose { max-width: 70ch; }
.ed-prose p { margin: 0 0 1em; line-height: 1.7; }
.ed-prose p:last-child { margin-bottom: 0; }

/* people (board) */
.ed-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ed-person { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--ed-r-lg); background: var(--ed-white); border: 1px solid var(--ed-line); }
.ed-person__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--ed-mist); }
.ed-person__role { margin: 0; font-size: .8rem; font-weight: 700; color: var(--ed-mangrove); }
.ed-person__name { margin: 2px 0 6px; font-weight: 700; line-height: 1.3; }
.ed-person__bio { margin: 0; font-size: .88rem; color: var(--ed-silt); line-height: 1.5; }

/* in-page section nav (about) */
.ed-jump { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 20px; }
.ed-jump::-webkit-scrollbar { display: none; }
.ed-jump a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ed-line); background: var(--ed-white); color: var(--ed-ink) !important; text-decoration: none; font-weight: 700; font-size: .88rem; }
.ed-jump a:hover { border-color: var(--ed-mangrove); }
.ed-block { scroll-margin-top: calc(var(--ed-header-h) + 16px); }
.ed-block + .ed-block { margin-top: clamp(28px, 4vw, 44px); }
.ed-block__h { font-family: var(--ed-font-display); font-size: var(--ed-step-3); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; }
.ed-more summary { list-style: none; cursor: pointer; margin: 4px 0 14px; }
.ed-more summary::-webkit-details-marker { display: none; }
.ed-more summary .ed-icon { transition: transform .2s; }
.ed-more[open] summary .ed-icon { transform: rotate(180deg); }
.ed-more[open] summary { margin-bottom: 1em; }
@media (min-width: 600px) { .ed-block .ed-about__vm { grid-template-columns: 1fr 1fr; } }
.ed-photo.is-invalid { border-color: #C8553D; }
.ed-photo { cursor: pointer; }
.ed-fieldset > .ed-fieldset__legend { width: 100%; }

/* phones: keep the header tidy when signed in, and keep side panels short */
@media (max-width: 599px) {
  .ed-account__name, .ed-account__btn .ed-nav__chev { display: none; }
  .ed-account__btn { padding: 3px; border: 0; }
  .ed-header__actions { gap: 6px; }
}
@media (max-width: 959px) {
  .ed-auth > .ed-panel--dark { padding: 16px 18px; }
  .ed-auth > .ed-panel--dark .ed-panel__title { font-size: 1rem; }
  .ed-auth > .ed-panel--dark .ed-steps { gap: 8px; margin-top: 10px !important; }
  .ed-auth > .ed-panel--dark .ed-steps span,
  .ed-auth > .ed-panel--dark .ed-panel__sub { display: none; }
  .ed-auth > .ed-panel--dark .ed-steps li { grid-template-columns: 26px 1fr; align-items: center; }
  .ed-auth > .ed-panel--dark .ed-steps li::before { width: 26px; height: 26px; font-size: .8rem; }
  .ed-auth > .ed-panel--dark .ed-status { margin-top: 12px !important; }
}
.ed-bcard__media img { object-position: top center; }
