/* ==========================================================================
   Day Lily Education — Shared Stylesheet (demo)
   Plain CSS3. No build step. Palette inspired by a day lily bloom.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --coral:        #E0603D;   /* warm coral/orange — primary */
  --coral-600:    #C4492A;   /* deeper coral for hover/press */
  --coral-700:    #A63C22;
  --coral-050:    #FBEDE6;   /* soft coral tint */
  --amber:        #E7A23A;   /* soft gold/amber — secondary */
  --amber-600:    #CE8A24;
  --gold:         #F2C14E;   /* bright golden throat accent */
  --amber-050:    #FBF1DD;
  --sage:         #3F6E93;   /* deep steel blue — accent (var name kept) */
  --sage-600:     #315A79;
  --sage-700:     #223F58;
  --sage-050:     #E8EFF5;

  /* Neutrals */
  --cream:        #FDF8F1;   /* page background */
  --cream-100:    #F8EEE1;   /* alt section background */
  --sand:         #F2E6D4;   /* warm panel */
  --charcoal:     #2C2621;   /* body text */
  --charcoal-70:  #5B534B;   /* muted text */
  --charcoal-45:  #8A8078;   /* faint text */
  --line:         #EADFCE;   /* borders */
  --line-strong:  #DFD1BB;
  --white:        #FFFFFF;

  /* Typography */
  --font-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(43,38,33,.06), 0 2px 6px rgba(43,38,33,.06);
  --shadow:    0 8px 24px rgba(43,38,33,.10);
  --shadow-lg: 0 20px 48px rgba(43,38,33,.16);

  /* Motion */
  --t-fast: .16s ease;
  --t:      .28s cubic-bezier(.2,.7,.3,1);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 116px;
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--coral-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--coral-700); }

ul, ol { padding-left: 1.2rem; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { color: var(--charcoal); }
p + p { margin-top: 1rem; }

strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--amber-050); color: var(--coral-700); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--coral);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; outline: 3px solid var(--gold); }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 820px; }

.section { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.bg-cream  { background: var(--cream); }
.bg-alt    { background: var(--cream-100); }
.bg-sand   { background: var(--sand); }
.bg-sage   { background: var(--sage); color: #f4f6f1; }
.bg-sage h1, .bg-sage h2, .bg-sage h3 { color: #fff; }

/* ---------- Section headings ---------- */
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.14rem; color: var(--charcoal-70); }
.text-muted { color: var(--charcoal-70); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(224,96,61,.28); }
.btn-primary:hover { background: var(--coral-600); color: #fff; box-shadow: 0 12px 26px rgba(224,96,61,.34); }

.btn-secondary { background: var(--sage); color: #fff; box-shadow: 0 8px 20px rgba(63,110,147,.26); }
.btn-secondary:hover { background: var(--sage-600); color: #fff; }

.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral-700); background: var(--coral-050); }

.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; border-color: #fff; }

.btn-sm { padding: .55rem 1.05rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--coral-600);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,248,241,.92);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Top utility bar */
.topbar {
  background: var(--sage-700);
  color: #eef2ea;
  font-size: .84rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: .3rem;
}
.topbar-tagline { display: inline-flex; align-items: center; gap: .5rem; color: #dbe4d5; }
.topbar-tagline svg { width: 15px; height: 15px; opacity: .9; }
.topbar-links { display: flex; align-items: center; gap: .9rem; }
.topbar-links a { color: #eef2ea; font-weight: 500; }
.topbar-links a.plain:hover { color: #fff; text-decoration: underline; }
.topbar-links .btn-primary { color: #fff; box-shadow: none; }

/* Main nav row */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--charcoal);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand:hover { color: var(--charcoal); }
.brand .lily { width: 38px; height: 38px; flex: none; transition: transform var(--t); }
.brand:hover .lily { transform: rotate(-8deg) scale(1.05); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--coral-600);
  margin-top: .28rem;
}
.brand b { font-weight: 600; }

/* Primary nav list */
.primary-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .2rem;
  margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .6rem .8rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
}
.nav-link:hover { color: var(--coral-700); background: var(--coral-050); }
.nav-item.is-current > .nav-link { color: var(--coral-700); }
.nav-item.is-current > .nav-link::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .18rem;
  height: 2px; border-radius: 2px;
  background: var(--coral);
}
.nav-caret {
  display: none; /* desktop uses hover; caret shown on mobile */
  background: none; border: 0; color: var(--charcoal-70);
  padding: .3rem;
}
.nav-link .chev { width: .7em; height: .7em; opacity: .7; transition: transform var(--t); }
.has-children:hover .nav-link .chev,
.has-children:focus-within .nav-link .chev { transform: rotate(180deg); }

/* Dropdown */
.subnav {
  list-style: none;
  margin: 0; padding: .5rem;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 264px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 50;
}
.has-children:hover > .subnav,
.has-children:focus-within > .subnav {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.subnav a {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  color: var(--charcoal);
  font-weight: 500;
  font-size: .95rem;
}
.subnav a:hover { background: var(--coral-050); color: var(--coral-700); }
.subnav a small { display: block; font-weight: 400; font-size: .8rem; color: var(--charcoal-45); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  width: 46px; height: 42px;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle .bars { position: relative; width: 22px; height: 15px; }
.nav-toggle .bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--charcoal); transition: transform var(--t), opacity var(--t-fast), top var(--t);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6.5px; }
.nav-toggle .bars span:nth-child(3) { top: 13px; }
.nav-open .nav-toggle .bars span:nth-child(1) { top: 6.5px; transform: rotate(45deg); }
.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bars span:nth-child(3) { top: 6.5px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(44,38,33,.30), rgba(44,38,33,.55)),
    var(--sage-700);
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  background-color: var(--sage-700);
  z-index: -1;
}
.hero-inner {
  padding-block: clamp(4rem, 12vw, 8rem);
  max-width: 720px;
}
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.hero p.hero-sub {
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  color: #f6efe6;
  margin-top: 1.1rem;
  max-width: 40ch;
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2.4rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-badge { }
.hero-badge b { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; line-height: 1; }
.hero-badge span { font-size: .84rem; color: #ece4d9; }

/* ==========================================================================
   GRIDS & CARDS
   ========================================================================== */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--amber-050), var(--coral-050));
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-tag {
  position: absolute; top: .8rem; left: .8rem;
  background: rgba(253,248,241,.94);
  color: var(--coral-700);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: var(--r-pill);
}
.card-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 a { color: var(--charcoal); }
.card-body h3 a:hover { color: var(--coral-700); }
.card-body p { color: var(--charcoal-70); font-size: .98rem; }
.card-body .link-arrow { margin-top: auto; padding-top: .4rem; }

/* Feature (icon) cards */
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.5rem;
  transition: transform var(--t), box-shadow var(--t);
  height: 100%;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--coral-050);
  color: var(--coral-600);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 27px; height: 27px; }
