/* ============================================================
   VARIABLES & RESET
   ============================================================ */

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

:root {
  --navy:        #1e3a5f;
  --navy-dark:   #142740;
  --navy-light:  #2d5282;
  --gold:        #b8860b;
  --gold-light:  #d4a017;
  --cream:       #faf9f6;
  --white:       #ffffff;
  --text:        #1c1917;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --border-dark: #d1d5db;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:  5px;
  --radius-lg: 10px;
  --shadow:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  font-size: 1rem;
}

img { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-dark); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--navy-dark);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}
.section--sm { padding: 3.5rem 0; }
.section--alt { background: var(--cream); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-header h2 { margin-bottom: 0; }
.section-header a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.section-header a:hover { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary   { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--border-dark); }
.btn-secondary:hover { background: var(--cream); }
.btn-white     { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--cream); color: var(--navy-dark); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: var(--white); border-color: white; }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }
.btn-warning { background: #f59e0b; color: #1c1917; border-color: #f59e0b; }
.btn-danger  { background: #dc2626; color: white; border-color: #dc2626; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-link {
  background: none; border: none; padding: 0;
  font-family: var(--font-sans); font-size: inherit;
  cursor: pointer; color: inherit;
}
.btn-link--danger { color: #dc2626; }
.btn-link--danger:hover { color: #991b1b; }

.link-arrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--gold); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */

.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.9rem; }
.flash-notice { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-alert  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }


/* ============================================================
   ACCOUNT BAR (shown when signed in, sits above site nav)
   ============================================================ */

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.account-bar {
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.account-bar .container {
  padding-top: 0;
  padding-bottom: 0;
}
.account-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 34px;
}
.account-bar__context-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
  margin-right: 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.account-bar__action {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.account-bar__action:hover { color: var(--white); }
.account-bar__user-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0 0.5rem;
  height: 100%;
  transition: color 0.15s;
  border-radius: 0;
}
.account-bar__user-btn:hover,
.account-bar__user-btn--open {
  color: var(--white);
}
.account-bar__chevron {
  transition: transform 0.2s;
}
.account-bar__user-btn--open .account-bar__chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.account-bar__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 300;
  overflow: hidden;
  margin-right: 1rem;
}
.account-bar__user-info {
  padding: 0.75rem 1rem;
  background: #f9fafb;
}
.account-bar__user-name {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-dark);
}
.account-bar__user-email {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.account-bar__divider {
  height: 1px;
  background: var(--border);
}
/* Links and form-row items share the same row styling */
.account-bar__menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
}
.account-bar__menu-item:hover {
  background: #f3f4f6;
  color: var(--navy-dark);
}
/* button_to wraps a <form>; the form gets form_class, button inside is transparent */
.account-bar__menu-item--signout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #b91c1c;
  cursor: pointer;
  transition: background 0.12s;
}
.account-bar__menu-item--signout:hover {
  background: #fee2e2;
}
/* The actual <button> inside the form-row — make it invisible so the form styles show */
.account-bar__menu-item--signout button[type="submit"] {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
}

/* ============================================================
   SITE NAVIGATION
   ============================================================ */

.site-nav {
  background: var(--navy-dark);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.site-nav__brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  font-weight: normal;
}
.site-nav__brand-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav__links a,
.site-nav__links button {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  display: inline-block;
}
.site-nav__links a:hover,
.site-nav__links button:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.site-nav__links .btn-nav-cta {
  background: var(--gold);
  color: var(--white);
  margin-left: 0.5rem;
  font-weight: 600;
}
.site-nav__links .btn-nav-cta:hover { background: var(--gold-light); color: var(--white); }

.site-nav__members { opacity: 0.6; font-size: 0.8rem !important; }

