/*
 * parish-tail.css — the sections the server renders once and the client
 * carries across hydration: the questions this parish is asked, the
 * neighbouring parishes, the duty-of-care line, and the breadcrumb.
 *
 * They live in their own sheet because they are styled in two homes. Before
 * the client runs they sit inside .lac-parish-ssr; after it runs they are
 * re-attached inside .lac-parish. Every selector below is written to hold in
 * both, so the page never changes shape as it hydrates.
 */

.lac-parish-tail {
  margin-top: var(--lac-space-7);
}

.lac-parish-tail h2 {
  font-family: var(--lac-display);
  font-size: var(--lac-text-2xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lac-ink);
  margin: var(--lac-space-7) 0 var(--lac-space-4);
  padding-bottom: var(--lac-space-2);
  border-bottom: 1px solid var(--lac-gold);
  font-weight: 700;
}

/* ── The questions, answered ──────────────────────────────────── */

.lac-faq-list { margin: 0; padding: 0; }

.lac-faq-row {
  padding: var(--lac-space-4) 0;
  border-bottom: 1px dotted var(--lac-rule);
}
.lac-faq-row:last-child { border-bottom: 0; }

.lac-faq-list dt {
  font-family: var(--lac-serif);
  font-size: var(--lac-text-md);
  font-weight: 700;
  color: var(--lac-ink);
  letter-spacing: 0.01em;
  margin: 0 0 var(--lac-space-2);
}

.lac-faq-list dd {
  margin: 0;
  font-family: var(--lac-serif);
  font-size: var(--lac-text-md);
  line-height: 1.7;
  color: var(--lac-ink-2);
  max-width: 62ch;
}

/* ── Neighbouring parishes ────────────────────────────────────── */

.lac-parish-tail .lac-nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 var(--lac-space-5);
}

.lac-parish-tail .lac-nearby-list li {
  padding: var(--lac-space-3) 0;
  border-bottom: 1px dotted var(--lac-rule);
}

/* The name gets its own line: in a three-column grid a long dedication and a
   distance on one baseline turned every row into a four-line paragraph. */
.lac-parish-tail .lac-nearby-list a {
  display: block;
  font-family: var(--lac-serif);
  font-size: var(--lac-text-md);
  color: var(--lac-pacific);
  text-decoration: none;
}
.lac-parish-tail .lac-nearby-list a:hover { text-decoration: underline; }

.lac-parish-tail .lac-dir-city,
.lac-parish-tail .lac-nearby-dist {
  font-family: var(--lac-display);
  font-size: var(--lac-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lac-ink-3);
  white-space: nowrap;
  line-height: 1.6;
}
.lac-parish-tail .lac-nearby-dist::before { content: "\00b7"; margin: 0 0.4em 0 0.1em; color: var(--lac-rule); }

.lac-nearby-more {
  margin: var(--lac-space-4) 0 0;
  font-family: var(--lac-display);
  font-size: var(--lac-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lac-nearby-more a { color: var(--lac-pacific); text-decoration: none; }
.lac-nearby-more a:hover { color: var(--lac-gold-deep); }

/* ── Schedules can change ─────────────────────────────────────── */

.lac-parish-tail .lac-sched-disclaimer {
  margin: var(--lac-space-6) 0 0;
  padding: var(--lac-space-4);
  border-left: 2px solid var(--lac-gold);
  background: var(--lac-bg-warm);
  font-family: var(--lac-serif);
  font-size: var(--lac-text-sm);
  line-height: 1.7;
  color: var(--lac-ink-2);
  max-width: 62ch;
}
.lac-parish-tail .lac-sched-disclaimer a { color: var(--lac-pacific); }

/* ── Breadcrumb, drawn by the client renderer ─────────────────── */

.lac-parish-crumb {
  font-family: var(--lac-display);
  font-size: var(--lac-text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lac-ink-3);
  margin: 0 0 var(--lac-space-5);
}
.lac-parish-crumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--lac-space-1);
}
.lac-parish-crumb li { display: inline-flex; align-items: center; }
.lac-parish-crumb li + li::before {
  content: "\203A";
  color: var(--lac-gold);
  margin: 0 var(--lac-space-2) 0 0;
}
.lac-parish-crumb a { color: var(--lac-ink-2); text-decoration: none; }
.lac-parish-crumb a:hover { color: var(--lac-gold-deep); }
.lac-parish-crumb [aria-current="page"] { color: var(--lac-ink-3); }

@media (max-width: 600px) {
  .lac-parish-tail .lac-nearby-list { grid-template-columns: 1fr; }
  .lac-faq-list dt { font-size: var(--lac-text-sm); }
}
