/*
Theme Name: St. Demetrios GOC
Theme URI: https://www.stdemetriosmd.org/
Author: Parish Web Team
Description: Mobile-first custom theme for St. Demetrios Greek Orthodox Church, Baltimore MD. Light-blue and gold palette, freshened Greek Orthodox design.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: stdemetrios
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --blue-900: #0b3a66;
  --blue-800: #124a80;
  --blue-700: #1a5f9e;
  --blue-600: #2f7fc1;
  --blue-500: #4a90d9;
  --blue-300: #9cc6ec;
  --blue-100: #dcecf9;
  --blue-50:  #eef6fc;

  --gold-700: #9c7c1e;
  --gold-600: #c9a227;
  --gold-500: #d4af37;
  --gold-300: #e8d38a;
  --gold-100: #f6edcf;

  --ink: #1f2933;
  --ink-soft: #48525c;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7fafd;

  --maxw: 1140px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(11,58,102,.08);
  --shadow-md: 0 6px 24px rgba(11,58,102,.12);

  --font-head: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-700); text-decoration: none; }
a:hover, a:focus { color: var(--blue-900); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--blue-900);
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.1rem;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-900); color: #fff; padding: .6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Visible keyboard focus for all interactive elements (a11y).
   :where() keeps specificity at 0 so component styles still win on color. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   Top utility bar
   ============================================================ */
.topbar {
  background: var(--blue-900);
  color: var(--blue-100);
  font-size: .85rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: .35rem 1.25rem;
  align-items: center; justify-content: center;
  padding-block: .45rem;
}
.topbar a { color: #fff; }
.topbar .sep { color: var(--blue-500); }

/* ============================================================
   Header / brand
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 3px solid var(--gold-500);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: .85rem;
  padding-block: .6rem;
}
.brand {
  display: flex; align-items: center; gap: .8rem;
  flex: 1 1 auto; min-width: 0;
}
.brand__icon { width: 52px; height: auto; flex: 0 0 auto; }
.brand__text { min-width: 0; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue-900);
  font-size: clamp(1.05rem, 3.4vw, 1.6rem);
  line-height: 1.1;
  display: block;
}
.brand__tag {
  color: var(--gold-700);
  font-size: clamp(.68rem, 2vw, .8rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
  margin-top: .15rem;
}
.brand a { text-decoration: none; color: inherit; }

/* Nav toggle (hamburger) */
.nav-toggle {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-700); color: #fff;
  border: 0; border-radius: 8px; cursor: pointer;
  padding: .55rem .8rem; font-size: .95rem; font-family: var(--font-body);
}
.nav-toggle__bars { width: 20px; height: 14px; position: relative; display: inline-block; }
.nav-toggle__bars span, .nav-toggle__bars span::before, .nav-toggle__bars span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars span { top: 6px; }
.nav-toggle__bars span::before { top: -6px; }
.nav-toggle__bars span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Primary navigation
   ============================================================ */
