/* ===========================================================
   Magheralin Parish — design system v5
   Soft editorial style, inspired by lovechurch.org.uk
   Warm neutral base, two accent colors (rust=Magheralin, sage=Dollingstown)
   Display: Fraunces (serif, warm, editorial) · Body: Inter
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --cream: #FAFAF7;
  --off: #E5E3DD;
  --white: #FFFFFF;
  --ink: #2B2B29;
  --grey: #767470;
  --line: #E3E1DA;

  --rust: #B1543A;   /* Magheralin accent */
  --sage: #6E7F5C;   /* Dollingstown accent */
  --gold: #C7972F;   /* general highlight, sparingly */

  --display: 'Manrope', -apple-system, sans-serif;
  --body: 'Inter', -apple-system, sans-serif;

  --max: 1140px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:var(--body); font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation-duration:.001ms !important; transition-duration:.001ms !important; } }
:focus-visible{ outline:2px solid var(--rust); outline-offset:3px; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 28px; }

.eyebrow{
  font-family:var(--body); font-size:12.5px; font-weight:700;
  letter-spacing:0.09em; text-transform:uppercase; color:var(--rust);
}
.eyebrow.sage{ color:var(--sage); }
.eyebrow.on-light{ color:var(--grey); }

/* ---------- Header ---------- */
.site-header{ background:var(--cream); position:sticky; top:0; z-index:30; }
.topbar{ height:5px; background:linear-gradient(90deg, var(--rust) 0 33.33%, var(--gold) 33.33% 66.66%, var(--sage) 66.66% 100%); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:nowrap; padding:12px 24px; max-width:var(--max); margin:0 auto; gap:24px; position:relative; border-bottom:1px solid var(--line); }
.wordmark{ display:flex; align-items:center; text-decoration:none; color:var(--ink); flex:0 0 auto; }
.logo-mark{ height:44px; width:auto; display:block; }
@media (max-width: 640px){
  .logo-mark{ height:36px; }
}

