:root {
  --ink: #052e1c;
  --ink-soft: #1f4d38;
  --emerald: #047857;
  --emerald-bright: #059669;
  --amber: #b45309;
  --amber-bright: #d97706;
  --snow: #ffffff;
  --canvas: #f3faf6;
  --panel: #ffffff;
  --line: rgba(4, 120, 87, 0.18);
  --danger: #b91c1c;
  --gold: var(--amber);
  --parchment: var(--snow);
  --forest: var(--emerald);
  --forest-mid: var(--emerald-bright);
  --copper: var(--amber);
  --copper-deep: #92400e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(5, 150, 105, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(217, 119, 6, 0.14), transparent 45%),
    linear-gradient(180deg, #ecfdf5 0%, var(--canvas) 42%, #ffffff 100%);
}

a { color: var(--emerald); }
a:hover { color: var(--amber); }

.site-header {
  display: block;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(5, 46, 28, 0.12);
}

.top-utility-bar {
  background: #064e3b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.top-utility-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 1.25rem;
}

.top-utility-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.top-utility-link {
  color: #ecfdf5;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.top-utility-link:hover {
  color: #fff;
  text-decoration: underline;
}

.top-utility-separator {
  color: rgba(236, 253, 245, 0.55);
}

.main-nav-bar {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-bright) 100%);
}

.main-nav-inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.95rem 1.25rem;
}

.main-nav-bar .logo,
.main-nav-bar .site-nav,
.main-nav-bar .site-nav a {
  color: #fff;
}

.logo {
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav-dropdown__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.2rem 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  opacity: 0.95;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle[aria-expanded="true"] {
  opacity: 1;
  border-bottom-color: var(--amber);
}

.nav-dropdown__caret {
  font-size: 0.75em;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__caret {
  transform: rotate(180deg);
}

/* Departments atlas — unfolds under the green nav as a calm workbench */
.dept-atlas {
  width: 100%;
  box-sizing: border-box;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(253, 230, 138, 0.22), transparent 55%),
    linear-gradient(180deg, #064e3b 0%, #065f46 42%, #047857 100%);
  color: #ecfdf5;
  border-top: 1px solid rgba(253, 230, 138, 0.28);
  overflow: hidden;
}

.dept-atlas.is-hidden,
.dept-atlas[hidden] {
  display: none !important;
}

.dept-atlas.is-open {
  display: block !important;
  animation: deptAtlasReveal 0.28s ease both;
}

@keyframes deptAtlasReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dept-atlas__inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.25rem;
}

.dept-atlas__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}

.dept-atlas__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
  font-weight: 600;
}

.dept-atlas__lede {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(236, 253, 245, 0.88);
}

.dept-atlas__lede a {
  color: #fef3c7 !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: 0 !important;
  opacity: 1 !important;
}

