:root {
  --ink: #10204a;
  --muted: #64718f;
  --brand: #0b4fd7;
  --brand-bright: #2469f5;
  --brand-dark: #07359a;
  --brand-deep: #061b57;
  --accent: #10a64a;
  --accent-soft: #dff7e8;
  --paper: #f4f7ff;
  --surface: #ffffff;
  --surface-blue: #eaf1ff;
  --line: #dbe4f6;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 24px 65px rgba(6, 27, 87, 0.16);
  --soft-shadow: 0 12px 36px rgba(6, 27, 87, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

/* Public header and identity */
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px clamp(20px, 5vw, 80px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 24px rgba(6, 27, 87, 0.04);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.public-brand { min-width: 300px; }
.brand-logo {
  width: 72px;
  height: 62px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--brand); font-size: 19px; letter-spacing: 0.08em; }
.brand-copy small { color: var(--muted); font-size: 11px; max-width: 245px; margin-top: 4px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 14px;
  font-weight: 700;
}
.site-nav > a:not(.button) { position: relative; }
.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--brand);
  transition: right 0.2s ease;
}
.site-nav > a:not(.button):hover::after { right: 0; }
.menu-button { display: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: var(--brand);
  color: white;
  padding: 12px 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 79, 215, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(11, 79, 215, 0.25);
}
.button.small { padding: 8px 13px; border-radius: 8px; font-size: 13px; }
.button.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }
.button.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.button.ghost-dark { background: transparent; color: var(--brand); border-color: var(--brand); box-shadow: none; }
.button.light { background: white; color: var(--brand-dark); border-color: white; }
.button.full { width: 100%; }

/* Home hero */
.hero {
  min-height: 690px;
  padding: 76px clamp(20px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(45px, 7vw, 100px);
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 14%, rgba(36, 105, 245, 0.55), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(16, 166, 74, 0.24), transparent 28%),
    linear-gradient(132deg, #061b57 0%, #07359a 48%, #0b4fd7 100%);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -180px; top: -230px; }
.hero::after { width: 350px; height: 350px; left: -180px; bottom: -210px; }
.hero-content, .hero-identity { position: relative; z-index: 2; }
.hero h1, .page-hero h1 {
  font-size: clamp(45px, 6.5vw, 82px);
  line-height: 1.01;
  letter-spacing: -0.052em;
  margin: 13px 0 25px;
  max-width: 900px;
}
.hero-intro {
  font-size: clamp(18px, 2vw, 21px);
  max-width: 710px;
  color: rgba(255, 255, 255, 0.84);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 12px !important;
  font-weight: 900;
  color: #77ef9f !important;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-foundation {
  display: inline-grid;
  margin-top: 35px;
  padding-left: 17px;
  border-left: 3px solid #77ef9f;
}
.hero-foundation span { color: rgba(255, 255, 255, 0.62); font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; }
.hero-foundation strong { margin-top: 3px; font-size: 17px; }
.hero-identity { display: grid; gap: 20px; }
.hero-logo-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: clamp(18px, 3vw, 32px);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(2, 13, 48, 0.35);
  transform: rotate(1deg);
}
.hero-logo-card img { width: 100%; display: block; }
.hero-identity blockquote {
  margin: 0 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}
.hero-identity blockquote p { margin: 0; color: white; font-size: 16px; }
.hero-identity cite { display: block; color: #9df2ba; margin-top: 8px; font-style: normal; font-weight: 800; }

.foundation-band {
  margin: -1px 0 0;
  padding: 72px clamp(20px, 9vw, 150px);
  text-align: center;
  background: white;
  border-bottom: 1px solid var(--line);
}
.foundation-band .eyebrow { color: var(--brand) !important; }
.foundation-band h2 { font-size: clamp(38px, 5vw, 64px); margin: 8px 0 12px; letter-spacing: -0.05em; color: var(--brand-deep); }
.foundation-band > p:not(.eyebrow) { max-width: 850px; margin: 0 auto; color: var(--muted); font-size: 19px; }
.foundation-band strong { display: inline-block; margin-top: 18px; color: var(--accent); }

/* Public sections */
.section { padding: 88px clamp(20px, 7vw, 110px); }
.section.muted { background: linear-gradient(180deg, #edf3ff, #f7f9ff); }
.section-heading { margin-bottom: 36px; }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.section-heading h2, .callout h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.042em; color: var(--brand-deep); }
.section .eyebrow, .foundation-band .eyebrow, .content-panel .eyebrow { color: var(--brand) !important; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(6, 27, 87, 0.12); }
.card h2, .card h3 { margin: 10px 0; color: var(--brand-deep); }
.card p { color: var(--muted); }
.card small { color: var(--muted); }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-blue); color: var(--brand); font-weight: 900; }
.ministry-card::before { background: linear-gradient(90deg, var(--accent), #35d66e); }
.sermon-card::before { background: linear-gradient(90deg, var(--brand-deep), var(--brand)); }
.date-badge { color: var(--brand) !important; font-weight: 900; }
.text-link { color: var(--brand); font-weight: 850; }

.callout {
  margin: 0 clamp(20px, 7vw, 110px) 90px;
  background:
    radial-gradient(circle at 90% 20%, rgba(36, 105, 245, 0.5), transparent 25%),
    linear-gradient(125deg, var(--brand-deep), var(--brand-dark));
  color: white;
  padding: 52px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow);
}
.callout h2 { color: white; }
.callout p:not(.eyebrow) { color: rgba(255, 255, 255, 0.72); max-width: 700px; }

.page-hero {
  padding: 95px clamp(20px, 7vw, 110px);
  background:
    radial-gradient(circle at 90% 20%, rgba(36, 105, 245, 0.6), transparent 30%),
    linear-gradient(130deg, var(--brand-deep), var(--brand-dark));
  color: white;
}
.page-hero p { font-size: 19px; max-width: 820px; color: rgba(255, 255, 255, 0.8); }
.branded-page-hero { display: grid; grid-template-columns: 1.3fr minmax(260px, 0.55fr); gap: 60px; align-items: center; }
.branded-page-hero img { width: min(390px, 100%); background: white; border-radius: 24px; padding: 20px; box-shadow: var(--shadow); justify-self: end; }
.two-column, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.content-panel { background: white; border: 1px solid var(--line); padding: 34px; border-radius: 22px; box-shadow: var(--soft-shadow); }
.content-panel h2 { color: var(--brand); }
.large-quote { margin: 24px 0 0; font-size: clamp(23px, 3vw, 34px); line-height: 1.35; color: var(--brand-deep); font-weight: 750; }
.timeline { display: grid; gap: 18px; }
.timeline-item { display: grid; grid-template-columns: 110px 1fr; gap: 28px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--soft-shadow); }
.timeline-date { display: flex; flex-direction: column; text-align: center; border-right: 1px solid var(--line); color: var(--brand); }
.timeline-date strong { font-size: 36px; }

/* Forms and contact */
.public-form, .admin-form, .login-card form { display: grid; gap: 18px; }
.public-form label, .admin-form label, .login-card label { display: grid; gap: 7px; font-weight: 750; font-size: 14px; }
.public-form input, .public-form textarea, .admin-form input, .admin-form textarea, .admin-form select, .login-card input, .search-bar input {
  width: 100%; border: 1px solid #cbd7ee; border-radius: 10px; background: white; padding: 11px 13px; color: var(--ink); outline: none;
}
.public-form input:focus, .public-form textarea:focus, .admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .login-card input:focus, .search-bar input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 79, 215, 0.12);
}
.form-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.contact-card { background: linear-gradient(150deg, var(--brand-deep), var(--brand)); color: white; padding: 36px; border-radius: 20px; align-self: start; box-shadow: var(--shadow); }