/* Hamburger button — hidden on desktop */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius);
}
.site-nav__hamburger:hover { background: rgba(255,255,255,0.1); }
.site-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: background 0.12s;
}
.site-nav__hamburger:hover span { background: white; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background-color: var(--navy-dark); /* fallback while image loads */
  background-image: var(--hero-bg-sm); /* mobile-first: small image */
  background-size: cover;
  background-position: center 38%; /* keep steeple + building in frame */
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
/* Dark gradient overlay: strong on the left (where text lives), fading right
   so the sun flare and scenery show through. A second layer darkens the very
   top edge so the eyebrow text is always readable. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,18,40,0.45) 0%, transparent 18%),
    linear-gradient(to right,  rgba(8,18,40,0.82) 0%, rgba(8,18,40,0.60) 45%, rgba(8,18,40,0.28) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 700px; }
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero__times {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
.hero__time {
  border-left: 3px solid var(--gold);
  padding-left: 0.85rem;
}
.hero__time-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.15rem;
}
.hero__time-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
}
.hero__actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* ============================================================
   HOME — WHO WE ARE
   ============================================================ */

.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.home-about__text p {
  color: #3d3d3d;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.home-about__pillars { display: flex; flex-direction: column; gap: 1.25rem; }
.pillar {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pillar h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.pillar p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   HOME — JOIN US (SERVICE TIMES)
   ============================================================ */

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.join-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.join-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.join-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.join-card p, .join-card address {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
  margin: 0;
}
.join-card strong { color: var(--text); }

/* ============================================================
   HOME — RECENT SERMONS
   ============================================================ */

.sermon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.sermon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sermon-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sermon-card__body {
  padding: 1.5rem 1.5rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.sermon-card__body:hover { color: inherit; }
.sermon-card__body:hover .sermon-card__title { color: var(--gold); }
.sermon-card__meta {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.sermon-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
}
.sermon-card__speaker {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.sermon-card__scripture {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
}
.sermon-card__footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sermon-card__dur { color: var(--text-muted); }
.sermon-card__listen { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.sermon-card__listen:hover { color: var(--gold); }

/* ============================================================
   HOME — PASTORS
   ============================================================ */

.pastor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.pastor-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.pastor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pastor-card__info h3 {
  font-size: 1.05rem;
  color: var(--navy-dark);
  margin-bottom: 0.15rem;
}
.pastor-card__title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}
.pastor-card__bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.site-footer__tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.site-footer__contact { font-size: 0.875rem; line-height: 1.8; }
.site-footer__contact a { color: rgba(255,255,255,0.7); }
.site-footer__contact a:hover { color: var(--white); }
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.site-footer ul a:hover { color: var(--white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   SERMONS — SEARCH + FACETED BROWSE
   ============================================================ */

/* Page wrapper — no outer section padding; we handle spacing ourselves */
.sermons-page { padding-bottom: 4rem; }

/* Hero with search bar — kept compact so results are above the fold */
.sermons-hero {
  background: var(--navy-dark);
  padding: 1.5rem 0 1.25rem;
  margin-bottom: 1.5rem;
}
.sermons-hero .eyebrow { color: var(--gold); }
.sermons-hero__title {
  color: var(--white);
  margin-bottom: 0.875rem;
  font-size: 1.6rem;
}

/* Search form */
.sermon-search-form { width: 100%; max-width: 680px; }
.sermon-search-form__inner {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: border-color 0.15s;
  overflow: hidden;
  position: relative;
}
.sermon-search-form__inner:focus-within { border-color: var(--gold); }
.sermon-search-form__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  margin: 0 0.5rem 0 0.875rem;
}
.sermon-search-form__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.975rem;
  padding: 0.75rem 0.5rem;
  background: transparent;
  color: var(--text);
  min-width: 0;
}
.sermon-search-form__input::placeholder { color: var(--text-muted); }
.sermon-search-form__clear {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sermon-search-form__clear svg { width: 16px; height: 16px; }
.sermon-search-form__clear:hover { color: var(--text); }
.sermon-search-form__btn {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
}
.sermon-search-form__btn:hover { background: var(--gold-dark, #a07010); }

/* Overlay is always fixed + hidden — keeps it out of grid flow on desktop */
.filter-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  display: none;
}
.filter-drawer__overlay--visible { display: block; }

/* Two-column layout */
.sermons-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Filter sidebar ─────────────────────────────────────────────────────── */
.filter-sidebar {}
.filter-sidebar__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy);
}
.filter-sidebar__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  flex: 1;
}
.filter-sidebar__clear {
  font-size: 0.78rem;
  color: var(--gold);
  text-decoration: underline;
}
.filter-sidebar__clear:hover { color: var(--navy); }
.filter-sidebar__close {
  display: none; /* mobile only */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-muted);
}
.filter-sidebar__close svg { width: 18px; height: 18px; display: block; }

/* ── Facet groups ───────────────────────────────────────────────────────── */
.facet-group { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.facet-group:last-child { border-bottom: none; }

.facet-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 0.5rem;
}
.facet-group__chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.facet-group__title[aria-expanded="false"] .facet-group__chevron {
  transform: rotate(-90deg);
}

/* Facet option links */
.facet-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.25rem;
  border-radius: var(--radius-sm, 3px);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.3;
  transition: background 0.1s;
}
.facet-option:hover { background: var(--cream); color: var(--text); }
.facet-option--active { color: var(--navy-dark); font-weight: 600; }
.facet-option--active:hover { background: var(--cream); }

.facet-option__check {
  width: 15px; height: 15px;
  border: 1.5px solid var(--border-dark);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.facet-option--active .facet-option__check {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.facet-option__check svg { width: 10px; height: 10px; }

.facet-option__name { flex: 1; min-width: 0; }
.facet-option__count {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.facet-expand__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--gold);
  padding: 0.3rem 0.25rem;
  text-decoration: underline;
}
.facet-expand__btn:hover { color: var(--navy); }

/* ── Results pane ───────────────────────────────────────────────────────── */
.sermons-results { min-width: 0; }

.sermons-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-filter-btn {
  display: none; /* shown on mobile only */
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 0.45rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.1s;
}
.mobile-filter-btn:hover { border-color: var(--navy); }
.mobile-filter-btn__badge {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 0.35rem;
  line-height: 1.5;
}

.result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Active filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.12s;
}
.filter-chip:hover { background: var(--navy-light); color: var(--white); }
.filter-chip__x { width: 12px; height: 12px; opacity: 0.7; }
.filter-chip--clear {
  background: transparent;
  border: 1.5px solid var(--border-dark);
  color: var(--text-muted);
}
.filter-chip--clear:hover { background: var(--cream); color: var(--text); }

.no-results {
  color: var(--text-muted);
  padding: 3rem 0;
  text-align: center;
}
.no-results p { margin-bottom: 1rem; }

.sermon-list { display: flex; flex-direction: column; }
.sermon-item {
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sermon-item:first-child { border-top: 1px solid var(--border); }

.sermon-list-link {
  flex: 1;
  padding: 1.125rem 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.1s;
  min-width: 0;
}
.sermon-list-link:hover { color: inherit; }
.sermon-list-link:hover .sermon-list__title { color: var(--gold); }
.sermon-list__meta {
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.sermon-list__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy-dark);
  line-height: 1.3;
  margin-bottom: 0.2rem;
  transition: color 0.1s;
}
.sermon-list__details {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.sermon-list__scripture { color: var(--gold); font-style: italic; }
.sermon-list__aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sermon-list__duration {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.no-results { color: var(--text-muted); padding: 2.5rem 0; text-align: center; }

/* Sermon show */
.sermon-show { max-width: 760px; }
.sermon-show__header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.sermon-show__date {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.sermon-show__speaker { font-size: 1rem; color: var(--text-muted); margin: 0.25rem 0; }
.sermon-show__scripture { font-size: 1rem; color: var(--gold); font-style: italic; }
.sermon-show__scripture--secondary { font-size: 0.875rem; color: var(--text-muted); font-style: italic; margin-top: 0.2rem; }

.sermon-player { margin: 2rem 0; }
.sermon-player__actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.sermon-section { margin: 2rem 0; }
.sermon-section h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }

/* ── Tabs ────────────────────────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tabs__tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab--active { color: var(--navy); border-bottom-color: var(--gold); }

/* ── Summary ─────────────────────────────────────────────────────────────── */

.sermon-key-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sermon-key-points li {
  padding: 0.6rem 0.9rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.sermon-summary { font-size: 0.95rem; line-height: 1.7; }
.sermon-summary p + p { margin-top: 1rem; }

/* ── Transcript (segmented + plain) ─────────────────────────────────────── */

.transcript {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Segmented: each whisper segment is an inline <span> so text flows as prose */
.transcript__segment {
  padding: 0.1em 0.15em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  /* ensures padding renders correctly when a segment wraps across lines */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.transcript__segment:hover {
  background: var(--border);
  color: var(--text);
}

/* Active / currently-playing segment */
.transcript__segment--active {
  background: rgba(184, 134, 11, 0.15);  /* --gold at 15% opacity */
  color: var(--text);
}

/* Follow-along toolbar */
.transcript__toolbar {
  position: sticky;
  top: var(--sticky-top, 72px);
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 0.4rem 0;
  margin-bottom: 0.75rem;
  background: var(--white);
}

.transcript__follow-btn {
  font-size: 0.8rem;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}

.transcript__follow-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.transcript__follow-btn--active {
  background: rgba(184, 134, 11, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* Paragraph grouping — each LLM-detected paragraph break becomes a <p> */
.transcript__paragraph {
  margin-bottom: 1.1em;
}
.transcript__paragraph:last-child {
  margin-bottom: 0;
}

/* Plain-text fallback (simple_format output) */
.transcript--plain p {
  margin-bottom: 0.75em;
}

.sermon-show__back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   PLAY BUTTONS
   ============================================================ */

/* Base play button — small (sermon list rows) */
.sermon-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem;
  transition: background 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}
.sermon-play-btn:hover { background: var(--navy-light); }

/* Card variant — slightly larger */
.sermon-play-btn--card {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
}

/* Large play button on sermon show page */
.sermon-play-btn--lg {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  gap: 0.65rem;
  min-width: 10rem;
  justify-content: center;
}

/* ---- Icon / bars sub-elements (injected by play_btn_controller) ---- */

/* Fixed-width icon containers so switching icons doesn't resize the button */
.play-btn-icon,
.play-btn-bars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.play-btn-icon svg { width: 10px; height: 10px; display: block; }
.sermon-play-btn--card .play-btn-icon svg { width: 11px; height: 11px; }
.sermon-play-btn--lg   .play-btn-icon svg { width: 16px; height: 16px; }

/* Label: hidden on small/card buttons, visible on --lg */
.play-btn-label { display: none; }
.sermon-play-btn--lg .play-btn-label { display: inline; }

/* Duration: visible by default, hidden while this sermon is loaded */
.play-btn-duration {
  opacity: 0.65;
  font-weight: 400;
  margin-left: 0.1rem;
}

/* ---- Default (idle / other sermon loaded) state ---- */
/* Show play icon; hide pause icon, bars */
.play-btn-icon--pause { display: none; }
.play-btn-bars        { display: none; }

/* ---- Bars shared structure ---- */
.play-btn-bars {
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}
.sermon-play-btn--card .play-btn-bars { height: 11px; }
.sermon-play-btn--lg   .play-btn-bars { height: 14px; }

.play-btn-bars span {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}
/* Fixed heights for the four bars (used in both playing and paused) */
.play-btn-bars span:nth-child(1) { height: 40%; }
.play-btn-bars span:nth-child(2) { height: 80%; }
.play-btn-bars span:nth-child(3) { height: 60%; }
.play-btn-bars span:nth-child(4) { height: 100%; }

/* ---- Playing state ---- */
.sermon-play-btn--playing .play-btn-icon--play  { display: none; }
.sermon-play-btn--playing .play-btn-bars        {
  display: inline-flex;
}
.sermon-play-btn--playing .play-btn-duration    { display: none; }
/* Animate bars while playing */
.sermon-play-btn--playing .play-btn-bars span {
  animation: sound-bars 0.8s ease-in-out infinite alternate;
}
.sermon-play-btn--playing .play-btn-bars span:nth-child(1) { animation-delay: 0s; }
.sermon-play-btn--playing .play-btn-bars span:nth-child(2) { animation-delay: 0.15s; }
.sermon-play-btn--playing .play-btn-bars span:nth-child(3) { animation-delay: 0.3s; }
.sermon-play-btn--playing .play-btn-bars span:nth-child(4) { animation-delay: 0.45s; }
/* Hover while playing — swap bars for pause icon */
.sermon-play-btn--playing:hover .play-btn-bars       { display: none; }
.sermon-play-btn--playing:hover .play-btn-icon--pause { display: inline-flex; }

/* ---- Paused state ---- */
.sermon-play-btn--paused .play-btn-icon--play { display: none; }
.sermon-play-btn--paused .play-btn-bars       {
  display: inline-flex;
  opacity: 0.7;
}
/* No animation — bars stay static */
.sermon-play-btn--paused .play-btn-duration   { display: none; }
/* Hover while paused — swap static bars for play icon */
.sermon-play-btn--paused:hover .play-btn-bars      { display: none; }
.sermon-play-btn--paused:hover .play-btn-icon--play { display: inline-flex; opacity: 1; }

@keyframes sound-bars {
  from { transform: scaleY(0.4); }
  to   { transform: scaleY(1); }
}

/* ---- Download button — matches --lg play button height ---- */
.sermon-download-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* ============================================================
   GLOBAL AUDIO PLAYER
   ============================================================ */

/* body padding managed by JS _updateBodyPadding() */

.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #0f2035;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.player--hidden { display: none; }
.player__icon--hidden { display: none; }

/* ── Shared sub-components ── */

.player__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.player__title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.player__title:hover { color: var(--gold-light); }
.player__speaker {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.player__play-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  color: #0f2035;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s, transform 0.1s;
  flex-shrink: 0;
}
.player__play-btn:hover { background: var(--gold-light); transform: scale(1.05); }
.player__play-btn svg { width: 16px; height: 16px; }
.player__play-btn--sm { width: 34px; height: 34px; }
.player__play-btn--sm svg { width: 13px; height: 13px; }

.player__skip-btn {
  display: flex; align-items: center; gap: 2px;
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-family: var(--font-sans); font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem;
  border-radius: var(--radius);
  transition: color 0.1s, background 0.1s;
}
.player__skip-btn:hover { color: white; background: rgba(255,255,255,0.08); }
.player__skip-btn svg { width: 15px; height: 15px; }

.player__progress {
  flex: 1; width: 100%;
  height: 4px;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  cursor: pointer; outline: none;
}
.player__progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: white; cursor: pointer;
  transition: transform 0.1s;
}
.player__progress:hover::-webkit-slider-thumb { transform: scale(1.25); }
.player__progress::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%; background: white; border: none; cursor: pointer;
}

/* Speed picker popover */
.speed-picker { position: relative; flex-shrink: 0; }
.speed-picker__btn {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.speed-picker__btn:hover { background: rgba(255,255,255,0.14); color: white; }
.speed-picker__menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0d1c2e;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  min-width: 68px;
  z-index: 10;
}
.speed-picker__option {
  display: block; width: 100%;
  padding: 0.45rem 0.75rem;
  background: none; border: none;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-sans); font-size: 0.82rem;
  text-align: center; cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.speed-picker__option:hover { background: rgba(255,255,255,0.08); color: white; }
.speed-picker__option--active { color: var(--gold-light); font-weight: 600; }

.player__close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: none;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.1s, background 0.1s;
  flex-shrink: 0;
}
.player__close-btn:hover { color: white; background: rgba(255,255,255,0.08); }
.player__close-btn svg { width: 15px; height: 15px; }

/* ── DESKTOP ROW (>1000px) ── */

.player__desktop-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
  height: 72px;
}
.player__desktop-row .player__info { width: 220px; flex-shrink: 0; }
.player__controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.player__secondary {
  flex: 1; display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.player__progress-area {
  flex: 1; display: flex; align-items: center; gap: 0.6rem; min-width: 0;
}
.player__time {
  font-size: 0.72rem; color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0;
}

/* ── COMPACT MINI (≤1000px, collapsed) ── */

.player__compact-mini { display: none; }
.player__mini-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.12);
}
.player__mini-progress__fill {
  height: 100%; width: 0%;
  background: var(--gold-light);
  transition: width 0.25s linear;
}
.player__expand-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: none; border: none;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.1s, background 0.1s;
  flex-shrink: 0;
}
.player__expand-btn:hover { color: white; background: rgba(255,255,255,0.08); }
.player__expand-btn svg { width: 16px; height: 16px; }

/* ── COMPACT EXPANDED (≤1000px, expanded) ── */

.player__compact-expanded { display: none; }

.player__exp-info {
  margin-bottom: 1rem;
}
.player__exp-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: white;
  text-decoration: none;
  display: block;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.player__exp-title:hover { color: var(--gold-light); }
.player__exp-speaker {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: block;
}

.player__exp-scrubber { margin-bottom: 1.25rem; }
.player__exp-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-variant-numeric: tabular-nums;
  margin-top: 0.5rem;
}

.player__exp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.player__exp-controls .player__play-btn { width: 48px; height: 48px; }
.player__exp-controls .player__play-btn svg { width: 20px; height: 20px; }
.player__exp-controls .player__skip-btn { font-size: 0.78rem; }
.player__exp-controls .player__skip-btn svg { width: 17px; height: 17px; }

.player__exp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.875rem;
}
.player__exp-stop,
.player__exp-collapse {
  display: flex; align-items: center; gap: 0.4rem;
  background: none; border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
  transition: color 0.1s, background 0.1s;
}
.player__exp-stop:hover,
.player__exp-collapse:hover { color: white; background: rgba(255,255,255,0.08); }
.player__exp-stop svg,
.player__exp-collapse svg { width: 14px; height: 14px; }

