:root {
  --bg: #070b12;
  --fg: #f8fafc;
  --muted: #94a3b8;
  --card: rgba(15, 23, 42, .55);
  --border: rgba(227, 198, 91, .35);
  --gold: #e3c65b;
  --ink: #020617;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(1200px 600px at 10% -10%, rgba(227, 198, 91, .18), transparent 55%), radial-gradient(900px 500px at 90% 0%, rgba(148, 163, 184, .12), transparent 50%), var(--bg); color: var(--fg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(7, 11, 18, .82); border-bottom: 1px solid rgba(227, 198, 91, .2); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; transform: scale(1.55); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: white; border: 1px solid var(--border); }
.menu { display: flex; flex-wrap: wrap; gap: 14px; color: #cbd5e1; font-size: 14px; font-weight: 700; }
.btn, button, input[type=submit] { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 11px 18px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; }
.btn.gold { background: linear-gradient(90deg, #e3c65b, #9a7b1c); color: #020617; }
.btn.light { background: rgba(255,255,255,.05); color: var(--fg); border: 1px solid rgba(227, 198, 91, .28); }
.hero { padding: 64px 0 48px; display: grid; gap: 36px; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; }
.eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .26em; font-weight: 900; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.05; margin: 0; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(44px, 7vw, 72px); }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 26px; }
p { color: var(--muted); line-height: 1.75; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .glass { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.24); backdrop-filter: blur(14px); }
.section { padding: 58px 0; }
.media { position: relative; overflow: hidden; border-radius: 30px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(215,160,59,.2), transparent); aspect-ratio: 16 / 10; }
.media.tall { aspect-ratio: 4 / 5; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.card-below-image { padding: 2rem 1.5rem 1.5rem; }
@media (min-width: 768px) {
  .card-below-image { padding: 2.25rem 1.75rem 1.75rem; }
}
.dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dept-card { padding: 0; overflow: hidden; }
.dept-card > .media { border: 0; border-radius: 0; }
.dept-detail-label { color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.dept-detail-block + .dept-detail-block { margin-top: 12px; }
.section-head.center { text-align: center; max-width: 48rem; margin: 0 auto 2rem; }
.dept-carousel { margin-top: 1.5rem; }
.dept-carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1.5rem; }
.dept-carousel-nav .eyebrow { flex: 1; text-align: center; margin: 0; }
.dept-carousel-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--fg); font-size: 22px; line-height: 1; cursor: pointer; }
.dept-carousel-panel { padding: 0; overflow: hidden; }
.dept-slide { display: none; }
.dept-slide.is-active { display: block; }
.dept-slide-grid { display: grid; gap: 24px; }
.dept-slide-body h3 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.dept-slide-body .dept-desc { margin-top: 12px; }
@media (min-width: 768px) {
  .dept-slide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .dept-slide-body { padding: 2.5rem; }
}
.meta { color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.footer { margin-top: 70px; padding: 42px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-rich { padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-title, .footer-heading { display: flex; align-items: center; gap: 10px; color: var(--fg); margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; }
.footer-heading { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-top: 24px; }
.footer-heading:first-of-type { margin-top: 0; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social-bar { margin-top: 8px; padding: 28px 0 8px; border-top: 1px solid var(--border); }
.footer-social-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--gold);
  transition: .2s ease;
}
.footer-social-icon:hover { background: rgba(227, 198, 91, .15); color: var(--fg); transform: translateY(-2px); }
.footer-social-icon .icon { width: 22px; height: 22px; }
.footer-social-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-social-list a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.footer-social-list a:hover { color: var(--fg); }
.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; }
.footer-link, .footer-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.footer-link:hover, .footer-list a:hover { color: var(--fg); }
.footer-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.footer-list li { display: flex; align-items: flex-start; gap: 8px; }
.footer-links a { font-weight: 700; }
.footer-copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); }
.icon-sm { width: 15px; height: 15px; }
.sermons-browser { margin-top: 32px; }
.sermons-player { padding: 0; overflow: hidden; }
.sermons-player-media { aspect-ratio: 16 / 9; border: 0; border-radius: 0; }
.sermons-empty { display: flex; align-items: center; justify-content: center; height: 100%; padding: 24px; text-align: center; }
.sermons-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.sermons-nav-buttons { display: flex; gap: 8px; }
.sermons-list { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sermon-pick { text-align: left; border: 1px solid var(--border); border-radius: 20px; padding: 16px 18px; background: rgba(255,255,255,.04); color: var(--fg); cursor: pointer; transition: .2s ease; }
.sermon-pick:hover { background: rgba(255,255,255,.08); }
.sermon-pick.is-active { border-color: var(--gold); background: rgba(227, 198, 91, .12); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.sermon-pick h3 { margin: 6px 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.sermon-pick p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-turnstile-wrap { min-height: 0; margin-top: 12px; }
.testimony-form textarea { min-height: 140px; }
.form-submit-btn { width: 100%; margin-top: 8px; padding: 14px 22px; font-size: 15px; }
.form-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.35); }
.form-submit-btn:not(:disabled) { box-shadow: 0 10px 28px rgba(227, 198, 91, 0.28); }
.live-embed { position: relative; aspect-ratio: 16 / 9; min-height: 280px; background: #000; }
.live-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-embed-empty { display: flex; min-height: 280px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--muted); }
.prose { font-size: 17px; line-height: 1.8; }
.prose img { border-radius: 24px; margin: 24px 0; }
.form { display: grid; gap: 14px; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; background: rgba(15,23,42,.86); color: var(--fg); font: inherit; }
textarea { min-height: 120px; }
.admin-shell { min-height: 100vh; background: #0b1120; color: white; }
.admin-shell .wrap { width: min(1180px, calc(100% - 32px)); }
.admin-shell > main > .grid.two:first-child {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.admin-shell h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  white-space: nowrap;
}
.admin-shell .card {
  background: rgba(15, 23, 42, .96);
  border-color: rgba(226, 232, 240, .18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}
.admin-shell p, .admin-shell .muted { color: #cbd5e1; }
.admin-shell label {
  display: grid;
  gap: 8px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}
.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  background: #111827 !important;
  color: #f8fafc !important;
  border-color: rgba(226, 232, 240, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.admin-shell input::placeholder,
.admin-shell textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.admin-shell input:focus,
.admin-shell textarea:focus,
.admin-shell select:focus {
  border-color: #f7d880;
  box-shadow: 0 0 0 3px rgba(247, 216, 128, .18);
  outline: none;
}
.admin-shell textarea { min-height: 160px; }
.admin-shell option { color: #111827; background: white; }
.admin-shell table { background: rgba(15, 23, 42, .96); border-radius: 24px; }
.admin-shell th { color: #f8fafc; background: rgba(255, 255, 255, .06); }
.admin-shell td { color: #e2e8f0; }
.admin-thumb {
  width: 86px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, .18);
  background: rgba(255, 255, 255, .08);
}
.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-shell input[type=file] {
  padding: 8px;
  background: transparent !important;
  border: 1px dashed rgba(226, 232, 240, .35);
}
.admin-shell .upload-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-shell .upload-form input[type=file] {
  max-width: 220px;
}
.branding-card h3 { margin-top: 0; }
.branding-preview {
  margin: 16px 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, .18);
  background: rgba(255, 255, 255, .06);
}
.branding-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.branding-preview--logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
}
.branding-preview--hero {
  aspect-ratio: 4 / 5;
  max-width: 320px;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.tabs a { border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 14px; }
.tabs a.active { background: linear-gradient(90deg, #d7a03b, #f7d880); color: #111827; }
table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; vertical-align: top; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger { background: #b91c1c; }
.notice { padding: 12px 16px; border-radius: 16px; background: rgba(215,160,59,.16); border: 1px solid rgba(215,160,59,.35); }
button.is-loading,
input[type=submit].is-loading {
  opacity: 0.88;
  cursor: wait;
  pointer-events: none;
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pc-spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes pc-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 820px) {
  .hero, .grid.two, .grid.three, .dept-grid, .footer-grid, .sermons-list { grid-template-columns: 1fr; }
  .admin-shell h1 { white-space: normal; }
  .menu { display: none; }
}