.header-right{ display:flex; align-items:center; gap:18px; min-width:0; }
.social-row{ display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.social-row a{ color:var(--grey); display:flex; opacity:0.75; }
.social-row a:hover{ color:var(--rust); opacity:1; }
.social-row svg{ width:17px; height:17px; }
.social-row a:nth-child(3) svg{ transform:translateY(1.5px); }

nav.main-nav{ position:relative; display:flex; align-items:center; gap:18px; flex-wrap:nowrap; }
.nav-item{ position:relative; flex:0 0 auto; }
.nav-item > a, .nav-item > button.nav-parent{
  font-family:var(--body); font-size:13.5px; font-weight:500;
  text-decoration:none; color:var(--ink); padding-bottom:3px; white-space:nowrap;
  border-bottom:1px solid transparent; background:none; border-top:none; border-left:none; border-right:none;
  cursor:pointer; display:inline-flex; align-items:center; gap:5px;
}
.nav-item > a:hover, .nav-item > button.nav-parent:hover, .nav-item.open > button.nav-parent, .nav-item.current > button.nav-parent{ border-bottom-color:var(--rust); color:var(--rust); }
.nav-item .caret{ font-size:9px; transform:translateY(1px); }
.nav-dropdown{
  display:none; position:absolute; top:100%; left:0; margin-top:14px;
  background:var(--white); border:1px solid var(--line); box-shadow:0 18px 34px rgba(52,41,42,0.1);
  min-width:200px; padding:8px; z-index:30;
}
.nav-item.open .nav-dropdown{ display:block; }
.nav-dropdown a{ display:block; padding:10px 14px; font-family:var(--body); font-size:14px; font-weight:500; color:var(--ink); text-decoration:none; border-radius:2px; white-space:normal; }
.nav-dropdown a:hover{ background:var(--off); color:var(--rust); }
.nav-item.cta > a{ background:var(--rust); color:var(--white); padding:7px 15px; border-radius:999px; border-bottom:none; }
.nav-item.cta > a:hover{ background:#96432D; color:var(--white); }

/* Hamburger toggle — hidden on desktop */
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:36px; height:36px; background:none; border:none; cursor:pointer; padding:0; flex:0 0 auto;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .2s ease, opacity .2s ease; }
.nav-toggle.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-menu-top{ display:none; }

@media (max-width: 860px){
  .nav-toggle{ display:flex; }
  .mobile-menu-top{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 4px 20px; border-bottom:1px solid var(--line); margin-bottom:8px;
  }
  .mobile-menu-close{
    width:38px; height:38px; border:none; background:none; cursor:pointer;
    font-size:30px; line-height:1; color:var(--ink); font-family:var(--body); font-weight:400;
  }
  .header-right{
    display:none; position:fixed; inset:0; z-index:100;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--cream);
    padding:0 24px 32px; overflow-y:auto;
    height:100dvh;
  }
  .header-right.open{ display:flex; }
  nav.main-nav{ flex-direction:column; align-items:stretch; gap:0; flex:1; }
  .nav-item{ width:100%; border-bottom:1px solid var(--line); }
  .nav-item:last-of-type{ border-bottom:none; }
  .nav-item > a, .nav-item > button.nav-parent{
    width:100%; padding:18px 2px; border-bottom:none;
    justify-content:space-between; font-family:var(--body); font-size:19px; font-weight:600;
  }
  .nav-item > a:hover, .nav-item > button.nav-parent:hover{ border-bottom:none; }
  .nav-dropdown{
    display:none; position:static; margin:0; padding:0 0 16px 4px;
    background:none; border:none; box-shadow:none; min-width:0;
  }
  .nav-item.open .nav-dropdown{ display:block; }
  .nav-dropdown a{
    padding:13px 2px 13px 14px; border-top:1px solid var(--line);
    font-family:var(--body); font-size:17px; font-weight:500; color:var(--grey);
  }
  .nav-dropdown a:first-child{ border-top:1px solid var(--line); }
  .nav-dropdown a:hover{ background:none; color:var(--rust); }
  .nav-item.cta{ border-bottom:none; margin-top:20px; flex:0 0 auto; }
  .nav-item.cta > a{ display:block; text-align:center; padding:16px; font-size:16px; }
  .social-row{ margin-top:24px; padding-top:20px; border-top:1px solid var(--line); gap:20px; justify-content:center; flex:0 0 auto; }
  body.menu-open{ overflow:hidden; }
}
@media (max-width: 640px){
  .header-inner{ padding:10px 18px; gap:14px; }
}

/* ---------- Carousel hero ---------- */
.carousel-outer{ padding:32px 0 0; background:var(--cream); }
.carousel{ position:relative; width:100%; }
.carousel-viewport{ overflow:hidden; }
.carousel-track{ display:flex; gap:16px; transition:transform .6s ease; will-change:transform; }
.carousel-slide{
  flex:0 0 calc((100% - 32px) / 3);
  aspect-ratio:1 / 1;
  border-radius:14px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}
@media (max-width: 640px){
  .carousel-slide{ flex:0 0 100%; }
}