/* Pagy navigation */
.pagy {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 2.5rem 0 0;
  font-family: var(--font-sans);
  flex-wrap: wrap;
}
.pagy a, .pagy span {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: none;
}
.pagy .current { background: var(--navy); color: white; border-color: var(--navy); }
.pagy a:hover  { background: var(--cream); }
.pagy .gap     { border: none; color: var(--text-muted); }

/* ============================================================
   CMS PAGE CONTENT
   ============================================================ */

.page-body {
  max-width: 760px;
}
.page-body h2 { margin: 2rem 0 0.75rem; }
.page-body h3 { margin: 1.5rem 0 0.5rem; color: var(--navy); }
.page-body p  { color: #3d3d3d; font-size: 1rem; line-height: 1.75; margin-bottom: 1rem; }
.page-body ul, .page-body ol { margin: 0.75rem 0 1rem 1.5rem; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { margin-bottom: 0.4rem; font-size: 1rem; color: #3d3d3d; line-height: 1.65; }
.page-body a { color: var(--navy); text-decoration: underline; }
.page-body a:hover { color: var(--gold); }
.page-body strong { color: var(--text); }

.page-body .info-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.page-body .info-card h3 { margin-top: 0; color: var(--navy); }

.page-body .pastor-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.page-body .pastor-initials {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.page-body .pastor-details h3 { margin-top: 0; margin-bottom: 0.15rem; }
.page-body .pastor-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.page-body .service-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.page-body .service-time-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.page-body .service-time-card .time-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.page-body .service-time-card .time-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
}
.page-body .giving-cta {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.page-body .giving-cta h3 { color: white; margin-bottom: 0.5rem; }
.page-body .giving-cta p  { color: rgba(255,255,255,0.8); margin-bottom: 1.25rem; }
.page-body .giving-cta .giving-cta__recurring {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}
.page-body .giving-cta .giving-cta__recurring:hover { color: white; }

/* ============================================================
   ADMIN LAYOUT — SIDEBAR
   ============================================================ */

.admin-layout {
  background: #f3f4f6;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

/* Overlay (mobile) */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
}
.admin-overlay--visible { display: block; }

/* Sidebar */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  transition: width 0.2s ease;
  z-index: 200;
}

.admin-sidebar--collapsed {
  width: 52px;
}

/* Header: brand + toggle button */
.admin-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  height: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  overflow: hidden;
}

.admin-sidebar__brand {
  color: white;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.admin-sidebar--collapsed .admin-sidebar__brand {
  opacity: 0;
  width: 0;
}

.admin-sidebar__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.1s, background 0.1s;
}
.admin-sidebar__toggle:hover { background: rgba(255,255,255,0.1); color: white; }
.admin-sidebar__toggle svg { width: 18px; height: 18px; }

/* Nav links */
.admin-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
}

.admin-sidebar__footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0;
  flex-shrink: 0;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
  border-radius: 0;
  width: 100%;
}
.admin-sidebar__link:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-sidebar__link.active { background: rgba(255,255,255,0.12); color: white; }
.admin-sidebar__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}
.admin-sidebar__link span {
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.15s ease;
}
.admin-sidebar--collapsed .admin-sidebar__link span {
  opacity: 0;
  width: 0;
}