/* Footer */
.site-footer {
  padding: 52px clamp(20px, 7vw, 110px);
  background: #041641;
  color: white;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.6fr;
  align-items: center;
  gap: 45px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 100px; background: white; border-radius: 13px; padding: 5px; }
.footer-brand p { color: rgba(255, 255, 255, 0.63); margin: 4px 0; }
.footer-verse { margin: 0; border-left: 2px solid var(--accent); padding-left: 22px; }
.footer-verse p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.footer-verse cite { display: block; margin-top: 7px; color: #83efa6; font-style: normal; font-weight: 800; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255, 255, 255, 0.76); }

/* Login */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 20%, rgba(36, 105, 245, 0.55), transparent 28%),
    linear-gradient(125deg, #041641, #07359a 65%, #0b4fd7);
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-shell { width: min(1080px, 100%); min-height: 680px; display: grid; grid-template-columns: 1.08fr 0.92fr; background: white; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 90px rgba(1, 10, 37, 0.42); }
.login-brand { padding: 48px; color: white; background: linear-gradient(155deg, rgba(6, 27, 87, 0.95), rgba(11, 79, 215, 0.9)); display: flex; flex-direction: column; justify-content: space-between; }
.login-logo-link { align-self: flex-start; }
.login-logo { width: 330px; max-height: 250px; object-fit: contain; background: white; border-radius: 24px; padding: 13px; box-shadow: var(--shadow); }
.login-brand-copy h1 { font-size: clamp(37px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.045em; margin: 12px 0 22px; }
.login-brand-copy blockquote { margin: 0; color: rgba(255, 255, 255, 0.76); border-left: 3px solid #75ef9c; padding-left: 18px; }
.login-brand-copy cite { display: block; color: #8bf2ad; font-style: normal; font-weight: 850; margin-top: 7px; }
.login-card { padding: 60px; align-self: center; }
.login-card h2 { font-size: 34px; margin: 8px 0 0; color: var(--brand-deep); }
.login-card > p { color: var(--muted); }
.login-acronym { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--surface-blue); color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
.alert { padding: 12px 14px; border-radius: 9px; margin: 14px 0; }
.alert.danger { background: #fee4e2; color: #912018; }
.alert.success { background: var(--accent-soft); color: #126733; }

/* Admin */
.admin-body { display: flex; min-height: 100vh; background: #f3f6fd; }
.sidebar { width: 278px; position: fixed; inset: 0 auto 0 0; background: linear-gradient(180deg, #061b57, #05266f); color: white; padding: 22px 18px; overflow: auto; z-index: 30; box-shadow: 8px 0 30px rgba(6, 27, 87, 0.12); }
.admin-brand { padding: 0 9px 21px; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.admin-logo-wrap { width: 68px; height: 57px; display: grid; place-items: center; background: white; border-radius: 10px; overflow: hidden; padding: 3px; flex: 0 0 auto; }
.admin-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.admin-brand .brand-copy strong { color: white; }
.admin-brand .brand-copy small { color: rgba(255, 255, 255, 0.6); }
.admin-nav { display: grid; margin-top: 18px; gap: 4px; }
.admin-nav a { padding: 9px 11px; border-radius: 8px; color: rgba(255, 255, 255, 0.78); font-size: 14px; }
.admin-nav a:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.nav-group { text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; color: #8fb5ff; margin: 18px 11px 5px; }
.admin-main { margin-left: 278px; min-width: 0; width: calc(100% - 278px); }
.admin-topbar { height: 72px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: flex-end; gap: 24px; padding: 0 35px; position: sticky; top: 0; z-index: 15; }
.topbar-identity { margin-right: auto; display: flex; flex-direction: column; }
.topbar-identity span { color: var(--brand); font-weight: 900; letter-spacing: 0.12em; }
.topbar-identity small { color: var(--muted); }
.user-summary { display: flex; flex-direction: column; text-align: right; }
.user-summary span { font-size: 12px; color: var(--muted); }
.link-button, .danger-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--brand); font-weight: 800; }
.danger-link { color: var(--danger); }
.admin-content { padding: 35px; max-width: 1600px; margin: auto; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { font-size: 38px; letter-spacing: -0.04em; margin: 0; color: var(--brand-deep); }
.admin-heading p { color: var(--muted); margin: 4px 0; }
.heading-actions { display: flex; gap: 10px; }
.stats-grid, .finance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat, .finance-grid article { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 22px; box-shadow: 0 8px 25px rgba(6, 27, 87, 0.04); }
.stat span, .finance-grid span { color: var(--muted); font-size: 13px; }
.stat strong, .finance-grid strong { display: block; font-size: 30px; margin: 7px 0; color: var(--brand-deep); }
.stat a { font-size: 13px; color: var(--brand); font-weight: 800; }
.finance-grid .balance { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: white; }
.finance-grid .balance span { color: rgba(255, 255, 255, 0.75); }
.finance-grid .balance strong { color: white; }
.panel { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 22px; box-shadow: 0 10px 30px rgba(6, 27, 87, 0.04); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; color: var(--brand-deep); }
.panel-heading p { margin: 4px 0; color: var(--muted); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
tbody tr:hover { background: #f8faff; }
.actions { display: flex; gap: 14px; }
.actions form { display: inline; }
.pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--surface-blue); color: var(--brand-dark); font-size: 11px; font-weight: 850; }
.search-bar { display: flex; gap: 10px; margin-bottom: 16px; max-width: 620px; }
.pagination { display: flex; justify-content: flex-end; gap: 18px; margin-top: 18px; }
.pagination a { color: var(--brand); font-weight: 800; }
.form-panel { max-width: 1100px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.export-grid a { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: 0.2s ease; }
.export-grid a:hover { border-color: var(--brand); background: #f8faff; }
.export-grid span { color: var(--brand); font-size: 13px; margin-top: 5px; }
.admin-menu { margin-right: auto; }

@media (max-width: 1120px) {
  .public-brand { min-width: auto; }
  .brand-copy small { display: none; }
  .site-nav { gap: 16px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .finance-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { transform: translateX(-100%); transition: 0.25s; }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; width: 100%; }
  .admin-menu { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-identity { max-width: 650px; }
  .export-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .site-header { min-height: 76px; }
  .brand-logo { width: 58px; height: 52px; }
  .brand-copy strong { font-size: 16px; }
  .site-nav { display: none; position: absolute; top: 75px; left: 0; right: 0; background: white; padding: 22px; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); box-shadow: var(--soft-shadow); }
  .site-nav.open { display: flex; }
  .menu-button { display: block; border: 1px solid var(--line); background: white; color: var(--brand-deep); border-radius: 8px; padding: 8px 12px; font-weight: 800; }
  .hero { padding-top: 58px; min-height: auto; }
  .hero h1, .page-hero h1 { font-size: 44px; }
  .hero-logo-card { border-radius: 22px; }
  .foundation-band { padding-top: 58px; padding-bottom: 58px; }
  .card-grid, .two-column, .contact-layout, .form-row, .form-grid, .stats-grid, .finance-grid, .export-grid, .branded-page-hero { grid-template-columns: 1fr; }
  .branded-page-hero img { justify-self: start; width: min(330px, 100%); }
  .span-2 { grid-column: auto; }
  .split-heading, .callout, .admin-heading { align-items: flex-start; flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-date { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { grid-column: auto; flex-direction: column; }
  .login-shell { grid-template-columns: 1fr; min-height: auto; }
  .login-brand { padding: 28px; min-height: 300px; }
  .login-logo { width: 225px; max-height: 170px; }
  .login-brand-copy h1 { font-size: 33px; }
  .login-card { padding: 38px 25px; }
  .admin-content { padding: 22px 14px; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .topbar-identity { display: none; }
  .admin-topbar { padding: 0 16px; gap: 15px; }
}

/* Modern landing page enhancements */
.brand-logo {
  width: 68px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 4px;
}

.modern-hero {
  isolation: isolate;
  min-height: 760px;
  background:
    radial-gradient(circle at 88% 14%, rgba(36, 105, 245, 0.35), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(16, 166, 74, 0.18), transparent 28%),
    linear-gradient(132deg, #061b57 0%, #07359a 48%, #0b4fd7 100%);
}
.modern-hero.hero-has-media { background: #061b57; }
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.03);
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 18, 60, 0.86), rgba(5, 25, 80, 0.65) 48%, rgba(6, 27, 87, 0.55)),
    linear-gradient(180deg, rgba(4, 22, 65, 0.28), rgba(4, 22, 65, 0.82));
}
.modern-hero .hero-content,
.modern-hero .hero-identity { z-index: 2; }
.hero-logo-card.no-tilt { transform: none; }
.hero-chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.glass-card {
  margin: 0 20px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  color: white;
}
.glass-card p { margin: 0; color: rgba(255,255,255,0.86); }
.glass-card cite,
.event-spotlight .mini-label { display: block; color: #9df2ba; margin-top: 8px; font-style: normal; font-weight: 800; }
.event-spotlight strong { display: block; margin-top: 10px; font-size: 19px; }

.quick-stats-section { padding-top: 0; }
.stats-strip {
  margin-top: -58px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stats-strip article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.stats-strip strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.stats-strip span { color: var(--muted); font-weight: 600; }

.feature-split { align-items: stretch; }
.soft-panel,
.info-card {
  border-radius: 24px;
  padding: 34px;
}
.info-stack {
  display: grid;
  gap: 20px;
}
.info-card {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}
.info-card h3 { margin: 6px 0 12px; color: var(--brand-deep); font-size: 28px; }
.info-card p { color: var(--muted); }
.accent-card {
  background: linear-gradient(145deg, var(--brand-deep), var(--brand));
  color: white;
}
.accent-card h3,
.accent-card p,
.accent-card .eyebrow { color: white !important; }

.section-caption { color: var(--muted); max-width: 460px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.photo-card {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}
.photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.photo-card figcaption { padding: 18px; }
.photo-card figcaption strong { color: var(--brand-deep); }
.photo-card figcaption p { color: var(--muted); margin: 7px 0 0; }

.modern-callout {
  align-items: center;
  border-radius: 30px;
}

.site-footer {
  grid-template-columns: 1.1fr 1.1fr 0.65fr 1fr;
  align-items: start;
}
.footer-meta p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.76);
}
.footer-meta a,
.footer-links a { color: rgba(255,255,255,0.88); }
.footer-copyright { font-size: 14px; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.media-tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: var(--soft-shadow);
}
.media-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.media-tile-body {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.media-tile-body h3 { margin: 10px 0 8px; color: var(--brand-deep); }
.media-tile-body p,
.media-tile-body small { color: var(--muted); }
.media-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; white-space: nowrap; }
.media-preview-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  width: min(420px, 100%);
}
.media-preview-panel img { width: 100%; display: block; }
.empty-media-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .stats-strip,
  .photo-grid,
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: span 2; }
}

@media (max-width: 760px) {
  .brand-logo { width: 56px; }
  .modern-hero { min-height: auto; }
  .hero-chip-row { margin-bottom: 10px; }
  .stats-strip {
    margin-top: -34px;
    grid-template-columns: 1fr 1fr;
  }
  .stats-strip article,
  .soft-panel,
  .info-card,
  .glass-card { padding: 22px; }
  .photo-grid,
  .media-grid { grid-template-columns: 1fr; }
  .photo-card img,
  .media-tile img { height: 220px; }
  .media-tile-body { flex-direction: column; }
  .media-actions { align-items: flex-start; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-meta { grid-column: auto; }
}

/* Service schedule, livestream and leadership */
.section-lead {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.service-times-section {
  background: #fff;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  min-height: 310px;
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(36, 105, 245, 0.1), transparent 34%),
    #fff;
  box-shadow: var(--soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 79, 215, .35);
  box-shadow: 0 24px 48px rgba(6, 27, 87, .12);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--surface-blue);
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}
.service-day {
  margin: 24px 0 5px;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
}
.service-card h3 {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-size: 25px;
  line-height: 1.15;
}
.service-time {
  margin: 14px 0;
  color: var(--ink) !important;
  font-size: 20px;
  font-weight: 900;
}
.service-time span { color: var(--muted); font-weight: 700; }
.service-card > p:not(.service-day):not(.service-time) { color: var(--muted); }
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.service-meta span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f6fd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.livestream-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(36, 105, 245, .45), transparent 30%),
    linear-gradient(130deg, #03143e, #07359a 70%, #0b4fd7);
  color: #fff;
}
.livestream-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
}
.livestream-copy h2 {
  margin: 7px 0 18px;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.livestream-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
}
.livestream-copy .text-link { color: #fff; }
.live-status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 166, 74, .18);
  border: 1px solid rgba(111, 238, 156, .35);
  color: #a4f4bf;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.live-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #51e480;
  box-shadow: 0 0 0 6px rgba(81, 228, 128, .12);
}
.live-status.offline {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  color: rgba(255,255,255,.72);
}
.live-status.offline span { background: #aeb8d1; box-shadow: none; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #020a20;
  box-shadow: 0 30px 75px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-placeholder {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 42px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 50% 30%, rgba(36,105,245,.28), transparent 30%),
    rgba(1, 10, 37, .55);
  box-shadow: 0 30px 75px rgba(0,0,0,.28);
}
.stream-placeholder.compact {
  min-height: 280px;
  color: var(--ink);
  background: #f6f8fd;
  border-color: var(--line);
  box-shadow: none;
}
.stream-placeholder h3 { margin: 18px 0 5px; color: inherit; }
.stream-placeholder p { max-width: 500px; margin: 0; color: rgba(255,255,255,.65); }
.stream-placeholder.compact p { color: var(--muted); }
.stream-play-icon,
.stream-placeholder > span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 14px 40px rgba(0,0,0,.24);
  font-size: 24px;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.leader-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}
.compact-leader-card {
  display: grid;
  grid-template-rows: 310px 1fr;
}
.leader-photo {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(36,105,245,.35), transparent 32%),
    linear-gradient(140deg, #061b57, #0b4fd7);
}
.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leader-photo > span,
.placeholder-portrait {
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
}
.leader-card-content { padding: 24px; }
.leader-card-content .eyebrow { margin: 0; }
.leader-card-content h2,
.leader-card-content h3 {
  margin: 5px 0 12px;
  color: var(--brand-deep);
}
.leader-card-content p:not(.eyebrow) { color: var(--muted); }
.leader-contact-links { display: flex; gap: 10px; margin-top: 18px; }
.leader-contact-links a {
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--surface-blue);
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
}
.leadership-empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 35px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(36,105,245,.45), transparent 28%),
    linear-gradient(130deg, var(--brand-deep), var(--brand));
}
.leadership-empty-state h2,
.leadership-empty-state h3 { color: #fff; margin: 5px 0; }
.leadership-empty-state p:not(.eyebrow) { color: rgba(255,255,255,.75); max-width: 750px; }
.public-leadership-grid .leader-card { display: grid; grid-template-columns: minmax(250px, .8fr) 1.2fr; grid-column: span 3; }
.public-leadership-grid .leader-photo { min-height: 420px; }
.public-leadership-grid .leader-card-content { padding: clamp(28px, 5vw, 55px); align-self: center; }
.public-leadership-grid .leader-card-content h2 { font-size: 38px; }

.livestream-admin-grid {
  max-width: 1350px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  gap: 30px;
}
.livestream-help-card {
  padding: 20px;
  border-radius: 18px;
  background: #f6f8fd;
  border: 1px solid var(--line);
  align-self: start;
}
.admin-video-preview { border-radius: 16px; box-shadow: none; }
.leadership-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.leader-admin-card {
  display: grid;
  grid-template-columns: 155px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.leader-admin-photo {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--brand-deep), var(--brand));
}
.leader-admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-admin-photo span { color: #fff; font-size: 42px; font-weight: 900; }
.leader-admin-content { padding: 20px; }
.leader-admin-content h3 { margin: 10px 0 2px; color: var(--brand-deep); }
.leader-admin-content > strong { color: var(--brand); }
.leader-admin-content p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.horizontal-actions { flex-direction: row; align-items: center; margin-top: 16px; }
.leader-form-preview {
  width: min(330px, 100%);
  margin-top: 25px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.leader-form-preview img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.sermon-action { display: block; margin-top: 15px; }

@media (max-width: 1120px) {
  .service-cards,
  .leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .livestream-layout { grid-template-columns: 1fr; }
  .livestream-player { max-width: 900px; width: 100%; }
  .leadership-admin-grid { grid-template-columns: 1fr; }
  .public-leadership-grid .leader-card { grid-column: span 2; }
  .site-nav { gap: 13px; font-size: 13px; }
}

@media (max-width: 760px) {
  .service-cards,
  .leadership-grid,
  .livestream-admin-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 24px; }
  .livestream-section { padding-top: 66px; padding-bottom: 66px; }
  .livestream-layout { gap: 32px; }
  .stream-placeholder { min-height: 290px; padding: 28px 20px; }
  .compact-leader-card { grid-template-rows: 270px 1fr; }
  .leadership-empty-state { flex-direction: column; align-items: flex-start; }
  .public-leadership-grid .leader-card { grid-column: auto; grid-template-columns: 1fr; }
  .public-leadership-grid .leader-photo { min-height: 330px; }
  .leader-admin-card { grid-template-columns: 1fr; }
  .leader-admin-photo { min-height: 280px; }
}

/* Permission-aware portal and visitor action updates */
.hero-photo-credit {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
}
.hero-photo-credit:hover { color: white; }
.visitor-action-strip {
  margin-top: -58px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.visitor-action-strip a {
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.visitor-action-strip a:hover { transform: translateY(-4px); border-color: var(--brand); }
.visitor-action-strip span { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.visitor-action-strip strong { color: var(--brand-deep); font-size: 20px; }
.visitor-action-strip small { color: var(--muted); }
.alert.info { background: #eaf1ff; color: #163d8e; border: 1px solid #cddcff; }
.chief-badge,
.chief-limit-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--brand-dark);
  font-weight: 850;
}
.chief-badge { padding: 8px 13px; }
.chief-limit-note { padding: 10px 14px; margin-bottom: 22px; gap: 5px; }
.chief-pill { background: #dce8ff; color: #07359a; }
.full-access-label { color: var(--brand-dark); font-weight: 800; }
.access-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.access-summary-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px;
  box-shadow: var(--soft-shadow);
}
.access-summary-grid strong { display: block; color: var(--brand-deep); font-size: 28px; }
.access-summary-grid span { color: var(--muted); font-size: 13px; }
.permission-form { display: grid; gap: 18px; }
.permission-panel { padding: 0; overflow: hidden; }
.permission-panel .panel-heading { padding: 22px 22px 0; }
.permission-table td:not(:first-child),
.permission-table th:not(:first-child) { text-align: center; }
.permission-table td:first-child strong,
.permission-table td:first-child small { display: block; }
.permission-table td:first-child small { color: var(--muted); font-size: 11px; }
.permission-table input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }
.permission-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  z-index: 5;
}
.permission-aware-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.empty-permission-panel { margin-bottom: 22px; }

@media (max-width: 900px) {
  .visitor-action-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .visitor-action-strip { margin-top: -34px; grid-template-columns: 1fr; }
  .visitor-action-strip a { min-height: 120px; }
  .access-summary-grid { grid-template-columns: 1fr; }
  .permission-table { min-width: 680px; }
  .hero-photo-credit { position: relative; display: block; right: auto; bottom: auto; margin: 12px 0 0; }
}

/* Accessible password visibility control */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.password-input-wrap input {
  min-width: 0;
  padding-right: 128px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: var(--surface-blue);
  color: var(--brand-dark);
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.password-toggle:hover {
  background: #dbe8ff;
}
.password-toggle:focus-visible {
  outline: 3px solid rgba(11, 79, 215, 0.24);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .password-input-wrap input { padding-right: 112px; }
  .password-toggle { padding: 7px 8px; font-size: 11px; }
}

/* Multi-branch portal workspace */
.branch-scope-form,
.branch-scope-readonly {
  display: grid;
  gap: 3px;
  min-width: 190px;
}
.branch-scope-form label,
.branch-scope-readonly span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 800;
}
.branch-scope-form select {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 31px 7px 10px;
  background: white;
  color: var(--brand-deep);
  font-weight: 800;
}
.branch-scope-readonly strong { color: var(--brand-deep); font-size: 13px; }
.scope-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid #c9d8f5;
  border-radius: 14px;
  background: #edf3ff;
  color: var(--brand-deep);
}
.scope-banner strong { color: var(--brand); }
.branch-report-table td:first-child { font-weight: 800; color: var(--brand-deep); }
.branch-report-table .money { text-align: right; }
.branch-name-cell { font-weight: 750; color: var(--brand-deep); }
.branch-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.branch-directory-card { display: grid; gap: 10px; }
.branch-directory-card p { margin: 0; }
@media (max-width: 900px) {
  .branch-scope-form { order: 2; width: 100%; }
  .branch-scope-form select { width: 100%; }
  .admin-topbar { height: auto; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .branch-directory-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .branch-directory-grid { grid-template-columns: 1fr; }
  .branch-scope-readonly { display: none; }
}
.branch-public-hero { min-height: 680px; }
.branch-contact-glass { display: grid; gap: 10px; }
.branch-contact-glass p { margin: 0; }
.branch-contact-glass a { color: white; }

/* Story, mission and vision */
.centered-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.calling-statements-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(36, 105, 245, 0.1), transparent 28%),
    linear-gradient(180deg, #f8faff, #eef4ff);
}
.calling-statements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.calling-statement-card {
  position: relative;
  min-height: 330px;
  padding: 42px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calling-statement-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  border: 35px solid rgba(255, 255, 255, 0.08);
}
.calling-statement-card h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.calling-statement-card > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 650px;
  font-size: 18px;
  line-height: 1.75;
}
.calling-statement-card .statement-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-weight: 900;
}
.mission-card {
  background: white;
  color: var(--brand-deep);
  border: 1px solid var(--line);
}
.mission-card .statement-number {
  background: var(--surface-blue);
  color: var(--brand);
}
.mission-card > p:not(.eyebrow) { color: var(--muted); }
.vision-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(36, 105, 245, 0.55), transparent 30%),
    linear-gradient(140deg, var(--brand-deep), var(--brand));
  color: white;
}
.vision-card .statement-number {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}
.vision-card .eyebrow,
.vision-card > p:not(.eyebrow) { color: rgba(255, 255, 255, 0.82) !important; }
.story-calling-admin textarea { min-height: 150px; }

