/* 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;
  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
   ========================= */

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

  gap: 30px;
}

.logo {
  letter-spacing: -0.5px;
}

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

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

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

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

.eyebrow {
  margin-bottom: 12px;

  color: var(--green);

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

.hero h1 {
  line-height: 1.05;
}

.hero-description {
  max-width: 600px;
}

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

.search-form {
  display: flex;

  background: var(--surface);
}

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

  border: none;
  outline: none;

  background: transparent;

  font-size: 1rem;
}

.search-form button {
  border: none;
  color: #ffffff;

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

  cursor: pointer;
}

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

.locations {
  padding: 90px 0;
}

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

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

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

.location-grid {
  display: grid;

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

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

.country-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.country-card .country-code {
  font-size: 0.72rem;
  font-weight: 700;
}

.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 {
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.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-content {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;
}

.about h2 {
  max-width: 450px;
  line-height: 1.2;
}

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

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

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

  font-size: 0.85rem;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}

.form-privacy-note {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.form-privacy-note a {
  color: var(--green);
  font-weight: 700;
}

.admin-login-card {
  max-width: 420px;
}

/* =========================
   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 {
  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-layout {
  display: grid;

  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);

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

.church-card {
  align-items: center;
  justify-content: space-between;

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

  background: var(--surface);

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

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

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

/* =========================
   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;
}

.profile-grid {
  display: grid;
}

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

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

.profile-section h2 {
  font-size: 1.4rem;
}

.profile-section p {
  color: var(--text-muted);
}

.profile-section ul {
  color: var(--text-muted);
}

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

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

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

  position: sticky;
}

.sidebar-card {
  border: 1px solid var(--border);

  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-shell h1 {
  margin-bottom: 14px;

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

.admin-intro {
  color: var(--text-muted);
}

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

  gap: 12px;
}

.admin-item {
  display: flex;
  justify-content: space-between;

  gap: 20px;

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

  background: var(--surface);
}

.admin-item-title {
  display: flex;
  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;
}

.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: flex;
    flex-direction: column;
    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;
  }
}

/* Shared component refinements. Visual tokens and current styling live in theme.css. */
.site-header {
  top: 0;
  border-bottom: 1px solid rgba(220, 229, 236, 0.8);
  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 {
  background: var(--background-soft);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.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: -0.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, 0.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: 0.92rem;
  font-weight: 700;
}
.text-link span {
  color: var(--green);
}
.hero-card {
  padding: 32px;
  border: 1px solid #14532d;
  border-radius: 24px;
}
.hero-card-label {
  margin-bottom: 14px;
  color: #8ff0dd;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.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: 0.94rem;
}
.hero-card li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.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: 0.9rem;
  font-weight: 800;
}
.section-heading h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 2.65rem);
  letter-spacing: -0.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, 0.04);
}
.country-card {
  min-height: 220px;
}
.location-card:hover {
  border-color: #80cfc3;
  box-shadow: 0 18px 34px rgba(24, 48, 71, 0.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: 0.08em;
}
.about {
  padding: 90px 0;
  background: var(--navy);
}
.about h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.65rem);
  letter-spacing: -0.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: 0.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: 0.94rem;
  line-height: 1.65;
}
.directory-header {
  border: 0;
  background: var(--background-soft);
}
.directory-header h1,
.results-header h2,
.filters h2 {
  color: var(--navy);
}
.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, 0.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;
  border-radius: 16px;
  border-color: var(--border);
  box-shadow: 0 8px 20px rgba(24, 48, 71, 0.035);
}
.church-card:hover {
  border-color: #8acfc5;
  box-shadow: 0 14px 28px rgba(24, 48, 71, 0.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: 0.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: 0.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;
  }
}

.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%;
  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;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

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

@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
   ================================================================ */

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

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

.church-card.church-card-supporter {
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  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, 0.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: 0.9rem;
  font-weight: 850;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}
.church-profile.supporter-profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.supporter-profile-cover {
  position: absolute;
  object-fit: cover;
}
.church-profile.supporter-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}
.supporter-profile-content {
  position: relative;
  z-index: 1;
}
.supporter-profile-kicker {
  margin: 0 0 11px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}
.supporter-profile-hero .church-badge {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.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, 0.9);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.24);
}

.featured-label {
  display: inline-flex;
  margin-bottom: 10px;
  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: 0.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;
}

@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
   ================================================================ */

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

/* 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. */

@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: 0.83rem;
  line-height: 1.5;
  text-align: right;
}

/* A single result should read as one compact featured row, not a narrow card. */

/* Use the same clear badge colors in the supporter hero as in search results. */

/* The logo is an accent, not another row of content. */
.supporter-profile-hero .church-profile-media {
  position: absolute;
  margin: 0;
}

/* 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;
  }
}

/* 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;
}

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

@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: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.promotion-details strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.7rem;
  letter-spacing: 0.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: 0.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: 0.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-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;
  }
  .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-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, 0.2);
}
.cookie-notice strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}
.cookie-notice p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.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: 0.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, 0.92);
  color: #0b6054;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(0, 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, 0.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, 0.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: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}
.suggest-update-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.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 .eyebrow {
  color: #1e4f86;
}
.church-events {
  display: grid;
  gap: 14px;
}
.church-event-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #c8dbee;
  border-radius: 12px;
  background: var(--surface);
}
.church-event-card img {
  width: 100%;
}
.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: 0.9rem;
  line-height: 1.55;
}
.church-event-card .church-event-date {
  font-size: 0.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, 0.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, 0.98) 0%,
    rgba(248, 251, 254, 0.93) 46%,
    rgba(248, 251, 254, 0.62) 67%,
    rgba(237, 246, 255, 0.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, 0.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, 0.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, 0.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, 0.96) 0%,
      rgba(248, 251, 254, 0.83) 66%,
      rgba(248, 251, 254, 0.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;
  }
}