/* button_to renders a form > button; style the button to look like a link */
.admin-sidebar__link--button {
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

/* Main content area */
.admin-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-mobile-bar { display: none; } /* hidden on desktop */

.admin-content-inner {
  flex: 1;
  padding: 2rem;
}

.admin-content .flash { margin-bottom: 1.25rem; }

.admin-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.page-header, .admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-header h1, .admin-page-header h1 { margin: 0; }
.admin-page-header__actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.header-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* Admin tables */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.admin-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fafafa; }
.admin-table .actions { display: flex; gap: 0.5rem; align-items: center; }
.admin-table .actions form { margin: 0; }
.admin-table .actions button {
  background: none; border: none; color: var(--navy);
  cursor: pointer; font-size: 0.8rem; padding: 0; font-family: var(--font-sans);
}
.admin-table .actions button:hover { color: #dc2626; }
.admin-table .col-date { white-space: nowrap; }
.admin-table .col-scripture { color: #666; font-size: 0.82rem; }
.admin-table th a { color: inherit; text-decoration: none; }
.admin-table th a:hover { text-decoration: underline; }

/* Admin filters */
.admin-filters { margin-bottom: 1.25rem; }
.filter-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.filter-search { padding: 0.4rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; min-width: 220px; }
.filter-select { padding: 0.4rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; background: white; }

/* Combobox */
.combobox-wrapper { position: relative; }
.combobox-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  min-width: 100%;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
}
.combobox-option {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}
.combobox-option:first-child { border-radius: 8px 8px 0 0; }
.combobox-option:last-child  { border-radius: 0 0 8px 8px; }
.combobox-option:only-child  { border-radius: 8px; }
.combobox-option:hover, .combobox-option--hi { background: #f3f4f6; }
.combobox-option mark { background: none; font-weight: 600; color: inherit; }
.combobox-empty { padding: 0.45rem 0.75rem; font-size: 0.875rem; color: #9ca3af; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.badge-published   { background: #d1fae5; color: #065f46; }
.badge-draft       { background: #fef3c7; color: #92400e; }
.badge-structured  { background: #e0e7ff; color: #3730a3; cursor: help; }

/* Admin forms */
.admin-form { max-width: 640px; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.field input[type=text],
.field input[type=email],
.field input[type=url],
.field input[type=number],
.field input[type=date],
.field input[type=password],
.field select,
.field textarea {
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text);
  background: white;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.field-row .field { margin-bottom: 0; }
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.file-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.75rem 1.5rem;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  color: #9ca3af;
  text-align: center;
  margin-top: 0.25rem;
}
.file-upload-placeholder svg { width: 2rem; height: 2rem; opacity: 0.5; }
.file-upload-placeholder p { margin: 0; font-size: 0.9rem; font-weight: 500; color: #6b7280; }
.file-upload-placeholder span { font-size: 0.78rem; }
.form-errors {
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.form-errors ul { list-style: disc inside; font-size: 0.875rem; color: #991b1b; }
.html-editor { font-family: monospace; font-size: 0.8rem; }

/* Detail list */
.detail-list { font-size: 0.9rem; margin-bottom: 1.5rem; }
.detail-list dt {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-top: 0.875rem;
}
.detail-list dd { margin-left: 0; }

/* Dashboard */
.stats-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.stat-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  text-align: center;
  min-width: 130px;
}
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--navy); font-family: var(--font-sans); }
.stat-label  { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.quick-links ul { display: flex; flex-direction: column; gap: 0.5rem; }

/* ============================================================
   MEMBER SIDEBAR — accent override
   Reuses all admin-sidebar structure; just shifts the header
   accent from the admin blue-tint to the gold brand colour.
   ============================================================ */

.member-sidebar .admin-sidebar__header {
  border-bottom-color: rgba(196, 160, 80, 0.25);
}

.member-sidebar .admin-sidebar__brand {
  color: var(--gold-light);
}

/* ============================================================
   EVENTS CALENDAR
   ============================================================ */

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.cal-header__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cal-header__month {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy-dark);
  margin: 0;
  min-width: 180px;
  text-align: center;
}
.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--navy);
  transition: background 0.15s;
}
.cal-nav-btn:hover { background: var(--gray-100); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.cal-dow {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 0;
}
.cal-day {
  min-height: 100px;
  padding: 0.35rem 0.4rem 0.4rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.cal-day:nth-child(7n) { border-right: none; }
.cal-day--other-month { background: var(--gray-50); }
.cal-day--today .cal-day__num {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-day__num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-block;
  margin-bottom: 0.2rem;
}
.cal-day--other-month .cal-day__num { color: var(--text-muted); }

.cal-event {
  background: var(--navy);
  color: var(--white);
  border-radius: 3px;
  padding: 0.15rem 0.35rem;
  font-size: 0.72rem;
  margin-bottom: 0.2rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.cal-event--allday { background: var(--gold); color: var(--navy-dark); }
.cal-event__time {
  font-size: 0.65rem;
  opacity: 0.8;
  margin-right: 0.2rem;
}
.cal-event__title { font-weight: 500; }

/* Dot indicators — only visible on narrow screens */
.cal-dots {
  display: none;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 0.25rem;
}
.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}
.cal-dot--allday { background: var(--gold); }

@media (max-width: 520px) {
  .cal-day {
    min-height: 52px;
    padding: 0.25rem 0.2rem;
  }
  .cal-day__num {
    font-size: 0.75rem;
  }
  .cal-event {
    display: none;
  }
  .cal-dots {
    display: flex;
  }
}

/* ── Event list below calendar ───────────────────────────────────────────── */
.cal-list {
  margin-top: 2rem;
}
.cal-list__heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy-dark);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
}
.cal-list__date-heading {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.25rem 0 0.4rem;
}
.cal-list__weekday {
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.85rem;
}
.cal-list__date {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.cal-list__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  margin-bottom: 0.4rem;
}
.cal-list__item--override {
  border-left: 3px solid var(--gold);
}
.cal-list__time {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-width: 130px;
  padding-top: 0.1rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}
.cal-list__time-sep { color: var(--border); }
.cal-list__allday {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--gold);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}
.cal-list__body {
  flex: 1;
  min-width: 0;
}
.cal-list__title {
  font-weight: 600;
  color: var(--navy-dark);
  font-size: 0.9rem;
}
.cal-list__location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

@media (max-width: 520px) {
  .cal-list__item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .cal-list__time {
    min-width: unset;
  }
}

/* ── Member Livestream ───────────────────────────────────────────────────── */
.livestream-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.livestream-notice--warn {
  background: #fefce8;
  border-color: #fde047;
  color: #854d0e;
}
.livestream-notice svg { flex-shrink: 0; margin-top: 1px; }
.livestream-notice code {
  font-size: 0.8rem;
  background: rgba(0,0,0,0.07);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}
.livestream-fallback {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}
.livestream-fallback p { margin-bottom: 1rem; }

.livestream-video {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* Responsive 16:9 embed */
.livestream-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 0.5rem;
  overflow: hidden;
}
.livestream-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.livestream-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}
.livestream-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.livestream-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* Admin event detail */
.occurrence-list { list-style: none; padding: 0; margin: 0; }
.occurrence-list__item {
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--border);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.occurrence-list__item--override { border-left-color: var(--gold); }
.occurrence-list__date { font-weight: 500; color: var(--navy); }

.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }
.badge--blue  { background: #dbeafe; color: #1e40af; }
.badge--gold  { background: #fef3c7; color: #92400e; }

.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.detail-list dt { font-weight: 600; color: var(--text-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 0.1rem; }
.detail-list dd { margin: 0; color: var(--navy-dark); }

.day-checkboxes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.day-checkbox { display: flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; cursor: pointer; user-select: none; }
.day-checkbox input { cursor: pointer; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Faceted sermons — responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .sermons-layout { grid-template-columns: 1fr; }

  /* Sidebar becomes a fixed off-canvas drawer */
  .filter-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(85vw, 320px);
    z-index: 300;
    background: var(--white);
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    /* override sticky positioning */
    max-height: none;
    top: 0;
  }
  .filter-sidebar--open { transform: translateX(0); }
  .filter-sidebar__close { display: flex; }

  body.filter-drawer-open { overflow: hidden; }

  /* Show the mobile filter button */
  .mobile-filter-btn { display: inline-flex; }

  .sermons-hero { padding: 1.75rem 0 1.5rem; }
  .sermons-hero__title { font-size: 1.5rem; }
  .sermon-search-form { max-width: 100%; }
}

/* Upgrade to full-res hero image on wider screens */
@media (min-width: 769px) {
  .hero { background-image: var(--hero-bg); }
}

@media (max-width: 768px) {
  .hero { padding: 4rem 0 3.5rem; }
  .hero__times { gap: 1.5rem; }

  .home-about { grid-template-columns: 1fr; gap: 2.5rem; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .site-nav .container { position: relative; flex-wrap: wrap; height: auto; padding-top: 0; padding-bottom: 0; }
  .site-nav__brand { padding: 1rem 0; }
  .site-nav__hamburger { display: flex; }

  .site-nav__links {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0 0.75rem;
    gap: 0;
  }
  .site-nav__links--open { display: flex; }

  .site-nav__links a,
  .site-nav__links button {
    padding: 0.7rem 0.5rem;
    font-size: 0.95rem;
    border-radius: 0;
    width: 100%;
    display: block;
  }
  .site-nav__links .btn-nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
    border-radius: var(--radius);
    display: block;
  }
  .site-nav__members { font-size: 0.95rem !important; opacity: 0.7; }

  .sermon-list__duration { display: none; }

  /* Player — no compact changes needed at 768px, handled at 1000px below */

  /* Admin sidebar — off-canvas on mobile */
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: 220px !important; /* always full width when open */
  }
  .admin-sidebar--open {
    transform: translateX(0);
  }
  .admin-sidebar--collapsed {
    width: 220px; /* collapsed class has no effect on mobile */
  }
  .admin-sidebar__brand { opacity: 1 !important; width: auto !important; }
  .admin-sidebar__link span { opacity: 1 !important; width: auto !important; }

  /* Content takes full width; add top bar with toggle */
  .admin-content {
    padding: 0;
  }
  .admin-mobile-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--navy-dark);
    padding: 0 1rem;
    height: 52px;
    flex-shrink: 0;
  }
  .admin-mobile-bar__title {
    color: white;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .admin-content-inner {
    padding: 1.25rem;
  }
}

