:root {
    --clergy-navy: #071b42;
    --clergy-blue: #168ed3;
    --clergy-sky: #eaf6ff;
    --clergy-gold: #d9a83a;
    --clergy-ink: #273a55;
    --clergy-muted: #63728a;
    --clergy-line: #dce8f3;
}

html { scroll-behavior: smooth; }
.clergy-native-page { background: #f7faff; }
.clergy-native-page .about-desktop-nav a::after { background: var(--clergy-blue); }

.clergy-native-hero {
    position: relative;
    min-height: 460px;
    display: grid;
    align-items: end;
    justify-items: center;
    overflow: hidden;
    color: #fff;
    background: #071b42;
}

.clergy-native-hero::before { position: absolute; top: -170px; right: -120px; width: 470px; height: 470px; background: radial-gradient(circle, rgba(57, 173, 236, .34), transparent 68%); border-radius: 50%; content: ""; }
.clergy-native-hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, #35b3ed, transparent); content: ""; }
.clergy-native-hero__inner { position: relative; z-index: 1; width: calc(100% - 80px); max-width: none; padding: 28px 0 32px; text-align: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.clergy-native-hero__inner > * { width: 100%; margin-left: auto; margin-right: auto; }
.clergy-native-breadcrumbs { margin-bottom: 14px; display: flex; justify-content: center; gap: 9px; color: rgba(255, 255, 255, .7); font-size: 12px; }
.clergy-native-breadcrumbs a { color: #88d4fa; }
.clergy-native-kicker { margin-top: 0; margin-bottom: 12px; color: #7ed5fb; font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.clergy-native-hero h1 { margin-top: 0; margin-bottom: 0; color: #fff; font-size: clamp(44px, 5.3vw, 64px); font-weight: 900; letter-spacing: -.055em; line-height: 1.05; }
.clergy-native-hero__lead { margin-top: 18px; margin-bottom: 0; color: rgba(255, 255, 255, .92); font-size: 17px; line-height: 1.65; }
.clergy-native-hero__links { margin-top: 20px; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 10px; max-width: 100%; overflow-x: auto; padding: 4px 2px 10px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #65c8ed transparent; }
.clergy-native-hero__links a:first-child { margin-left: auto; }
.clergy-native-hero__links a:last-child { margin-right: auto; }
.clergy-native-hero__links a { flex: 0 0 auto; white-space: nowrap; min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; }
.clergy-native-hero__links a:first-child,
.clergy-native-hero__links a:hover,
.clergy-native-hero__links a:focus-visible { background: var(--clergy-blue); border-color: var(--clergy-blue); }

.clergy-directory { padding: 44px 0 64px; background: radial-gradient(circle at 8% 9%, rgba(34, 154, 221, .1), transparent 25%), linear-gradient(180deg, #f5faff, #fff 48%, #f7faff); }
.clergy-group { padding: 12px 0 38px; }
.clergy-group + .clergy-group { padding-top: 38px; border-top: 1px solid #e5edf6; }
.clergy-group__heading { max-width: 720px; margin: 0 auto 16px; text-align: center; }
.clergy-group__heading p { margin: 0 0 9px; color: var(--clergy-blue); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.clergy-group__heading h2 { margin: 0; color: var(--clergy-navy); font-size: clamp(34px, 4vw, 48px); font-weight: 850; letter-spacing: -.045em; line-height: 1.08; }
.clergy-group__rule { width: 112px; height: 27px; margin: 13px auto 0; display: flex; align-items: center; gap: 9px; }
.clergy-group__rule::before,
.clergy-group__rule::after { height: 1px; flex: 1; background: #9ccced; content: ""; }
.clergy-group__rule img { width: 23px; max-height: 25px; object-fit: contain; }
.clergy-grid { display: flex; flex-wrap: nowrap; gap: 22px; overflow-x: auto; max-width: 100%; padding: 8px 2px 20px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #1288ce #dce8f3; }
.clergy-grid > .clergy-card { flex: 0 0 calc((100% - 66px) / 3.65); min-width: 250px; max-width: 340px; margin: 0; scroll-snap-align: start; }
.clergy-grid:focus-visible { outline: 2px solid #73a9cd; outline-offset: -2px; border-radius: 12px; }
.clergy-group__controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 8px; }
.clergy-group__controls[hidden] { display: none; }
.clergy-group__controls button { width: 42px; height: 42px; border: 1px solid #9ccced; border-radius: 50%; color: #071b42; background: #fff; font-size: 22px; cursor: pointer; }
.clergy-group__controls button:disabled { opacity: .35; cursor: default; }
.clergy-group__controls button:focus-visible { outline: 2px solid #1288ce; outline-offset: 3px; }
.clergy-grid--few > .clergy-card:first-child { margin-left: auto; }
.clergy-grid--few > .clergy-card:last-child { margin-right: auto; }
.clergy-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--clergy-line); border-radius: 15px; box-shadow: 0 5px 16px rgba(7, 36, 78, .055); }
.clergy-card:hover { border-color: #a9d7f3; box-shadow: 0 7px 20px rgba(7, 36, 78, .085); }
.clergy-card__photo { position: relative; width: min(200px, calc(100% - 48px)); aspect-ratio: 1; margin: 24px auto 0; border-radius: 50%; background: linear-gradient(135deg, #dceefe, #f8fbff); }
.clergy-card__photo img { width: 100%; height: 100%; display: block; box-sizing: border-box; border: 4px solid #fff; border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: 0 0 0 1px #c8dfef, 0 4px 12px rgba(7, 36, 78, .07); }
.clergy-card__photo-call { position: absolute; right: 0; bottom: 0; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1288ce, #36b7ed); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 9px rgba(5, 48, 88, .16); text-decoration: none; }
.clergy-card__photo-call::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; }
.clergy-card__photo-call i { color: #fff; font-size: 16px; }
.clergy-card__body { padding: 18px 16px 22px; text-align: center; }
.clergy-card__role { min-height: 23px; padding: 0 9px; display: inline-flex; align-items: center; color: #0876ba; background: var(--clergy-sky); border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.clergy-card h3 { min-height: 2.5em; display: flex; align-items: center; justify-content: center; margin: 10px 0 0; color: var(--clergy-navy); font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; text-transform: none; overflow-wrap: anywhere; }
.clergy-card__meta { margin: 8px 0 0; padding: 0; list-style: none; color: var(--clergy-muted); font-size: 11px; line-height: 1.45; }
.clergy-card__meta li + li { margin-top: 2px; }
.clergy-card__meta i { width: 15px; color: var(--clergy-gold); }
.clergy-empty { margin: 0; padding: 34px; color: var(--clergy-muted); background: #fff; border: 1px dashed #bfd3e5; border-radius: 14px; text-align: center; }

.clergy-native-cta { position: relative; min-height: 340px; display: grid; place-items: center; overflow: hidden; color: #fff; background: #071b42; text-align: center; }
.clergy-native-cta::before { position: absolute; inset: 0; background: linear-gradient(rgba(5, 25, 57, .9), rgba(5, 25, 57, .94)), url("../images/bg/church-general-1.webp") center / cover no-repeat; content: ""; }
.clergy-native-cta__inner { position: relative; z-index: 1; padding: 65px 0; }
.clergy-native-cta h2 { max-width: 760px; margin: 0 auto; color: #fff; font-size: clamp(36px, 5vw, 53px); letter-spacing: -.04em; line-height: 1.1; }
.clergy-native-cta p { max-width: 650px; margin: 17px auto 25px; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.7; }
.clergy-native-cta a { min-height: 48px; padding: 0 23px; display: inline-flex; align-items: center; color: #fff; background: var(--clergy-blue); border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; text-transform: uppercase; }

.clergy-native-footer { padding: 36px 0 18px; color: rgba(255, 255, 255, .75); background: #03132f; }
.clergy-native-footer__inner { display: flex; align-items: center; gap: 24px; }
.clergy-native-footer__inner img { width: 170px; }
.clergy-native-footer__inner p { margin: 0; }
.clergy-native-footer__inner div { margin-left: auto; display: flex; gap: 10px; }
.clergy-native-footer__inner div a { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .09); border-radius: 50%; }
.clergy-native-footer__copyright { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; text-align: center; }

@media (max-width: 800px) {
    .clergy-native-hero__inner > * { width: 100%; margin-left: auto; }
}
@media (max-width: 620px) {
    .clergy-native-page .about-container { width: min(100% - 32px, 1240px); }
    .clergy-native-hero { min-height: 440px; }
    .clergy-native-hero__inner { padding: 28px 0; }
    .clergy-native-hero__lead { font-size: 16px; }
    .clergy-native-hero__links { gap: 8px; }
    .clergy-native-hero__links a { min-height: 40px; padding: 0 14px; }
    .clergy-directory { padding: 30px 0 44px; }
    .clergy-group { padding-bottom: 30px; }
    .clergy-group + .clergy-group { padding-top: 30px; }
    .clergy-grid > .clergy-card { flex-basis: min(82vw, 320px); min-width: 0; }
    .clergy-card { width: min(100%, 380px); margin: 0 auto; }
    .clergy-native-footer__inner { flex-direction: column; text-align: center; }
    .clergy-native-footer__inner div { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .clergy-card,
    .clergy-card__photo img { transition: none; }
}

/* Lightweight hero: immediate preview/overlay and a prioritized responsive photo. */
.clergy-native-hero .clergy-hero-art {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    background: #071b42 url("data:image/webp;base64,UklGRtYAAABXRUJQVlA4IMoAAADQBACdASogAA0APwFqrU6rJiQiMAgBYCAJaACdMoAzAO4A2J5aISzhM+ga+vHWgAD+TO6CGvSYKXQc/HbON2SluJ96Hnjl6O+n9hjR3breBuW05WcqHV7ezmCrYBOOEPGN+a5TZw88YfeCsCmjp/307GAX8kKzwO2rRWH/X9s5/11xccHxyvRNjvQNf8Mc81OmUQ98a7TKzGdv/EZr0O1yaPV0pCXqn0+FdweqDabGnRKe8oeN++5MGEKbKR+JtI01YCRJ6fhS0oAA") center 35% / cover no-repeat;
}
.clergy-native-hero .clergy-hero-art[data-image-state="loading"],
.clergy-native-hero .clergy-hero-art[data-image-state="error"] { background-color: #071b42; }
.clergy-hero-art > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.clergy-hero-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,23,51,.12) 0%, rgba(5,23,51,.16) 40%, rgba(5,23,51,.78) 80%, rgba(5,23,51,.9) 100%); }
.clergy-hero-loading { position: absolute; z-index: 1; top: 16px; left: 20px; display: none; padding: 5px 9px; border-radius: 6px; background: #071b4270; color: #e0efff; font: 12px/1.4 Arial, sans-serif; pointer-events: none; }
.clergy-hero-art[data-image-state="loading"] .clergy-hero-loading { display: block; }
.clergy-native-hero__inner { z-index: 2; }