.dept-atlas__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.dept-atlas__search-input {
  width: min(16rem, 70vw);
  padding: 0.5rem 0.75rem;
  border: 1.5px solid rgba(253, 230, 138, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}

.dept-atlas__search-input::placeholder {
  color: rgba(236, 253, 245, 0.65);
}

.dept-atlas__search-input:focus {
  outline: 2px solid #fde68a;
  outline-offset: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.dept-atlas__all {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid rgba(253, 230, 138, 0.55);
  color: #fef3c7 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  border-bottom: 1.5px solid rgba(253, 230, 138, 0.55) !important;
  font-size: 0.88rem;
}

.dept-atlas__all:hover {
  background: rgba(253, 230, 138, 0.16);
  color: #fff !important;
}

.dept-atlas__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.dept-atlas__group {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.85rem 0.9rem 1rem;
  animation: deptAtlasIn 0.35s ease both;
}

.dept-atlas__group:nth-child(2) { animation-delay: 0.05s; }
.dept-atlas__group:nth-child(3) { animation-delay: 0.1s; }

@keyframes deptAtlasIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dept-atlas__group-head {
  margin-bottom: 0.7rem;
}

.dept-atlas__group-title {
  margin: 0 0 0.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
  letter-spacing: 0.01em;
}

.dept-atlas__group-blurb {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(236, 253, 245, 0.72);
}

.dept-atlas__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dept-atlas__chips li.is-filtered-out,
.dept-atlas__group.is-filtered-out {
  display: none;
}

.dept-atlas__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #064e3b !important;
  font-size: 0.82rem;
  font-weight: 600 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  border-bottom: 0 !important;
  line-height: 1.25;
  box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.dept-atlas__chip:hover {
  background: #fde68a;
  color: #78350f !important;
  transform: translateY(-1px);
}

.dept-atlas__chip.is-current {
  background: #fde68a;
  color: #78350f !important;
  box-shadow: inset 0 0 0 1.5px rgba(120, 53, 15, 0.28);
}

.dept-atlas__empty {
  margin: 0.85rem 0 0;
  text-align: center;
  color: #fde68a;
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .dept-atlas__grid {
    grid-template-columns: 1fr;
  }
}

.site-nav a:hover {
  opacity: 1;
  color: #fff;
  border-bottom-color: #fde68a;
}

.utility-profile-wrap { position: relative; }

.utility-icon-btn {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 0.1rem;
  border-radius: 999px;
  cursor: pointer;
}

.utility-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.utility-profile-btn img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: block;
}

.profile-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  min-width: 15rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(5, 46, 28, 0.18);
  padding: 0.4rem 0 0.55rem;
}

.profile-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.9rem 0.3rem;
}

.profile-popover-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.profile-popover-close {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.profile-popover-body { padding: 0.25rem 0.9rem 0.5rem; }

.profile-popover-text {
  font-size: 0.88rem;
  margin: 0 0 0.55rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.profile-popover-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
}

.profile-popover-link {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  color: var(--ink) !important;
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.profile-popover-link.primary {
  font-weight: 700;
  color: var(--emerald) !important;
}

.profile-popover-link:hover { color: var(--amber) !important; }

.profile-popover-form { margin: 0; }

.profile-popover-sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.5rem 0;
}

.flashes {
  list-style: none;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
  max-width: 64rem;
  width: 100%;
  box-sizing: border-box;
}

.flash {
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.flash-error { border-left: 5px solid var(--danger); }
.flash-success { border-left: 5px solid var(--emerald); }
.flash-info { border-left: 5px solid var(--amber-bright); }

.page-home { justify-content: flex-start; }

.home-hero {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 1.5rem;
  text-align: center;
  color: var(--ink);
  animation: rise-in 0.65s ease both;
}

.home-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: var(--emerald);
  line-height: 1.02;
}

.home-hero p {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.brand {
  display: inline-block;
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.95rem;
  font-weight: 700;
  background: rgba(180, 83, 9, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.cta-row {
  margin-top: 1.85rem !important;
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-app { padding: 1.25rem; }

.panel {
  width: min(36rem, 100%);
  margin: 0 auto 1.5rem;
  padding: 1.5rem;
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(5, 46, 28, 0.07);
}

.panel.wide { width: min(52rem, 100%); }

.panel h1 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  font-family: "Fraunces", Georgia, serif;
  color: var(--emerald);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.panel-head h1 { margin: 0; }
.panel-head .cta-row {
  margin-top: 0 !important;
  justify-content: flex-end;
}

.lede { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--ink-soft); font-size: 0.95rem; }

.stack-form { display: grid; gap: 0.75rem; }

.stack-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}

.stack-form label.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.stack-form label.check-row input[type="checkbox"] {
  width: auto;
}

.input, select.input, textarea.input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1.5px solid rgba(4, 120, 87, 0.28);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.input:focus, select.input:focus, textarea.input:focus {
  outline: 2px solid rgba(5, 150, 105, 0.35);
  border-color: var(--emerald-bright);
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field .input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #5a6b63);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--emerald);
  background: rgba(4, 120, 87, 0.08);
  outline: none;
}

.password-toggle svg {
  display: block;
}

.check { display: flex !important; align-items: center; gap: 0.45rem; }

.auth-oauth-lead {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(4, 120, 87, 0.28);
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  box-shadow: none;
}

.btn-google:hover {
  background: #f8fffb;
  border-color: var(--emerald);
  transform: none;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff !important;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(4, 120, 87, 0.25);
}

.btn:hover {
  background: #06684b;
  color: #fff !important;
  transform: translateY(-2px);
}

.btn-ghost {
  background: #fff;
  border: 2px solid var(--emerald);
  color: var(--emerald) !important;
  box-shadow: none;
}
.btn-ghost:hover {
  background: #ecfdf5;
  color: var(--emerald) !important;
}
.btn-danger { background: var(--danger); margin-top: 1rem; box-shadow: none; }

.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data th, .data td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1rem;
}

.facts dt { font-weight: 600; color: var(--ink-soft); }
.facts dd { margin: 0; }
.dash-parish-facts {
  max-width: 40rem;
  margin-top: 0.5rem;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.6rem 1rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: #ecfdf5;
}

.footer-inner {
  max-width: 64rem;
  margin: 0 auto;
}

.footer-inner__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner__grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem 2rem;
  }

  .footer-inner__primary {
    flex: 1 1 16rem;
    min-width: min(100%, 18rem);
  }

  .footer-inner__secondary {
    flex: 0 1 auto;
    text-align: right;
    max-width: 26rem;
  }
}

