/*
 * LA Churches theme. Layers on top of base.css, nav.css, footer.css,
 * theme-ubimissa.css, and page-specific CSS.
 *
 * Scoped to html.theme-lachurches so it is additive, not destructive.
 * Map and finder pages remain functional with original styling; this layer
 * re-skins typography, color, and the new homepage.
 *
 * Parish detail + adoration index live in theme-lachurches-parish.css.
 *
 * Authored 2026-04-18 per docs/DESIGN_SPEC.md.
 */

/* ── Document background and typography ─────────────────────────── */
html.theme-lachurches,
html.theme-lachurches body {
  background: var(--lac-bg);
  color: var(--lac-ink);
  font-family: var(--lac-serif);
  font-size: var(--lac-text-md);
  line-height: var(--lac-leading-normal);
  font-feature-settings: "liga", "kern";
  -webkit-font-smoothing: antialiased;
}

html.theme-lachurches body.loaded,
html.theme-lachurches body {
  opacity: 1;
}

html.theme-lachurches { background: var(--lac-bg) !important; }

html.theme-lachurches h1,
html.theme-lachurches h2,
html.theme-lachurches h3,
html.theme-lachurches .lac-display {
  font-family: var(--lac-display);
  font-weight: 700;
  color: var(--lac-ink);
  letter-spacing: 0.02em;
}

html.theme-lachurches a {
  color: var(--lac-pacific);
  text-decoration-color: var(--lac-rule);
  text-underline-offset: 2px;
}

html.theme-lachurches a:hover { color: var(--lac-gold-deep); }

html.theme-lachurches :focus-visible {
  outline: var(--lac-focus);
  outline-offset: 2px;
  border-radius: var(--lac-radius-sm);
}

/* ── LA Homepage surfaces ──────────────────────────────────────── */

.lac-home {
  background: var(--lac-bg);
  min-height: 100vh;
  padding: 0 var(--lac-space-5);
}

.lac-hero {
  max-width: var(--lac-col-wide);
  margin: 0 auto;
  padding: var(--lac-space-8) 0 var(--lac-space-6);
  text-align: center;
  border-bottom: 1px solid var(--lac-rule);
}

.lac-wordmark {
  font-family: var(--lac-display);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 52px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--lac-ink);
  margin: 0 0 var(--lac-space-4);
  line-height: 1.05;
}

.lac-wordmark .lac-rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--lac-gold);
  vertical-align: middle;
  margin: 0 var(--lac-space-3);
}

.lac-hero-subtitle {
  font-family: var(--lac-serif);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--lac-ink-2);
  max-width: var(--lac-col-prose);
  margin: 0 auto var(--lac-space-5);
  line-height: var(--lac-leading-normal);
}

.lac-stat-row {
  font-family: var(--lac-display);
  font-size: var(--lac-text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lac-ink-2);
  margin-bottom: var(--lac-space-6);
}
.lac-stat-row .sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lac-gold);
  vertical-align: middle;
  margin: 0 var(--lac-space-3);
}

.lac-cta-row {
  display: flex;
  gap: var(--lac-space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--lac-space-5);
}

.lac-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--lac-space-2);
  padding: 14px 28px;
  font-family: var(--lac-display);
  font-size: var(--lac-text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--lac-ink);
  color: var(--lac-bg);
  text-decoration: none;
  border: 1px solid var(--lac-ink);
  border-radius: var(--lac-radius-sm);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.lac-btn:hover {
  background: var(--lac-gold-deep);
  color: var(--lac-bg);
  border-color: var(--lac-gold-deep);
}

.lac-btn-ghost {
  background: transparent;
  color: var(--lac-ink);
  border: 1px solid var(--lac-rule);
}
.lac-btn-ghost:hover {
  background: var(--lac-bg-warm);
  border-color: var(--lac-gold);
  color: var(--lac-ink);
}

/* ── Live Mass panel on home ──────────────────────────────────── */

.lac-live-panel {
  max-width: var(--lac-col-wide);
  margin: 0 auto;
  padding: var(--lac-space-7) 0;
}

.lac-live-panel h2 {
  font-size: var(--lac-text-xl);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--lac-ink);
  margin: 0 0 var(--lac-space-2);
  font-weight: 700;
}

.lac-live-panel .lac-live-note {
  font-family: var(--lac-serif);
  font-style: italic;
  color: var(--lac-ink-2);
  text-align: center;
  margin: 0 0 var(--lac-space-5);
  font-size: var(--lac-text-sm);
}

.lac-live-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--lac-rule);
}

.lac-live-list > li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--lac-space-4);
  align-items: baseline;
  padding: var(--lac-space-4) 0;
  border-bottom: 1px solid var(--lac-rule);
}

.lac-live-time {
  font-family: var(--lac-serif);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: var(--lac-text-lg);
  color: var(--lac-ink);
}

.lac-live-parish {
  font-family: var(--lac-display);
  font-size: var(--lac-text-md);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lac-live-parish a { color: var(--lac-ink); text-decoration: none; }
.lac-live-parish a:hover { color: var(--lac-gold-deep); }

.lac-live-meta {
  display: block;
  font-family: var(--lac-serif);
  font-style: italic;
  font-size: var(--lac-text-sm);
  color: var(--lac-ink-2);
  margin-top: 2px;
}

.lac-live-badge {
  font-family: var(--lac-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lac-gold-deep);
  border: 1px solid var(--lac-gold);
  padding: 2px 6px;
  border-radius: var(--lac-radius-sm);
}

.lac-live-empty {
  text-align: center;
  font-style: italic;
  color: var(--lac-ink-2);
  padding: var(--lac-space-6);
}

/* ── Hairline: universal .lac-hr ──────────────────────────────── */
.lac-hr {
  border: none;
  border-top: 1px solid var(--lac-gold);
  margin: var(--lac-space-6) 0;
  max-width: 120px;
}

/* ── Prefers-reduced-motion respect (design spec 7) ────────────── */
@media (prefers-reduced-motion: reduce) {
  html.theme-lachurches * {
    animation: none !important;
    transition: none !important;
  }
}