.primary-nav { background: var(--blue-700); }
.primary-nav .container { padding-inline: 0; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; color: #fff; text-decoration: none;
  padding: .8rem 1.1rem; font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.menu a:hover, .menu a:focus,
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a {
  background: var(--blue-800); color: var(--gold-300);
}
.menu .sub-menu { list-style: none; margin: 0; padding: 0; background: var(--blue-800); }
.menu .sub-menu a { padding-left: 2.2rem; font-size: .95rem; color: var(--blue-100); }
.menu .sub-menu .sub-menu { background: var(--blue-900); }
.menu .sub-menu .sub-menu a { padding-left: 3.3rem; }

/* Mobile menu collapse */
.primary-nav .menu-wrap {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.primary-nav.is-open .menu-wrap { max-height: 120vh; overflow: auto; }

/* Donate CTA button in the nav bar */
.nav-cta {
  display: block; text-align: center; text-decoration: none;
  margin: .7rem 1.1rem 1rem; padding: .75rem 1.2rem;
  background: var(--gold-500); color: var(--blue-900);
  font-weight: 700; letter-spacing: .02em; border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .12s ease;
}
.nav-cta:hover, .nav-cta:focus {
  background: var(--gold-600); color: var(--blue-900);
  text-decoration: none; transform: translateY(-1px);
}

/* Third-party form embeds (donation / stewardship pledge).
   Reserves space and shows a loading message so there is no blank gap or
   layout shift while the external form iframe fetches. */
.ministry-form-embed { position: relative; min-height: 640px; }
.ministry-form-embed::before {
  content: "Loading secure form\2026";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #6b6b6b; font-style: italic; font-size: 1.05rem;
}
.ministry-form-embed iframe {
  position: relative; width: 100%; min-height: 640px; border: 0;
}

/* ============================================================
   Layout: main + sidebar
   ============================================================ */
.site-main { padding-block: 1.5rem 2.5rem; }
.layout {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.content-area { min-width: 0; }
.sidebar { min-width: 0; }

.page-header {
  border-bottom: 2px solid var(--gold-300);
  padding-bottom: .6rem; margin-bottom: 1.25rem;
}
.page-header .breadcrumbs { font-size: .82rem; color: var(--ink-soft); margin-bottom: .35rem; }
.page-header .breadcrumbs a { color: var(--blue-600); }

/* Entry content typography & legacy fixups */
.entry-content { overflow-wrap: break-word; }
.entry-content img { border-radius: 6px; }
.entry-content h2 { margin-top: 1.6rem; }
.entry-content h3 { margin-top: 1.3rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* Legacy tables -> responsive */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.entry-content table, .legacy-table { border-collapse: collapse; width: 100%; }
.entry-content td, .entry-content th { padding: .5rem .65rem; vertical-align: top; }
/* Only genuine data tables (border>0 in source) get visible cell borders;
   borderless MODX layout tables stay invisible as designed. */
.legacy-table.data-table td, .legacy-table.data-table th { border: 1px solid var(--line); }

/* Legacy float helpers from old TinyMCE content */
.img_left, .img_left_25, .img_left_50, .img-left {
  float: left; margin: 0 1.1rem 1rem 0; max-width: 42%; height: auto;
}
.img_right, .img_right_25, .img-right {
  float: right; margin: 0 0 1rem 1.1rem; max-width: 42%; height: auto;
}
.img_center { display: block; float: none; margin: 1rem auto; max-width: 100%; height: auto; }
@media (max-width: 560px) {
  .img_left, .img_left_25, .img_left_50, .img-left,
  .img_right, .img_right_25, .img-right {
    float: none; display: block; margin: 0 auto 1rem; max-width: 100%;
  }
}

/* Iframes (calendar) fluid */
.entry-content iframe { max-width: 100%; }

/* Buttons */
.btn {
  display: inline-block; background: var(--gold-500); color: var(--blue-900);
  padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--gold-600); color: #fff; text-decoration: none; }
.btn--blue { background: var(--blue-700); color: #fff; }
.btn--blue:hover { background: var(--blue-900); color: #fff; }

/* Contact Us page (page-contact-us.php) */
.contact-lede {
  max-width: 68ch; font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 2.2rem;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 1.8rem;
  align-items: stretch; margin: 0 0 2.6rem;
}
.contact-card {
  background: var(--blue-900); color: #fff; border-radius: var(--radius);
  padding: 1.8rem 1.7rem; box-shadow: var(--shadow-md);
}
.contact-card h2 {
  color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 1.2rem;
}
.contact-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.contact-list li { padding: .7rem 0; }
.contact-list li + li { border-top: 1px solid rgba(255,255,255,.1); }
.contact-list .ci { flex: none; width: 24px; height: 24px; color: var(--gold-500); margin-top: .1rem; }
.contact-list .ci svg { width: 24px; height: 24px; display: block; }
.contact-list .lbl {
  display: block; font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold-300); margin-bottom: .15rem;
}
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-list a:hover { color: #fff; border-color: var(--gold-500); text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.contact-map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); min-height: 360px; background: var(--blue-100);
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.contact-map-link {
  position: absolute; right: .6rem; bottom: .6rem;
  background: rgba(255,255,255,.94); color: var(--blue-900);
  font: 600 .8rem/1 var(--font-body); text-decoration: none;
  padding: .45rem .7rem; border-radius: 6px; box-shadow: var(--shadow-sm);
}
.contact-map-link:hover { background: #fff; color: var(--blue-900); text-decoration: none; }

.contact-staff h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 1.1rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--gold-500);
}
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.staff-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500); border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.staff-card h3 { margin: 0 0 .2rem; color: var(--blue-900); }
.staff-card .role { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .9rem; }
.staff-card p { margin: .25rem 0; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
}

/* Parish Council page */
.council-intro { max-width: 72ch; color: var(--ink-soft); }
.council-heading {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.2rem 0 1.1rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--gold-500);
}
.council-board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin: 0 0 1rem; list-style: none; padding: 0;
}
.council-officer {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500); border-radius: var(--radius);
  padding: 1.05rem 1.1rem; text-align: center;
}
.council-officer .role {
  display: block; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-700); margin-bottom: .35rem;
}
.council-officer .name {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 1.15rem; line-height: 1.25; color: var(--blue-900);
}
.council-members {
  list-style: none; margin: 0 0 1.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0 1.2rem;
}
.council-members li {
  position: relative; padding: .55rem .2rem .55rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.council-members li::before {
  content: ""; position: absolute; left: .25rem; top: 1.05rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500);
}
.council-docs { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* Philoptochos membership page */
.philo-note { font-size: .92rem; color: var(--ink-soft); font-style: italic; max-width: 72ch; }
.philo-address {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500); border-radius: var(--radius);
  padding: .9rem 1.1rem; display: inline-block; line-height: 1.5;
}