.footer-inner p { margin: 0; }
.footer-inner__primary > p + p { margin-top: 0.35rem; }
.footer-inner__secondary > p + p { margin-top: 0.45rem; }

.footer-church-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.3;
}

.footer-church-tag {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.footer-copy { line-height: 1.55; font-weight: 500; color: var(--ink); }
.footer-copy--church {
  margin-top: 0.65rem !important;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.footer-builder {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.footer-version { font-size: 0.8rem; line-height: 1.45; }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.55rem !important;
  line-height: 1.55;
  font-size: 0.84rem;
  text-align: left;
}

.footer-legal__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--emerald);
}

.footer-legal__text { display: block; color: var(--ink-soft); }
.footer-tech { font-size: 0.85rem; line-height: 1.45; }

.footer-inner a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.footer-inner a:hover { color: var(--amber); }

.page-panel {
  width: min(52rem, 100%);
  margin: 0 auto 2rem;
  padding: 1.5rem;
  color: var(--ink);
}

.page-panel.narrow { width: min(28rem, 100%); }

.page-panel h1 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  font-family: "Fraunces", Georgia, serif;
  color: var(--emerald);
}

.page-panel .lede,
.page-panel .muted { color: var(--ink-soft); }
.page-panel a { color: var(--emerald); font-weight: 600; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.section-title {
  margin: 2rem 0 1rem;
  font-size: 0.95rem;
  color: var(--emerald);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.church-grid-section {
  width: min(64rem, 100%);
  margin: 0 auto 2.75rem;
  padding: 0 1.25rem;
  color: var(--ink);
  animation: rise-in 0.8s ease 0.08s both;
}

.church-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.1rem;
}

.church-card {
  display: block;
  padding: 1.25rem 1.3rem;
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--emerald);
  box-shadow: 0 10px 24px rgba(5, 46, 28, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-left-color 0.18s ease;
}

.church-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(5, 46, 28, 0.14);
  border-left-color: var(--amber-bright);
  color: var(--ink) !important;
}

.church-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-family: "Fraunces", Georgia, serif;
  color: var(--emerald);
}

.church-card__meta {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  color: var(--amber);
  font-weight: 700;
}

