/* Shared visual system for the public site, admin dashboard, and member pages.
   JavaScript updates these custom properties when admins change theme colors. */
:root {
  --ink: #20211d;
  --muted: #64685e;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --sage: #556b54;
  --sage-dark: #2f493a;
  --brick: #8b3f35;
  --gold: #c3913a;
  --spring-sky: rgba(98, 151, 176, 0.42);
  --spring-grass: rgba(104, 137, 70, 0.38);
  --spring-gold: rgba(207, 161, 59, 0.34);
  --spring-clay: rgba(150, 77, 58, 0.26);
  --line: rgba(32, 33, 29, 0.13);
  --shadow: 0 24px 70px rgba(32, 33, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, var(--spring-sky), transparent 30%),
    radial-gradient(circle at 82% 18%, var(--spring-gold), transparent 34%),
    radial-gradient(circle at 24% 76%, var(--spring-grass), transparent 36%),
    linear-gradient(0deg, rgba(244, 238, 221, 0.58), rgba(244, 238, 221, 0.58)),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body > main {
  flex: 1 0 auto;
}

#home {
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.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;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Skip-to-content link: visually hidden until focused by keyboard users. */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  font-size: 0.94rem;
  text-decoration: none;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

/* Global keyboard focus ring: visible on every interactive element. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* On dark sections the gold ring may not contrast enough; use white instead. */
.site-header :focus-visible,
.hero :focus-visible,
.messages-section :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* Primary (gold-background) buttons need a dark ring so focus is visible. */
.button.primary:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--sage-dark);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: var(--notice-offset, 0px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 64px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 40px rgba(32, 33, 29, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: currentColor;
  opacity: 0.78;
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
}

.nav-cta {
  background: var(--gold);
  color: var(--ink);
}

.nav-login {
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.86rem;
}

.site-header.is-scrolled .nav-login,
.site-header.is-open .nav-login {
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* Public homepage hero, including the managed image gallery and live-video state. */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 5vw, 76px) 44px;
  overflow: hidden;
  color: var(--white);
}

.hero.is-live {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(32, 33, 29, 0.96), rgba(47, 73, 58, 0.9)),
    var(--sage-dark);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media[data-hero-gallery] img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-media[data-hero-gallery] img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-media.is-event-empty {
  display: grid;
  place-content: center;
  background:
    linear-gradient(135deg, rgba(47, 73, 58, 0.92), rgba(150, 77, 58, 0.72)),
    linear-gradient(45deg, var(--spring-sky), var(--spring-gold));
}

.hero-media.is-event-empty img {
  opacity: 0;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 18, 13, 0.82), rgba(15, 18, 13, 0.45) 48%, rgba(15, 18, 13, 0.18)),
    linear-gradient(0deg, rgba(15, 18, 13, 0.55), rgba(15, 18, 13, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-bottom: 64px;
}

.hero-live-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  width: min(1180px, 100%);
  margin-bottom: 28px;
}

.hero-live-card[hidden] {
  display: none;
}

.hero-live-heading h2 {
  margin-bottom: 0;
  color: var(--white);
}

.hero-live-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-live-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 600px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button.primary {
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.button.secondary {
  border: 2px solid currentColor;
  color: var(--white);
}

.button.dark {
  color: var(--ink);
}

.service-card {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(420px, 100%);
  padding: 24px;
  border-left: 5px solid var(--gold);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.service-card p {
  margin-bottom: 2px;
  color: var(--muted);
  font-weight: 800;
}

.service-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
}

.service-card span {
  display: block;
  color: var(--muted);
}

.service-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brick);
  font-weight: 900;
}

.split-section,
.live-section,
/* Shared public content sections for events, messages, visiting, giving, and footer. */
.events-section,
.messages-section,
.visit-section,
.notice-band,
.planning-next-section,
.connect-section,
.church-center-section,
.custom-home-section,
.give-section,
.site-footer {
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 76px);
}

.notice-band {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(20px, 5vw, 76px);
  background: var(--gold);
  color: var(--ink);
}

.notice-band[hidden] {
  display: none;
}

.notice-band div {
  display: grid;
  gap: 4px;
}

.notice-band strong {
  font-size: 1.24rem;
}

.notice-band p {
  margin-bottom: 0;
}

.notice-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 2px solid rgba(32, 33, 29, 0.72);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.notice-close:hover {
  background: rgba(255, 253, 248, 0.28);
}