/* Sidebar widgets */
.widget { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.widget__title { font-family: var(--font-head); color: var(--blue-800); font-size: 1.2rem; margin: 0 0 .6rem; padding-bottom: .35rem; border-bottom: 2px solid var(--gold-300); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0; }
.widget li a { display: block; padding: .4rem 0; border-bottom: 1px solid var(--line); color: var(--blue-700); }
.widget li:last-child a { border-bottom: 0; }

/* Child-page cards (section landing pages) */
.subpage-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
.subpage-card { display: block; background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); transition: box-shadow .15s ease, transform .15s ease; }
.subpage-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.subpage-card h3 { margin: 0 0 .25rem; color: var(--blue-800); }
.subpage-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--blue-900); color: var(--blue-100); margin-top: 2rem; }
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.75rem;
  padding-block: 2.25rem;
}
.footer-col h3 { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.footer-col p { margin: 0 0 .4rem; color: var(--blue-100); font-size: .95rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { width: 48px; }
.footer-goa img { width: 120px; background: #fff; border-radius: 8px; padding: 6px; }
.footer-col--logo .footer-goa { margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding-block: 1rem; font-size: .82rem; color: var(--blue-300); }

/* ============================================================
   Front page (home) hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: #fff; text-align: center; padding: 2.75rem 1rem;
}
.hero img.hero__icon { width: 96px; margin-bottom: .5rem; }
.hero h1 { color: #fff; margin-bottom: .35rem; }
.hero p { color: var(--blue-100); max-width: 640px; margin-inline: auto; }
.hero .btn { margin-top: 1rem; }

/* ============================================================
   Responsive: tablet & up
   ============================================================ */
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-col--logo { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; }
  .subpage-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .primary-nav .menu-wrap {
    max-height: none !important; overflow: visible;
    display: flex; align-items: center;
  }
  .primary-nav .menu-wrap .menu { flex: 1 1 auto; }
  .menu { display: flex; flex-wrap: wrap; }
  .menu > li { position: relative; }
  .menu > li > a { border-bottom: 0; padding-inline: .72rem; font-size: .94rem; }
  .nav-cta { flex: 0 0 auto; margin: .35rem .55rem .35rem auto; padding: .5rem 1rem; font-size: .94rem; }
  .menu .sub-menu {
    position: absolute; top: 0; left: 100%; min-width: 230px;
    box-shadow: var(--shadow-md); z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }
  .menu > li > .sub-menu { top: 100%; left: 0; }
  .menu .sub-menu li { position: relative; }
  .menu li:hover > .sub-menu,
  .menu li:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .menu .sub-menu a { padding-left: 1.1rem; }
  /* caret marking a dropdown item that opens a side flyout (e.g. Our Faith) */
  .menu .sub-menu > li.menu-item-has-children > a { padding-right: 2rem; }
  .menu .sub-menu > li.menu-item-has-children > a::after {
    content: "\203A"; position: absolute; right: 1rem; top: 50%;
    transform: translateY(-50%); font-size: 1.15em; line-height: 1; color: var(--gold-300);
  }

  .layout.has-sidebar { grid-template-columns: minmax(0,1fr) 300px; }
}

/* ============================================================
   Site alert banner (mu-plugin: stdemetrios-alert-banner)
   Renders at the very top of <body>, above the topbar.
   ============================================================ */
.site-alert {
  font-family: var(--font-body);
  color: #fff;
  background: var(--blue-800, #124a80);
}
.site-alert--info    { background: var(--blue-800, #124a80); }
.site-alert--warning { background: var(--gold-700, #9c7c1e); }
.site-alert--urgent  { background: #b3261e; }
.site-alert__inner {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1.25rem; min-height: 44px;
}
.site-alert__icon { font-size: 1.15rem; line-height: 1; flex: none; }
.site-alert__msg {
  margin: 0; flex: 1; font-size: .95rem; line-height: 1.4; font-weight: 500;
}
.site-alert__msg a { color: #fff; text-decoration: underline; }
.site-alert__btn {
  display: inline-block; margin-left: .5rem; padding: .28rem .7rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px; font-size: .85rem; font-weight: 600;
  text-decoration: none !important; white-space: nowrap;
}
.site-alert__btn:hover { background: #fff; color: var(--blue-900); border-color: #fff; }
.site-alert--warning .site-alert__btn:hover { color: var(--gold-700, #9c7c1e); }
.site-alert--urgent  .site-alert__btn:hover { color: #b3261e; }
.site-alert__close {
  flex: none; background: transparent; border: 0; color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 .25rem;
  opacity: .85;
}
.site-alert__close:hover { opacity: 1; }
@media (max-width: 560px) {
  .site-alert__inner { align-items: flex-start; padding: .55rem .9rem; }
  .site-alert__msg { font-size: .9rem; }
  .site-alert__btn { display: inline-block; margin: .35rem 0 0; }
}

/* ---- "This Week" auto News entry (single-post schedule) ---------------- */
.wa-intro { color: var(--ink-soft); }
.wa-week { margin: 1.4rem 0 0; }
.wa-day { margin: 0 0 1.15rem; padding: 0 0 1.1rem; border-bottom: 1px solid var(--line); }
.wa-day:last-child { border-bottom: 0; }
.wa-day__h {
  margin: 0 0 .55rem; font-family: var(--font-head); color: var(--blue-900);
  font-size: 1.18rem; letter-spacing: .2px;
}
.wa-list { list-style: none; margin: 0; padding: 0; }
.wa-item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem;
  padding: .3rem 0; border-top: 1px dotted #edf1f6;
}
.wa-item:first-child { border-top: 0; }
.wa-time {
  flex: 0 0 auto; min-width: 8.5rem; font-weight: 600; color: var(--gold-700);
  font-variant-numeric: tabular-nums;
}
.wa-title { color: var(--ink); }
.wa-loc { color: var(--ink-soft); font-size: .92em; }
@media (max-width: 560px) {
  .wa-time { min-width: 0; flex-basis: 100%; color: var(--gold-700); }
  .wa-item { padding: .45rem 0; }
}

/* News single ------------------------------------------------------------ */
.news-single__meta { margin: 0 0 .2rem; color: var(--gold-700); font-weight: 600; letter-spacing: .3px; }
.news-single__media { margin: 0 0 1.2rem; }
.news-single__media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.news-single__back { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ============================================================
   Contact form ([church_contact_form])
   ============================================================ */
.church-form { max-width: 640px; margin: 1.5rem 0; }
.church-form__row { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1rem; }
.church-form__row label { font-weight: 600; color: var(--blue-900); }
.church-form input[type="text"],
.church-form input[type="email"],
.church-form textarea {
  width: 100%; padding: .6rem .7rem; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.church-form input:focus, .church-form textarea:focus { border-color: var(--blue-700); outline: none; }
.church-form [aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }
.church-form textarea { resize: vertical; min-height: 140px; }
.church-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.church-form__actions { margin: .5rem 0 0; }
.church-form__note {
  padding: .8rem 1rem; border-radius: var(--radius); margin: 0 0 1.2rem; font-weight: 600;
}
.church-form__note--ok  { background: #eafaf1; border: 1px solid #58c68a; color: #1e7a48; }
.church-form__note--err { background: #fdf3f2; border: 1px solid #e2998f; color: #b23b2c; }
