/* Link treatment not shared by another component rule. */
.text-link:hover {
  color: var(--green);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.hidden-section {
  display: none;
}

/* =========================
   Header
   ========================= */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 72px;

  gap: 30px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--green);
}

.main-nav {
  display: flex;
  align-items: center;

  gap: 28px;

  font-size: 0.95rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--text-muted);
}

.main-nav a:hover {
  color: var(--green);
}

/* =========================
   Hero
   ========================= */

.hero {
  padding: 110px 0 120px;

  background: var(--background-soft);
}

.hero-content {
  max-width: 800px;

  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;

  color: var(--green);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto;

  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero-description {
  max-width: 600px;
  margin: 24px auto 35px;

  color: var(--text-muted);

  font-size: 1.1rem;
}

/* =========================
   Search
   ========================= */

.search-form {
  max-width: 680px;
  margin: 0 auto;

  display: flex;

  padding: 6px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 10px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.search-form input {
  min-width: 0;
  flex: 1;

  padding: 15px 18px;

  border: none;
  outline: none;

  background: transparent;

  font-size: 1rem;
}

.search-form button {
  padding: 0 25px;

  border: none;
  border-radius: 7px;

  background: var(--green);
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;
}

.search-form button:hover {
  background: #14532d;
}

/* =========================
   Locations
   ========================= */

.locations {
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 35px;
}

.section-heading h2 {
  margin-bottom: 8px;

  font-size: 2rem;
  letter-spacing: -0.8px;
}

.section-heading > p:last-child {
  color: var(--text-muted);
}

.location-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 16px;
}

.country-grid {
  grid-template-columns: repeat(3, 1fr);
}

.country-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.country-card .country-code {
  margin-bottom: 22px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.country-card > p:not(.country-code) {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.country-card span {
  margin-top: auto;
}

.location-card {
  padding: 25px;

  border: 1px solid var(--border);
  border-radius: 10px;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.location-card:hover {
  border-color: var(--green);

  transform: translateY(-2px);
}

.location-card h3 {
  margin-bottom: 8px;

  font-size: 1.1rem;
}

.location-card span {
  color: var(--green);

  font-size: 0.85rem;
  font-weight: 600;
}

/* =========================
   About
   ========================= */

.about {
  padding: 80px 0;

  background: var(--background-soft);
}

.about-content {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}

.about h2 {
  max-width: 450px;

  font-size: 2rem;
  line-height: 1.2;
}

.about-content > p {
  color: var(--text-muted);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--text-muted);

  font-size: 0.85rem;
}

.footer-inner div {
  display: flex;

  gap: 20px;
}

.footer-inner a:hover {
  color: var(--green);
}

/* =========================
   Accessibility
   ========================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

/* =========================
   Directory Header
   ========================= */

.directory-header {
  padding: 70px 0;

  background: var(--background-soft);

  border-bottom: 1px solid var(--border);
}

.directory-header h1 {
  margin-bottom: 10px;

  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.directory-header > .container > p:last-child {
  max-width: 600px;

  color: var(--text-muted);
}

/* =========================
   Directory
   ========================= */

.directory {
  padding: 60px 0 100px;
}

.directory-layout {
  display: grid;

  grid-template-columns: 240px 1fr;

  gap: 50px;

  align-items: start;
}

.mobile-filter-toggle { display: none; }

/* =========================
   Filters
   ========================= */

.filters {
  position: sticky;
  top: 25px;
}

.filters h2 {
  margin-bottom: 25px;

  font-size: 1.1rem;
}

.filters label {
  display: block;

  margin-bottom: 7px;

  font-size: 0.85rem;
  font-weight: 600;
}

.filters input,
.filters select {
  width: 100%;

  margin-bottom: 22px;
  padding: 11px 12px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: var(--surface);

  color: var(--text);

  font: inherit;
}

.filters input:focus,
.filters select:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;

  gap: 8px;

  margin-bottom: 22px;

  cursor: pointer;
}

.checkbox-label input {
  width: auto;

  margin: 0;

  accent-color: var(--green);
}

.clear-button {
  width: 100%;

  padding: 10px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: var(--surface);

  color: var(--text-muted);

  font: inherit;

  cursor: pointer;
}

.clear-button:hover {
  border-color: var(--green);

  color: var(--green);
}

/* =========================
   Results Header
   ========================= */

.results-header {
  margin-bottom: 20px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;
}

.results-header h2 {
  margin-bottom: 3px;

  font-size: 1.5rem;
}

.results-header p {
  color: var(--text-muted);

  font-size: 0.9rem;
}

.sort-control {
  display: flex;
  align-items: center;

  gap: 8px;

  flex-shrink: 0;
}

.sort-control label {
  color: var(--text-muted);

  font-size: 0.85rem;
}

.sort-control select {
  padding: 8px 10px;

  border: 1px solid var(--border);
  border-radius: 6px;

  background: var(--surface);

  color: var(--text);

  font: inherit;
}

/* =========================
   Church Cards
   ========================= */

.church-list {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.church-card {
  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--surface);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.church-card:hover {
  border-color: #c8d8ce;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.church-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;
}

.church-card h3 {
  font-size: 1.05rem;
}

.church-location {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 0.9rem;
}

.church-tradition {
  margin-top: 10px;

  color: var(--green);

  font-size: 0.85rem;
  font-weight: 600;
}

.church-service {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 0.85rem;
}

.church-link {
  flex-shrink: 0;

  color: var(--green);

  font-size: 0.85rem;
  font-weight: 600;
}

.church-link:hover {
  text-decoration: underline;
}

/* =========================
   Verified
   ========================= */

.verified-badge {
  display: inline-flex;
  align-items: center;

  padding: 3px 8px;

  border: 1px solid var(--success-border);
  border-radius: 999px;

  background: var(--success-soft);

  color: var(--green);

  font-size: 0.7rem;
  font-weight: 700;
}

/* =========================
   No Results
   ========================= */

.no-results {
  padding: 50px 20px;

  text-align: center;

  border: 1px dashed var(--border);
  border-radius: 9px;
}

.no-results h3 {
  margin-bottom: 5px;
}

.no-results p {
  color: var(--text-muted);

  font-size: 0.9rem;
}

/* =========================
   Church Profile
   ========================= */

.church-profile-header {
  padding: 45px 0 55px;

  background: var(--background-soft);

  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-block;

  margin-bottom: 40px;

  color: var(--text-muted);

  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--green);
}

.church-profile-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 14px;
}

.church-profile-name h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.profile-location {
  margin-top: 8px;

  color: var(--text-muted);

  font-size: 1rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 25px;
}

.profile-meta span {
  padding: 6px 11px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--surface);

  color: var(--text-muted);

  font-size: 0.8rem;
}

.church-profile-content {
  padding: 65px 0 100px;
}

.profile-grid {
  display: grid;

  grid-template-columns: 1fr 300px;

  gap: 70px;

  align-items: start;
}

.profile-section {
  padding-bottom: 45px;
  margin-bottom: 45px;

  border-bottom: 1px solid var(--border);
}

.profile-section h2 {
  margin-bottom: 18px;

  font-size: 1.4rem;
}

.profile-section p {
  max-width: 700px;

  color: var(--text-muted);
}

.profile-section ul {
  padding-left: 20px;

  color: var(--text-muted);
}

.profile-section li {
  margin-bottom: 8px;
}

/* =========================
   Church Sidebar
   ========================= */

.church-sidebar {
  display: flex;
  flex-direction: column;

  gap: 15px;

  position: sticky;
  top: 25px;
}

.sidebar-card {
  padding: 22px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--surface);
}

.sidebar-card h2 {
  margin-bottom: 18px;

  font-size: 1rem;
}

.sidebar-card p {
  margin-bottom: 16px;

  color: var(--text-muted);

  font-size: 0.9rem;
}

.sidebar-card p:last-child {
  margin-bottom: 0;
}

.sidebar-card a {
  color: var(--green);
}

.directions-button {
  display: block;

  margin-top: 18px;
  padding: 10px;

  border-radius: 7px;

  background: var(--green);

  color: #ffffff !important;

  text-align: center;

  font-size: 0.85rem;
  font-weight: 600;
}

.directions-button:hover {
  background: #14532d;
}

/* =========================
   Submission Page
   ========================= */

.submission-page {
  padding: 65px 0 100px;
}

.submission-shell {
  max-width: 720px;
}

.submission-card {
  padding: 45px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--surface);
}