@media (max-width: 760px) {
  .calling-statements-grid { grid-template-columns: 1fr; }
  .calling-statement-card { min-height: auto; padding: 28px 24px; }
}

/* Member portal and operational modules */
.member-body { margin: 0; min-height: 100vh; background: #f3f6fd; color: var(--ink); }
.member-topbar { min-height: 80px; display: flex; align-items: center; gap: 22px; padding: 10px clamp(18px, 4vw, 58px); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; box-shadow: 0 6px 24px rgba(6,27,87,.06); }
.member-topbar .brand { margin-right: auto; }
.member-nav { display: flex; align-items: center; gap: 17px; font-size: 14px; font-weight: 750; }
.member-nav a:hover { color: var(--brand); }
.member-menu-button { display: none; }
.member-main { width: min(1440px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 70px; }
.member-welcome-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 28px; }
.member-welcome-strip > div { background: white; padding: 16px 20px; display: grid; }
.member-welcome-strip span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.member-welcome-strip strong { color: var(--brand-deep); margin-top: 4px; }
.member-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.member-heading h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; margin: 0; color: var(--brand-deep); }
.member-heading p { color: var(--muted); max-width: 760px; }
.member-dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.member-feature-card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--soft-shadow); }
.member-feature-card span { color: var(--muted); font-size: 13px; }
.member-feature-card h2 { font-size: 38px; margin: 8px 0; color: var(--brand-deep); }
.member-feature-card p { color: var(--muted); min-height: 50px; }
.member-feature-card a { color: var(--brand); font-weight: 800; }
.member-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
.member-list-item { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.member-list-item:last-child { border-bottom: 0; }
.member-list-item strong { color: var(--brand-deep); }
.member-list-item p { margin: 4px 0 0; color: var(--muted); }
.member-list-item > span { color: var(--brand); font-weight: 800; white-space: nowrap; }
.member-event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.registration-confirmed { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.registration-qr { width: 110px; height: 110px; background: white; border: 1px solid var(--line); padding: 5px; border-radius: 10px; }
.consent-form { display: grid; gap: 16px; }
.consent-form label { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.consent-form input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; }
.consent-form span { display: grid; }
.consent-form small { color: var(--muted); margin-top: 4px; }
.standalone-login-card { width: min(500px, 100%); background: white; border-radius: 24px; box-shadow: var(--shadow); }
.compact-login { min-height: 590px; }
.login-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.alert.info { background: #eaf1ff; color: #123b8a; }
.security-secret { padding: 20px; border-radius: 14px; background: var(--surface-blue); margin-bottom: 22px; }
.security-secret span { display: block; color: var(--muted); font-size: 13px; }
.security-secret code { display: block; margin: 10px 0; padding: 12px; overflow-wrap: anywhere; background: white; border-radius: 8px; color: var(--brand-deep); }
.activation-link-card { margin-bottom: 20px; padding: 20px; border: 1px solid #9db8ef; border-radius: 15px; background: #edf3ff; }
.activation-link-card code { display: block; margin: 10px 0; padding: 10px; background: white; border-radius: 8px; overflow-wrap: anywhere; }
.muted-pill { background: #eef1f6; color: #59657e; }
.checkin-form { display: flex; gap: 12px; align-items: end; }
.checkin-form label { flex: 1; }
.active-checkin-card { display: grid; grid-template-columns: 1fr minmax(220px,.6fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pickup-code { display: inline-flex; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface-blue); color: var(--brand-deep); font-weight: 900; letter-spacing: .08em; }

@media (max-width: 1100px) {
  .member-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 20px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .member-nav.open { display: flex; }
  .member-menu-button { display: block; }
  .member-dashboard-grid { grid-template-columns: repeat(2,1fr); }
  .member-event-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .member-topbar { gap: 12px; }
  .member-topbar .brand-copy small { display: none; }
  .member-main { width: min(100% - 24px, 1440px); padding-top: 18px; }
  .member-welcome-strip, .member-dashboard-grid, .member-two-column, .member-event-grid { grid-template-columns: 1fr; }
  .member-heading { align-items: flex-start; flex-direction: column; }
  .checkin-form, .active-checkin-card { display: grid; grid-template-columns: 1fr; }
}

/* Chief Administrator security monitoring */
.security-heading { align-items: center; }
.security-scope-badge {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-blue);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.security-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.security-stat-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}
.security-stat-grid span,
.security-stat-grid small { display: block; color: var(--muted); }
.security-stat-grid strong { display: block; margin: 7px 0; font-size: 32px; color: var(--brand-deep); }
.security-stat-grid .security-warning { border-color: #f0b5ae; background: #fff8f7; }
.security-stat-grid .security-warning strong { color: var(--danger); }
.security-filter-panel,
.security-section { margin-bottom: 22px; }
.security-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.security-filter-grid label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.security-filter-grid input,
.security-filter-grid select {
  width: 100%;
  border: 1px solid #cbd7ee;
  border-radius: 10px;
  background: white;
  padding: 11px 13px;
  color: var(--ink);
}
.security-filter-action { display: flex; align-items: end; }
.security-user-agent { max-width: 270px; overflow: hidden; text-overflow: ellipsis; }
.session-actions { display: grid; gap: 8px; min-width: 130px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12px; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-success { color: #18763a; }
.status-failed { color: var(--danger); }
.muted-text { color: var(--muted); font-size: 12px; }

@media (max-width: 1120px) {
  .security-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .security-stat-grid,
  .security-filter-grid { grid-template-columns: 1fr; }
  .security-scope-badge { align-self: flex-start; }
}

/* Conditional visitor conversion fields */
.admin-form label.field-disabled {
  opacity: 0.58;
}
.admin-form label.field-disabled input {
  background: #eef2f8;
  cursor: not-allowed;
}

/* Statement of faith, photo albums and ministry gallery */
.calling-statements-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faith-card {
  background: linear-gradient(145deg, #f8fbff, #e6efff);
  color: var(--brand-deep);
  border: 1px solid #b9ccef;
}
.faith-card .statement-number { background: white; color: var(--brand); box-shadow: var(--soft-shadow); }
.faith-card > p:not(.eyebrow) { color: var(--muted); }
.album-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.album-admin-card { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--soft-shadow); }
.album-admin-cover { position: relative; aspect-ratio: 16 / 10; background: #e7edf9; overflow: hidden; }
.album-admin-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover-placeholder { height: 100%; display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.album-visibility-badge { position: absolute; top: 12px; right: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(6, 27, 87, .86); color: white; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.album-admin-body { padding: 20px; }
.album-admin-body h2 { margin: 8px 0; color: var(--brand-deep); }
.album-admin-body > p { color: var(--muted); min-height: 68px; }
.album-admin-meta, .public-album-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.album-status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.warning-pill { background: #fff2d8; color: #8a5a00; }
.album-empty-state { grid-column: 1 / -1; }
.album-photo-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.album-photo-admin-card { background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--soft-shadow); }
.album-photo-admin-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-photo-admin-card > div { padding: 18px; }
.album-photo-admin-card h3 { margin: 8px 0; color: var(--brand-deep); }
.album-photo-admin-card p { color: var(--muted); }
.album-photo-edit-layout { display: grid; grid-template-columns: minmax(280px, .75fr) 1.25fr; gap: 24px; }
.album-photo-edit-layout .media-preview-panel img { width: 100%; max-height: 520px; object-fit: contain; }
.gallery-filter-section { padding-bottom: 0; }
.gallery-filter-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(160px, .6fr) auto auto; gap: 14px; align-items: end; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--soft-shadow); }
.gallery-filter-form label { display: grid; gap: 7px; font-weight: 800; }
.gallery-filter-form select { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: white; }
.public-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.public-album-card { background: white; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--soft-shadow); }
.public-album-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8edf7; }
.public-album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.public-album-card:hover .public-album-cover img { transform: scale(1.035); }
.public-album-cover > span { position: absolute; left: 14px; bottom: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(6, 27, 87, .82); color: white; font-size: 12px; font-weight: 800; }
.public-album-body { padding: 22px; }
.public-album-body h2, .public-album-body h3 { color: var(--brand-deep); margin: 6px 0 10px; }
.public-album-body p { color: var(--muted); }
.gallery-empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 24px; border: 1px dashed #aebdde; border-radius: 20px; background: white; }
.gallery-album-hero { text-align: center; }
.gallery-album-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.gallery-album-meta span { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.album-detail-stage, .ministry-album-stage { position: relative; min-height: 620px; border-radius: 26px; overflow: hidden; background: var(--brand-deep); }
.album-detail-slide, .ministry-album-slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.album-detail-slide.active, .ministry-album-slide.active { opacity: 1; pointer-events: auto; }
.album-detail-slide > img, .ministry-album-slide > img { width: 100%; height: 100%; object-fit: cover; }
.album-detail-slide figcaption, .ministry-album-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 44px 36px 30px; color: white; background: linear-gradient(transparent, rgba(3, 13, 45, .9)); }
.album-detail-slide figcaption h2, .ministry-album-slide figcaption h3 { margin: 6px 0; color: white; font-size: clamp(25px, 4vw, 42px); }
.album-detail-slide figcaption p, .ministry-album-slide figcaption p { max-width: 760px; color: rgba(255,255,255,.86); }
.album-slideshow-controls { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.album-slideshow-controls button { border: 1px solid #b9c7e4; background: white; color: var(--brand-deep); border-radius: 999px; padding: 10px 15px; font-weight: 800; cursor: pointer; }
.album-thumbnail-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.album-thumbnail { border: 3px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: transparent; cursor: pointer; aspect-ratio: 1; }
.album-thumbnail.active { border-color: var(--brand); }
.album-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gallery-back-link { margin-top: 28px; text-align: center; }
.ministry-album-stage { min-height: 540px; }
.compact-album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.member-album-grid { margin-bottom: 28px; }
.member-album-details { margin-top: 16px; }
.member-album-details summary { color: var(--brand); font-weight: 850; cursor: pointer; }
.member-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.member-photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.member-photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.member-photo-grid figcaption { padding: 10px; }
.member-photo-grid p { margin: 4px 0 0; font-size: 13px; }

/* Private member participation and giving analytics */
.member-engagement-panel { margin-bottom: 24px; }
.engagement-score-wrap { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.engagement-donut { --score: 0; width: 160px; height: 160px; border-radius: 50%; padding: 15px; background: conic-gradient(var(--brand) calc(var(--score) * 1%), #dfe7f7 0); }
.engagement-donut > div { width: 100%; height: 100%; border-radius: 50%; background: white; display: grid; place-content: center; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.engagement-donut strong { font-size: 36px; color: var(--brand-deep); }
.engagement-donut span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.engagement-metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.engagement-metric { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.engagement-metric > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.engagement-metric span { color: var(--brand); font-weight: 900; }
.engagement-metric small { display: block; margin-top: 9px; color: var(--muted); }
.engagement-progress { height: 10px; border-radius: 999px; overflow: hidden; background: #dfe7f7; margin-top: 10px; }
.engagement-progress i { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--brand); }
.giving-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.giving-summary-grid article { display: grid; gap: 7px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--soft-shadow); }
.giving-summary-grid span, .giving-summary-grid small { color: var(--muted); }
.giving-summary-grid strong { color: var(--brand-deep); font-size: 28px; }
.giving-trend-panel { margin-bottom: 24px; }
.giving-bar-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; height: 270px; align-items: end; padding-top: 20px; }
.giving-bar-column { height: 100%; display: grid; grid-template-rows: 22px 1fr 22px; gap: 5px; text-align: center; min-width: 0; }
.giving-bar-value { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.giving-bar-track { height: 100%; display: flex; align-items: end; justify-content: center; background: #edf2fb; border-radius: 8px 8px 3px 3px; overflow: hidden; }
.giving-bar-track i { display: block; width: 72%; min-height: 2px; background: var(--brand); border-radius: 7px 7px 0 0; }
.giving-bar-column > span { font-size: 11px; color: var(--muted); }
.goal-progress-card { margin-top: 20px; padding: 18px; border-radius: 14px; background: var(--surface-blue); }
.goal-progress-card > div:first-child { display: flex; justify-content: space-between; }
.goal-progress-card small { display: block; margin-top: 9px; color: var(--muted); }
.admin-giving-summary { margin-top: 20px; }
.ranking-share { min-width: 130px; }
.ranking-share > span { font-weight: 850; color: var(--brand-deep); }
.table-subtext { display: block; color: var(--muted); margin-top: 3px; }

@media (max-width: 1100px) {
  .calling-statements-grid, .album-admin-grid, .album-photo-admin-grid, .public-album-grid, .compact-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-filter-form { grid-template-columns: 1fr 1fr; }
  .engagement-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-thumbnail-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .calling-statements-grid, .album-admin-grid, .album-photo-admin-grid, .public-album-grid, .compact-album-grid, .gallery-filter-form, .album-photo-edit-layout, .giving-summary-grid { grid-template-columns: 1fr; }
  .album-detail-stage, .ministry-album-stage { min-height: 440px; }
  .album-detail-slide figcaption, .ministry-album-slide figcaption { padding: 70px 20px 22px; flex-direction: column; align-items: flex-start; }
  .album-slideshow-controls { flex-wrap: wrap; }
  .album-thumbnail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .engagement-score-wrap { grid-template-columns: 1fr; }
  .engagement-donut { margin: 0 auto; }
  .engagement-metrics-grid { grid-template-columns: 1fr; }
  .giving-bar-chart { gap: 4px; overflow-x: auto; }
  .member-photo-grid { grid-template-columns: 1fr; }
}

/* Giving encouragement, private percentile and anonymous leaderboard */
.giving-summary-expanded { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.giving-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 22px; }
.giving-badge-row > strong { color: var(--brand-deep); margin-right: 4px; }
.giving-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; border-radius: 999px; background: var(--surface-blue); border: 1px solid #bfd0ef; color: var(--brand-deep); font-size: 13px; font-weight: 850; }
.branch-giving-progress-panel, .anonymous-leaderboard-panel { margin-bottom: 24px; }
.branch-goal-head { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.branch-goal-head strong { color: var(--brand-deep); font-size: 30px; }
.branch-goal-head span { color: var(--muted); text-align: right; }
.anonymous-leaderboard-list { display: grid; gap: 10px; }
.anonymous-leaderboard-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.anonymous-leaderboard-row > strong { color: var(--brand); font-size: 18px; }
.anonymous-leaderboard-row > div { display: grid; gap: 3px; }
.anonymous-leaderboard-row span { color: var(--brand-deep); font-weight: 850; }
.anonymous-leaderboard-row small { color: var(--muted); }
.anonymous-leaderboard-row b { color: var(--brand-deep); white-space: nowrap; }
.anonymous-leaderboard-row.current-member { border-color: var(--brand); background: var(--surface-blue); }
.leaderboard-position-note { margin-top: 14px; color: var(--muted); }
.giving-leaderboard-preferences { display: grid; gap: 16px; margin: 16px 0 6px; padding: 20px; border: 1px solid #bfd0ef; border-radius: 16px; background: var(--surface-blue); }
.giving-leaderboard-preferences h2 { margin: 0 0 5px; color: var(--brand-deep); }
.giving-leaderboard-preferences p { margin: 0; color: var(--muted); }
.giving-leaderboard-preferences > label:not(.leaderboard-opt-in) { display: grid; gap: 7px; font-weight: 800; }
.giving-leaderboard-preferences select,
.giving-leaderboard-preferences input[type="text"],
.giving-leaderboard-preferences input:not([type]) { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.giving-leaderboard-preferences small { color: var(--muted); font-weight: 500; }
.branch-goal-admin-panel { margin: 22px 0; }
.branch-goal-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 14px; align-items: end; margin: 18px 0; }
.branch-goal-form label { display: grid; gap: 7px; font-weight: 800; }
.branch-goal-form input, .branch-goal-form select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.branch-goal-list { display: grid; gap: 10px; }
.branch-goal-list article { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; }
.branch-goal-list article > div { display: grid; gap: 3px; }
.branch-goal-list article span { color: var(--muted); }
.branch-goal-list article b { color: var(--brand-deep); font-size: 20px; }

@media (max-width: 900px) {
  .giving-summary-expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-goal-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .giving-summary-expanded { grid-template-columns: 1fr; }
  .branch-goal-head { align-items: flex-start; flex-direction: column; }
  .branch-goal-head span { text-align: left; }
  .anonymous-leaderboard-row { grid-template-columns: 42px 1fr; }
  .anonymous-leaderboard-row b { grid-column: 2; }
  .branch-goal-list article { align-items: flex-start; flex-direction: column; }
}
