/* BaptistFinder design system. Loaded last, after component styles.
   Keep site-wide visual decisions here, rather than appending redesigns to style.css. */
:root {
  color-scheme: light;
  --green: #166534;
  --green-light: #edf8f0;
  --navy: #18312a;
  --text: #21332b;
  --text-muted: #64736c;
  --surface: #fff;
  --background: #fff;
  --background-soft: #f5f8f6;
  --border: #dce5df;
  --success-soft: #edf8f0;
  --success-border: #a1cfad;
  --border-color: var(--border);
  --muted-text: var(--text-muted);
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;
  --danger-soft: #fff5f5;
  --danger-border: #fecaca;
  --shadow-sm: 0 3px 12px rgba(20, 49, 32, 0.035);
  --shadow-md: 0 10px 28px rgba(20, 49, 32, 0.07);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-width: 1180px;
}
html {
  background: #fff;
  scroll-padding-top: 96px;
}
body {
  min-height: 100vh;
  padding-top: 72px;
  font-family:
    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;
}
[hidden] {
  display: none !important;
}
::selection {
  color: #123c25;
  background: #d6efdd;
}
h1,
h2,
h3 {
  color: var(--navy);
  text-wrap: balance;
  letter-spacing: -0.035em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
:focus-visible {
  outline: 3px solid #7eb992;
  outline-offset: 3px;
}
button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.container {
  width: min(100% - 48px, var(--max-width));
}
.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

/* Navigation */
.site-header {
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}
.header-inner {
  min-height: 72px;
  gap: 24px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--navy);
}
.logo span {
  color: var(--green);
}
.main-nav {
  gap: 4px;
}
.main-nav a {
  padding: 9px 12px;
  color: #4b5c53;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 650;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--green);
  background: var(--green-light);
  text-decoration: none;
}
.main-nav .supporter-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-left: 12px;
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.main-nav .supporter-nav-button:hover,
.main-nav .supporter-nav-button:focus-visible,
.main-nav .supporter-nav-button[aria-current="page"] {
  background: var(--green-light);
  color: var(--green);
}
@media (min-width: 751px) and (max-width: 900px) {
  .header-inner {
    gap: 12px;
  }
  .main-nav a {
    padding-inline: 9px;
    font-size: 0.8rem;
  }
  .main-nav .supporter-nav-button {
    margin-left: 4px;
    padding-inline: 10px;
    font-size: 0.75rem;
  }
}