.church-card__blurb {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.panel-note {
  color: var(--ink-soft);
  text-align: center;
  font-weight: 500;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.service-item p {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.badge {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
  font-weight: 800;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.data-table code { font-size: 0.85em; }

.typeahead {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.typeahead-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 0.15rem);
  z-index: 40;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1.5px solid rgba(4, 120, 87, 0.28);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(5, 46, 28, 0.12);
  max-height: 220px;
  overflow-y: auto;
}

.typeahead-item {
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
}

.typeahead-item:hover,
.typeahead-item:focus {
  background: rgba(4, 120, 87, 0.08);
}

.typeahead-item--muted {
  color: var(--ink-soft);
  cursor: default;
  font-size: 0.85rem;
}

.clergy-group-label {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
}

.clergy-list {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.clergy-list li { margin: 0.2rem 0; }

.data-table__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.inline-form { display: inline; margin: 0; }
.dash-church-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.linkish {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--emerald);
  cursor: pointer;
  text-decoration: underline;
}

.linkish:hover { color: var(--emerald-bright); }

.visibility-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.visibility-pill--on {
  color: #065f46;
  background: rgba(16, 185, 129, 0.15);
}

.visibility-pill--off {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.14);
}

.hint {
  margin: -0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
}

.page-panel .stack-form label { color: var(--ink); }
.page-panel .cta-row { justify-content: flex-start; }

.is-hidden { display: none !important; }

.pwa-install-banner,
.pwa-install-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin: 1rem auto 0;
  max-width: 64rem;
  width: calc(100% - 2.5rem);
  padding: 0.95rem 1.1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--amber-bright);
  box-shadow: 0 10px 24px rgba(5, 46, 28, 0.08);
}

.pwa-install-banner__icon {
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-install-banner__text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

.pwa-install-banner__btn { flex-shrink: 0; }

.pwa-install-banner__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0 0.25rem;
}

.pwa-install-hint { display: block; }

.pwa-install-hint__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--emerald);
}

.pwa-install-hint ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pwa-install-hint p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero,
  .church-grid-section { animation: none; }
  .btn:hover,
  .church-card:hover { transform: none; }
}

.dashboard-panel .section-title {
  margin-top: 1.75rem;
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 1rem 0 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(4, 120, 87, 0.04);
  width: fit-content;
  max-width: 100%;
}

.dash-tabs__link {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 0.35rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.dash-tabs__link:hover {
  color: var(--emerald);
  background: rgba(4, 120, 87, 0.08);
}

.dash-tabs__link.is-active {
  color: #fff;
  background: var(--emerald);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip__item {
  min-width: 6.5rem;
}

.stat-strip__value {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 650;
  color: var(--emerald);
  line-height: 1.15;
}

.stat-strip__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.dash-chart-wrap {
  position: relative;
  width: 100%;
  margin: 0.75rem 0 1rem;
}

.dash-chart-wrap--bar {
  height: 280px;
}

.dash-chart-wrap--donut {
  height: 240px;
}

.dash-bar-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.5rem 0 1.25rem;
}

.dash-bar-list__row {
  display: grid;
  grid-template-columns: minmax(5rem, 9rem) 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.dash-bar-list__label {
  font-size: 0.86rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-bar-list__track {
  height: 0.55rem;
  background: rgba(4, 120, 87, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.dash-bar-list__fill {
  height: 100%;
  background: linear-gradient(90deg, #047857, #10b981);
  border-radius: 999px;
  min-width: 2px;
}

.dash-bar-list__fill--amber {
  background: linear-gradient(90deg, #b45309, #f59e0b);
}

.dash-bar-list__value {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--emerald);
  min-width: 1.5rem;
  text-align: right;
}

@media (max-width: 720px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
  .dash-bar-list__row {
    grid-template-columns: minmax(4rem, 7rem) 1fr auto;
  }
}

@media (display-mode: standalone) {
  .pwa-install-banner,
  .pwa-install-hint { display: none !important; }
}

@media (max-width: 640px) {
  .main-nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