/* ---------- Opening statement (first thing under carousel) ---------- */
.opening{ padding:48px 0 24px; text-align:center; }
.opening .eyebrow{ display:block; margin-bottom:10px; }
.opening h1{
  font-family:var(--display); font-weight:700; font-size:clamp(26px, 3.8vw, 44px);
  line-height:1.14; margin:0 auto; max-width:34ch; letter-spacing:-0.01em;
}
.opening h1 .rust{ color:var(--rust); }
.opening h1 .sage{ color:var(--sage); }
.opening p.lede{ color:var(--grey); font-size:17px; max-width:52ch; margin:18px auto 0; }
.opening .hero-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:26px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block; font-family:var(--body); font-weight:600; font-size:14.5px;
  padding:13px 24px; border-radius:999px; text-decoration:none; border:1.5px solid transparent; cursor:pointer;
}
.btn-rust{ background:var(--rust); color:var(--white); }
.btn-rust:hover{ background:#96432D; }
.btn-sage{ background:var(--sage); color:var(--white); }
.btn-sage:hover{ background:#59684A; }
.btn-frosted{ background:rgba(255,255,255,0.18); color:var(--white); border-color:transparent; }
.btn-frosted:hover{ background:rgba(255,255,255,0.28); }
.btn-outline{ border-color:var(--ink); color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--white); }
.btn-outline.rust{ border-color:var(--rust); color:var(--rust); }
.btn-outline.rust:hover{ background:var(--rust); color:var(--white); }
.btn-outline.sage{ border-color:var(--sage); color:var(--sage); }
.btn-outline.sage:hover{ background:var(--sage); color:var(--white); }
.btn-dark{ background:var(--ink); color:var(--white); }
.wm-date{ text-align:center; margin-top:6px; }
.wm-label{ display:block; font-family:var(--body); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--grey); }
.wm-when{ display:block; font-size:clamp(20px, 2.6vw, 24px); font-weight:800; color:var(--ink); font-family:var(--display); line-height:1.2; margin-top:4px; }
.wm-fallback{ display:block; font-size:16px; font-weight:600; color:var(--ink); font-family:var(--display); line-height:1.4; max-width:26ch; margin:4px auto 0; }
.wm-cta{ display:block; width:100%; text-align:center; border-radius:8px; box-sizing:border-box; }
.alpha-card{
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  max-width:380px; margin:0 auto; overflow:hidden;
}
.alpha-card .alpha-photo{ height:170px; background:var(--off); background-size:cover; background-position:center; }
.alpha-card .alpha-inner{ padding:22px 26px; text-align:center; }
.alpha-card .alpha-loc{ color:var(--grey); font-size:15px; margin-top:4px; }
.alpha-card .wm-cta{ margin-top:14px; }
@media (max-width: 480px){
  .alpha-card .alpha-inner{ padding:20px 18px; }
}
.staff-contact{
  display:flex; align-items:center; gap:22px; background:var(--white); border:1px solid var(--line);
  border-radius:14px; padding:24px; max-width:480px; margin:0 auto;
}
.staff-contact img{ width:96px; height:96px; border-radius:10px; object-fit:cover; flex:0 0 auto; }
.staff-contact .info{ flex:1; min-width:0; }
.staff-contact .info h3{ font-family:var(--display); font-weight:700; font-size:18px; margin:0; }
.staff-contact .info .role{ color:var(--grey); font-size:13.5px; margin-top:2px; }
.staff-contact .info a.btn{ margin-top:12px; padding:9px 18px; font-size:13.5px; }
@media (max-width: 480px){
  .staff-contact{ flex-direction:column; text-align:center; padding:22px 20px; }
}
.btn-dark:hover{ background:#1E1616; }

/* ---------- Quick-link photo cards ---------- */
.quicklinks{ display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; }
.qlink{ position:relative; border-radius:10px; overflow:hidden; text-decoration:none; color:var(--white); display:block; height:210px; }
.qlink img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.qlink:hover img{ transform:scale(1.05); }
.qlink .qlabel{
  position:absolute; inset:auto 0 0 0; background:linear-gradient(180deg, rgba(52,41,42,0) 0%, rgba(52,41,42,0.78) 100%);
  padding:16px 18px; font-family:var(--display); font-weight:600; font-size:16px;
}
@media (max-width: 900px){ .quicklinks{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .quicklinks{ grid-template-columns:1fr; } }

/* ---------- Sections ---------- */
section{ padding:80px 0; }
section.tight{ padding:52px 0; }
section.dim{ background:var(--off); }
.section-head{ max-width:60ch; margin-bottom:38px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-family:var(--display); font-weight:700; font-size:clamp(26px, 3.4vw, 36px); margin:10px 0 0; letter-spacing:-0.01em; }
.section-head p{ color:var(--grey); margin-top:14px; font-size:16px; }
hr.rule{ border:none; border-top:1px solid var(--line); margin:0; }

/* ---------- Sunday band — bold two-tone graphic panel, not a data table ---------- */
.sunday-band{ display:grid; grid-template-columns:1fr 1fr; grid-auto-rows:1fr; align-items:stretch; border-radius:16px; overflow:hidden; }
.sunday-half{ padding:40px 40px 32px; text-align:center; height:100%; display:flex; flex-direction:column; align-items:center; gap:24px; }
.sunday-half > a.btn{ margin-top:auto; padding:10px 22px; font-size:13.5px; }
.sunday-half.magh{ background:var(--rust); }
.sunday-half.doll{ background:var(--sage); }
.sunday-half h3{ font-family:var(--display); font-weight:700; font-size:20px; margin:0; color:var(--white); }
.sunday-times{ display:flex; gap:40px; flex-wrap:wrap; justify-content:center; align-items:flex-start; }
.sunday-times .time{ font-family:var(--display); font-size:clamp(30px, 3vw, 40px); font-weight:600; color:var(--white); letter-spacing:-0.01em; white-space:nowrap; line-height:1; }
.time-group{ display:inline-flex; flex-direction:column; align-items:center; gap:3px; }
.time-group .tag{ font-family:var(--body); font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; color:rgba(255,255,255,0.8); line-height:1; }
@media (max-width: 780px){
  .sunday-band{ grid-template-columns:1fr; border-radius:14px; }
  .sunday-half{ padding:34px 30px; }
  .sunday-times{ gap:28px; }
  .sunday-times .time{ font-size:28px; }
}

/* ---------- Church spotlight (separated, full-width, alternating) ---------- */
.rector-welcome{ background:var(--off); padding:80px 0; }
.rw-grid{ display:grid; grid-template-columns:300px 1fr; gap:56px; align-items:center; }
.rw-photo-col{ display:flex; flex-direction:column; gap:18px; }
.rw-photo{ width:100%; aspect-ratio:1; border-radius:16px; object-fit:cover; display:block; box-shadow:0 12px 28px -14px rgba(0,0,0,0.28); }
.rw-cta{ background:transparent; border:1.5px solid var(--rust); color:var(--rust); text-align:center; padding:12.5px 18px; border-radius:8px; font-weight:700; text-decoration:none; font-size:14px; }
.rw-cta:hover{ background:var(--rust); color:var(--white); }
.rw-byline{ font-family:var(--display); font-weight:700; font-size:19px; display:block; margin-bottom:24px; color:var(--ink); }
.rw-signoff{ font-family:var(--display); font-weight:700; font-size:19px; display:block; margin-top:6px; color:var(--rust); }
.rw-copy p{ font-family:var(--display); font-size:18px; line-height:1.65; margin:0 0 18px; color:var(--ink); }
.rw-copy p:last-child{ margin-bottom:0; }
.rw-cta-mobile{ display:none; }
@media (max-width:780px){
  .rector-welcome{ padding:56px 0; }
  .rw-grid{ grid-template-columns:1fr; gap:24px; text-align:center; }
  .rw-photo-col{ flex-direction:column; align-items:center; max-width:none; }
  .rw-photo{ width:200px; height:200px; flex:0 0 auto; box-shadow:0 10px 22px -12px rgba(0,0,0,0.3); }
  .rw-copy{ max-width:440px; margin:0 auto; }
  .rw-copy p{ font-size:16.5px; line-height:1.6; margin:0 0 14px; }
  .rw-cta-desktop{ display:none; }
  .rw-cta-mobile{ display:block; width:fit-content; margin:22px auto 0; }
}

.church-spotlight{ padding:74px 0; }
.church-spotlight.magh{ background:var(--white); }
.church-spotlight.doll{ background:var(--off); }
.cs-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.cs-grid.reverse{ direction:rtl; }
.cs-grid.reverse > *{ direction:ltr; }
.cs-grid img{ width:100%; border-radius:10px; aspect-ratio:4/3; object-fit:cover; }
.cs-grid h2{ font-family:var(--display); font-weight:700; font-size:clamp(26px, 3.6vw, 38px); margin:10px 0 16px; }
.cs-grid p.desc{ color:var(--grey); font-size:16px; margin:0 0 24px; max-width:48ch; }
.cs-times{ display:flex; gap:28px; margin-bottom:26px; flex-wrap:wrap; }
.cs-times div{ }
.cs-times .t{ font-family:var(--display); font-size:26px; font-weight:600; }
.cs-times .w{ font-family:var(--body); font-size:12.5px; color:var(--grey); text-transform:uppercase; letter-spacing:0.04em; margin-top:2px; }
.cs-actions{ display:flex; gap:12px; flex-wrap:wrap; }
@media (max-width: 820px){ .cs-grid{ grid-template-columns:1fr; gap:28px; } .cs-grid.reverse{ direction:ltr; } }

/* ---------- Cards / grids ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3, 1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
@media (max-width: 780px){ .grid-3{ grid-template-columns:1fr; } .grid-2{ grid-template-columns:1fr; } }
.card{ background:var(--white); border:1px solid var(--line); border-radius:10px; overflow:hidden; display:flex; flex-direction:column; }
.card .photo-cover{ height:170px; background-size:cover; background-position:center; flex:0 0 auto; }
.card .inner{ padding:24px 24px 26px; display:flex; flex-direction:column; flex:1; }
.card .k{ font-family:var(--body); font-size:11.5px; color:var(--rust); text-transform:uppercase; letter-spacing:0.05em; font-weight:700; }
.card .k.pill{ display:inline-block; color:var(--white); padding:5px 13px; border-radius:999px; letter-spacing:0.04em; }
.card h3{ font-family:var(--display); font-size:21px; font-weight:600; margin:10px 0 8px; }
.card p{ color:var(--grey); font-size:15px; margin:0; }
.card a.card-link{ display:inline-block; margin-top:auto; padding-top:14px; font-size:14px; font-weight:600; color:var(--rust); text-decoration:none; border-bottom:1px solid var(--rust); align-self:flex-start; }

/* ---------- Photo band + statement (Penny-Lane "Get in touch" style) ---------- */
.statement-band{ position:relative; min-height:380px; display:flex; align-items:center; background-size:cover; background-position:center; }
.statement-band .overlay{ position:absolute; inset:0; background:linear-gradient(90deg, rgba(52,41,42,0.72) 0%, rgba(52,41,42,0.3) 60%); }
.statement-band .wrap{ position:relative; z-index:2; color:var(--white); }
.statement-band h2{ font-family:var(--display); font-weight:700; font-size:clamp(26px, 4vw, 38px); margin:0 0 14px; max-width:16ch; }
.statement-band p{ color:#F1E9DC; max-width:44ch; margin:0 0 24px; font-size:16px; }

/* ---------- List rows (sermons etc) ---------- */
.list-row{ display:flex; justify-content:space-between; align-items:center; gap:24px; padding:22px 0; border-top:1px solid var(--line); }
.list-row:last-child{ border-bottom:1px solid var(--line); }
.list-row .meta{ font-family:var(--body); font-size:11.5px; color:var(--grey); text-transform:uppercase; letter-spacing:0.04em; font-weight:600; margin-bottom:6px; }
.list-row h3{ font-family:var(--display); font-size:19px; font-weight:600; margin:0 0 6px; }
.list-row p{ margin:0; color:var(--grey); font-size:14.5px; max-width:52ch; }
.list-row .play{ flex-shrink:0; font-family:var(--body); font-size:13px; font-weight:600; color:var(--white); background:var(--ink); padding:11px 20px; border-radius:999px; text-decoration:none; white-space:nowrap; }
.list-row .play:hover{ background:var(--rust); }
@media (max-width: 640px){ .list-row{ flex-direction:column; align-items:flex-start; } }

/* ---------- Service description block ---------- */
.service-block{ padding:26px 0; border-top:1px solid var(--line); display:grid; grid-template-columns:170px 1fr; gap:24px; }
.service-block:last-child{ border-bottom:1px solid var(--line); }
.service-block .sb-time{ font-family:var(--display); font-size:27px; font-weight:600; color:var(--accent, var(--rust)); }
.service-block .sb-where{ font-family:var(--body); font-size:11.5px; text-transform:uppercase; letter-spacing:0.04em; color:var(--grey); font-weight:600; margin-top:6px; }
.service-block h3{ font-family:var(--display); font-size:19px; font-weight:600; margin:0 0 8px; }
.service-block p{ color:var(--grey); margin:0; font-size:15px; max-width:62ch; }
@media (max-width: 640px){ .service-block{ grid-template-columns:1fr; gap:10px; } }

/* ---------- Events ---------- */
.event-row{ display:grid; grid-template-columns:90px 1fr auto; gap:22px; align-items:center; padding:20px 0; border-top:1px solid var(--line); }
.event-row:last-child{ border-bottom:1px solid var(--line); }
.event-date{ font-family:var(--display); text-align:left; }
.event-date .d{ font-size:27px; color:var(--rust); line-height:1; font-weight:600; }
.event-date .m{ font-size:11px; text-transform:uppercase; color:var(--grey); letter-spacing:0.05em; font-weight:600; }
.event-row h3{ font-family:var(--display); font-size:18px; margin:0 0 4px; font-weight:600; }
.event-row p{ margin:0; font-size:14px; color:var(--grey); }
.event-row .where{ font-family:var(--body); font-size:11.5px; color:var(--grey); white-space:nowrap; font-weight:600; text-transform:uppercase; }
@media (max-width: 640px){ .event-row{ grid-template-columns:60px 1fr; } .event-row .where{ grid-column:2; } }

/* ---------- Weekly run-through ---------- */
.week-list{ border-top:1px solid var(--line); }
.week-row{ display:grid; grid-template-columns:120px 1fr; gap:20px; padding:18px 0; border-bottom:1px solid var(--line); }
.week-row .wd{ font-family:var(--body); font-weight:700; text-transform:uppercase; font-size:12.5px; color:var(--accent, var(--rust)); }
.week-row h4{ font-family:var(--display); font-size:16px; font-weight:600; margin:0 0 4px; }
.week-row p{ margin:0; font-size:14px; color:var(--grey); }
.week-row .desc{ margin:4px 0 0; font-size:13.5px; color:var(--grey); line-height:1.55; }

/* ---------- ChurchSuite embed placeholder ---------- */
.cs-iframe-wrap{ position:relative; width:100%; overflow:hidden; border-radius:8px; }
.cs-iframe-wrap iframe{ display:block; transform-origin:top left; border:none; }
.map-embed{ max-width:860px; margin:0 auto; aspect-ratio:16/9; border-radius:14px; overflow:hidden; border:1px solid var(--line); }
.map-embed iframe{ width:100%; height:100%; border:none; display:block; }

/* ---------- Featured events carousel ---------- */
.ec-wrap{ position:relative; display:flex; align-items:center; gap:12px; }
.ec-viewport{ overflow:hidden; flex:1; }
.ec-track{ display:flex; gap:20px; transition:transform .4s ease; will-change:transform; }
.ec-track .event-card{
  flex:0 0 calc((100% - 40px)/3); background:var(--white); border:1px solid var(--line);
  border-radius:10px; overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column;
}
.ec-track .event-card .ec-photo{ height:150px; background:var(--off); background-size:cover; background-position:center; flex:0 0 auto; }
.ec-track .event-card .ec-inner{ padding:18px 20px 20px; }
.ec-track .event-card .ec-date{ font-family:var(--body); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--rust); }
.ec-track .event-card h3{ font-family:var(--display); font-weight:700; font-size:17px; margin:8px 0 0; }
.ec-track .event-card .ec-loc{ font-family:var(--body); font-size:12.5px; color:var(--grey); margin-top:5px; }
.ec-track .event-card .ec-desc{ font-family:var(--body); font-size:13px; color:var(--grey); margin:8px 0 0; line-height:1.5; }
.ec-arrow{
  flex:0 0 auto; width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--white);
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); font-size:18px;
}
.ec-arrow:disabled{ opacity:0.3; cursor:default; }
.ec-arrow:not(:disabled):hover{ background:var(--off); }
.ec-empty, .ec-loading{ font-family:var(--body); color:var(--grey); font-size:14px; padding:20px 0; }
@media (max-width: 780px){
  .ec-track .event-card{ flex:0 0 100%; }
  .ec-wrap{ gap:8px; }
  .ec-arrow{ width:36px; height:36px; font-size:16px; }
}