.custom-home-section {
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.72), rgba(244, 238, 221, 0.54)),
    linear-gradient(35deg, var(--spring-sky), transparent 58%),
    linear-gradient(215deg, var(--spring-gold), transparent 62%);
}

.custom-home-section > div {
  max-width: 920px;
}

.custom-home-section p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.08rem;
}

.custom-home-section .button {
  margin-top: 16px;
}

.split-copy p,
.visit-panel p {
  color: var(--muted);
  font-size: 1.08rem;
}

.core-beliefs {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  margin-top: clamp(26px, 4vw, 42px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.core-beliefs[hidden] {
  display: none;
}

.core-beliefs-heading {
  display: grid;
  gap: 8px;
}

.core-beliefs-heading span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.core-beliefs-heading strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.core-beliefs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.core-beliefs-list article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(47, 55, 43, 0.08);
}

.core-beliefs-list h3 {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.core-beliefs-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(238, 243, 237, 0.62), rgba(255, 248, 226, 0.52)),
    linear-gradient(135deg, var(--spring-grass), var(--spring-gold));
}

.quick-links a {
  min-height: 210px;
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.quick-links a:hover {
  background: rgba(255, 253, 248, 0.78);
  transform: translateY(-4px);
}

.quick-links span {
  display: block;
  margin-bottom: 36px;
  color: var(--brick);
  font-weight: 900;
}

.quick-links strong,
.quick-links small {
  display: block;
}

.quick-links strong {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.quick-links small {
  color: var(--muted);
  font-size: 0.96rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(247, 244, 237, 0.58), rgba(255, 253, 248, 0.48)),
    linear-gradient(130deg, var(--spring-gold), transparent 54%),
    linear-gradient(310deg, var(--spring-sky), transparent 60%);
}

.image-stack {
  position: relative;
}

.image-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-stack::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 46%;
  height: 42%;
  border: 8px solid var(--gold);
  z-index: -1;
}

.live-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(238, 243, 237, 0.58), rgba(255, 253, 248, 0.44)),
    linear-gradient(145deg, var(--spring-sky), transparent 58%),
    linear-gradient(315deg, var(--spring-grass), transparent 56%);
}

.planning-next-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.64), rgba(238, 243, 237, 0.5)),
    linear-gradient(135deg, var(--spring-grass), transparent 58%),
    linear-gradient(315deg, var(--spring-gold), transparent 58%);
}

.planning-next-section[hidden] {
  display: none;
}

.planning-next-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(320px, 1fr);
  gap: 20px;
  padding: clamp(22px, 4vw, 40px);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
}

.planning-next-card > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.planning-next-card span,
.planning-next-card p,
.planning-next-card li span {
  color: var(--muted);
}

.planning-next-card > div > span {
  color: var(--brick);
  font-weight: 900;
  text-transform: uppercase;
}

.planning-next-card > div > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.planning-next-card ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.planning-next-card li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.planning-next-card li span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: capitalize;
}

.live-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 1.08rem;
}

.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.live-destination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.live-destination-links a {
  padding: 8px 12px;
  color: var(--sage-dark);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 800;
}

.player-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.player-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(32, 33, 29, 0.92), rgba(47, 73, 58, 0.86)),
    url("https://static.wixstatic.com/media/3ba06b_789a13bdf09444ebbea6263f7038f21bf002.jpg/v1/fill/w_1200,h_675,al_c,q_80,enc_avif,quality_auto/3ba06b_789a13bdf09444ebbea6263f7038f21bf002.jpg") center / cover;
}

.player-placeholder span,
.player-placeholder small {
  color: rgba(255, 253, 248, 0.76);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-placeholder strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.livestream-load-panel {
  gap: 12px;
}

.livestream-load-panel .button {
  justify-self: center;
  width: min(100%, 230px);
  border: 0;
  cursor: pointer;
}

.livestream-load-panel .button.secondary {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.42);
}

.events-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.56), rgba(247, 244, 237, 0.48)),
    linear-gradient(130deg, var(--spring-gold), transparent 58%),
    linear-gradient(320deg, var(--spring-clay), transparent 58%);
}

.featured-event {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(280px, 0.92fr);
  gap: 0;
  min-height: 360px;
  margin-bottom: clamp(24px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef3ed;
}

.featured-event-media {
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(47, 73, 58, 0.9), rgba(139, 63, 53, 0.7)),
    #3f5b49;
  background-position: center;
  background-size: cover;
}

