/* --- Header Image Theme --- */
:root[data-theme="header"] {
  color-scheme: light;
  --bg0: #e6eaf2;
  --bg1: #f7f9fc;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-2: rgba(255, 255, 255, 0.95);
  --border: #b2b8c6;
  --text: #020617;
  --muted: #0f172a;
  --muted-2: #1e293b;
  --accent: #e2b04a;
  --accent-2: #1e3a8a;
  --focus: #2d4a78;
  --shadow: 0 18px 50px rgba(58, 94, 154, 0.13);
  --shadow-soft: 0 10px 30px rgba(58, 94, 154, 0.09);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
  --header-offset: 78px;
  --btn-primary-border: #e2b04a;
  --btn-primary-top: #f7e6c2;
  --btn-primary-bottom: #fffbe6;
  --btn-primary-hover-top: #f7d88c;
  --btn-primary-hover-bottom: #fffbe6;
  --btn-secondary-border: #b2b8c6;
  --btn-secondary-bg: #f7f9fc;
  --btn-secondary-hover-border: #e2b04a;
  --btn-secondary-hover-bg: #f7e6c2;
}

:root[data-theme="header"] body {
  background:
    radial-gradient(1100px 800px at 12% 8%, #e2b04a22 0%, transparent 60%),
    radial-gradient(900px 600px at 88% 18%, #3a5e9a22 0%, transparent 55%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 48%, #f7f9fc 100%);
}

:root[data-theme="header"] a {
  color: var(--accent-2);
  text-decoration-color: rgba(30, 58, 138, 0.45);
}

:root[data-theme="header"] a:hover {
  color: var(--text);
  text-decoration-color: rgba(30, 58, 138, 0.85);
}

:root[data-theme="header"] .site-header {
  background: #e6eaf2;
  border-bottom-color: #b2b8c6;
  box-shadow: var(--shadow-soft);
}

:root[data-theme="header"] .nav a {
  color: #1e3a8a;
}

:root[data-theme="header"] .nav a:hover,
:root[data-theme="header"] .nav a:focus-visible {
  color: var(--text);
  border-color: #e2b04a;
  background: #f7e6c2;
}

:root[data-theme="header"] .badge,
:root[data-theme="header"] .today,
:root[data-theme="header"] .card,
:root[data-theme="header"] .family-card,
:root[data-theme="header"] .table-wrap,
:root[data-theme="header"] .fb-embed {
  background: linear-gradient(180deg, #f7f9fc 0%, #e6eaf2 100%);
  border-color: #b2b8c6;
}

:root[data-theme="header"] .kicker-pill {
  border-color: #e2b04a;
  background: #f7e6c2;
  color: var(--text);
}

:root[data-theme="header"] .kicker-pill--alt {
  border-color: #3a5e9a;
  background: #e6eaf2;
  color: var(--text);
}

:root[data-theme="header"] .footer {
  background: #e6eaf2;
  border-top-color: #b2b8c6;
}

:root[data-theme="header"] code {
  background: #f7e6c2;
  border-color: #e2b04a;
}
/* --- Mobile optimization and responsive improvements --- */
@media (max-width: 700px) {
  html {
    font-size: 16px;
  }
  body {
    padding-top: 62px;
  }
  .site-header {
    padding: 0 0;
    min-height: 56px;
  }
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    row-gap: 0;
    padding: 10px 0;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .brand-mark {
    width: 25%;
    height: 50%;
  }
  .brand-name {
    font-size: 1.1rem;
  }
  .brand-subtitle {
    font-size: 0.85rem;
  }
  html.js-nav .nav-toggle {
    display: inline-flex;
  }
  html:not(.js-nav) .nav-toggle {
    display: none;
  }
  html.js-nav .nav:not(.is-open) {
    display: none;
  }
  html.js-nav .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    width: 100%;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    gap: 6px;
  }
  html:not(.js-nav) .nav {
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
  }
  .nav a, .theme-toggle {
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
  }
  /* Keep Facebook as a square icon; .nav.is-open uses align-items: stretch on other links */
  html.js-nav .nav.is-open .nav-facebook {
    align-self: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
  }
  .hero {
    padding: 18px 0 12px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .today {
    margin-top: 18px;
    padding: 10px 8px 8px;
  }
  .section {
    padding: 14px 0 18px;
  }
  .section-top {
    flex-direction: column;
    gap: 4px;
  }
  .cards, .family-grid, .panels, .visit-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card, .family-card, .panel {
    padding: 10px 7px 8px;
  }
  .badge {
    padding: 8px 8px 6px;
  }
  .kicker {
    gap: 6px;
    margin-bottom: 6px;
  }
  .kicker-pill, .kicker-pill--alt {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
  .bible-verse {
    margin: 14px 0 10px 0;
    padding: 0;
    max-width: 100%;
  }
  .lead {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  h2 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  .meta {
    gap: 6px;
  }
  .panel-media {
    margin-top: 8px;
  }
  .to-top {
    right: 8px;
    bottom: 8px;
  }
}
/* Bible Verses Section */
.verses {
  background: linear-gradient(90deg, rgba(245, 185, 72, 0.07), rgba(42, 118, 255, 0.04));
  padding-top: 32px;
  padding-bottom: 32px;
}

.bible-verses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 18px;
}

.bible-verse {
  margin: 24px 0 18px 0;
  padding: 0 0 0 0;
  max-width: 540px;
}
.bible-verse blockquote {
  margin: 0 0 4px 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
}
.bible-verse figcaption {
  color: var(--muted-2);
  font-size: 0.97rem;
  text-align: left;
  margin-left: 18px;
}
:root {
  color-scheme: light;

  --bg0: #f6f8ff;
  --bg1: #ffffff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.12);

  /* Body text: ≥4.5:1 on white / light blue page & card backgrounds (Pa11y/axe) */
  --text: #020617;
  --muted: #0f172a;
  --muted-2: #1e293b;

  --accent: #f5b948;
  --accent-2: #1e40af;
  --focus: #2563eb;

  --shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);

  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
  --header-offset: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 800px at 12% 8%, rgba(42, 118, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 88% 18%, rgba(245, 185, 72, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 48%, #ffffff 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-2);
  text-decoration-color: rgba(30, 64, 175, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
  text-decoration-color: rgba(30, 64, 175, 0.85);
}

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

.container {
  width: min(var(--max), calc(100% - 2 * 20px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: #0b1220;
  color: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 2000;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header {
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.header-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

a.brand {
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
}

.brand-name {
  margin: 0;
  font-weight: 820;
  letter-spacing: 0.1px;
  color: var(--text);
}

.brand-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.nav a[href^="http"] {
  border-color: rgba(30, 64, 175, 0.28);
  background: rgba(30, 64, 175, 0.1);
  color: var(--text);
}

.nav-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding-left: 9px;
  padding-right: 9px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.nav-toggle:focus-visible {
  box-shadow: 0 0 0 3px var(--focus);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  pointer-events: none;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 701px) {
  .nav-toggle {
    display: none !important;
  }
}

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

.hero {
  padding: 34px 0 26px;
  background-color: var(--bg0);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 18px;
  align-items: start;
}

h1 {
  font-size: clamp(2.05rem, 2.6vw + 1rem, 3.2rem);
  line-height: 1.06;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hero-first-visit {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-first-visit-note {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-first-visit-list {
  margin: 0;
  padding-left: 1.35rem;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.55;
  list-style-type: disc;
}

.hero-first-visit-list li + li {
  margin-top: 0.35em;
}

.badge {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
  box-shadow: var(--shadow-soft);
}

.badge-title {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.badge-value {
  margin: 6px 0 0 0;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--text);
}

.today {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow);
}

.today-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.today-value {
  margin: 8px 0 0 0;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.today-note {
  margin: 8px 0 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 24px 0 30px;
}

.section + .section {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: 0.1px;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 260px at 12% 10%, rgba(42, 118, 255, 0.10), transparent 60%),
    radial-gradient(600px 240px at 88% 0%, rgba(245, 185, 72, 0.14), transparent 60%);
  opacity: 0.2;
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text);
}

.pill {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f0f4f8;
  color: var(--text);
  white-space: nowrap;
}

.meta {
  margin: 12px 0 0 0;
  display: grid;
  gap: 10px;
}

.meta dt {
  font-size: 0.82rem;
  color: var(--muted);
}

.meta dd {
  margin: 3px 0 0 0;
  font-weight: 800;
  color: var(--text);
}

.card-body {
  margin: 12px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.table-wrap {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow-soft);
}

.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

#week-of-prayer h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  letter-spacing: -0.02em;
}

#week-of-prayer .table-wrap {
  margin-top: 0.75rem;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.schedule th,
.schedule td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  vertical-align: top;
}

.schedule thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  text-align: left;
  font-size: 0.92rem;
  color: var(--muted);
}

.schedule tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

/* Beat striped rows when today falls on an "even" row (e.g. Tuesday) */
.schedule tbody tr.is-today {
  background: linear-gradient(90deg, rgba(42, 118, 255, 0.11), rgba(245, 185, 72, 0.10));
}

:root[data-theme="dark"] .schedule tbody tr.is-today {
  background: linear-gradient(90deg, rgba(141, 212, 255, 0.18), rgba(255, 209, 122, 0.12));
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.schedule-line--cancelled .schedule-line-text {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: var(--muted);
}

.schedule-cancelled-badge {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #b91c1c;
  text-decoration: none;
  white-space: nowrap;
}

:root[data-theme="dark"] .schedule-line--cancelled .schedule-line-text {
  color: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .schedule-cancelled-badge {
  color: #fca5a5;
}

.is-today th {
  color: var(--text);
}

.is-today td,
.is-today .list {
  color: var(--text);
}

/* Weekly schedule: card stack on small screens — no horizontal scroll */
@media (max-width: 700px) {
  .table-wrap {
    overflow: visible;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .table-wrap:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
  }

  .schedule {
    min-width: 0;
    display: block;
    width: 100%;
  }

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

  .schedule tbody {
    display: block;
  }

  .schedule tbody tr {
    display: block;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  .schedule tbody tr:last-child {
    margin-bottom: 0;
  }

  .schedule tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.03);
  }

  .schedule tbody tr.is-today {
    background: linear-gradient(135deg, rgba(42, 118, 255, 0.12), rgba(245, 185, 72, 0.12));
    border-color: rgba(42, 118, 255, 0.28);
  }

  .schedule tbody th[scope="row"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 10px 12px;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: left;
  }

  .schedule tbody td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border-bottom: none;
    padding: 8px 12px 12px;
  }

  .schedule .list {
    padding-left: 1.15rem;
    margin: 0;
  }

  .schedule .list li {
    padding: 2px 0;
    line-height: 1.45;
  }

  :root[data-theme="header"] .table-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  :root[data-theme="header"] .schedule tbody tr {
    background: linear-gradient(180deg, #f7f9fc 0%, #e6eaf2 100%);
    border-color: #b2b8c6;
  }

  :root[data-theme="header"] .schedule tbody tr:nth-child(even) {
    background: linear-gradient(180deg, #f2f5f9 0%, #dfe6f0 100%);
  }

  :root[data-theme="header"] .schedule tbody tr.is-today {
    background: linear-gradient(135deg, rgba(42, 118, 255, 0.14), rgba(226, 176, 74, 0.14));
    border-color: rgba(58, 94, 154, 0.45);
  }

  :root[data-theme="dark"] .table-wrap {
    background: transparent;
    border: none;
    box-shadow: none;
  }

  :root[data-theme="dark"] .schedule tbody tr {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.12);
  }

  :root[data-theme="dark"] .schedule tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
  }

  :root[data-theme="dark"] .schedule tbody tr.is-today {
    background: linear-gradient(135deg, rgba(141, 212, 255, 0.2), rgba(255, 209, 122, 0.14));
    border-color: rgba(141, 212, 255, 0.35);
  }

  :root[data-theme="dark"] .schedule tbody th[scope="row"] {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

.footer {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #f0f4f8;
}

.footer-inner {
  display: grid;
  gap: 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.footer-logo {
  width: 125px;
  height: auto;
  flex-shrink: 0;
}

.footer-brand-text {
  min-width: 0;
}

.footer-title {
  margin: 0;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.35;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

code {
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* Family-focused hero accents */
.kicker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(245, 185, 72, 0.32);
  background: #fef3d0;
  color: var(--text);
}

.kicker-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 185, 72, 0.95);
  box-shadow: 0 0 0 4px rgba(245, 185, 72, 0.20);
}

.kicker-pill--alt {
  border-color: rgba(42, 118, 255, 0.30);
  background: #e8effe;
  color: var(--text);
}

.kicker-pill--alt::before {
  background: rgba(42, 118, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(42, 118, 255, 0.18);
}

.lead-break {
  display: inline;
}

/* Families section */
.family-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.family-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.family-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(650px 260px at 12% 10%, rgba(42, 118, 255, 0.10), transparent 60%),
    radial-gradient(600px 240px at 88% 0%, rgba(245, 185, 72, 0.14), transparent 60%);
  opacity: 0.2;
  pointer-events: none;
}

.family-card > * {
  position: relative;
}

.family-title {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text);
}

.family-meta {
  margin: 8px 0 0 0;
  color: var(--muted);
  font-weight: 900;
}

.family-body {
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Church life / Community photo grid */
.community-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.community-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.community-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.community-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.community-card figcaption {
  margin: 0;
  padding: 10px 12px 11px;
  font-weight: 850;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .family-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card:hover {
    transform: none;
  }

  .site-header {
    backdrop-filter: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
/* Facebook embeds */
.fb-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  align-items: start;
}

.fb-embeds {
  display: grid;
  gap: 12px;
}

.fb-empty {
  margin: 0;
}

.fb-embed {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

@media (max-width: 980px) {
  .fb-layout {
    grid-template-columns: 1fr;
  }
}
.fb-links {
  max-width: 520px;
}

.fb-links-list {
  margin: 8px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
  word-break: break-word;
}

.fb-hint {
  margin: 0 0 8px 0;
}

.prayer-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 12px;
  align-items: stretch;
}

.prayer-video-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.prayer-video-card .prayer-video-title {
  margin: 0 0 12px 0;
}

.prayer-video-figure {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.prayer-video-iframe {
  display: block;
  width: 100%;
  max-width: 267px;
  aspect-ratio: 267 / 476;
  height: auto;
}

.prayer-video-caption {
  margin: 12px 0 0 0;
  text-align: center;
  font-size: 0.95rem;
  width: 100%;
  max-width: 267px;
}

/* Theme toggle + dark theme */
:root {
  --btn-primary-border: rgba(42, 118, 255, 0.26);
  --btn-primary-top: rgba(42, 118, 255, 0.14);
  --btn-primary-bottom: rgba(255, 255, 255, 0.72);
  --btn-primary-hover-top: rgba(42, 118, 255, 0.20);
  --btn-primary-hover-bottom: rgba(255, 255, 255, 0.82);

  --btn-secondary-border: rgba(15, 23, 42, 0.14);
  --btn-secondary-bg: rgba(255, 255, 255, 0.72);
  --btn-secondary-hover-border: rgba(15, 23, 42, 0.20);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.86);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg0: #050815;
  --bg1: #070d1a;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.14);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.78);
  --muted-2: rgba(255, 255, 255, 0.7);

  --accent: #ffd17a;
  --accent-2: #8dd4ff;
  --focus: #7dd3fc;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);

  --btn-primary-border: rgba(141, 212, 255, 0.36);
  --btn-primary-top: rgba(141, 212, 255, 0.16);
  --btn-primary-bottom: rgba(255, 255, 255, 0.06);
  --btn-primary-hover-top: rgba(141, 212, 255, 0.22);
  --btn-primary-hover-bottom: rgba(255, 255, 255, 0.08);

  --btn-secondary-border: rgba(255, 255, 255, 0.16);
  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-hover-border: rgba(255, 255, 255, 0.22);
  --btn-secondary-hover-bg: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(1100px 800px at 12% 8%, rgba(141, 212, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 88% 18%, rgba(255, 209, 122, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 48%, #050b17 100%);
}

:root[data-theme="dark"] a:hover {
  color: rgba(255, 255, 255, 0.95);
  text-decoration-color: rgba(141, 212, 255, 0.95);
}

.theme-toggle {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

:root[data-theme="dark"] .theme-toggle {
  color: rgba(255, 255, 255, 0.82);
}

:root[data-theme="dark"] .theme-toggle:hover,
:root[data-theme="dark"] .theme-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle-icon::before {
  content: "☀";
}

:root[data-theme="dark"] .theme-toggle-icon::before {
  content: "☾";
}

/* Component overrides for dark theme (because some light styles use fixed rgba values) */
:root[data-theme="dark"] .site-header {
  box-shadow: var(--shadow-soft);
  background: #070d1a;
  border-bottom-color: rgba(255, 255, 255, 0.10);
}

:root[data-theme="dark"] .nav a {
  color: rgba(255, 255, 255, 0.84);
}

:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav a:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .nav a[href^="http"] {
  border-color: rgba(141, 212, 255, 0.28);
  background: rgba(141, 212, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] .nav-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] .nav-toggle:hover,
:root[data-theme="dark"] .nav-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .today,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .family-card,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .fb-embed {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

:root[data-theme="dark"] .schedule thead th {
  background: rgba(7, 13, 26, 0.92);
  color: var(--muted);
}

:root[data-theme="dark"] .schedule tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

:root[data-theme="dark"] .footer {
  background: rgba(0, 0, 0, 0.12);
  border-top-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] code {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.10);
}
/* Dark theme readability fixes */
:root[data-theme="dark"] .badge-value,
:root[data-theme="dark"] .card h3,
:root[data-theme="dark"] .meta dd,
:root[data-theme="dark"] .family-title {
  color: var(--text);
}

:root[data-theme="dark"] .card-body,
:root[data-theme="dark"] .family-body,
:root[data-theme="dark"] .family-meta,
:root[data-theme="dark"] .list,
:root[data-theme="dark"] .fb-links-list {
  color: var(--muted);
}

:root[data-theme="dark"] .kicker-pill {
  border-color: rgba(255, 209, 122, 0.28);
  background: #231e0d;
  color: rgba(255, 255, 255, 0.92);
}

:root[data-theme="dark"] .kicker-pill::before {
  background: rgba(255, 209, 122, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 209, 122, 0.12);
}

:root[data-theme="dark"] .kicker-pill--alt {
  border-color: rgba(141, 212, 255, 0.28);
  background: #152031;
}

:root[data-theme="dark"] .kicker-pill--alt::before {
  background: rgba(141, 212, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(141, 212, 255, 0.12);
}
/* Panels (News + Visit) */
.panels {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.12);
}

.panel-title {
  margin: 0;
  font-size: 1.12rem;
}

.panel-list {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
}

:root[data-theme="dark"] .panel-list {
  color: var(--muted);
}

.small {
  font-size: 0.95rem;
}

.visit-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.map {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

:root[data-theme="dark"] .map {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

@media (max-width: 980px) {
  .panels,
  .visit-grid {
    grid-template-columns: 1fr;
  }
}
.footer-address {
  margin: 0;
}

.address {
  font-weight: 700;
}
/* Dark mode: ensure current day highlight is readable */
:root[data-theme="dark"] .is-today th,
:root[data-theme="dark"] .is-today td,
:root[data-theme="dark"] .is-today .list {
  color: rgba(255, 255, 255, 0.95);
}
/* Anchor offset (sticky header) */
section[id] {
  scroll-margin-top: calc(var(--header-offset, 78px) + 16px);
}

/* Scroll to top */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
}

.to-top[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .to-top {
    right: 12px;
    bottom: 12px;
  }
}
/* News (loaded from news.json) */
.news-items {
  display: contents;
}

.panel-media {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
}

:root[data-theme="dark"] .panel-media {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.panel-media img {
  display: block;
  width: 100%;
  height: auto;
}

.charity-shop-caption {
  margin: 10px 4px 0;
  text-align: center;
  line-height: 1.45;
}

.charity-shop-clothes-figure {
  margin-top: 20px;
  max-width: min(40rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.charity-shop-extra-figure {
  margin-top: 28px;
}

.admin-note {
  margin: 12px 0 0 0;
}

/* News editor */
.editor-actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.editor-list {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.editor-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-controls {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 780px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

.input,
.textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.4;
}

:root[data-theme="dark"] .input,
:root[data-theme="dark"] .textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.input:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.editor-help summary {
  cursor: pointer;
}
/* Fixed header (always visible) */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1000;
}

body {
  padding-top: var(--header-offset, 78px);
}

.about-prose {
  max-width: min(48rem, 100%);
}

.about-prose p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.about-prose p + p {
  margin-top: 1rem;
}

.about-story-photo {
  margin: 1.25rem 0 0 0;
  max-width: min(48rem, 100%);
}

.about-story-photo-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
  background: #eef2f7;
}

.about-story-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-story-photo figcaption {
  margin-top: 8px;
}

.about-expect-list {
  margin-top: 12px;
  max-width: min(48rem, 100%);
}

.about-expect-list li + li {
  margin-top: 0.75rem;
}

.about-expect-title {
  color: var(--text);
  font-weight: 800;
}

.about-beliefs-summary {
  margin-top: 12px;
  max-width: min(42rem, 100%);
}

.about-beliefs-cta {
  margin-top: 1.25rem;
}

.about-visit-note {
  margin-top: 10px;
}

.about-visit-note--spaced {
  margin-top: 12px;
}

.team-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.team-card-media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #f8fafc;
  aspect-ratio: 3 / 4;
}

.team-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  aspect-ratio: 3 / 4;
}

.team-card-media--logo img {
  width: min(100%, 7.5rem);
  height: auto;
  object-fit: contain;
}

.team-name {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text);
}

.team-role {
  margin: 6px 0 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--muted);
}

.team-bio {
  margin: 10px 0 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

@media (max-width: 780px) {
  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card-media,
  .team-card-media--logo {
    max-width: 14rem;
    margin: 0 auto;
    aspect-ratio: auto;
    min-height: 0;
  }

  .team-card-media:not(.team-card-media--logo) {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.beliefs-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.beliefs-block {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-soft);
}

.beliefs-block h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.beliefs-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 780px) {
  .beliefs-columns {
    grid-template-columns: 1fr;
  }
}