.cs-embed{ border:2px dashed #8FA0C7; background:#F0F3FA; padding:26px; border-radius:8px; }
.cs-embed .cs-tag{ display:inline-flex; align-items:center; gap:8px; font-family:var(--body); font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:#5470A8; margin-bottom:10px; }
.cs-embed .cs-tag .sq{ width:8px; height:8px; background:#5470A8; display:inline-block; border-radius:2px; }
.cs-embed p{ margin:0 0 14px; color:var(--grey); font-size:14px; max-width:60ch; }
.cs-embed .cs-frame{ background:var(--white); border:1px solid var(--line); border-radius:6px; min-height:120px; display:flex; align-items:center; justify-content:center; font-family:var(--body); font-size:13px; color:var(--grey); text-align:center; padding:20px; }
.cs-embed .cs-frame.tall{ min-height:420px; }

/* ---------- Staff / people grid ---------- */
.staff-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:32px 24px; }
@media (max-width: 900px){ .staff-grid{ grid-template-columns:repeat(2, 1fr); } }
.staff-person{ text-align:left; }
.staff-photo{ aspect-ratio:1; border-radius:10px; overflow:hidden; margin-bottom:14px; background:var(--off); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; }
.staff-photo span{ font-family:var(--body); font-size:11px; color:var(--grey); }
.staff-person h3{ font-family:var(--display); font-size:16px; font-weight:600; margin:0 0 2px; }
.staff-person .role{ font-family:var(--body); font-size:12.5px; color:var(--rust); font-weight:600; }
.staff-person .email{ display:block; margin-top:6px; font-family:var(--body); font-size:12.5px; color:var(--grey); text-decoration:none; word-break:break-all; }
.staff-person .email:hover{ text-decoration:underline; }

/* ---------- Accordion ---------- */
.accordion{ border-top:1px solid var(--line); }
.acc-item{ border-bottom:1px solid var(--line); }
.acc-q{ width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:20px 4px; display:flex; justify-content:space-between; align-items:center; gap:16px; font-family:var(--display); font-size:17px; font-weight:500; color:var(--ink); }
.acc-q .plus{ font-size:20px; font-weight:400; color:var(--rust); flex-shrink:0; transition:transform .2s ease; }
.acc-item.open .acc-q .plus{ transform:rotate(45deg); }
.acc-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.acc-item.open .acc-a{ max-height:400px; }
.acc-a-inner{ padding:0 4px 22px; color:var(--grey); font-size:14.5px; max-width:64ch; }

/* ---------- Giving blocks ---------- */
.give-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
@media (max-width: 900px){ .give-grid{ grid-template-columns:1fr; } }
.give-block{ background:var(--white); border:1px solid var(--line); border-radius:10px; padding:30px; }
.give-block .num{ font-family:var(--display); font-size:13px; font-weight:700; color:var(--white); background:var(--accent, var(--rust)); width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.give-block h3{ font-family:var(--display); font-size:19px; font-weight:600; margin:0 0 10px; }
.give-block p{ color:var(--grey); font-size:14.5px; margin:0 0 14px; }
.give-block.b1{ --accent:var(--rust); }
.give-block.b2{ --accent:var(--sage); }
.give-block.b3{ --accent:var(--gold); }

.info-table{ width:100%; border-collapse:collapse; margin:0 0 6px; }
.info-table td{ padding:10px 0; border-top:1px solid var(--line); font-size:14.5px; }
.info-table td:first-child{ color:var(--grey); width:38%; font-weight:500; }
.info-table td:last-child{ font-weight:600; }

/* ---------- Split intro ---------- */
.split-intro{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
@media (max-width: 780px){ .split-intro{ grid-template-columns:1fr; } }
.split-intro img{ width:100%; border-radius:10px; display:block; aspect-ratio:4/3; object-fit:cover; }

/* ---------- Forms ---------- */
form.contact-form{ display:grid; gap:18px; max-width:560px; }
.field label{ display:block; font-family:var(--body); font-size:12px; text-transform:uppercase; letter-spacing:0.04em; font-weight:600; color:var(--ink); margin-bottom:6px; }
.field input, .field textarea{ width:100%; padding:12px 14px; border:1px solid var(--line); background:var(--white); font-family:var(--body); font-size:15px; color:var(--ink); border-radius:6px; }
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field textarea:focus{ border-color:var(--rust); }

.placeholder{ background:#FBF0E4; border:1px dashed var(--gold); color:#7A5A20; font-family:var(--body); font-size:12.5px; padding:9px 13px; margin:6px 0 0; border-radius:6px; }

/* ---------- Cross-link buttons (bottom-of-page navigation) ---------- */
.crosslinks{ border-top:1px solid var(--line); padding-top:36px; margin-top:8px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.crosslinks .cl-label{ font-family:var(--body); font-size:13px; color:var(--grey); margin-right:6px; }
@media (max-width: 640px){
  .crosslinks{ flex-direction:column; align-items:stretch; gap:10px; }
  .crosslinks .cl-label{ margin:0 0 4px; }
  .crosslinks .btn{ width:100%; text-align:center; }
}

/* ---------- Footer (Penny-Lane style — simple, low-key) ---------- */
footer.site-footer{ background:var(--white); border-top:1px solid var(--line); padding:22px 0 24px; margin-top:20px; }
.footer-policies{ display:flex; flex-wrap:wrap; gap:8px 22px; padding-bottom:16px; }
.footer-policies a{ font-size:13px; color:var(--grey); text-decoration:none; font-weight:500; }
.footer-policies a:hover{ color:var(--rust); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding-top:16px; border-top:1px solid var(--line); font-size:12.5px; color:var(--grey); }
.footer-bottom .social-row a{ color:var(--grey); }
.footer-bottom .social-row a:hover{ color:var(--rust); }

/* ---------- Page hero (inner pages) — soft, photo-less, editorial ---------- */
.page-hero{ background:var(--off); padding:46px 0; border-bottom:1px solid var(--line); }
.page-hero h1{ font-family:var(--display); font-weight:700; font-size:clamp(28px, 4vw, 42px); margin:8px 0 0; letter-spacing:-0.01em; }
.page-hero p{ color:var(--grey); margin-top:10px; max-width:56ch; font-size:16px; }

/* small am/pm suffix, scales with whatever time text it sits inside */
.ampm{ font-size:0.45em; font-weight:600; margin-left:1px; }

/* weekly timeline (e.g. Kids "Through the week") */
.timeline{ position:relative; max-width:760px; padding-left:32px; }
.timeline::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:var(--line); }
.tl-item{ position:relative; padding-bottom:34px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-item::before{ content:''; position:absolute; left:-32px; top:4px; width:14px; height:14px; border-radius:50%; background:var(--rust); border:3px solid var(--cream); box-shadow:0 0 0 2px var(--rust); }
section.dim .tl-item::before{ border-color:var(--off); }
.tl-item.sage::before{ background:var(--sage); box-shadow:0 0 0 2px var(--sage); }
.tl-item.gold::before{ background:var(--gold); box-shadow:0 0 0 2px var(--gold); }
.tl-day{ font-family:var(--body); font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--grey); margin-bottom:4px; }
.tl-item h3{ font-family:var(--display); font-size:19px; font-weight:700; margin:0 0 6px; }
.tl-item p{ margin:0; font-size:14.5px; color:var(--grey); line-height:1.6; }