.featured-event-media.is-empty {
  display: grid;
  place-content: center;
  padding: clamp(26px, 5vw, 54px);
  text-align: center;
}

.featured-event-media.is-empty::before {
  content: attr(data-empty-title);
  max-width: 10ch;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.98;
}

.featured-event-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.featured-event-copy h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
}

.featured-event-meta {
  margin-bottom: 18px;
  color: var(--brick);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-event-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(340px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.calendar-card {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.78);
}

.calendar-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-top span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.calendar-top strong {
  color: var(--brick);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.calendar-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid button {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.82);
  font-size: clamp(0.78rem, 2vw, 0.96rem);
  font-weight: 800;
}

.calendar-grid button:empty {
  background: transparent;
  border-color: transparent;
}

.calendar-grid .has-event {
  border-color: var(--gold);
  background: #f8e8c8;
  color: var(--brick);
  cursor: pointer;
}

.calendar-grid .has-event.is-active {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: var(--white);
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(238, 243, 237, 0.78);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.event-item:hover,
.event-item.is-active {
  border-color: var(--gold);
  background: rgba(251, 250, 246, 0.86);
  transform: translateY(-2px);
}

.event-item time {
  display: grid;
  place-content: center;
  min-height: 92px;
  padding: 12px;
  color: var(--white);
  background: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
}

.event-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-item h3 {
  margin-bottom: 8px;
}

.event-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.messages-section {
  background:
    linear-gradient(135deg, rgba(47, 73, 58, 0.96), rgba(47, 73, 58, 0.88)),
    linear-gradient(45deg, rgba(127, 174, 194, 0.22), transparent 48%),
    var(--sage-dark);
  color: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading a {
  color: var(--gold);
  font-weight: 900;
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.message-card {
  overflow: hidden;
  background: rgba(248, 242, 229, 0.92);
  color: var(--ink);
}

.message-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.message-card div {
  padding: 20px;
}

.message-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--brick);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.message-card a {
  color: var(--sage-dark);
  font-weight: 900;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.6), rgba(255, 253, 248, 0.44)),
    linear-gradient(135deg, var(--spring-sky), transparent 60%),
    linear-gradient(315deg, var(--spring-gold), transparent 56%);
}

.visit-panel,
.map-card {
  border: 1px solid var(--line);
  background-color: rgba(255, 253, 248, 0.66);
}

.visit-panel {
  align-self: center;
  padding: clamp(24px, 4vw, 42px);
}

dl {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

dt {
  color: var(--brick);
  font-weight: 900;
}

dd {
  margin: 0;
  color: var(--muted);
}

.map-card {
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
  gap: 0;
  overflow: hidden;
  padding: 0;
  background: var(--white);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: var(--paper);
}

.directions-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
}

.directions-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.directions-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
}

.directions-form a {
  grid-column: 1 / -1;
  align-self: flex-start;
  color: var(--brick);
  font-weight: 900;
}

.connect-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
  background:
    linear-gradient(180deg, rgba(247, 244, 237, 0.5), rgba(255, 253, 248, 0.46)),
    linear-gradient(145deg, var(--spring-grass), transparent 58%),
    linear-gradient(315deg, var(--spring-sky), transparent 62%);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
}

.church-center-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background:
    linear-gradient(135deg, rgba(47, 73, 58, 0.9), rgba(32, 33, 29, 0.82)),
    linear-gradient(45deg, var(--spring-grass), var(--spring-sky));
  color: var(--white);
}

.church-center-intro {
  position: sticky;
  top: 100px;
}

.church-center-intro p:not(.section-kicker) {
  color: rgba(255, 253, 248, 0.76);
  font-size: 1.08rem;
}

.church-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.church-center-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.church-center-board article {
  min-height: 210px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 253, 248, 0.18);
  background: rgba(255, 253, 248, 0.1);
  backdrop-filter: blur(10px);
}

.church-center-board span {
  display: block;
  margin-bottom: 38px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.church-center-board strong,
.church-center-board p {
  display: block;
}

.church-center-board strong {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.church-center-board p {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.72);
}

.integration-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.18);
  background: rgba(255, 253, 248, 0.18);
}

.integration-flow div {
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 253, 248, 0.1);
}

.integration-flow strong,
.integration-flow span {
  display: block;
}

.integration-flow strong {
  margin-bottom: 8px;
}

.integration-flow span {
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.94rem;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfaf6;
}