.feature:nth-child(2) .feature-icon { background: var(--amber-050); color: var(--amber-600); }
.feature:nth-child(3) .feature-icon { background: var(--sage-050); color: var(--sage-600); }
.feature:nth-child(4) .feature-icon { background: var(--coral-050); color: var(--coral-600); }
.feature h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.feature p { color: var(--charcoal-70); font-size: .96rem; }

/* Steps strip */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); height: 100%; }
.step-num {
  counter-increment: step;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sage); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  margin-bottom: 1rem;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.step p { color: var(--charcoal-70); font-size: .95rem; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  color: var(--gold);
  line-height: 1;
}
.bg-sage .stat b { color: var(--gold); }
.stat span { display: block; margin-top: .5rem; font-size: .95rem; color: #e7eee2; }
.stats.on-light .stat b { color: var(--coral); }
.stats.on-light .stat span { color: var(--charcoal-70); }

/* Mentor cards */
.mentor { text-align: center; }
.mentor .card-media { aspect-ratio: 1 / 1; border-radius: 50%; width: 150px; height: 150px; margin: 0 auto 1rem; box-shadow: var(--shadow); }
.mentor h3 { font-size: 1.2rem; }
.mentor .role { color: var(--coral-600); font-weight: 600; font-size: .9rem; }
.mentor p { color: var(--charcoal-70); font-size: .95rem; margin-top: .5rem; }

/* Split / media rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); aspect-ratio: 5/4; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4/5; }
.check-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--charcoal-70); }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--sage); margin-top: 2px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.quote-card .mark { font-family: var(--font-head); font-size: 3rem; line-height: .5; color: var(--amber); }
.quote-card blockquote { font-size: 1.08rem; font-style: italic; color: var(--charcoal); margin: .6rem 0 1.2rem; }
.quote-who { display: flex; align-items: center; gap: .8rem; }
.quote-who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.quote-who b { display: block; font-family: var(--font-head); }
.quote-who span { font-size: .85rem; color: var(--charcoal-70); }

/* Slider */
.slider { position: relative; }
.slider-track { display: flex; overflow: hidden; }
.slide {
  min-width: 100%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t), transform var(--t);
  position: absolute; inset: 0;
  pointer-events: none;
}
.slide.active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.slider-viewport { position: relative; min-height: 230px; }
.slider-featured blockquote { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.9rem); font-style: normal; line-height: 1.35; }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.slider-dots { display: flex; gap: .5rem; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--line-strong); padding: 0; transition: background var(--t), transform var(--t); }
.slider-dot.active { background: var(--coral); transform: scale(1.25); }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; color: var(--charcoal); transition: background var(--t), border-color var(--t); }
.slider-btn:hover { background: var(--coral-050); border-color: var(--coral); color: var(--coral-700); }
.slider-btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--coral) 0%, var(--amber) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: #fff7ef; max-width: 52ch; margin-top: .7rem; }
.cta-band .cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta-band .btn-outline { background: #fff; border-color: #fff; color: var(--coral-700); }
.cta-band .btn-outline:hover { background: #fff; color: var(--coral-700); transform: translateY(-2px); }

/* ==========================================================================
   PAGE BANNER (subpage hero)
   ========================================================================== */
.page-banner {
  position: relative;
  background:
    linear-gradient(180deg, rgba(44,38,33,.55), rgba(44,38,33,.55)),
    var(--sage-700);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.page-banner-inner { padding-block: clamp(2.8rem, 7vw, 4.6rem); }
.page-banner h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.3); }
.page-banner p { color: #f4ede3; max-width: 60ch; margin-top: .8rem; font-size: 1.1rem; }
.breadcrumbs { font-size: .85rem; color: #e9e0d4; margin-bottom: .9rem; }
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { opacity: .7; margin-inline: .4rem; }

/* ==========================================================================
   PROSE / long-form content
   ========================================================================== */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { display: grid; gap: .5rem; color: var(--charcoal-70); }
.prose li { padding-left: .2rem; }
.prose blockquote {
  border-left: 4px solid var(--amber);
  background: var(--amber-050);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic;
  color: var(--charcoal);
}
.prose img { border-radius: var(--r-lg); box-shadow: var(--shadow); margin-block: 1.5rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li {
  background: #fff; border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500; color: var(--charcoal-70);
}

.callout {
  background: var(--sage-050);
  border: 1px solid #cdddec;
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
}
.callout.coral { background: var(--coral-050); border-color: #f2d9cd; }
.callout.amber { background: var(--amber-050); border-color: #f2e2c2; }
.callout h3 { margin-bottom: .4rem; }

/* Two-column content w/ sidebar */
.with-aside { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.aside-card h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.aside-card ul { list-style: none; padding: 0; display: grid; gap: .2rem; }
.aside-card ul a { display: block; padding: .5rem .6rem; border-radius: var(--r-sm); color: var(--charcoal); font-weight: 500; font-size: .95rem; }
.aside-card ul a:hover { background: var(--coral-050); color: var(--coral-700); }
.aside-card .divider { border-top: 1px solid var(--line); margin: 1.1rem 0; }

/* ==========================================================================
   ACCORDION / FAQ
   ========================================================================== */
.accordion { display: grid; gap: .8rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left;
  background: none; border: 0;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--charcoal);
}
.acc-trigger:hover { color: var(--coral-700); }
.acc-trigger .plus { flex: none; width: 24px; height: 24px; position: relative; }
.acc-trigger .plus::before,
.acc-trigger .plus::after { content: ""; position: absolute; background: var(--coral); border-radius: 2px; transition: transform var(--t); }
.acc-trigger .plus::before { top: 11px; left: 3px; right: 3px; height: 2px; }
.acc-trigger .plus::after { left: 11px; top: 3px; bottom: 3px; width: 2px; }
.acc-item.open .plus::after { transform: scaleY(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.acc-panel-inner { padding: 0 1.3rem 1.25rem; color: var(--charcoal-70); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1.15rem; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.col-span { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--charcoal); }
.field .req { color: var(--coral); }
.field .hint { font-size: .82rem; color: var(--charcoal-45); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: .75rem .9rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(224,96,61,.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--charcoal-45); }

/* Custom validation styling (activated by JS adding .was-validated) */
.was-validated input:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
  border-color: #d6473b;
  box-shadow: 0 0 0 3px rgba(214,71,59,.12);
}
.field .error-msg { display: none; font-size: .82rem; color: #c23b30; font-weight: 500; }
.was-validated input:invalid ~ .error-msg,
.was-validated select:invalid ~ .error-msg,
.was-validated textarea:invalid ~ .error-msg { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; }
.checkbox-row input { width: auto; margin-top: .25rem; }
.checkbox-row label { font-weight: 400; font-size: .92rem; color: var(--charcoal-70); }

.form-note {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem; color: var(--charcoal-70);
  background: var(--amber-050);
  border: 1px dashed var(--amber);
  border-radius: var(--r-sm);
  padding: .7rem .9rem;
}
.form-note svg { flex: none; width: 18px; height: 18px; color: var(--amber-600); margin-top: 1px; }

/* Success message */
.form-success {
  display: none;
  align-items: flex-start;
  gap: .8rem;
  background: var(--sage-050);
  border: 1px solid #c8dbec;
  border-radius: var(--r);
  padding: 1.1rem 1.2rem;
  color: var(--sage-700);
  animation: pop .3s var(--t);
}
.form-success.show { display: flex; }
.form-success svg { flex: none; width: 26px; height: 26px; color: var(--sage); }
.form-success b { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--sage-700); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   LOGIN
   ========================================================================== */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding-block: clamp(2rem, 6vw, 4rem); }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .brand { justify-content: center; margin-bottom: 1.2rem; }
.auth-links { display: flex; justify-content: space-between; font-size: .88rem; margin-top: .2rem; }

/* ==========================================================================
   DONATION UI
   ========================================================================== */
.give-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem,4vw,2.2rem); box-shadow: var(--shadow); }
.toggle-row { display: inline-flex; background: var(--cream-100); border-radius: var(--r-pill); padding: .3rem; gap: .2rem; margin-bottom: 1.3rem; }
.toggle-row button { border: 0; background: none; padding: .55rem 1.2rem; border-radius: var(--r-pill); font-weight: 600; color: var(--charcoal-70); transition: background var(--t), color var(--t); }
.toggle-row button.active { background: #fff; color: var(--coral-700); box-shadow: var(--shadow-sm); }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
.amount-btn {
  border: 1.5px solid var(--line-strong);
  background: var(--cream);
  border-radius: var(--r); padding: 1rem .5rem;
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--charcoal);
  transition: border-color var(--t), background var(--t), color var(--t), transform var(--t-fast);
}
.amount-btn:hover { transform: translateY(-2px); border-color: var(--coral); }
.amount-btn.active { border-color: var(--coral); background: var(--coral-050); color: var(--coral-700); }

/* ==========================================================================
   NEWS
   ========================================================================== */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .85rem; color: var(--charcoal-45); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.post-author { display: inline-flex; align-items: center; gap: .5rem; }
.post-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.featured-post .fp-media { min-height: 300px; background: var(--coral-050); }
.featured-post .fp-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body { padding: clamp(1.5rem, 4vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; gap: .8rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--charcoal); color: #d8d0c7; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #d8d0c7; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand b, .footer-brand .brand { color: #fff; }
.footer-brand p { color: #b3aaa0; font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.footer-contact { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: .55rem; font-size: .92rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: #c4bbb1; }
.footer-contact svg { flex: none; width: 18px; height: 18px; color: var(--amber); margin-top: 3px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-news p { color: #b3aaa0; font-size: .92rem; margin-bottom: .8rem; }
.footer-news .news-form { display: flex; gap: .5rem; }
.footer-news input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: var(--r-sm);
  padding: .7rem .85rem; font-family: inherit; font-size: .92rem;
}
.footer-news input::placeholder { color: #a99f95; }
.footer-news input:focus { outline: none; border-color: var(--amber); background: rgba(255,255,255,.12); }
.footer-news .form-success { background: rgba(63,110,147,.22); border-color: rgba(110,150,190,.45); color: #d2e2f2; margin-top: .8rem; }
.footer-news .form-success b { color: #eaf1e5; }
.social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background var(--t), transform var(--t); }
.social a:hover { background: var(--coral); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  align-items: center; justify-content: space-between;
  font-size: .85rem; color: #9c938a;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.demo-flag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(231,162,58,.15); color: var(--gold);
  border: 1px solid rgba(231,162,58,.3);
  padding: .25rem .7rem; border-radius: var(--r-pill); font-weight: 600; font-size: .78rem;
}

/* ==========================================================================
   Toast (transient confirmations: downloads, copied links, etc.)
   ========================================================================== */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: var(--charcoal);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  font-weight: 500;
  max-width: min(92vw, 460px);
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-toast svg { flex: none; width: 18px; height: 18px; color: var(--gold); }

/* Resource list rows */
.res-list { display: grid; gap: .8rem; }
.res-row {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem 1.2rem; transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.res-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.res-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-050); color: var(--coral-600); }
.res-ico svg { width: 22px; height: 22px; }
.res-row .res-body { flex: 1; min-width: 0; }
.res-row .res-body b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.res-row .res-body span { font-size: .88rem; color: var(--charcoal-70); }
.res-row .res-meta { flex: none; font-size: .8rem; color: var(--charcoal-45); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ==========================================================================
   Image fallback (JS-driven, for offline / 404)
   ========================================================================== */
.is-img-fallback { object-fit: cover; background: linear-gradient(135deg, var(--amber-050), var(--coral-050)); }

/* ==========================================================================
   Reveal-on-scroll (progressive; only when .has-js on <html>)
   ========================================================================== */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.has-js .reveal.in { opacity: 1; transform: none; }
.has-js .reveal.d1 { transition-delay: .08s; }
.has-js .reveal.d2 { transition-delay: .16s; }
.has-js .reveal.d3 { transition-delay: .24s; }
.has-js .reveal.d4 { transition-delay: .32s; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.full { width: 100%; }
.maxw-720 { max-width: 720px; }
.divider-soft { border-top: 1px solid var(--line); }

/* ==========================================================================
   Member sign-in (login page) + members-only access notice
   ========================================================================== */
.signin-card { max-width: 460px; text-align: center; }
.signin-card .brand { justify-content: center; margin-bottom: 1rem; }
.signin-lock { width: 54px; height: 54px; margin: 0 auto .9rem; border-radius: 50%; display: grid; place-items: center; background: var(--coral-050); color: var(--coral-600); }
.signin-lock svg { width: 25px; height: 25px; }
.signin-card .field { text-align: left; }
.signin-fields { display: grid; gap: .9rem; margin-top: 1.1rem; animation: signinReveal .28s var(--t); }
.signin-fields[hidden] { display: none; }
@keyframes signinReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.signin-msg { display: none; text-align: left; background: #fdecea; border: 1px solid #f2c9c3; color: #b23b30; border-radius: var(--r-sm); padding: .65rem .85rem; font-size: .86rem; margin-top: 1rem; }
.signin-msg.show { display: block; }
.signin-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-size: .88rem; font-weight: 500; }
.signin-hint { font-size: .88rem; color: var(--charcoal-70); text-align: center; margin-top: 1.2rem; }

/* Members-only access notice (e.g. Online Library landing) */
.access-notice { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.access-notice .lockbox { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--coral-050); color: var(--coral-600); }
.access-notice .lockbox svg { width: 26px; height: 26px; }
.access-notice .an-body { flex: 1; min-width: 240px; }
.access-notice .an-body h3 { margin-bottom: .2rem; }
.access-notice .an-body p { color: var(--charcoal-70); margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 104px; }
  /* backdrop-filter creates a containing block for fixed children;
     disable it here so the full-height mobile nav panel anchors to the viewport. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(253,248,241,.97); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .with-aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-media { min-height: 220px; }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--cream);
    border-top: 1px solid var(--line);
    padding: 1rem var(--gutter) 3rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t);
    visibility: hidden;
  }
  .nav-open .primary-nav { transform: translateX(0); visibility: visible; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { justify-content: space-between; padding: .95rem .3rem; font-size: 1.05rem; }
  .nav-item.is-current > .nav-link::after { display: none; }
  .nav-item.is-current > .nav-link { color: var(--coral-700); }
  .nav-link .chev { display: none; }
  .nav-caret {
    display: inline-grid; place-items: center;
    position: absolute; right: 0; top: 0;
    width: 54px; height: 52px;
  }
  .nav-caret svg { width: 16px; height: 16px; transition: transform var(--t); }
  .nav-item.open .nav-caret svg { transform: rotate(180deg); }
  .has-children { position: relative; }
  .has-children > .nav-link { padding-right: 54px; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent;
    min-width: 0; padding: 0 0 .5rem .3rem;
    max-height: 0; overflow: hidden;
    transition: max-height var(--t);
  }
  .nav-item.open > .subnav { max-height: 620px; }
  .subnav a { padding: .55rem .6rem; font-size: .98rem; color: var(--charcoal-70); }
}

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; }
  .topbar-tagline { display: none; }
  .hero-inner { padding-block: 3.4rem; }
  .featured-post { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badges { gap: 1rem; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-inner .btn { width: auto; }
  .brand { font-size: 1.3rem; }
  .brand .lily { width: 32px; height: 32px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
