/* ---------- Parishes & Archdeaconries ---------- */
.page-hero--short { min-height: min(88vh, 820px); }
.ph-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 60px; }
.ph-stats { display: flex; gap: 0; margin: 0; }
.ph-stats div { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.25); }
.ph-stats div:first-child { padding-left: 0; border-left: 0; }
.ph-stats dt { font: 600 11px/1 'Manrope', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #f3c47a; }
.ph-stats dd { margin: 8px 0 0; font: 500 clamp(40px, 4.4vw, 64px)/1 'Fraunces', Georgia, serif; letter-spacing: -.03em; }

.parishes { background: #fff; }

/* ---------- Finder (sticky search + filters) ---------- */
.finder { position: sticky; top: var(--nav-offset, 0px); z-index: 25; padding: 14px 0; background: rgba(255,255,255,.88);
    backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid var(--line); transition: top .45s cubic-bezier(.2,.75,.15,1), box-shadow .3s ease; }
.finder.is-stuck { box-shadow: 0 16px 30px -24px rgba(20,10,8,.4); }
.finder-inner { display: flex; align-items: center; gap: 16px; }
.search { position: relative; flex: 0 1 380px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px;
    background: #faf6f0; border: 1px solid var(--line); color: var(--ink-soft); transition: border-color .25s, box-shadow .25s, background .25s; }
.search:focus-within { border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(180,35,42,.12); }
.search input { flex: 1; min-width: 0; padding: 13px 0; border: 0; background: none; color: var(--ink); font: 500 15px/1.2 'Manrope', sans-serif; }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(26,20,18,.08); color: var(--ink); }
.search-clear[hidden] { display: none; }
.chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); cursor: pointer; font: 600 13.5px/1 'Manrope', sans-serif; transition: background .25s, color .25s, border-color .25s; }
.fchip span { font-weight: 500; color: var(--ink-soft); transition: color .25s; }
.fchip:hover { border-color: rgba(26,20,18,.3); }
.fchip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip.is-on span { color: #f3c47a; }
.fchip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Directory layout ---------- */
.dir { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(30px, 4vw, 60px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(80px, 10vw, 130px); }
.dir-index { position: sticky; top: calc(var(--nav-offset, 0px) + 100px); align-self: start; transition: top .45s cubic-bezier(.2,.75,.15,1); }
.dir-index-title { margin: 0 0 12px; font: 700 11px/1 'Manrope', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.dir-index ol { list-style: none; margin: 0 0 28px; padding: 0; border-left: 1px solid var(--line); }
.dir-index a { position: relative; display: flex; gap: 12px; padding: 9px 0 9px 18px; color: var(--ink-soft); text-decoration: none;
    font: 500 15px/1.3 'Manrope', sans-serif; transition: color .25s ease; }
.dir-index a span { font: italic 400 14px/1.3 'Fraunces', Georgia, serif; color: var(--red); opacity: .6; }
.dir-index a::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px; background: var(--red); transform: scaleY(0); transition: transform .3s ease; }
.dir-index a:hover { color: var(--ink); }
.dir-index a.is-active { color: var(--ink); font-weight: 700; }
.dir-index a.is-active::before { transform: scaleY(1); }
.dir-index a.is-active span { opacity: 1; }
.dir-index a.is-empty { opacity: .35; }

.office { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; border-radius: 20px; background: #faf6f0; border: 1px solid var(--line); }
.office-photo { width: 64px; height: 80px; overflow: hidden; border-radius: 12px; }
.office-photo img { width: 100%; height: 100%; object-fit: cover; }
.office-text-wrap { min-width: 0; }
.office p { margin: 0; }
.office-role { font: 700 10.5px/1.3 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.office-name { margin-top: 4px !important; font: 500 17px/1.2 'Fraunces', Georgia, serif; }
.office-text { margin-top: 6px !important; font: 400 13px/1.5 'Manrope', sans-serif; color: var(--ink-soft); }
.office a { display: inline-block; margin-top: 8px; color: var(--red); font: 600 13px/1 'Manrope', sans-serif; text-decoration: none; }

.results { margin: 0 0 18px; font: 500 14px/1 'Manrope', sans-serif; color: var(--ink-soft); }

/* ---------- Archdeaconry ---------- */
.arch { scroll-margin-top: calc(var(--nav-offset, 0px) + 100px); padding-bottom: clamp(40px, 5vw, 64px); }
.arch[hidden] { display: none; }
.arch-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-bottom: 18px; margin-bottom: 18px;
    border-bottom: 1px solid var(--line); }
.arch-num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #f3c47a;
    font: italic 400 20px/1 'Fraunces', Georgia, serif; }
.arch-head h2 { margin: 0 0 4px; font: 500 clamp(26px, 2.6vw, 38px)/1.1 'Fraunces', Georgia, serif; letter-spacing: -.02em; }
.arch-head p { margin: 0; font: 400 15px/1.5 'Manrope', sans-serif; color: var(--ink-soft); }
.arch-head strong { font-weight: 600; color: var(--ink); }
.arch-count { padding: 8px 14px; border-radius: 999px; background: #faf6f0; font: 600 13px/1 'Manrope', sans-serif; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Parish cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.pcard { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border-radius: 20px;
    background: #fff; border: 1px solid var(--line);
    transition: border-color .3s ease, box-shadow .3s ease, translate .35s cubic-bezier(.2,.75,.15,1); }
.pcard:hover { border-color: rgba(180,35,42,.35); box-shadow: 0 24px 40px -28px rgba(60,20,15,.45); translate: 0 -3px; }
.pcard[hidden] { display: none; }
.pcard-photo { width: 84px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #f3ebdf; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.pcard:hover .pcard-photo img { scale: 1.06; }
.pcard-mono { width: 100%; height: 100%; display: grid; place-items: center; font: italic 400 30px/1 'Fraunces', Georgia, serif; color: var(--red);
    background:
        radial-gradient(circle at 30% 20%, rgba(243,196,122,.45), rgba(243,196,122,0) 60%),
        linear-gradient(160deg, #faf3ea, #f1e4d2); }
.pcard-body { display: grid; gap: 4px; padding-top: 2px; }
.pcard-area { font: 700 10.5px/1.3 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pcard-name { margin: 0; font: 500 19px/1.2 'Fraunces', Georgia, serif; letter-spacing: -.01em; }
.pcard-clergy { margin: 2px 0 0; font: 400 14px/1.45 'Manrope', sans-serif; color: var(--ink-soft); }
.pcard-map { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 8px; padding: 6px 11px; border-radius: 999px;
    background: #faf6f0; color: var(--ink); text-decoration: none; font: 600 12.5px/1 'Manrope', sans-serif; transition: background .25s, color .25s; }
.pcard-map:hover { background: var(--red); color: #fff; }
mark { background: rgba(243,196,122,.55); color: inherit; border-radius: 3px; padding: 0 1px; }

.also { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #faf6f0; }
.also[hidden] { display: none; }
.also p { margin: 0 0 10px; font: 700 11px/1 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.also li { display: flex; align-items: center; gap: 10px; font: 500 15px/1.2 'Fraunces', Georgia, serif; }
.also li[hidden] { display: none; }
.also img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }

/* Card entrance (cards outside the first screen rise in as you scroll) */
html.fx .pcard.is-pending { opacity: 0; translate: 0 24px; }
html.fx .pcard.is-shown { opacity: 1; translate: 0 0; transition: opacity .6s ease var(--d, 0s), translate .7s cubic-bezier(.2,.75,.15,1) var(--d, 0s),
    border-color .3s ease, box-shadow .3s ease; }

.empty { padding: 50px 30px; border-radius: 24px; text-align: center; background: #faf6f0; }
.empty[hidden] { display: none; }
.empty-title { margin: 0 0 8px; font: 500 28px/1.2 'Fraunces', Georgia, serif; }
.empty p { margin: 0 0 18px; color: var(--ink-soft); font: 400 15px/1.6 'Manrope', sans-serif; }
.empty a { color: var(--red); }
.empty .btn { border: 0; cursor: pointer; }

/* ---------- Bottom call to action ---------- */
.find-cta { padding: 0 0 clamp(90px, 11vw, 140px); }
.find-cta-inner { display: grid; justify-items: center; text-align: center; padding: clamp(50px, 7vw, 90px) clamp(20px, 4vw, 48px);
    border-radius: clamp(28px, 4vw, 48px); background: radial-gradient(70% 90% at 50% 0%, rgba(243,196,122,.35), rgba(243,196,122,0) 70%), #faf6f0; }
.find-cta .lead { margin-left: auto; margin-right: auto; }
.find-cta .btn-row { justify-content: center; }

@media (max-width: 1000px) {
    .dir { grid-template-columns: 1fr; }
    .dir-index { display: none; }
}
@media (max-width: 760px) {
    .finder-inner { flex-direction: column; align-items: stretch; gap: 10px; }
    .search { flex-basis: auto; }
    .arch-head { grid-template-columns: auto minmax(0, 1fr); }
    .arch-count { grid-column: 2; justify-self: start; }
    .arch-num { width: 42px; height: 42px; font-size: 17px; }
    .ph-stats div { padding: 0 18px; }
}
/* "Archdeaconries" is a long word: keep the title inside the screen on phones */
.page-hero--short .ph-title { font-size: clamp(46px, 10.5vw, 170px); }