.submission-card h1 {
  margin-bottom: 14px;

  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.submission-intro {
  max-width: 560px;
  margin-bottom: 35px;

  color: var(--text-muted);
}

.submission-form .field-row {
  margin-bottom: 22px;
}

.submission-form label {
  display: block;

  margin-bottom: 7px;

  font-size: 0.85rem;
  font-weight: 600;
}

.submission-form input,
.submission-form select,
.submission-form textarea {
  width: 100%;

  padding: 11px 12px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: var(--surface);

  color: var(--text);

  font: inherit;
}

.submission-form textarea {
  resize: vertical;
}

.submission-form input:focus,
.submission-form select:focus,
.submission-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.field-row.two-column {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;
}

.primary-button {
  padding: 13px 26px;

  border: none;
  border-radius: 7px;

  background: var(--green);
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;
}

.primary-button:hover {
  background: #14532d;
}

.form-status {
  margin-top: 18px;

  font-size: 0.9rem;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #b91c1c;
}

/* =========================
   Admin / Manage
   ========================= */

.admin-page {
  padding: 65px 0 100px;
}

.admin-shell {
  max-width: 780px;
}

.admin-shell h1 {
  margin-bottom: 14px;

  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.admin-intro {
  max-width: 560px;
  margin-bottom: 35px;

  color: var(--text-muted);
}

.admin-list {
  display: flex;
  flex-direction: column;

  gap: 12px;
}

.admin-item {
  padding: 20px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--surface);
}

.admin-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;
}

.admin-item-title h3 {
  font-size: 1.05rem;
}

.admin-item-meta {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 0.8rem;
}

.admin-item-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;

  gap: 10px;
}