@media (max-width: 540px) {
  .section { padding: 3rem 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  /* legacy filter rules removed — now handled by faceted search CSS */
}

/* Player compact layout — kicks in below 1000px */
@media (max-width: 1000px) {
  .player { border-top: none; } /* mini-progress replaces border */

  /* Hide desktop row, show compact mini */
  .player__desktop-row { display: none; }
  .player__compact-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    height: 56px;
    position: relative; /* for mini-progress absolute positioning */
  }
  .player__compact-mini .player__info { flex: 1; min-width: 0; }

  /* Expanded: hide mini, show expanded panel */
  .player--expanded .player__compact-mini { display: none; }
  .player--expanded .player__compact-expanded {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1rem;
  }
}

/* ============================================================
   SITE ALERT BANNER
   ============================================================ */

.site-alert {
  padding: 0.65rem 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}
.site-alert .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-alert__message { flex: 1; }
.site-alert__link {
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
}
.site-alert--info    { background: #dbeafe; color: #1e3a5f; }
.site-alert--info .site-alert__link { color: #1e3a5f; }
.site-alert--warning { background: #fef3c7; color: #78350f; }
.site-alert--warning .site-alert__link { color: #78350f; }
.site-alert--urgent  { background: #fee2e2; color: #7f1d1d; }
.site-alert--urgent .site-alert__link { color: #7f1d1d; }

/* Alert badge styles for admin table */
.alert-style-info    { background: #dbeafe; color: #1e40af; }
.alert-style-warning { background: #fef3c7; color: #92400e; }
.alert-style-urgent  { background: #fee2e2; color: #991b1b; }

/* Pastor photo */
.pastor-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ============================================================
   SIGN IN / MEMBERS PAGE
   ============================================================ */

.session-page {
  display: grid;
  grid-template-columns: 420px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.session-page__form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: var(--white);
  border-right: 1px solid var(--border);
}

@media (min-width: 901px) {
  .session-page__form-col {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
  }
}

.session-form {
  width: 100%;
  max-width: 340px;
}

.session-form__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
}

.session-form__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.session-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.session-form__forgot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.session-form__forgot a {
  color: var(--navy);
}

.session-page__info-col {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 4rem 3.5rem;
  overflow-y: auto;
}

.session-membership {
  max-width: 600px;
}

.session-membership__title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.session-membership > p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.session-membership__points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.session-membership__point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.session-membership__point-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.session-membership__point strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.session-membership__point p {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}

.session-membership__cta {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.session-membership__cta h3 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.session-membership__cta p {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.session-membership__cta ul {
  list-style: disc;
  margin-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.session-membership__cta ul li {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .session-page {
    grid-template-columns: 1fr;
  }
  .session-page__form-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
  }
  .session-page__info-col {
    padding: 2.5rem 1.5rem;
  }
}