textarea {
  resize: vertical;
}

.contact-form .button {
  border: 0;
  cursor: pointer;
}

.give-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    linear-gradient(90deg, rgba(231, 237, 240, 0.54), rgba(255, 246, 222, 0.48)),
    linear-gradient(135deg, var(--spring-sky), var(--spring-gold));
}

.give-section h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.zeffy-give {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(320px, 1fr);
  align-items: stretch;
}

.zeffy-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.zeffy-copy h2 {
  margin-bottom: 0;
}

.zeffy-copy p:not(.section-kicker) {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.zeffy-note {
  max-width: 560px;
  padding-top: 6px;
}

.zeffy-note h3 {
  margin-bottom: 8px;
  color: var(--sage-dark);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zeffy-note p {
  margin-bottom: 0;
}

.zeffy-form-shell {
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(47, 55, 43, 0.16);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(47, 55, 43, 0.13);
}

.zeffy-form-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  background: var(--white);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 32px;
  padding-bottom: 32px;
  background: var(--ink);
  color: var(--white);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: rgba(255, 253, 248, 0.7);
}

.site-footer a {
  color: var(--gold);
  font-weight: 900;
}

/* Admin/member app shell styles reuse the same palette with denser dashboard layouts. */
.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(98, 151, 176, 0.24), rgba(207, 161, 59, 0.16)),
    var(--paper);
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
}

.login-shell {
  display: grid;
  place-items: center;
}

.admin-welcome,
.admin-dashboard {
  max-width: 1240px;
  margin: 0 auto;
}

.admin-welcome {
  display: grid;
  align-content: center;
  gap: 28px;
  min-height: calc(100vh - clamp(48px, 10vw, 144px));
}

.admin-welcome h1,
.admin-dashboard h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.96;
}

.admin-welcome p:not(.section-kicker),
.admin-dashboard-header p:not(.section-kicker),
.admin-next-panel p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.admin-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.login-panel,
.admin-helper-panel,
.admin-status-strip,
.admin-action-grid a,
.admin-next-panel {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(32, 33, 29, 0.08);
}

.login-panel {
  display: grid;
  gap: 30px;
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 54px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.login-brand img {
  width: 52px;
  height: 52px;
}

.login-brand span {
  display: grid;
  gap: 0;
}

.login-brand strong {
  line-height: 1;
}

.login-brand small {
  color: var(--muted);
  font-weight: 800;
}

.login-copy {
  display: grid;
  gap: 14px;
}

.login-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 8vw, 4.7rem);
  line-height: 0.96;
}

.login-copy p:not(.section-kicker),
.login-note {
  color: var(--muted);
  font-size: 1.04rem;
}

.login-actions {
  display: flex;
  gap: 10px;
}

.login-note {
  margin: 0;
}

.admin-status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
}

.admin-status-strip div {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: #fbfaf6;
}

.admin-status-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-status-strip strong {
  font-size: 1.18rem;
}

.admin-helper-panel {
  margin-top: 18px;
  padding: 28px;
}

.admin-helper-panel h2 {
  margin-bottom: 10px;
}

.admin-helper-panel p:not(.section-kicker) {
  max-width: 780px;
  color: var(--muted);
}

.admin-save-status {
  margin-top: 14px;
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  font-weight: 800;
}

.admin-save-status[data-state="saving"] {
  color: var(--ink);
  background: rgba(238, 243, 237, 0.92);
}

.admin-save-status[data-state="unsaved"] {
  color: var(--ink);
  background: rgba(255, 241, 204, 0.96);
  border-color: rgba(195, 145, 58, 0.58);
}

.admin-save-status[data-state="success"] {
  color: var(--sage-dark);
  background: rgba(226, 239, 222, 0.92);
}

.admin-save-status[data-state="error"] {
  color: var(--brick);
  background: rgba(247, 232, 225, 0.94);
}

.admin-save-toast {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 20;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(32, 33, 29, 0.2);
  font-weight: 900;
}

.admin-save-toast[hidden] {
  display: none;
}

.admin-save-toast[data-state="saving"] {
  background: rgba(238, 243, 237, 0.98);
}

.admin-save-toast[data-state="unsaved"] {
  background: rgba(255, 241, 204, 0.98);
  border-color: rgba(195, 145, 58, 0.58);
}

.admin-save-toast[data-state="success"] {
  color: var(--sage-dark);
  background: rgba(226, 239, 222, 0.98);
}