.status-pill {
  padding: 3px 9px;

  border-radius: 999px;

  font-size: 0.7rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-verified {
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: var(--green);
}

.status-pending {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.toggle-verified-button {
  padding: 8px 12px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: var(--surface);

  color: var(--text-muted);

  font-size: 0.82rem;
  font: inherit;
  font-weight: 600;

  cursor: pointer;
}

.toggle-verified-button:hover {
  border-color: var(--green);
  color: var(--green);
}

.admin-view-link {
  color: var(--green);

  font-size: 0.82rem;
  font-weight: 600;
}

.admin-view-link:hover {
  text-decoration: underline;
}

.delete-button {
  padding: 8px 12px;

  border: 1px solid #fecaca;
  border-radius: 7px;

  background: #fff5f5;

  color: #b91c1c;

  font-size: 0.82rem;
  font: inherit;
  font-weight: 600;

  cursor: pointer;
}

.delete-button:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 750px) {
  .site-header {
    padding: 12px 0 14px;
  }

  .header-inner {
    min-height: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .logo {
    align-self: center;
    font-size: 1.18rem;
  }

  .main-nav {
    order: 2;
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    font-size: 0.76rem;
  }

  .main-nav a {
    min-width: 0;
    padding: 8px 4px;
    border-radius: 7px;
    background: var(--background-soft);
    text-align: center;
    white-space: nowrap;
  }

  .hero {
    padding: 80px 0 90px;
  }

  .hero h1 {
    letter-spacing: -1.2px;
  }

  .search-form {
    flex-direction: column;

    padding: 6px;
  }

  .search-form input {
    padding: 14px;
  }

  .search-form button {
    min-height: 48px;
  }

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

  .about-content {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .footer-inner {
    padding: 20px 0;

    flex-direction: column;

    gap: 12px;
  }

  .directory-layout {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .filters {
    display: none;
    position: static;
    order: 2;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
  }

  .filters.is-open { display: block; }

  .results { order: 3; }

  .mobile-filter-toggle {
    order: 1;
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .church-card {
    align-items: flex-start;

    flex-direction: column;

    gap: 15px;
  }

  .church-link {
    padding-top: 3px;
  }

  .profile-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .church-sidebar {
    position: static;
  }

  .results-header {
    align-items: flex-start;

    flex-direction: column;

    gap: 15px;
  }

  .sort-control {
    width: 100%;

    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }

  .submission-card {
    padding: 28px 22px;
  }

  .field-row.two-column {
    grid-template-columns: 1fr;
  }

  .admin-item {
    align-items: flex-start;
    flex-direction: column;

    gap: 14px;
  }

  .admin-item-actions {
    width: 100%;

    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

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

/* Modern refresh — kept last so it consistently wins over the legacy styles. */
body { background: var(--background); color: var(--text); }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(220,229,236,.8); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; }
.logo { color: var(--navy); font-size: 1.45rem; font-weight: 800; }
.main-nav { gap: 12px; }
.main-nav a { padding: 9px 12px; border-radius: 9px; color: var(--text); font-weight: 600; }
.main-nav a:hover { color: var(--green); background: #ecfdf8; }
.hero { padding: 78px 0 86px; background: var(--background-soft); }
.hero-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 72px; align-items: center; }
.hero-content { max-width: none; text-align: left; }
.hero .eyebrow, .section-heading .eyebrow { color: var(--green); }
.hero h1 { max-width: 720px; margin: 0; color: var(--navy); font-size: clamp(3rem,5.6vw,5.15rem); letter-spacing: -.065em; }
.hero-description { margin: 24px 0 30px; color: var(--text-muted); font-size: 1.12rem; line-height: 1.75; }
.search-form { max-width: 720px; margin: 0; padding: 7px; border: 1px solid #c9dce0; border-radius: 16px; box-shadow: 0 18px 40px rgba(24,48,71,.1); }
.search-form input { padding: 16px 17px; color: var(--text); }
.search-form button { padding: 0 22px; border-radius: 11px; background: var(--green); }
.search-form button:hover { background: #084f43; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.text-link { color: var(--navy); font-size: .92rem; font-weight: 700; }
.text-link span { color: var(--green); }
.hero-card { padding: 32px; border: 1px solid #14532d; border-radius: 24px; background: var(--green); box-shadow: 0 22px 50px rgba(22,101,52,.18); color: #f0fdf4; }
.hero-card-label { margin-bottom: 14px; color: #8ff0dd; font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-card h2 { margin-bottom: 22px; color: #fff; font-size: 2rem; line-height: 1.1; }
.hero-card ul { display: grid; gap: 15px; margin: 0 0 28px; padding: 0; list-style: none; }
.hero-card li { display: flex; gap: 12px; align-items: center; font-size: .94rem; }
.hero-card li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.13); color: #8ff0dd; font-size: .72rem; font-weight: 800; }
.hero-card > a { display: inline-flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 10px; background: #fff; color: #0b5048; font-size: .9rem; font-weight: 800; }
.locations, .section, .directory-steps { padding: 96px 0; }
.section-heading h2 { color: var(--navy); font-size: clamp(2rem,3vw,2.65rem); letter-spacing: -.05em; }
.section-heading > p:last-child { max-width: 600px; line-height: 1.7; }
.location-grid { gap: 20px; }
.location-card { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 28px rgba(24,48,71,.04); }
.country-card { min-height: 220px; }
.location-card:hover { border-color: #80cfc3; box-shadow: 0 18px 34px rgba(24,48,71,.1); transform: translateY(-5px); }
.country-card .country-code { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 12px; background: #e9faf6; color: var(--green); letter-spacing: .08em; }
.about { padding: 90px 0; background: var(--navy); }
.about h2 { color: #fff; font-size: clamp(2rem,3vw,2.65rem); letter-spacing: -.05em; }
.about .eyebrow { color: #8ff0dd; }
.about-content > p { color: #d4e1e9; font-size: 1.06rem; line-height: 1.8; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.steps-grid article { padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.steps-grid span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 32px; border-radius: 50%; background: #e9faf6; color: var(--green); font-size: .82rem; font-weight: 800; }
.steps-grid h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.15rem; }
.steps-grid p { margin: 0; color: var(--text-muted); font-size: .94rem; line-height: 1.65; }
.directory-header { padding: 84px 0; border: 0; background: var(--background-soft); }
.directory-header h1, .results-header h2, .filters h2 { color: var(--navy); }
.directory { padding: 52px 0 100px; }
.directory-layout { grid-template-columns: 270px 1fr; gap: 42px; }
.filters { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(24,48,71,.04); }
.filters input, .filters select, .sort-control select { border-color: #ccd9e3; border-radius: 10px; }
.filters input:focus, .filters select:focus { outline-color: var(--green); }
.clear-button { border-radius: 10px; }
.church-list { gap: 16px; }
.church-card { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 16px; padding: 23px 24px; border-radius: 16px; border-color: var(--border); box-shadow: 0 8px 20px rgba(24,48,71,.035); }
.church-card:hover { border-color: #8acfc5; box-shadow: 0 14px 28px rgba(24,48,71,.09); }
.church-card h3 { color: var(--navy); }
.church-link { padding: 10px 12px; border-radius: 9px; background: #e9faf6; color: #0b6054; }
.church-link:hover { background: var(--green); color: #fff; text-decoration: none; }
.save-church-button { align-self: center; padding: 9px 11px; border: 1px solid #c7dce0; border-radius: 9px; background: #fff; color: var(--text-muted); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.save-church-button:hover, .save-church-button[aria-pressed="true"] { border-color: #61bcae; background: #e9faf6; color: #0a685b; }
.save-church-button span { margin-right: 4px; font-size: 1.05rem; vertical-align: -1px; }
.site-footer { border: 0; background: #0d2338; }
.footer-inner { min-height: 92px; color: #c2d1dc; }
.footer-inner a:hover { color: #8ff0dd; }

@media (max-width: 800px) { .hero-layout, .about-content { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 58px 0 64px; } .hero-card { max-width: 620px; } .steps-grid { grid-template-columns: 1fr; } .directory-layout { grid-template-columns: 1fr; gap: 22px; } .filters { position: static; } .church-card { grid-template-columns: 1fr auto; } .church-card-content { grid-column: 1 / -1; } }
@media (max-width: 560px) { .header-inner { min-height: 68px; } .main-nav { gap: 2px; } .main-nav a { padding: 7px 6px; font-size: .78rem; } .hero h1 { font-size: clamp(2.8rem,14vw,4.2rem); } .search-form { flex-direction: column; gap: 6px; padding: 7px; } .search-form button { min-height: 48px; padding: 0 16px; } .country-grid { grid-template-columns: 1fr; } .church-card { grid-template-columns: 1fr; } .church-link, .save-church-button { width: 100%; text-align: center; } .save-church-button { min-height: 42px; } .footer-inner { flex-direction: column; justify-content: center; gap: 9px; } }

/* Information Unavailable */

.information-unavailable {
  color: var(--text-muted);
  font-style: italic;
}

/* Last updated */

.last-updated {
  margin-top: 10px;

  color: var(--text-muted);

  font-size: 0.8rem;
}

/* =========================
   Verification
   ========================= */

.verified-badge {
  gap: 5px;
  max-width: 100%;
  text-align: center;
}

.verification-team_verified {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: var(--green);
}

/* =========================
   Secondary Actions
   ========================= */

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--green);
  color: var(--green);
  background: var(--background-soft);
  text-decoration: none;
}

.secondary-button:focus-visible,
.pagination-button:focus-visible,
.primary-button:focus-visible,
.clear-button:focus-visible,
.toggle-verified-button:focus-visible,
.delete-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* =========================
   Sources
   ========================= */

.source-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.source-item:first-child {
  padding-top: 0;
}

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

.source-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}

.source-item p {
  margin: 0 0 7px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.source-type {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.source-link {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}

.source-link:hover {
  text-decoration: underline;
}

.source-provenance {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =========================
   Contact
   ========================= */

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  color: var(--green);
}

.contact-item strong {
  color: var(--text);
  font-size: 0.78rem;
}

.contact-item a {
  overflow-wrap: anywhere;
}

.contact-role {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =========================
   Pagination
   ========================= */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.pagination:empty {
  display: none;
}

.pagination-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.pagination-button:hover:not(:disabled) {
  border-color: var(--green);
  color: var(--green);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-current {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================
   Submission Loading
   ========================= */

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-spinner {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   Mobile refinements
   ========================= */

@media (max-width: 750px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .church-card {
    padding: 15px 16px;
    gap: 9px;
  }

  .church-card-title {
    gap: 7px;
  }

  .church-card h3 {
    font-size: 1rem;
  }

  .church-location,
  .church-service {
    font-size: 0.82rem;
  }

  .verified-badge {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  .profile-meta {
    gap: 7px;
    margin-top: 18px;
  }

  .profile-meta span {
    padding: 5px 9px;
  }

  .profile-section {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .pagination {
    gap: 8px;
  }

  .pagination-button {
    min-height: 44px;
  }

  .submission-card {
    padding: 26px 18px;
  }

  .contact-item {
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .pagination {
    justify-content: space-between;
  }

  .pagination-current {
    text-align: center;
  }

  .source-heading {
    align-items: flex-start;
  }
}

/* =========================
   Dark mode
   ========================= */

.settings-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.settings-menu {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 1001;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.settings-menu[hidden] { display: none; }

.settings-title {
  padding: 7px 9px 9px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-option {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.settings-option:hover,
.settings-option:focus-visible {
  background: var(--background-soft);
  outline: none;
}

.settings-toggle.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.settings-toggle:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

html[data-theme="dark"] .settings-toggle,
html[data-theme="dark"] .settings-menu {
  background: var(--surface);
}

@media (max-width: 480px) {
  .settings-toggle {
    right: 12px;
    bottom: 12px;
  }

  .settings-menu {
    right: 12px;
    bottom: 74px;
  }
}

/* ================================================================
   2026 unified refresh — solid original green, white, and ink palette
   ================================================================ */

:root {
  --green: #166534;
  --green-light: #22c55e;
  --navy: #171717;
  --text: #171717;
  --text-muted: #666666;
  --background: #ffffff;
  --background-soft: #f8faf9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-color: var(--border);
  --muted-text: var(--text-muted);
  --success-soft: #f0fdf4;
  --success-border: #bbf7d0;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;
  --danger-soft: #fff5f5;
  --danger-border: #fecaca;
  --shadow-sm: 0 6px 20px rgba(23, 23, 23, 0.05);
  --shadow-md: 0 16px 40px rgba(23, 23, 23, 0.09);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-width: 1180px;
}

body {
  background: var(--background);
  color: var(--text);
}

.site-header {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.logo,
.hero h1,
.section-heading h2,
.directory-header h1,
.results-header h2,
.filters h2,
.church-card h3,
.steps-grid h3 {
  color: var(--text);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #f0fdf4;
  color: var(--green);
}

.hero,
.directory-header {
  background: var(--background-soft);
}

.hero-card {
  border-color: #14532d;
  background: #166534;
  color: #f0fdf4;
  box-shadow: 0 20px 45px rgba(22, 101, 52, 0.18);
}

.hero-card-label,
.about .eyebrow {
  color: #bbf7d0;
}

.hero-card li span {
  color: #dcfce7;
}

.about,
.site-footer {
  background: #14532d;
}

.about-content > p,
.footer-inner {
  color: #dcfce7;
}

.location-card,
.steps-grid article,
.filters,
.church-card,
.submission-card,
.profile-card,
.profile-section {
  border-color: var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.location-card:hover,
.church-card:hover {
  border-color: #86b797;
  box-shadow: var(--shadow-md);
}

.country-card .country-code,
.church-link,
.save-church-button[aria-pressed="true"] {
  background: #f0fdf4;
  color: var(--green);
}

.search-form,
.filters input,
.filters select,
.sort-control select,
.submission-form input,
.submission-form select,
.submission-form textarea {
  border-color: #d1d5db;
}

.search-form:focus-within,
.submission-form input:focus,
.submission-form select:focus,
.submission-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
  outline: none;
}

.badge-row,
.church-card-title,
.church-profile-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.church-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-listed {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #4b5563;
}

.badge-unverified {
  border-color: #f5d38a;
  background: #fffbeb;
  color: #854d0e;
}

.badge-verified {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.badge-supporter {
  border-color: #e9c868;
  background: #fefce8;
  color: #713f12;
}

.featured-church-card {
  position: relative;
  overflow: hidden;
  border-color: #d6b85d;
  border-left: 5px solid #a16207;
  background: #fffdf5;
}

.featured-church-card:hover {
  border-color: #a16207;
}

.church-card.church-card-supporter { grid-template-columns: 96px minmax(0, 1fr) auto auto; min-height: 126px; border-left-width: 5px; }
.supporter-result-media { position: relative; width: 96px; min-height: 96px; overflow: hidden; align-self: stretch; border-radius: 10px; background: linear-gradient(145deg, #1d6040, #89b89c); }
.supporter-result-cover { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.supporter-result-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8, 32, 19, .38)); }
.supporter-result-logo, .supporter-result-monogram { position: absolute; z-index: 1; right: 9px; bottom: 9px; width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #fff; object-fit: cover; color: var(--green); font-size: .9rem; font-weight: 850; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.church-profile.supporter-profile-hero { position: relative; overflow: hidden; margin-top: -12px; padding: 44px; border: 1px solid rgba(255,255,255,.38); border-radius: 16px; color: #fff; background: linear-gradient(120deg, #0b3420, #1d6a43); box-shadow: 0 18px 42px rgba(18, 78, 45, .22); }
.supporter-profile-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .56; }
.church-profile.supporter-profile-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 27, 16, .9), rgba(9, 44, 26, .54)); }
.supporter-profile-content { position: relative; z-index: 1; }
.supporter-profile-kicker { margin: 0 0 11px; color: #d9f99d; font-size: .72rem; font-weight: 850; letter-spacing: .13em; }
.supporter-profile-hero .profile-location { color: rgba(255,255,255,.88); }
.supporter-profile-hero .profile-meta span { border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.14); color: #fff; }
.supporter-profile-hero .church-badge { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.16); color: #fff; }
.supporter-profile-hero .badge-supporter { background: #fef3c7; border-color: #fde68a; color: #713f12; }
.church-profile-media { margin-top: 22px; display: flex; gap: 10px; }
.church-profile-media .church-profile-logo { width: 88px; height: 88px; object-fit: cover; border: 3px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: 0 5px 20px rgba(0,0,0,.24); }

.featured-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #854d0e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Admin dashboard */

.admin-page {
  min-height: 70vh;
  padding: 72px 0 100px;
  background: var(--background-soft);
}

.admin-shell {
  max-width: var(--max-width);
}

.admin-shell > h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  letter-spacing: -0.055em;
}

.admin-intro {
  max-width: 720px;
  margin-bottom: 36px;
  font-size: 1rem;
}

.admin-page .submission-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.admin-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(125px, 1fr));
  flex: 1;
  gap: 12px;
}

.admin-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-stats strong {
  color: var(--green);
  font-size: 1.7rem;
  line-height: 1.1;
}

.admin-stats span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  width: fit-content;
}

.admin-tab {
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab:hover,
.admin-tab.is-active {
  background: #f0fdf4;
  color: var(--green);
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.7rem;
}

.admin-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

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

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.admin-toolbar h2 {
  margin-bottom: 3px;
  font-size: 1.35rem;
}

.admin-toolbar p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.admin-search {
  width: min(100%, 310px);
}

.admin-list-controls { display: flex; align-items: flex-end; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.admin-filter { display: grid; gap: 5px; color: var(--text-muted); font-size: .72rem; font-weight: 750; }
.admin-filter select { min-height: 44px; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }

.admin-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.admin-list,
.admin-message-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  align-items: flex-start;
  padding: 20px;
  border-radius: 14px;
  box-shadow: none;
}

.admin-item-content {
  min-width: 240px;
  flex: 1;
}

.admin-item-title {
  align-items: flex-start;
}

.admin-item-title .badge-row {
  padding-top: 1px;
}

.admin-item-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.admin-item-actions button,
.admin-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.admin-item-actions button:hover,
.admin-view-link:hover {
  border-color: #86b797;
  color: var(--green);
  text-decoration: none;
}

.admin-item-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-item-actions .delete-button,
.admin-item-actions .delete-message-button {
  border-color: #fecaca;
  color: #b91c1c;
}

.message-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: var(--surface);
}

.message-card.is-unread {
  border-left-color: var(--green);
  background: #f8fff9;
}

.message-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.message-heading h3 {
  font-size: 1.05rem;
}

.message-heading time,
.message-status,
.message-sender {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.message-status {
  margin-bottom: 2px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-sender {
  margin-bottom: 16px;
}

.message-sender a {
  color: var(--green);
}

.message-body {
  margin-bottom: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.admin-dialog::backdrop {
  background: rgba(23, 23, 23, 0.62);
}

.admin-edit-form {
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow-y: auto;
}

.dialog-heading,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dialog-heading {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

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

.admin-edit-fields .field-row {
  margin: 0;
}

.admin-edit-fields label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-edit-fields input,
.admin-edit-fields textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.admin-edit-fields textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-edit-fields input:focus,
.admin-edit-fields textarea:focus,
.admin-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
  outline: none;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Badge guide on About */

.badge-guide {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.badge-guide > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.badge-guide .church-badge {
  justify-self: start;
}

.badge-guide p,
.badge-disclosure {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.badge-disclosure {
  margin-top: 18px;
}

html[data-theme="dark"] .site-header {
  background: rgba(16, 21, 18, 0.96);
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .about,
html[data-theme="dark"] .site-footer {
  background: #14532d;
}

html[data-theme="dark"] .featured-church-card,
html[data-theme="dark"] .message-card.is-unread {
  background: var(--surface);
}

html[data-theme="dark"] .admin-item-actions .delete-button,
html[data-theme="dark"] .admin-item-actions .delete-message-button,
html[data-theme="dark"] .admin-item-actions .delete-button:hover,
html[data-theme="dark"] .admin-item-actions .delete-message-button:hover {
  border-color: var(--danger-border);
  background: var(--danger-soft);
  color: #fca5a5;
}

html[data-theme="dark"] .badge-listed {
  border-color: #4b5563;
  background: #272d29;
  color: #d1d5db;
}

@media (max-width: 900px) {
  .admin-dashboard-header,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-dashboard-header > .secondary-button,
  .admin-search {
    width: 100%;
  }

  .admin-item {
    flex-direction: column;
  }

  .admin-item-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .admin-page {
    padding: 48px 0 70px;
  }

  .admin-panel,
  .admin-edit-form {
    padding: 20px;
  }

  .admin-edit-fields {
    grid-template-columns: 1fr;
  }

  .admin-field-full {
    grid-column: auto;
  }

  .message-heading {
    flex-direction: column;
    gap: 4px;
  }

  .badge-guide > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ================================================================
   Complete dark-theme coverage for the unified interface
   ================================================================ */

html[data-theme="dark"] body,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .directory-header,
html[data-theme="dark"] .admin-page {
  background: var(--background);
  color: var(--text);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .directory-header,
html[data-theme="dark"] .admin-page,
html[data-theme="dark"] .about-section-soft,
html[data-theme="dark"] .support-section-muted,
html[data-theme="dark"] .privacy-hero,
html[data-theme="dark"] .contact-hero {
  background: var(--background-soft);
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a:focus-visible,
html[data-theme="dark"] .country-card .country-code,
html[data-theme="dark"] .church-link,
html[data-theme="dark"] .save-church-button[aria-pressed="true"],
html[data-theme="dark"] .admin-tab:hover,
html[data-theme="dark"] .admin-tab.is-active {
  background: var(--success-soft);
  color: var(--green);
}

html[data-theme="dark"] .search-form,
html[data-theme="dark"] .location-card,
html[data-theme="dark"] .steps-grid article,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .church-card,
html[data-theme="dark"] .submission-card,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .profile-section,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .about-cta-inner,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .support-card,
html[data-theme="dark"] .support-payment-card,
html[data-theme="dark"] .support-cta,
html[data-theme="dark"] .admin-stats > div,
html[data-theme="dark"] .admin-tabs,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .admin-item,
html[data-theme="dark"] .message-card,
html[data-theme="dark"] .admin-dialog,
html[data-theme="dark"] .badge-guide > div {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .search-form input,
html[data-theme="dark"] .filters input,
html[data-theme="dark"] .filters select,
html[data-theme="dark"] .sort-control select,
html[data-theme="dark"] .submission-form input,
html[data-theme="dark"] .submission-form select,
html[data-theme="dark"] .submission-form textarea,
html[data-theme="dark"] .admin-search input,
html[data-theme="dark"] .admin-edit-fields input,
html[data-theme="dark"] .admin-edit-fields textarea,
html[data-theme="dark"] .admin-item-actions button,
html[data-theme="dark"] .admin-view-link,
html[data-theme="dark"] .dialog-close {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .badge-listed {
  border-color: #4b5563;
  background: #272d29;
  color: #e5e7eb;
}

html[data-theme="dark"] .badge-unverified {
  border-color: var(--warning-border);
  background: var(--warning-soft);
  color: #fde68a;
}

html[data-theme="dark"] .badge-verified {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: var(--green);
}

html[data-theme="dark"] .badge-supporter {
  border-color: #806b25;
  background: #3a3018;
  color: #fde68a;
}

html[data-theme="dark"] .featured-church-card {
  border-color: #806b25;
  border-left-color: #d6b85d;
  background: #24251d;
}

html[data-theme="dark"] .featured-label {
  color: #fde68a;
}

html[data-theme="dark"] .message-card.is-unread {
  border-left-color: var(--green);
  background: #17251b;
}

html[data-theme="dark"] .privacy-content > p:first-child,
html[data-theme="dark"] .verification-note {
  border-color: var(--border);
  background: var(--background-soft);
}

html[data-theme="dark"] .hero-card > a {
  background: #f0fdf4;
  color: #14532d;
}

.settings-control {
  position: relative;
  z-index: 1000;
}

.settings-menu {
  width: 230px;
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.settings-option {
  min-height: 42px;
  border-radius: 9px;
  font-weight: 600;
}

.settings-toggle {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
}

html[data-theme="dark"] .settings-menu,
html[data-theme="dark"] .settings-toggle {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

/* Keep the church profile's main cards aligned with its sidebar cards. */
.church-profile-content {
  padding: 52px 0 88px;
}

.profile-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 32px;
  align-items: start;
}

.profile-section {
  margin: 0 0 16px;
  padding: 28px;
  border: 1px solid var(--border);
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section h2 {
  margin-bottom: 14px;
}

.profile-section p {
  max-width: none;
}

.profile-section ul {
  padding-left: 19px;
}

.church-sidebar {
  gap: 16px;
  top: 96px;
}

.sidebar-card {
  padding: 24px;
  border-radius: var(--radius-md);
}

/* A few controls and status labels use legacy fixed light colours. */
html[data-theme="dark"] .church-profile-header,
html[data-theme="dark"] .no-results,
html[data-theme="dark"] .mobile-filter-toggle,
html[data-theme="dark"] .clear-button,
html[data-theme="dark"] .pagination-button,
html[data-theme="dark"] .secondary-button {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

html[data-theme="dark"] .profile-meta span,
html[data-theme="dark"] .source-type {
  border-color: var(--border);
  background: var(--background-soft);
  color: var(--text-muted);
}

html[data-theme="dark"] .status-pending {
  border-color: var(--warning-border);
  background: var(--warning-soft);
  color: #fde68a;
}

html[data-theme="dark"] .status-verified {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: #bbf7d0;
}

html[data-theme="dark"] .clear-button:hover,
html[data-theme="dark"] .pagination-button:hover:not(:disabled),
html[data-theme="dark"] .secondary-button:hover {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: var(--green-light);
}

html[data-theme="dark"] .save-church-button {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

html[data-theme="dark"] .save-church-button:hover {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: var(--green-light);
}

@media (max-width: 750px) {
  .church-profile-header {
    padding: 34px 0 40px;
  }

  .back-link {
    margin-bottom: 26px;
  }

  .church-profile-content {
    padding: 30px 0 64px;
  }

  .profile-grid {
    gap: 16px;
  }

  .profile-section,
  .sidebar-card {
    padding: 22px;
  }
}

/* Country-aware address form */
.field-help {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-row [hidden] {
  display: none;
}

/* Supporters use blue: they are featured listings, not warning states. */
.badge-supporter {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.badge-featured-supporter { border-color: #7f9fd4; background: #e8f0ff; color: #174b8c; }

.featured-church-card {
  border-color: #9fc0e8;
  border-left-color: #3b78b9;
  background: #f7fbff;
}

.featured-church-card:hover {
  border-color: #3b78b9;
}

.featured-label {
  color: #1e4f86;
}

/* Fair, clearly-labelled paid placement is only shown for a location search. */
.featured-supporters { margin: 0 0 24px; padding: 18px 20px; border: 1px solid #9fc0e8; border-radius: 16px; background: #f7fbff; }
.featured-supporters-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.featured-supporters-heading .eyebrow { margin: 0 0 6px; color: #1e4f86; }
.featured-supporters-heading h3 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.featured-supporters-heading > p { max-width: 410px; margin: 0; color: var(--text-muted); font-size: .83rem; line-height: 1.5; text-align: right; }
.featured-supporter-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.featured-supporter-list.has-one-featured-supporter { grid-template-columns: 1fr; }
.featured-supporter-list .church-card { padding: 16px; }
.featured-supporter-list .church-card.church-card-supporter { grid-template-columns: 76px minmax(0, 1fr); min-height: 0; }
.featured-supporter-list .supporter-result-media { width: 76px; min-height: 76px; }
.featured-supporter-list .church-link, .featured-supporter-list .save-church-button { width: 100%; text-align: center; }
.featured-supporter-list .church-link { grid-column: 1; }
.featured-supporter-list .save-church-button { grid-column: 2; }

/* A single result should read as one compact featured row, not a narrow card. */
.featured-supporter-list.has-one-featured-supporter .church-card.church-card-supporter { grid-template-columns: 76px minmax(0, 1fr) auto auto; min-height: 108px; }
.featured-supporter-list.has-one-featured-supporter .church-link,
.featured-supporter-list.has-one-featured-supporter .save-church-button { grid-column: auto; width: auto; white-space: nowrap; }

/* Use the same clear badge colors in the supporter hero as in search results. */
.supporter-profile-hero .church-badge.badge-verified { border-color: #86efac; background: #f0fdf4; color: #166534; }
.supporter-profile-hero .church-badge.badge-supporter { border-color: #9fc0e8; background: #eef6ff; color: #1e4f86; }

/* The logo is an accent, not another row of content. */
.supporter-profile-hero .supporter-profile-content { min-height: 166px; padding-right: 116px; }
.supporter-profile-hero .church-profile-media { position: absolute; top: 0; right: 0; margin: 0; }
.supporter-profile-hero .church-profile-media .church-profile-logo { width: 82px; height: 82px; border-radius: 14px; }

/* Dark mode: muted evergreen surfaces with readable blue links, never neon. */
html[data-theme="dark"] {
  color-scheme: dark;
  --green: #9ab8a3;
  --green-light: #c7d9cd;
  --text: #edf2ee;
  --text-muted: #b7c1ba;
  --background: #111714;
  --background-soft: #17201b;
  --surface: #1d2922;
  --border: #3a4a40;
  --success-soft: #23382d;
  --success-border: #4f705a;
  --warning-soft: #362f21;
  --warning-border: #776844;
  --danger-soft: #382426;
  --danger-border: #734348;
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] a {
  color: #a8c9ff;
}

html[data-theme="dark"] .site-header {
  border-bottom-color: var(--border);
  background: rgba(17, 23, 20, 0.94);
}

html[data-theme="dark"] .logo,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .footer-inner a {
  color: var(--text);
}

html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a:focus-visible,
html[data-theme="dark"] .country-card .country-code,
html[data-theme="dark"] .church-link,
html[data-theme="dark"] .save-church-button[aria-pressed="true"],
html[data-theme="dark"] .admin-tab:hover,
html[data-theme="dark"] .admin-tab.is-active {
  background: #24372c;
  color: #d8eadc;
}

html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .search-form button,
html[data-theme="dark"] .submit-button {
  border-color: #587a63;
  background: #365f45;
  color: #ffffff;
}

html[data-theme="dark"] .primary-button:hover,
html[data-theme="dark"] .search-form button:hover,
html[data-theme="dark"] .submit-button:hover {
  border-color: #789681;
  background: #477755;
  color: #ffffff;
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .about,
html[data-theme="dark"] .site-footer {
  background: #173c2a;
}

html[data-theme="dark"] .hero-card > a {
  background: #e8f0ea;
  color: #173c2a;
}

html[data-theme="dark"] .badge-supporter {
  border-color: #4f7299;
  background: #1d3147;
  color: #bed8ff;
}

html[data-theme="dark"] .featured-church-card {
  border-color: #4f7299;
  border-left-color: #79a9e0;
  background: #192b3c;
}

html[data-theme="dark"] .featured-label {
  color: #bed8ff;
}

html[data-theme="dark"] .site-footer a:hover,
html[data-theme="dark"] .footer-inner a:hover {
  color: #bed8ff;
}

/* Small screens are intentionally stacked and touch-friendly. */
@media (max-width: 750px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .hero-layout,
  .country-grid,
  .steps-grid,
  .location-grid,
  .support-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .directory-header,
  .privacy-hero,
  .contact-hero {
    padding: 46px 0 54px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .hero-card,
  .submission-card,
  .contact-card,
  .support-card,
  .profile-section,
  .sidebar-card {
    padding: 22px;
  }

  .church-card-actions,
  .admin-item-actions,
  .form-actions {
    width: 100%;
  }

  .church-card-actions > *,
  .admin-item-actions > *,
  .form-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .church-profile-header .container,
  .church-profile-content .container {
    width: min(100% - 32px, var(--max-width));
  }

  .church-profile-header {
    padding: 28px 0 32px;
  }

  .back-link {
    margin-bottom: 22px;
  }

  .church-profile-name {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    overflow-wrap: anywhere;
  }

  .profile-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .church-profile-content {
    padding: 24px 0 56px;
  }

  .profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .profile-grid > *,
  .church-sidebar,
  .profile-section,
  .sidebar-card {
    min-width: 0;
    width: 100%;
  }

  .church-sidebar {
    position: static;
    gap: 16px;
  }

  .profile-section,
  .sidebar-card {
    margin: 0;
    padding: 20px;
    overflow-wrap: anywhere;
  }

  .profile-grid > div {
    display: grid;
    gap: 16px;
  }

  .profile-section h2,
  .sidebar-card h2 {
    margin-bottom: 12px;
  }

  .directions-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .church-profile-header .container,
  .church-profile-content .container {
    width: min(100% - 24px, var(--max-width));
  }

  .profile-section,
  .sidebar-card {
    padding: 18px;
  }
}

/* Responsive site navigation */
.mobile-menu-toggle,
.mobile-nav-extra {
  display: none;
}

.main-nav a[aria-current="page"] {
  background: var(--success-soft);
  color: var(--green);
}

@media (max-width: 750px) {
  .site-header.has-mobile-menu {
    padding: 0;
  }

  .site-header.has-mobile-menu .header-inner {
    position: relative;
    min-height: 68px;
    padding: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
  }

  .site-header.has-mobile-menu .logo {
    align-self: auto;
    font-size: 1.18rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible,
  .mobile-menu-toggle.is-open {
    border-color: var(--success-border);
    background: var(--success-soft);
    color: var(--green);
    outline: none;
  }

  .mobile-menu-icon {
    width: 17px;
    display: grid;
    gap: 3px;
  }

  .mobile-menu-icon span {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .mobile-menu-toggle.is-open .mobile-menu-icon span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-menu-toggle.is-open .mobile-menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.is-open .mobile-menu-icon span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-header.has-mobile-menu .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .site-header.has-mobile-menu .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-header.has-mobile-menu .main-nav a {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    background: transparent;
    font-size: 0.92rem;
    text-align: left;
    white-space: normal;
  }

  .site-header.has-mobile-menu .main-nav a:hover,
  .site-header.has-mobile-menu .main-nav a:focus-visible,
  .site-header.has-mobile-menu .main-nav a[aria-current="page"] {
    background: var(--success-soft);
    color: var(--green);
  }

  .site-header.has-mobile-menu .mobile-nav-extra {
    display: flex;
  }
}

html[data-theme="dark"] .mobile-menu-toggle,
html[data-theme="dark"] .site-header.has-mobile-menu .main-nav {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

/* Accessibility and page utilities */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 14px;
  border: 2px solid var(--green);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 900;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

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

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: var(--green);
  outline: none;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 74px;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: var(--background-soft);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
  background: var(--success-soft);
  color: var(--green);
  outline: none;
}

.copy-address-button,
.print-church-button {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.copy-address-button:hover,
.copy-address-button:focus-visible,
.print-church-button:hover,
.print-church-button:focus-visible {
  border-color: var(--success-border);
  background: var(--success-soft);
  color: var(--green);
  outline: none;
}

html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .copy-address-button,
html[data-theme="dark"] .print-church-button {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 480px) {
  .back-to-top {
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
  }
}

/* Church profiles remain clean and readable when printed or saved as PDF. */
@media print {
  @page {
    margin: 16mm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  .site-header,
  .site-footer,
  .settings-control,
  .back-to-top,
  .skip-link,
  .directions-button,
  .copy-address-button,
  .print-church-button {
    display: none !important;
  }

  .church-profile-header,
  .church-profile-content {
    padding: 18px 0 !important;
    background: #ffffff !important;
  }

  .profile-grid {
    display: block !important;
  }

  .profile-section,
  .sidebar-card {
    margin: 0 0 12px !important;
    padding: 16px !important;
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .profile-section *,
  .sidebar-card * {
    color: #111111 !important;
  }

  .church-sidebar {
    position: static !important;
  }
}

/* Listing update form */
.update-listing-page {
  padding: 64px 0 96px;
  background: var(--background-soft);
}

.update-listing-shell {
  max-width: 900px;
}

.update-listing-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.update-listing-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: -0.045em;
}

.update-listing-heading > p:last-child {
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.update-listing-note,
.listing-update-note,
.google-form-notice {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.update-listing-note h2,
.listing-update-note h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.update-listing-note ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.update-listing-note li + li {
  margin-top: 7px;
}

.listing-update-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--background-soft);
}

.listing-update-note p,
.google-form-notice p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.listing-update-note .secondary-button {
  flex: 0 0 auto;
}

.google-form-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.google-form-notice .secondary-button {
  flex: 0 0 auto;
}

.google-form-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.google-form-shell iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

html[data-theme="dark"] .update-listing-page {
  background: var(--background-soft);
}

html[data-theme="dark"] .update-listing-note,
html[data-theme="dark"] .listing-update-note,
html[data-theme="dark"] .google-form-notice {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 700px) {
  .update-listing-page {
    padding: 42px 0 64px;
  }

  .listing-update-note,
  .google-form-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-update-note .secondary-button,
  .google-form-notice .secondary-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .google-form-shell {
    margin-inline: -4px;
    border-radius: 12px;
  }

  .google-form-shell iframe {
    height: 2200px;
  }
}

@media (max-width: 450px) {
  .update-listing-note,
  .listing-update-note,
  .google-form-notice {
    padding: 18px;
  }

  .google-form-shell iframe {
    height: 2450px;
  }
}

/* Promotion application review */
.promotion-application-card { display: grid; gap: 18px; }
.promotion-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.promotion-details p { margin: 0; color: var(--text-muted); font-size: .84rem; line-height: 1.55; overflow-wrap: anywhere; }
.promotion-details strong { display: block; margin-bottom: 2px; color: var(--text); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.promotion-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--background-soft); }
.promotion-controls label { display: grid; gap: 6px; font-size: .77rem; font-weight: 750; }
.promotion-controls label span { color: var(--text-muted); font-weight: 500; }
.promotion-controls select, .promotion-controls input, .promotion-controls textarea { min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.promotion-control-wide { grid-column: 1 / -1; }
.promotion-link-note { margin: -4px 0 0; color: var(--green); font-size: .82rem; font-weight: 650; }

@media (max-width: 620px) {
  .promotion-details, .promotion-controls { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .church-card.church-card-supporter { grid-template-columns: 82px minmax(0, 1fr) auto; }
  .supporter-result-media { width: 82px; min-height: 82px; }
  .featured-supporter-list.has-one-featured-supporter .church-card.church-card-supporter { grid-template-columns: 82px minmax(0, 1fr) auto auto; }
  .featured-supporters-heading { align-items: start; flex-direction: column; gap: 8px; }
  .featured-supporters-heading > p { text-align: left; }
}

@media (max-width: 560px) {
  .featured-supporters { padding: 16px; }
  .featured-supporter-list { grid-template-columns: 1fr; }
  .featured-supporter-list.has-one-featured-supporter { grid-template-columns: 1fr; }
  .featured-supporter-list .church-card.church-card-supporter { grid-template-columns: 70px minmax(0, 1fr); }
  .featured-supporter-list .supporter-result-media { width: 70px; min-height: 70px; }
  .featured-supporter-list.has-one-featured-supporter .church-card.church-card-supporter { grid-template-columns: 70px minmax(0, 1fr); }
  .featured-supporter-list.has-one-featured-supporter .church-link,
  .featured-supporter-list.has-one-featured-supporter .save-church-button { grid-column: 1 / -1; width: 100%; }
  .church-card.church-card-supporter { grid-template-columns: 1fr; padding: 13px; gap: 11px; }
  .supporter-result-media { width: 100%; min-height: 110px; }
  .supporter-result-logo, .supporter-result-monogram { width: 50px; height: 50px; right: 12px; bottom: 12px; }
  .church-card.church-card-supporter .church-card-content { grid-column: auto; }
  .church-card.church-card-supporter .church-card-title { gap: 7px; }
  .church-card.church-card-supporter h3 { font-size: 1rem; }
  .church-card.church-card-supporter .featured-label { margin: 2px 0 5px; }
  .church-card.church-card-supporter .church-location,
  .church-card.church-card-supporter .church-service { margin: 5px 0; font-size: .8rem; }
  .church-card.church-card-supporter .church-link,
  .church-card.church-card-supporter .save-church-button { grid-column: 1 / -1; }
  .church-profile.supporter-profile-hero { margin-top: 0; padding: 28px 23px; border-radius: 12px; }
  .supporter-profile-hero .supporter-profile-content { min-height: 130px; padding-right: 86px; }
  .supporter-profile-hero .church-profile-media .church-profile-logo { width: 64px; height: 64px; border-radius: 12px; }
}

.cookie-notice { position: fixed; z-index: 90; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 20px; width: min(720px, calc(100vw - 32px)); padding: 16px 18px; border: 1px solid #bfd2d8; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 18px 44px rgba(14, 35, 56, .2); }
.cookie-notice strong { display: block; color: var(--navy); font-size: .92rem; }
.cookie-notice p { margin: 4px 0 0; color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
.cookie-notice a { color: var(--green); font-weight: 750; }
.cookie-notice-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-notice button { min-height: 38px; padding: 8px 10px; border: 1px solid #b8cbd2; border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.cookie-notice .cookie-accept { border-color: var(--green); background: var(--green); color: #fff; }
@media (max-width: 620px) { .cookie-notice { right: 16px; bottom: 16px; align-items: stretch; flex-direction: column; gap: 13px; } .cookie-notice-actions { width: 100%; } .cookie-notice button { flex: 1; } }

/* Denser directory rhythm: same visual language, less unused vertical space. */
.directory-header { padding: 62px 0; }
.directory { padding: 38px 0 72px; }
.hero { padding: 76px 0; }
.locations, .section, .directory-steps { padding: 72px 0; }
.church-card { padding: 18px 20px; }
.church-card.church-card-supporter { min-height: 108px; }
.featured-supporters { margin-bottom: 18px; }
.church-promotion-card { grid-template-columns: 76px minmax(0, 1fr) auto; border-style: dashed; border-color: #8ab6b0; background: #f6fcfa; }
.church-promotion-card .featured-label { margin: 0 0 5px; }
.supporter-ad-media { width: 76px; min-height: 76px; display: grid; place-items: center; background: linear-gradient(145deg, #0b6054, #70b7aa); }
.supporter-ad-logo { display: grid; width: 46px; height: 46px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(255,255,255,.92); color: #0b6054; font-size: .78rem; font-weight: 900; box-shadow: 0 4px 15px rgba(0,0,0,.14); }
.church-promotion-link { background: var(--green); color: #fff; }
.church-promotion-link:hover { background: #084f43; }
@media (max-width: 560px) { .directory-header { padding: 46px 0; } .directory { padding: 28px 0 54px; } .church-promotion-card { grid-template-columns: 64px minmax(0, 1fr); } .church-promotion-card .supporter-ad-media { width: 64px; min-height: 64px; } .church-promotion-card .church-promotion-link { grid-column: 1 / -1; width: 100%; text-align: center; } }

/* Keep navigation reliably available while the page is being browsed. */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; width: 100%; box-shadow: 0 1px 0 rgba(18, 47, 40, .07); }
body { padding-top: 76px; }
@media (max-width: 750px) { body { padding-top: 68px; } }

/* The primary search remains available; filters are secondary controls. */
.directory-primary-search { grid-column: 1 / -1; display: flex; gap: 8px; padding: 8px; border: 1px solid #c9dce0; border-radius: 13px; background: var(--surface); box-shadow: 0 8px 20px rgba(24,48,71,.06); }
.directory-primary-search input { min-width: 0; flex: 1; padding: 12px 14px; border: 0; background: transparent; color: var(--text); font: inherit; }
.directory-primary-search input:focus { outline: 2px solid color-mix(in srgb, var(--green) 24%, transparent); border-radius: 8px; }
.directory-primary-search button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--green); color: #fff; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.suggest-update-link { display: inline-flex; width: fit-content; margin-top: 7px; color: var(--text-muted); font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.suggest-update-link:hover { color: var(--green); }
.profile-update-link { margin: 13px 0 0; }
@media (max-width: 560px) { .directory-primary-search { flex-direction: column; } .directory-primary-search button { width: 100%; } }

.featured-events-section { border-left: 4px solid #3b78b9; background: #f7fbff; }
.featured-events-section .eyebrow { color: #1e4f86; }
.church-events { display: grid; gap: 14px; }
.church-event-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); overflow: hidden; border: 1px solid #c8dbee; border-radius: 12px; background: var(--surface); }
.church-event-card img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.church-event-card > div { padding: 17px; }
.church-event-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.church-event-card p { margin: 5px 0 0; color: var(--text-muted); font-size: .9rem; line-height: 1.55; }
.church-event-card .church-event-date { color: #1e4f86; font-size: .79rem; font-weight: 800; }
@media (max-width: 560px) { .church-event-card { grid-template-columns: 1fr; } .church-event-card img { height: 170px; } }

/* The cover is a full-bleed background. A soft overlay keeps the details readable
   without making the edge of the photo look like a separate panel. */
.church-profile.supporter-profile-hero { margin-top: 0; padding: 38px 40px; border: 1px solid #b9d2eb; border-left: 5px solid #3b78b9; border-radius: 18px; color: var(--text); background: #edf6ff; box-shadow: 0 16px 38px rgba(40, 89, 135, .1); }
.supporter-profile-cover { inset: 0; width: 100%; height: 100%; opacity: 1; object-position: center; border: 0; }
.church-profile.supporter-profile-hero::after { background: linear-gradient(90deg, rgba(248,251,254,.98) 0%, rgba(248,251,254,.93) 46%, rgba(248,251,254,.62) 67%, rgba(237,246,255,.12) 100%); }
.supporter-profile-kicker { margin-bottom: 9px; color: #1e4f86; }
.supporter-profile-hero .church-profile-name h1 { color: var(--navy); }
.supporter-profile-hero .profile-location { color: var(--text-muted); }
.supporter-profile-hero .profile-meta span { border-color: #c8dbee; background: rgba(255,255,255,.74); color: var(--text-muted); }
.supporter-profile-hero .church-badge.badge-verified { border-color: #86efac; background: #f0fdf4; color: #166534; }
.supporter-profile-hero .church-badge.badge-supporter { border-color: #cbd5e1; background: #f8fafc; color: #475569; }
.supporter-profile-hero .church-badge.badge-featured-supporter { border-color: #7f9fd4; background: #e8f0ff; color: #174b8c; }
.supporter-profile-hero .supporter-profile-content { min-height: 150px; padding-right: 116px; }
.supporter-profile-hero .church-profile-media { top: 18px; right: 18px; }
.supporter-profile-hero .church-profile-media .church-profile-logo { width: 76px; height: 76px; border: 3px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(24, 67, 100, .24); }
.featured-events-section { padding: 28px 30px; border: 1px solid #c8dbee; border-left: 5px solid #3b78b9; border-radius: 16px; background: #f7fbff; }
.featured-events-section h2 { margin: 0 0 16px; color: var(--navy); }
.church-event-card { grid-template-columns: 220px minmax(0, 1fr); border-color: #d5e4f2; box-shadow: 0 6px 16px rgba(40,89,135,.05); }
.church-event-card img { height: auto; min-height: 0; aspect-ratio: 16 / 9; align-self: start; object-fit: cover; }
.church-event-card > div { padding: 18px 20px; }
.church-event-card .church-event-date { display: inline-flex; width: fit-content; margin-top: 2px; padding: 4px 8px; border-radius: 999px; background: #e8f0ff; color: #174b8c; }
@media (max-width: 560px) { .church-profile.supporter-profile-hero { padding: 28px 23px; } .supporter-profile-cover { inset: 0; width: 100%; height: 100%; border: 0; } .church-profile.supporter-profile-hero::after { background: linear-gradient(90deg, rgba(248,251,254,.96) 0%, rgba(248,251,254,.83) 66%, rgba(248,251,254,.32) 100%); } .supporter-profile-hero .church-profile-media { top: 18px; right: 18px; } .supporter-profile-hero .church-profile-media .church-profile-logo { width: 64px; height: 64px; border-radius: 50%; } .church-event-card { grid-template-columns: 1fr; } .church-event-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; } }

/* =========================================================
   BaptistFinder professional light interface
   ========================================================= */

:root {
  color-scheme: light;
  --green: #166534;
  --green-light: #edf8f0;
  --navy: #152b3a;
  --text: #17252f;
  --text-muted: #5d6c76;
  --surface: #ffffff;
  --background: #ffffff;
  --background-soft: #f5f8f7;
  --border: #dce5e2;
  --success-soft: #effaf2;
  --success-border: #9bd4aa;
  --max-width: 1200px;
}

html { background: #fff; }
body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: none; }
::selection { background: #d6f0dc; color: #123d20; }
h1, h2, h3 { color: var(--navy); text-wrap: balance; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
:focus-visible { outline: 3px solid rgba(22,101,52,.25); outline-offset: 3px; }

.site-header {
  min-height: 72px;
  border-bottom: 1px solid rgba(210,223,219,.92);
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 30px rgba(21,43,58,.055);
  backdrop-filter: saturate(150%) blur(16px);
}
.header-inner { min-height: 72px; }
.logo { color: var(--navy); font-size: 1.34rem; font-weight: 850; letter-spacing: -.045em; }
.logo span { color: var(--green); }
.main-nav { gap: 5px; }
.main-nav a { padding: 9px 13px; border-radius: 999px; color: #354651; font-size: .9rem; font-weight: 700; }
.main-nav a:hover, .main-nav a:focus-visible { background: #edf8f0; color: #166534; text-decoration: none; }
body { padding-top: 72px; }

.eyebrow { color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.hero, .directory-header, .church-profile-header { background: radial-gradient(circle at 85% 12%, rgba(150,210,164,.2), transparent 31%), #f5f8f7; }
.hero { padding: 72px 0 78px; }
.hero-layout { gap: clamp(36px, 7vw, 84px); }
.hero h1 { font-size: clamp(3rem, 5.7vw, 5.25rem); line-height: .98; letter-spacing: -.07em; }
.hero-description { max-width: 660px; color: #596a73; font-size: 1.08rem; }
.hero-card { border: 0; border-radius: 22px; background: linear-gradient(145deg, #1b713b, #14552f); box-shadow: 0 24px 55px rgba(22,101,52,.2); }
.search-form, .directory-primary-search { border-color: #cfdeda; border-radius: 15px; box-shadow: 0 14px 36px rgba(21,43,58,.085); }
.search-form input::placeholder, .directory-primary-search input::placeholder { color: #7c8b93; }
.search-form button, .directory-primary-search button, .primary-button, .submit-button { border-radius: 10px; background: var(--green); box-shadow: 0 6px 14px rgba(22,101,52,.14); font-weight: 750; }
.search-form button:hover, .directory-primary-search button:hover, .primary-button:hover, .submit-button:hover { background: #14532d; transform: translateY(-1px); }

.location-card, .steps-grid article, .submission-card, .contact-card, .support-card, .support-payment-card, .about-card, .admin-panel, .admin-item, .sidebar-card {
  border-color: var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21,43,58,.045);
}
.location-card:hover, .steps-grid article:hover { border-color: #a5cfaf; box-shadow: 0 18px 38px rgba(21,43,58,.09); }
.submission-card, .contact-card, .admin-panel { padding: clamp(24px, 4vw, 42px); }
.submission-form input, .submission-form select, .submission-form textarea,
.admin-search input, .admin-edit-fields input, .admin-edit-fields textarea,
.promotion-controls select, .promotion-controls input, .promotion-controls textarea {
  min-height: 46px;
  border-color: #cfdad7;
  border-radius: 10px;
  background: #fff;
}
.submission-form textarea, .admin-edit-fields textarea, .promotion-controls textarea { min-height: 118px; }
.submission-form input:focus, .submission-form select:focus, .submission-form textarea:focus,
.admin-search input:focus, .admin-edit-fields input:focus, .admin-edit-fields textarea:focus {
  border-color: #55a66a;
  outline: 3px solid rgba(22,101,52,.13);
}

.directory-header { padding: 58px 0 52px; border-bottom: 1px solid #e1e9e6; }
.directory-header h1 { letter-spacing: -.055em; }
.directory { background: #fbfcfc; }
.directory-layout { gap: 30px; }
.directory-primary-search { padding: 7px; }
.filters { top: 94px; border-radius: 15px; box-shadow: 0 10px 28px rgba(21,43,58,.05); }
.results-header { padding: 2px 2px 0; }
.church-card { border-color: #dce6e3; border-radius: 14px; box-shadow: 0 7px 22px rgba(21,43,58,.035); }
.church-card:hover { border-color: #9dccaa; box-shadow: 0 14px 32px rgba(21,43,58,.08); transform: translateY(-1px); }
.church-link { border-radius: 9px; }
.featured-supporters { border-radius: 16px; background: #f3f8ff; }

.church-profile-header { padding: 34px 0 48px; }
.back-link { margin-bottom: 24px; font-weight: 650; }
.church-profile-content { padding: 50px 0 84px; }
.profile-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; }
.profile-section { margin-bottom: 24px; padding: 0 0 30px; }
.profile-section h2 { letter-spacing: -.025em; }
.church-sidebar { top: 98px; gap: 14px; }
.sidebar-card { padding: 23px; background: #fff; }
.directions-button { border-radius: 9px; font-weight: 750; }

/* Featured Supporter profile: premium treatment extends through the full page. */
body.featured-supporter-profile-page .church-profile-header {
  padding: 34px 0 52px;
  background: radial-gradient(circle at 88% 10%, rgba(112,165,219,.18), transparent 30%), #f4f8fc;
}
body.featured-supporter-profile-page {
  --green: #326fae;
  --green-light: #edf5fc;
  --success-soft: #edf5fc;
  --success-border: #a7c5e2;
}
body.featured-supporter-profile-page .logo span { color: #326fae; }
body.featured-supporter-profile-page .main-nav a:hover,
body.featured-supporter-profile-page .main-nav a:focus-visible { background: #edf5fc; color: #245d96; }
body.featured-supporter-profile-page .directions-button,
body.featured-supporter-profile-page .primary-button { background: #326fae; }
body.featured-supporter-profile-page .directions-button:hover,
body.featured-supporter-profile-page .primary-button:hover { background: #245d96; }
.church-profile.supporter-profile-hero {
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid #b7cee4;
  border-left: 5px solid #326fae;
  border-radius: 22px;
  box-shadow: 0 22px 52px rgba(40,83,124,.15);
}
.supporter-profile-cover { object-position: center; }
.church-profile.supporter-profile-hero::after {
  background: linear-gradient(96deg, rgba(249,252,255,.99) 0%, rgba(249,252,255,.95) 42%, rgba(249,252,255,.7) 62%, rgba(249,252,255,.14) 100%);
}
.supporter-profile-hero .supporter-profile-content { width: 100%; min-height: 0; padding-right: 110px; }
.supporter-profile-kicker { margin-bottom: 12px; color: #245d96; }
.supporter-profile-hero .church-profile-name { max-width: 73%; gap: 10px; }
.supporter-profile-hero .church-profile-name h1 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); letter-spacing: -.06em; }
.supporter-profile-hero .church-profile-media { top: 22px; right: 22px; }
.supporter-profile-hero .church-profile-media .church-profile-logo {
  width: 104px;
  height: 104px;
  border: 4px solid rgba(255,255,255,.96);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(23,64,101,.24);
}
body.featured-supporter-profile-page .church-profile-content { background: #f5f8fb; }
body.featured-supporter-profile-page .profile-section,
body.featured-supporter-profile-page .sidebar-card {
  padding: 27px 28px;
  border: 1px solid #d7e3ed;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(35,73,107,.055);
}
body.featured-supporter-profile-page .profile-section { margin-bottom: 18px; }
body.featured-supporter-profile-page .profile-section h2,
body.featured-supporter-profile-page .sidebar-card h2 { color: #183c5c; }
body.featured-supporter-profile-page .featured-events-section {
  border: 1px solid #bcd3e8;
  border-left: 5px solid #326fae;
  background: #f7fbff;
}
body.featured-supporter-profile-page .church-event-card { overflow: hidden; border-radius: 13px; background: #fff; }
body.featured-supporter-profile-page .church-event-card img { width: 100%; aspect-ratio: 16 / 9; }

.site-footer { background: #123c25; }
.footer-inner { min-height: 88px; }
.footer-inner a { color: #d2dde2; }
body.featured-supporter-profile-page .site-footer { background: #183c5c; }
.settings-control { position: fixed; z-index: 1000; right: 18px; bottom: 18px; }
.language-toggle {
  min-width: 58px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cfdbd8;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #28414e;
  box-shadow: 0 8px 24px rgba(21,43,58,.12);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.language-toggle:hover { border-color: #79b588; color: var(--green); transform: translateY(-1px); }

@media (max-width: 800px) {
  .profile-grid { grid-template-columns: 1fr; }
  .church-sidebar { position: static; }
  .church-profile.supporter-profile-hero { min-height: 285px; }
  .supporter-profile-hero .church-profile-name { max-width: 82%; }
}

@media (max-width: 750px) {
  body { padding-top: 68px; }
  .site-header { min-height: 68px; padding: 0; }
  .header-inner { min-height: 68px; flex-direction: row; align-items: center; }
  .logo { align-self: auto; }
  .main-nav { display: none; }
  .site-header.has-mobile-menu .main-nav { display: grid; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .hero { padding: 48px 0 54px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 3.85rem); }
  .directory-header { padding: 40px 0 36px; }
  .church-profile-header { padding: 24px 0 34px; }
  .church-profile.supporter-profile-hero { min-height: 276px; align-items: flex-end; padding: 22px 20px; border-radius: 17px; }
  .church-profile.supporter-profile-hero::after { background: linear-gradient(180deg, rgba(249,252,255,.97) 0%, rgba(249,252,255,.9) 58%, rgba(249,252,255,.6) 100%); }
  .supporter-profile-hero .supporter-profile-content { padding: 0; }
  .supporter-profile-hero .supporter-profile-kicker,
  .supporter-profile-hero .church-profile-name { max-width: calc(100% - 88px); }
  .supporter-profile-hero .church-profile-name h1 { overflow-wrap: anywhere; }
  .supporter-profile-hero .church-profile-name h1 { font-size: clamp(1.8rem, 9.5vw, 2.65rem); line-height: 1.02; }
  .supporter-profile-hero .church-profile-media { top: 6px; right: 6px; }
  .supporter-profile-hero .church-profile-media .church-profile-logo { width: 80px; height: 80px; border-radius: 50%; }
  body.featured-supporter-profile-page .profile-section, body.featured-supporter-profile-page .sidebar-card { padding: 22px 20px; border-radius: 14px; }
  .church-event-card { grid-template-columns: 1fr; }
  .cookie-notice { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