/* Homepage: search first, less empty framing. */
.hero {
  padding: 62px 0;
  background: var(--background-soft);
  border-bottom: 1px solid var(--border);
}
.hero-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.8fr);
  gap: 64px;
}
.hero h1 {
  max-width: 660px;
  font-size: clamp(2.8rem, 4.8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.hero-description {
  max-width: 570px;
  margin-top: 22px;
  font-size: 1.03rem;
  color: var(--text-muted);
}
.hero-card {
  padding: 32px;
  border: 0;
  border-radius: 18px;
  background: #1b6137;
  box-shadow: none;
}
.hero-card h2 {
  font-size: 1.85rem;
  line-height: 1.16;
}
.hero-card li {
  padding: 13px 0;
  border-bottom: 1px solid #ffffff24;
}
.hero-card li:last-child {
  border: 0;
}
.hero-card-label {
  color: #d1efdb;
}
.hero-card > a {
  margin-top: 24px;
  border-radius: 8px;
  box-shadow: none;
}
.hero-actions {
  gap: 22px;
  margin-top: 18px;
  font-size: 0.85rem;
}
.search-form,
.directory-primary-search {
  border: 1px solid #b7cdbf;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.search-form {
  margin-top: 28px;
}
.search-form input,
.directory-primary-search input {
  min-width: 0;
  padding: 11px 14px;
  color: var(--text);
  font-size: 0.95rem;
  background: transparent;
}
.search-form:focus-within,
.directory-primary-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #16653415;
}
.search-form button,
.directory-primary-search button,
.primary-button,
.submit-button {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 700;
  box-shadow: none;
}
.search-form button:hover,
.directory-primary-search button:hover,
.primary-button:hover,
.submit-button:hover {
  background: #124f2a;
  transform: none;
}
.locations,
.directory-steps,
.about-section {
  padding: 60px 0;
}
.section-heading {
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.2;
}
.country-grid {
  gap: 18px;
}
.country-card {
  position: relative;
  padding: 25px;
  border-radius: 12px;
  box-shadow: none;
}
.country-card .country-code {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 5px;
  background: var(--green-light);
  font-size: 0.72rem;
}
.country-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.country-card p {
  font-size: 0.9rem;
}
.country-card > span {
  margin-top: 20px;
  font-size: 0.83rem;
}
.location-card:hover {
  border-color: #8bb99a;
  box-shadow: var(--shadow-sm);
  transform: none;
}
.about {
  padding: 48px 0;
  background: #1b6137;
}
.about-content {
  gap: 54px;
}
.about h2 {
  color: #fff;
  font-size: 1.9rem;
}
.steps-grid {
  gap: 20px;
}
.steps-grid article {
  padding: 22px 24px;
  border: 0;
  border-left: 2px solid #d7e8dc;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.steps-grid article:hover {
  box-shadow: none;
}
.steps-grid article > span {
  color: var(--green);
  background: none;
  padding: 0;
  font-size: 0.85rem;
}
.steps-grid article h3 {
  font-size: 1.05rem;
}
.steps-grid article p {
  font-size: 0.9rem;
}

/* Directory and locations */
.directory-header {
  padding: 32px 0 28px;
  background: var(--background-soft);
  border-bottom: 1px solid var(--border);
}
.directory-header h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.15;
}
.directory-header p:last-of-type {
  max-width: 700px;
  margin-top: 12px;
  font-size: 0.95rem;
}
.directory-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.directory-breadcrumbs a {
  color: var(--green);
}
.directory-breadcrumbs a:hover {
  text-decoration: underline;
}
.directory-breadcrumbs [aria-current] {
  color: var(--text);
  font-weight: 600;
}
.directory {
  padding: 28px 0 64px;
  background: #fbfcfb;
}
.directory-layout {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
}
.directory-primary-search {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}
.filters {
  top: 92px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
}
.filters h2 {
  margin-bottom: 20px;
  font-size: 0.98rem;
}
.filters label {
  font-size: 0.8rem;
  font-weight: 600;
}
.filters input,
.filters select,
.sort-control select {
  min-height: 42px;
  border-radius: 7px;
  border-color: #ccd8d0;
  background: #fff;
}
.filters select {
  font-size: 0.84rem;
}
.filters .checkbox-label {
  margin-top: 14px;
  font-weight: 500;
}
.filters .checkbox-label input {
  min-height: 0;
  accent-color: var(--green);
}
.clear-button {
  margin-top: 18px;
  min-height: 40px;
  border-radius: 7px;
  font-size: 0.82rem;
}
.results {
  min-width: 0;
}
.results-header {
  align-items: center;
  margin-bottom: 16px;
  padding: 0;
  scroll-margin-top: 96px;
}
.results-header h2 {
  font-size: 1.15rem;
}
.results-header p {
  margin-top: 3px;
  font-size: 0.8rem;
}
.sort-control {
  gap: 8px;
  font-size: 0.8rem;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.active-filters button {
  padding: 5px 10px;
  border: 1px solid #bdd7c6;
  border-radius: 6px;
  color: var(--green);
  background: #edf8f0;
  font-size: 0.78rem;
  cursor: pointer;
}
.active-filters button span {
  margin-left: 5px;
}
.church-list {
  gap: 12px;
}
.church-card {
  padding: 20px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.church-card:hover {
  transform: none;
  border-color: #91bda0;
  box-shadow: var(--shadow-sm);
}
.church-card-title {
  gap: 6px 8px;
}
.church-card-title h3 {
  width: 100%;
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.church-card-title h3 a:hover {
  color: var(--green);
  text-decoration: underline;
}
.church-location {
  margin-top: 9px;
  font-size: 0.84rem;
}
.church-service {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.suggest-update-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.73rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.church-link,
.save-church-button {
  min-height: 40px;
  border-radius: 7px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.church-badge {
  min-height: 22px;
  padding: 4px 7px;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.badge-supporter {
  border-color: #d7dfda;
  background: #f5f8f6;
  color: #566a5e;
}
.badge-featured-supporter {
  border-color: #b4cde8;
  background: #edf4fe;
  color: #245d96;
}
.featured-supporters {
  max-width: none;
  width: 100%;
  padding: 17px;
  margin-bottom: 18px;
  border: 1px solid #c4d8ef;
  border-radius: 12px;
  background: #f3f8fe;
}
.featured-supporters-heading {
  gap: 12px;
  margin-bottom: 12px;
}
.featured-supporters-heading .eyebrow {
  margin: 0 0 4px;
  color: #326fae;
  font-size: 0.64rem;
}
.featured-supporters-heading h3 {
  font-size: 1rem;
}
.featured-supporters-heading > p {
  max-width: 310px;
  font-size: 0.73rem;
}
.featured-supporter-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.featured-church-card,
.church-card.featured-church-card {
  width: 100%;
  border-color: #c4d8ef;
  border-left: 3px solid #326fae;
  background: #fff;
}
.church-card.church-card-supporter {
  grid-template-columns: 68px minmax(0, 1fr) auto auto;
  min-height: 0;
}
.supporter-result-media {
  width: 68px;
  min-height: 76px;
  border-radius: 8px;
  background: #e8f1fb;
}
.supporter-result-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.church-card.church-promotion-card {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-style: dashed;
  border-color: #bdcfc2;
  background: #f4f9f5;
}
.supporter-ad-media {
  width: 48px;
  min-height: 48px;
  align-self: start;
  border-radius: 10px;
  background: #166534;
}
.supporter-ad-logo {
  font-size: 0.9rem;
}
.church-promotion-card .featured-label {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 0.61rem;
}
.church-promotion-card h3 {
  font-size: 0.97rem;
}
.church-promotion-card .church-location {
  margin-top: 4px;
  font-size: 0.79rem;
}
.church-promotion-card .church-promotion-link {
  grid-column: 2;
  justify-self: start;
  width: auto;
  min-height: 32px;
  padding: 3px 0;
  color: var(--green);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.no-results {
  padding: 32px 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fff;
}
.no-results h3 {
  font-size: 1.15rem;
}
.no-results p {
  margin: 10px 0 20px;
  color: var(--text-muted);
}
.pagination {
  margin-top: 22px;
}

/* Forms, supporting pages, and administration */
.about-hero,
.support-hero,
.supporter-hero,
.privacy-hero {
  padding-top: 48px;
  padding-bottom: 46px;
  background: var(--background-soft);
}
.about-hero-content {
  text-align: left;
}
.about-hero h1,
.about-lead {
  margin-left: 0;
}
.about-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.about-actions {
  justify-content: flex-start;
}
.about-grid {
  gap: 42px;
}
.contact-hero,
.submission-page,
.admin-page,
.update-listing-page {
  padding-top: 40px;
  padding-bottom: 64px;
}
.submission-card,
.contact-card,
.support-card,
.support-payment-card,
.about-card,
.admin-panel,
.sidebar-card,
.update-listing-note {
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: none;
}
.submission-card,
.contact-card,
.admin-panel {
  padding: 28px;
}
.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: 44px;
  border: 1px solid #cad8ce;
  border-radius: 7px;
  background: #fff;
}
.submission-form textarea,
.admin-edit-fields textarea,
.promotion-controls textarea {
  min-height: 114px;
}
.submission-form input:focus,
.submission-form select:focus,
.submission-form textarea:focus {
  border-color: var(--green);
  outline: 3px solid #16653412;
  box-shadow: none;
}
.secondary-button {
  min-height: 40px;
  border-radius: 7px;
}
.admin-shell > h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.admin-intro {
  max-width: 720px;
  margin-bottom: 26px;
}
.admin-stats {
  gap: 12px;
}
.admin-stats > div {
  min-height: 85px;
  padding: 16px 18px;
  border-radius: 10px;
  box-shadow: none;
}
.admin-stats strong {
  font-size: 1.6rem;
}
.admin-tabs {
  width: 100%;
  border-radius: 10px;
}
.admin-toolbar {
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.admin-list-controls {
  flex: 1;
}
.admin-item {
  padding: 18px;
  border-radius: 10px;
  background: #fff;
}
.admin-item-title h3 {
  font-size: 1rem;
}
.admin-item-actions {
  gap: 6px;
}
.admin-item-actions button,
.admin-view-link {
  border-radius: 6px;
  font-size: 0.74rem;
}
.admin-dialog {
  border-radius: 14px;
}
.dialog-heading,
.dialog-actions {
  background: #fff;
}

/* Profiles: green normally; blue for active paid profiles. */
.church-profile-header {
  padding: 28px 0 36px;
  background: var(--background-soft);
}
.back-link {
  margin-bottom: 22px;
  font-size: 0.84rem;
  font-weight: 600;
}
.church-profile-name h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
}
.church-profile-content {
  padding: 32px 0 64px;
}
.profile-grid {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.profile-section {
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.profile-section h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}
.church-sidebar {
  top: 94px;
  gap: 14px;
}
.sidebar-card {
  padding: 22px;
  background: #fff;
}
.directions-button {
  border-radius: 7px;
}
body.featured-supporter-profile-page {
  --green: #326fae;
  --green-light: #edf5fc;
  --navy: #183c5c;
  --success-soft: #edf5fc;
  --success-border: #a7c5e2;
}
body.featured-supporter-profile-page .church-profile-header,
body.featured-supporter-profile-page .church-profile-content {
  background: #f3f7fb;
}
.church-profile.supporter-profile-hero {
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #bfd3e8;
  border-left: 4px solid #326fae;
  border-radius: 18px;
  box-shadow: none;
}
.supporter-profile-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.church-profile.supporter-profile-hero::after {
  background: linear-gradient(
    95deg,
    rgba(248, 251, 255, 0.98) 0%,
    rgba(248, 251, 255, 0.91) 37%,
    rgba(248, 251, 255, 0.48) 66%,
    rgba(248, 251, 255, 0.08) 100%
  );
}
.supporter-profile-hero .supporter-profile-content {
  width: 100%;
  min-height: 0;
  padding: 0;
}
.supporter-profile-kicker {
  margin-bottom: 10px;
  color: #245d96;
  font-size: 0.67rem;
}
.supporter-profile-hero .church-profile-name {
  max-width: min(72%, 670px);
  gap: 8px;
}
.supporter-profile-hero .church-profile-name h1 {
  width: 100%;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.08;
}
.supporter-profile-hero .church-profile-media {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
}
.supporter-profile-hero .church-profile-media .church-profile-logo {
  width: 104px;
  height: 104px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 18px #183c5c22;
}
.supporter-profile-hero .profile-meta {
  margin-top: 18px;
}
.supporter-profile-hero .profile-meta span {
  border: 1px solid #cadbe9;
  background: #ffffffc9;
  color: #43617d;
  font-size: 0.75rem;
}
.supporter-profile-hero .profile-location {
  color: #38516a;
  font-size: 0.88rem;
}
.supporter-profile-hero .church-badge.badge-verified {
  border-color: #a1cfad;
  background: #edf8f0;
  color: #166534;
}
.supporter-profile-hero .church-badge.badge-supporter {
  border-color: #cfd9e2;
  background: #f5f7fa;
  color: #576b7d;
}
.supporter-profile-hero .church-badge.badge-featured-supporter {
  border-color: #b4cde8;
  background: #edf4fe;
  color: #245d96;
}
body.featured-supporter-profile-page .profile-section,
body.featured-supporter-profile-page .sidebar-card {
  padding: 24px;
  border-color: #d6e2ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.featured-events-section {
  padding: 24px;
  border: 1px solid #bfd3e8;
  border-left: 4px solid #326fae;
  border-radius: 12px;
  background: #f3f8fe;
}
.church-event-card {
  overflow: hidden;
  grid-template-columns: 220px minmax(0, 1fr);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.church-event-card img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  align-self: stretch;
}
.church-event-card > div {
  padding: 18px 20px;
}
.church-event-card .church-event-date {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  color: #245d96;
  background: #edf4fe;
}

/* Footer and page utilities */
.site-footer {
  border: 0;
  background: #123c25;
}
.footer-inner {
  min-height: 88px;
  gap: 20px;
  padding-block: 20px;
  color: #d1dfd5;
  font-size: 0.78rem;
}
.footer-inner div {
  gap: 10px 18px;
}
.footer-inner a {
  color: #d1dfd5;
}
.footer-inner a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.featured-supporter-profile-page .site-footer {
  background: #183c5c;
}
.settings-control {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
}
.language-toggle {
  min-width: 56px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}
.language-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}
.back-to-top {
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.cookie-notice {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1000px) {
  .hero-layout {
    gap: 32px;
  }
  .church-card.church-card-supporter {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }
  .church-card-supporter .supporter-result-media {
    grid-row: 1 / 3;
    width: 60px;
  }
  .church-card-supporter .church-card-content {
    grid-column: 2 / -1;
  }
  .church-card-supporter .church-link {
    grid-column: 2;
    justify-self: start;
  }
  .church-card-supporter .save-church-button {
    grid-column: 3;
  }
}
@media (max-width: 800px) {
  .hero-layout,
  .about-content,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-card {
    max-width: none;
  }
  .directory-layout,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .directory-primary-search {
    grid-column: 1;
  }
  .filters,
  .church-sidebar {
    position: static;
  }
  .admin-dashboard-header,
  .admin-toolbar {
    align-items: stretch;
  }
  .admin-list-controls {
    justify-content: flex-start;
  }
}
@media (max-width: 750px) {
  body {
    padding-top: 64px;
  }
  .site-header,
  .site-header.has-mobile-menu .header-inner {
    min-height: 64px;
    padding-block: 0;
  }
  .header-inner {
    flex-direction: row;
    align-items: center;
  }
  .logo {
    align-self: auto;
  }
  .main-nav {
    display: none;
  }
  .site-header.has-mobile-menu .main-nav {
    display: none;
    top: 64px;
    padding: 12px;
    gap: 2px;
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-md);
  }
  .site-header.has-mobile-menu .main-nav.is-open {
    display: flex;
    flex-direction: column;
  }
  .mobile-menu-toggle {
    min-height: 40px;
    border-radius: 7px;
  }
  .mobile-menu-toggle.is-open {
    border-color: var(--border);
    background: #f5f8f6;
    color: var(--text);
  }
  .site-header .mobile-menu-toggle:focus-visible {
    outline: 3px solid var(--success-border);
    outline-offset: 3px;
  }
  .site-header.has-mobile-menu .main-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 12px;
    margin: 0;
    border-radius: 6px;
    font-size: 0.94rem;
    line-height: 1.4;
  }
  .site-header.has-mobile-menu .main-nav .nav-section-start {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }
  .site-header.has-mobile-menu .main-nav .supporter-nav-button {
    justify-content: space-between;
    min-height: 46px;
    margin-top: 10px;
    padding: 11px 14px;
    border: 1px solid var(--success-border);
    border-radius: 8px;
    background: var(--green-light);
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: normal;
  }
  .site-header.has-mobile-menu .main-nav .supporter-nav-button::after {
    content: "→";
    margin-left: 16px;
    font-size: 1.1rem;
  }
  .site-header.has-mobile-menu .main-nav .supporter-nav-button:hover,
  .site-header.has-mobile-menu .main-nav .supporter-nav-button:focus-visible {
    border-color: var(--green);
    background: var(--green-light);
  }
}
@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }
  .hero {
    padding: 36px 0;
  }
  .hero h1 {
    font-size: clamp(2.35rem, 10.4vw, 3.2rem);
    line-height: 1.06;
  }
  .hero-description {
    margin-top: 16px;
    font-size: 0.94rem;
  }
  .hero-card {
    padding: 25px;
    border-radius: 13px;
  }
  .hero-card h2 {
    font-size: 1.65rem;
  }
  .search-form {
    margin-top: 22px;
  }
  .search-form input,
  .directory-primary-search input {
    font-size: 16px;
  }
  .hero-actions {
    gap: 16px;
    font-size: 0.78rem;
  }
  .locations,
  .directory-steps,
  .about-section {
    padding: 38px 0;
  }
  .country-grid,
  .steps-grid {
    gap: 12px;
  }
  .country-card {
    padding: 20px;
  }
  .country-card .country-code {
    float: right;
    margin-left: 12px;
  }
  .about {
    padding: 34px 0;
  }
  .steps-grid article {
    padding: 16px 20px;
  }
  .directory-header {
    padding: 26px 0 22px;
  }
  .directory-header h1 {
    font-size: 1.9rem;
  }
  .directory-header p:last-of-type {
    font-size: 0.86rem;
  }
  .directory-breadcrumbs {
    margin-top: 14px;
    font-size: 0.72rem;
  }
  .directory {
    padding: 18px 0 40px;
  }
  .directory-layout {
    gap: 14px;
  }
  .directory-primary-search {
    flex-direction: row;
    gap: 0;
  }
  .directory-primary-search input {
    padding: 9px 10px;
    width: 100%;
  }
  .directory-primary-search button {
    min-width: 74px;
    max-width: 108px;
    padding: 9px 12px;
    font-size: 0.76rem;
    line-height: 1.3;
  }
  .mobile-filter-toggle {
    min-height: 40px;
    border-radius: 8px;
    text-align: left;
  }
  .results-header h2 {
    font-size: 1.03rem;
  }
  .results-header {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
  }
  .results-header > div:first-child {
    text-align: left;
  }
  .sort-control {
    width: auto;
    gap: 7px;
  }
  .sort-control label {
    font-size: 0.72rem;
  }
  .sort-control select {
    min-height: 38px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }
  .church-card,
  .church-card.church-card-supporter {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 17px;
  }
  .church-card .church-card-content,
  .church-card-supporter .church-card-content {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .church-card .church-link {
    grid-column: 1;
    grid-row: auto;
    width: auto;
    justify-self: stretch;
    text-align: center;
  }
  .church-card .save-church-button {
    grid-column: 2;
    grid-row: auto;
    width: auto;
  }
  .church-card-supporter .supporter-result-media {
    grid-row: 1;
    grid-column: 2;
    width: 52px;
    min-height: 58px;
    align-self: start;
  }
  .church-card-supporter .church-card-title {
    padding-right: 64px;
    min-height: 58px;
  }
  .church-card-supporter .church-card-content {
    grid-row: 1;
  }
  .church-card-supporter .supporter-result-logo {
    width: 32px;
    height: 32px;
  }
  .church-card-title h3 {
    font-size: 1rem;
  }
  .church-location {
    font-size: 0.8rem;
  }
  .featured-supporters {
    padding: 13px;
  }
  .featured-supporters-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .featured-supporters-heading > p {
    text-align: left;
    max-width: none;
  }
  .church-card.church-promotion-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 17px;
  }
  .church-promotion-card .supporter-ad-media {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    min-height: 42px;
  }
  .church-promotion-card .church-card-content {
    grid-column: 2;
  }
  .church-promotion-card .church-promotion-link {
    grid-column: 2;
    width: auto;
    text-align: left;
    justify-self: start;
    white-space: normal;
  }
  .submission-card,
  .contact-card,
  .admin-panel {
    padding: 20px;
  }
  .about-hero,
  .support-hero,
  .supporter-hero,
  .privacy-hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .admin-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .admin-tab:last-child {
    grid-column: 1 / -1;
  }
  .admin-tabs .admin-tab {
    padding: 9px;
    font-size: 0.78rem;
  }
  .admin-list-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .admin-search {
    grid-column: 1 / -1;
    width: 100%;
  }
  .admin-filter {
    min-width: 0;
  }
  .admin-filter select {
    width: 100%;
  }
  .church-profile-header {
    padding: 22px 0 26px;
  }
  .church-profile-content {
    padding: 24px 0 40px;
  }
  .church-profile.supporter-profile-hero {
    min-height: 270px;
    padding: 22px 19px;
    border-radius: 14px;
  }
  .church-profile.supporter-profile-hero::after {
    background: linear-gradient(
      180deg,
      rgba(248, 251, 255, 0.97) 0%,
      rgba(248, 251, 255, 0.88) 57%,
      rgba(248, 251, 255, 0.55) 100%
    );
  }
  .supporter-profile-hero .church-profile-name,
  .supporter-profile-hero .supporter-profile-kicker {
    max-width: calc(100% - 74px);
  }
  .supporter-profile-hero .church-profile-name h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.4rem);
    overflow-wrap: break-word;
  }
  .supporter-profile-hero .church-profile-media {
    top: 8px;
    right: 8px;
  }
  .supporter-profile-hero .church-profile-media .church-profile-logo {
    width: 76px;
    height: 76px;
    border-width: 3px;
  }
  .supporter-profile-hero .profile-meta {
    margin-top: 16px;
  }
  .supporter-profile-hero .profile-location {
    font-size: 0.79rem;
  }
  .profile-section,
  body.featured-supporter-profile-page .profile-section,
  body.featured-supporter-profile-page .sidebar-card {
    padding: 20px;
  }
  .featured-events-section {
    padding: 18px;
  }
  .church-event-card {
    grid-template-columns: 1fr;
  }
  .church-event-card img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .footer-inner {
    align-items: stretch;
    min-height: 0;
    gap: 13px;
    padding-block: 18px 16px;
    text-align: center;
  }
  .footer-inner div {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #ffffff20;
  }
  .footer-inner a {
    padding: 10px 5px;
    border-bottom: 1px solid #ffffff20;
    line-height: 1.3;
  }
  .footer-inner a:nth-child(odd) {
    border-right: 1px solid #ffffff20;
  }
  .footer-inner p {
    order: 2;
    margin: 0;
    font-size: 0.72rem;
    opacity: 0.8;
  }
}
@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;
  }
}