.admin-save-toast[data-state="error"] {
  color: var(--brick);
  background: rgba(247, 232, 225, 0.98);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.admin-action-grid {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.admin-nav-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-nav-group {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 8px;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
}

.admin-nav-parent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px 10px 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-nav-parent::before {
  position: absolute;
  left: 10px;
  top: 50%;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 6px solid var(--brick);
  content: "";
  transform: translateY(-50%) rotate(90deg);
  transition: transform 140ms ease;
}

.admin-nav-parent[aria-expanded="false"]::before {
  transform: translateY(-50%);
}

.admin-nav-parent strong {
  font-size: 1rem;
}

.admin-nav-parent span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-nav-children {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 2px solid rgba(139, 63, 53, 0.18);
}

.admin-nav-group.is-collapsed .admin-nav-children {
  display: none;
}

.admin-action-grid a {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 0;
  padding: 12px 14px;
  text-decoration: none;
}

.admin-nav-group a:not(:first-child) {
  padding-block: 10px;
}

.admin-action-grid a.is-featured {
  background:
    linear-gradient(135deg, rgba(98, 151, 176, 0.15), rgba(207, 161, 59, 0.18)),
    var(--white);
}

.admin-action-grid strong {
  font-size: 1.02rem;
}

.admin-nav-help {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 5;
  width: min(260px, 60vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(32, 33, 29, 0.18);
  font-size: 0.86rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.admin-nav-help::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid var(--ink);
  content: "";
  transform: translateY(-50%);
}

.admin-action-grid a:hover .admin-nav-help,
.admin-action-grid a:focus-visible .admin-nav-help {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.admin-action-grid span:not(.admin-nav-help) {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-action-grid a.is-active {
  outline: 3px solid rgba(139, 63, 53, 0.24);
  outline-offset: 2px;
}

.admin-action-grid a.is-group-active:not(.is-active) {
  border-color: rgba(139, 63, 53, 0.18);
  background: rgba(255, 253, 248, 0.88);
}

.admin-panel-stack {
  min-width: 0;
}

.admin-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-events-overview {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-calendar-card {
  background: rgba(255, 253, 248, 0.9);
}

.admin-calendar-card .calendar-grid button {
  display: grid;
  place-items: center;
  gap: 2px;
}

.admin-calendar-card .calendar-grid button:disabled {
  cursor: default;
}

.admin-calendar-card .calendar-grid button span {
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.admin-calendar-card .calendar-grid button small {
  display: grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: inherit;
  font-size: 0.68rem;
}

.admin-editor-panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(32, 33, 29, 0.08);
}

.admin-editor-panel[hidden] {
  display: none;
}

.admin-editor-heading {
  display: grid;
  gap: 8px;
}

.admin-editor-heading h2 {
  margin: 0;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form-note {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(238, 243, 237, 0.78);
  border: 1px solid var(--line);
}

.admin-form-note span {
  color: var(--muted);
}

.admin-form-help {
  margin: -6px 0 0;
  color: var(--muted);
}

.admin-destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-destination-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
}

.admin-destination-card textarea {
  min-height: 84px;
}

.admin-upload-field {
  display: grid;
  gap: 12px;
}

.admin-upload-preview {
  display: grid;
  grid-template-columns: minmax(140px, 240px) auto;
  align-items: end;
  gap: 14px;
}

.admin-upload-preview > img,
.admin-upload-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #121212;
  border: 1px solid var(--line);
}

.admin-upload-preview > img {
  object-fit: cover;
}

.admin-upload-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--white);
  text-align: center;
}

.admin-upload-placeholder img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
}

.admin-upload-placeholder span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-repeat-panel {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(220px, 1fr);
  align-items: end;
  gap: 12px 18px;
  padding: 16px;
  background: rgba(238, 243, 237, 0.78);
  border: 1px solid var(--line);
}

.admin-repeat-panel .admin-form-help {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-livestream-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-livestream-guide article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-livestream-guide strong,
.admin-livestream-guide span {
  display: block;
}

.admin-livestream-guide span {
  color: var(--muted);
}

.admin-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.admin-check-row input {
  width: auto;
  min-width: 18px;
  height: 18px;
}

.admin-checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.admin-checkbox-line input {
  width: auto;
  min-width: 18px;
  height: 18px;
}

.admin-core-beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.admin-core-belief-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
}

.admin-core-belief-card textarea {
  min-height: 130px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-toggle-grid .admin-check-row {
  min-height: 76px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-integration-settings {
  padding: 18px;
  background: rgba(238, 243, 237, 0.62);
  border: 1px solid var(--line);
}

.admin-planning-modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-module-pill {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  background: rgba(251, 250, 246, 0.72);
  border: 1px solid var(--line);
}

.admin-module-pill.is-enabled {
  border-color: rgba(195, 145, 58, 0.65);
  background: rgba(248, 232, 200, 0.58);
}

.admin-module-pill span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-color-grid label {
  min-height: 104px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-color-grid input {
  min-height: 44px;
  padding: 4px;
  cursor: pointer;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-form .button,
.admin-form-actions .button {
  border: 0;
  cursor: pointer;
}

.admin-record-list {
  display: grid;
  gap: 10px;
}

.admin-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-section-manager {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-section-record {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

.admin-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-useful-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.admin-link-category {
  display: grid;
  gap: 14px;
}

.admin-link-category + .admin-link-category {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-useful-link-button {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(32, 33, 29, 0.08);
  text-decoration: none;
}

.admin-useful-link-button strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.admin-useful-link-button span {
  color: var(--muted);
  line-height: 1.35;
}

.admin-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.admin-editor-panel > .admin-video-grid {
  grid-template-columns: 1fr;
}

.admin-video-category {
  display: grid;
  gap: 14px;
}

.admin-video-category + .admin-video-category {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.admin-search-field,
.training-search {
  display: grid;
  gap: 8px;
  max-width: 520px;
  color: var(--ink);
  font-weight: 900;
}

.training-page {
  padding-top: 96px;
}

.training-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px var(--page-pad);
  background: rgba(255, 253, 248, 0.78);
  border-bottom: 1px solid var(--line);
}

.training-hero .section-kicker {
  margin: 0;
  white-space: nowrap;
}

.training-hero .training-search {
  grid-template-columns: auto minmax(220px, 340px);
  align-items: center;
  max-width: none;
}

.training-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: clamp(28px, 5vw, 64px) var(--page-pad);
}

.training-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(32, 33, 29, 0.08);
}

.training-sidebar-heading {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.training-sidebar-heading span,
.training-video-link span {
  color: var(--muted);
  font-size: 0.82rem;
}

.training-sidebar nav,
.training-nav-group {
  display: grid;
  gap: 8px;
}

.training-nav-group {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.training-nav-group h2 {
  margin: 0;
  color: var(--brick);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-video-link {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.training-video-link.is-active {
  border-color: rgba(139, 63, 53, 0.4);
  background: rgba(248, 232, 200, 0.55);
}

.training-viewer {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.training-intro-panel,
.training-selected-video {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(32, 33, 29, 0.08);
}

.training-intro-panel h2,
.training-selected-video h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}

.training-selected-video strong {
  color: var(--brick);
}

.discipleship-filter-strip {
  margin-top: -1px;
  border-top: 0;
}

.discipleship-filter-strip .training-search {
  grid-template-columns: auto minmax(180px, 280px);
  align-items: center;
}

.discipleship-resource-meta {
  display: grid;
  gap: 12px;
}

.discipleship-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discipleship-meta-badges span {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(195, 145, 58, 0.16);
  border: 1px solid rgba(139, 63, 53, 0.2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.discipleship-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discipleship-resource-card em {
  color: var(--muted);
}

.discipleship-resource-card small {
  color: var(--muted);
}

.admin-video-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(32, 33, 29, 0.08);
}

.admin-video-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(238, 243, 237, 0.78);
  border: 1px solid var(--line);
}

.admin-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-video-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-video-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.12rem;
}

.admin-video-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-record-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-record div {
  display: grid;
  gap: 4px;
}

.admin-record span,
.admin-record p,
.admin-empty,
.admin-preview-box span,
.admin-activity-item span,
.admin-photo-card span {
  color: var(--muted);
}

.admin-record p {
  margin: 4px 0 0;
}

.admin-record select {
  max-width: 160px;
}

.admin-preview-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-preview-box a {
  color: var(--brick);
  font-weight: 900;
  word-break: break-word;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-photo-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ede8dc;
}

.admin-photo-card div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.admin-photo-card .button {
  width: 100%;
  border-color: var(--line);
  cursor: pointer;
}

.admin-helper-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-planning-center-list {
  display: grid;
  gap: 16px;
}

.admin-planning-service {
  display: grid;
  gap: 12px;
}

.admin-planning-service h3 {
  margin: 0;
}

.admin-planning-plan {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-planning-plan.is-next {
  border-left: 5px solid var(--gold);
}

.admin-planning-plan-heading,
.admin-planning-plan-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-planning-plan-heading div {
  display: grid;
  gap: 4px;
}

.admin-planning-plan-heading time,
.admin-planning-plan-heading span,
.admin-planning-plan-meta,
.admin-planning-items span,
.admin-planning-items small {
  color: var(--muted);
}

.admin-planning-plan-heading time,
.admin-planning-plan-meta,
.admin-planning-items span,
.admin-planning-items small {
  font-size: 0.86rem;
}

.admin-planning-plan-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  font-weight: 800;
}

.admin-planning-plan-meta a {
  color: var(--brick);
}

.admin-planning-items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-planning-items li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.admin-planning-items span {
  font-weight: 900;
  text-transform: capitalize;
}

.admin-helper-item {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-helper-item strong {
  color: var(--brick);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-helper-item.is-done strong {
  color: var(--sage-dark);
}

.admin-helper-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-helper-item .button {
  width: fit-content;
  margin-top: 8px;
  border-color: var(--line);
  cursor: pointer;
}

.admin-activity-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-activity-item:last-child {
  border-bottom: 0;
}

.admin-dashboard-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.admin-next-panel {
  padding: 28px;
}

.admin-next-panel h2 {
  margin-bottom: 10px;
}

/* Responsive rules keep the public site and dashboard usable on tablets and phones. */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .nav-cta {
    margin-top: 6px;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
  }

  .hero-content {
    padding-bottom: 34px;
  }

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

  .service-card {
    justify-self: start;
  }

  .split-section,
  .live-section,
  .planning-next-card,
  .featured-event,
  .events-layout,
  .visit-section,
  .connect-section,
  .church-center-section,
  .integration-flow {
    grid-template-columns: 1fr;
  }

  .church-center-intro {
    position: static;
  }

  .directions-form {
    grid-template-columns: 1fr;
  }

  .quick-links,
  .message-grid,
  .church-center-board {
    grid-template-columns: 1fr;
  }

  .quick-links a {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-links span {
    margin-bottom: 14px;
  }

  .section-heading,
  .notice-band,
  .give-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-band div {
    padding-right: 48px;
  }

  .notice-band .button {
    align-self: flex-start;
  }

  .notice-close {
    position: absolute;
    top: 12px;
    right: 16px;
  }

  .zeffy-give {
    grid-template-columns: 1fr;
  }

  .zeffy-form-shell,
  .zeffy-form-shell iframe {
    width: 100%;
    min-height: 680px;
  }

  .admin-dashboard-header {
    flex-direction: column;
  }

  .admin-header-actions,
  .login-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-status-strip,
  .admin-workspace,
  .training-workspace,
  .admin-events-overview,
  .admin-action-grid,
  .admin-dashboard-columns,
  .admin-form-grid,
  .admin-destination-grid,
  .admin-livestream-guide,
  .admin-toggle-grid,
  .admin-planning-modules,
  .admin-color-grid,
  .admin-helper-list,
  .admin-upload-preview,
  .admin-repeat-panel,
  .admin-photo-grid {
    grid-template-columns: 1fr;
  }

  .admin-record {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-action-grid {
    position: static;
  }

  .training-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

  .discipleship-filter-strip .training-search {
    grid-template-columns: 1fr;
  }

  .training-sidebar {
    position: static;
  }

  .admin-nav-help {
    display: none;
  }

  .admin-planning-plan-heading {
    display: grid;
  }

  .admin-planning-items li {
    grid-template-columns: 1fr;
  }

  .admin-section-record {
    grid-template-columns: 1fr;
  }
}

/* Respect user preference to reduce motion: disable all transitions and the hero gallery animation. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-media[data-hero-gallery] img {
    transition: none !important;
    transform: none !important;
  }

  .skip-link {
    transition: none;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .hero-actions {
    display: grid;
  }

  .player-shell {
    min-height: 190px;
  }

  .event-item {
    grid-template-columns: 1fr;
  }

  .event-item time {
    width: 100%;
    min-height: 68px;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .service-card strong {
    font-size: 1.8rem;
  }

  .zeffy-form-shell,
  .zeffy-form-shell iframe {
    min-height: 740px;
  }

}
