/* Preacher directory (archive-sr_preacher.php). Scoped to .sr-pd so GeneratePress
   button, input, and table defaults never leak in. Every card/row text slot is a
   single line, so all cards and table rows are identical in size. */

.sr-pd { padding-bottom: 96px; }
.sr-pd .sr-pd-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-pd :focus-visible { outline: 3px solid var(--sr-blue-700); outline-offset: 2px; }
.sr-pd mark { padding: 0 1px; border-radius: 3px; background: var(--sr-gold-200); color: inherit; }
.sr-pd [hidden] { display: none !important; }

/* Hero: centered with stats; bottom padding leaves room for the overlapping search panel */
.sr-pd .sr-pd-hero { padding-bottom: clamp(96px, 10vw, 128px); text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(99, 168, 223, 0.22), transparent 70%), var(--sr-gradient-dark); }
.sr-pd .sr-pd-hero h1 { max-width: 20ch; margin-inline: auto; text-wrap: balance; }
.sr-pd .sr-pd-hero .sr-lead { margin-inline: auto; }
.sr-pd .sr-pd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.sr-pd .sr-pd-stats li { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 16px 10px; border: 1px solid var(--sr-white-border); border-radius: var(--sr-radius); background: var(--sr-white-soft); }
.sr-pd .sr-pd-stats b { color: var(--sr-gold-400); font-family: var(--sr-font-heading); font-size: clamp(1.75rem, 5vw, 2.25rem); line-height: 1; }
.sr-pd .sr-pd-stats span { margin-top: 8px; color: var(--sr-white-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.3; text-transform: uppercase; }

/* Search panel */
.sr-pd .sr-pd-tools { position: relative; z-index: 2; margin-top: -48px; padding: 18px; border: 1px solid var(--sr-border-soft); border-radius: var(--sr-radius-lg); background: var(--sr-white); box-shadow: var(--sr-shadow-card); }
.sr-pd .sr-pd-search { position: relative; }
.sr-pd .sr-pd-search label { display: block; margin-bottom: 6px; color: var(--sr-navy-900); font-size: var(--sr-text-label); font-weight: 600; }
.sr-pd .sr-pd-search > .sr-pd-i { position: absolute; bottom: 16px; left: 14px; color: var(--sr-muted); pointer-events: none; }
.sr-pd .sr-pd-search input { width: 100%; min-height: 50px; margin: 0; padding: 0 92px 0 44px; border: 1px solid var(--sr-border-strong); border-radius: var(--sr-radius); background: var(--sr-surface-soft); color: var(--sr-ink); font: 400 1.0625rem var(--sr-font-body); transition: border-color var(--sr-duration-fast), background var(--sr-duration-fast); -webkit-appearance: none; appearance: none; }
.sr-pd .sr-pd-search input::-webkit-search-cancel-button { display: none; }
.sr-pd .sr-pd-search input:hover { border-color: var(--sr-blue-500); }
.sr-pd .sr-pd-search input:focus { border-color: var(--sr-blue-700); background: var(--sr-white); outline: 3px solid rgba(31, 95, 157, 0.22); outline-offset: 0; }
.sr-pd .sr-pd-search kbd { position: absolute; right: 12px; bottom: 13px; padding: 1px 8px; border: 1px solid var(--sr-border); border-radius: 5px; background: var(--sr-white); color: var(--sr-muted); font: 600 0.8rem var(--sr-font-body); }
.sr-pd .sr-pd-clear, .sr-pd .sr-pd-clear:hover, .sr-pd .sr-pd-clear:focus { position: absolute; right: 6px; bottom: 5px; display: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--sr-blue-700); font: 600 0.9rem var(--sr-font-body); cursor: pointer; }
.sr-pd .sr-pd-clear:hover { background: var(--sr-surface-tint); }
.sr-pd .sr-pd-search.has-value .sr-pd-clear { display: block; }
.sr-pd .sr-pd-search.has-value kbd { display: none; }
@media (hover: none) { .sr-pd .sr-pd-search kbd { display: none; } }

.sr-pd .sr-pd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.sr-pd .sr-pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-pd .sr-pd-chip, .sr-pd .sr-pd-chip:focus { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--sr-border-strong); border-radius: var(--sr-radius-pill); background: var(--sr-white); color: var(--sr-navy-900); font: 600 0.95rem var(--sr-font-body); white-space: nowrap; cursor: pointer; transition: border-color var(--sr-duration-fast), background var(--sr-duration-fast); }
.sr-pd .sr-pd-chip:hover { border-color: var(--sr-blue-500); background: var(--sr-surface-tint); color: var(--sr-navy-900); }
.sr-pd .sr-pd-chip[aria-pressed="true"] { border-color: var(--sr-navy-900); background: var(--sr-navy-900); color: var(--sr-white); }
.sr-pd .sr-pd-chip span { min-width: 24px; padding: 1px 7px; border-radius: var(--sr-radius-pill); background: var(--sr-mist); color: var(--sr-navy-900); font-size: 0.8rem; text-align: center; }
.sr-pd .sr-pd-chip[aria-pressed="true"] span { background: rgba(255, 255, 255, 0.16); color: var(--sr-white); }
.sr-pd .sr-pd-chip:disabled { opacity: 0.45; cursor: not-allowed; }

.sr-pd .sr-pd-switch, .sr-pd .sr-pd-switch:focus { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 6px; border: 0; border-radius: var(--sr-radius-pill); background: transparent; color: var(--sr-navy-900); font: 600 0.95rem var(--sr-font-body); white-space: nowrap; cursor: pointer; }
.sr-pd .sr-pd-switch:hover { background: var(--sr-surface-tint); color: var(--sr-navy-900); }
.sr-pd .sr-pd-switch__track { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--sr-border-strong); transition: background var(--sr-duration-fast); }
.sr-pd .sr-pd-switch__track::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--sr-white); box-shadow: 0 1px 3px rgba(7, 27, 51, 0.3); content: ""; transition: transform var(--sr-duration-fast) var(--sr-ease-out); }
.sr-pd .sr-pd-switch[aria-checked="true"] .sr-pd-switch__track { background: var(--sr-gold-600); }
.sr-pd .sr-pd-switch[aria-checked="true"] .sr-pd-switch__track::after { transform: translateX(18px); }

.sr-pd .sr-pd-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; color: var(--sr-muted); font-size: 0.9rem; white-space: nowrap; }
.sr-pd .sr-pd-sort select { min-height: 46px; margin: 0; padding: 0 36px 0 12px; border: 1px solid var(--sr-border-strong); border-radius: var(--sr-radius); background: var(--sr-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b2747' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--sr-navy-900); font: 600 0.95rem var(--sr-font-body); cursor: pointer; -webkit-appearance: none; appearance: none; }
.sr-pd .sr-pd-sort select:hover { border-color: var(--sr-blue-500); }

/* Status row: count, reset, view toggle */
.sr-pd .sr-pd-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 24px 0 16px; }
.sr-pd .sr-pd-status__left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sr-pd .sr-pd-count { margin: 0; color: var(--sr-muted-strong); font-size: 0.98rem; }
.sr-pd .sr-pd-count b { color: var(--sr-navy-900); }
.sr-pd .sr-pd-reset, .sr-pd .sr-pd-reset:hover, .sr-pd .sr-pd-reset:focus { min-height: 44px; padding: 0; border: 0; background: none; color: var(--sr-blue-700); font: 600 0.95rem var(--sr-font-body); cursor: pointer; }
.sr-pd .sr-pd-reset:hover { text-decoration: underline; }
.sr-pd .sr-pd-view { display: inline-flex; padding: 3px; border: 1px solid var(--sr-border); border-radius: var(--sr-radius); background: var(--sr-surface-soft); }
.sr-pd .sr-pd-view button, .sr-pd .sr-pd-view button:hover, .sr-pd .sr-pd-view button:focus { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--sr-muted-strong); font: 600 0.92rem var(--sr-font-body); cursor: pointer; }
.sr-pd .sr-pd-view button:hover { color: var(--sr-navy-900); }
.sr-pd .sr-pd-view button[aria-pressed="true"] { background: var(--sr-white); box-shadow: 0 1px 3px rgba(7, 27, 51, 0.14); color: var(--sr-navy-900); }
.sr-pd .sr-pd-view .sr-pd-i { width: 16px; height: 16px; }

/* Shared atoms */
.sr-pd .sr-pd-photo { display: grid; flex: none; width: 80px; height: 80px; place-items: center; box-shadow: 0 0 0 3px var(--sr-white), 0 0 0 4px var(--sr-border); }
.sr-pd .sr-pd-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--sr-radius-pill); box-shadow: inset 0 0 0 1px var(--sr-border-strong); color: var(--sr-navy-800); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.6; text-transform: uppercase; white-space: nowrap; }
.sr-pd .sr-pd-badge--evangelist { background: var(--sr-status-gold-bg); box-shadow: none; color: var(--sr-status-gold-text); }
.sr-pd .sr-pd-badge--pastor { background: var(--sr-status-blue-bg); box-shadow: none; color: var(--sr-status-blue-text); }
.sr-pd .sr-pd-name { color: var(--sr-navy-900); text-decoration: none; }
.sr-pd .sr-pd-name::after { position: absolute; inset: 0; z-index: 1; content: ""; } /* whole card/row opens the profile */
.sr-pd .sr-pd-name:focus-visible { outline: none; }
.sr-pd .sr-pd-line { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-pd .sr-pd-c__name { margin: 0; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.015em; }
.sr-pd .sr-pd-c__badge { display: flex; gap: 6px; height: 22px; margin: 6px 0 10px; overflow: hidden; }
.sr-pd .sr-pd-upc { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--sr-radius-pill); background: var(--sr-status-gold-bg); color: var(--sr-status-gold-text); font-weight: 700; white-space: nowrap; }
.sr-pd .sr-pd-upc::before { width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47, 158, 91, 0.2); content: ""; }
.sr-pd .sr-pd-cta { display: inline-flex; align-items: center; gap: 4px; color: var(--sr-blue-700); font-weight: 700; white-space: nowrap; }
.sr-pd .sr-pd-cta .sr-pd-i { width: 16px; height: 16px; transition: transform var(--sr-duration-fast) var(--sr-ease-out); }

.sr-pd .sr-pd-more { display: flex; width: 100%; margin-top: 24px; }
.sr-pd .sr-pd-empty { padding: 56px 20px; border: 1px dashed var(--sr-border-strong); border-radius: var(--sr-radius-lg); background: var(--sr-surface-soft); text-align: center; }
.sr-pd .sr-pd-empty .sr-pd-i { width: 40px; height: 40px; color: var(--sr-blue-500); stroke-width: 1.4; }
.sr-pd .sr-pd-empty h2 { margin: 12px 0 6px; color: var(--sr-navy-900); font-size: 1.6rem; }
.sr-pd .sr-pd-empty p { max-width: 44ch; margin: 0 auto 18px; color: var(--sr-muted); }

/* Cards: photo flush down the left edge, details beside it. No church or city, so every card is the same height. */
.sr-pd .sr-pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .sr-pd .sr-pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .sr-pd .sr-pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sr-pd .sr-pd-grid > li { display: flex; min-width: 0; margin: 0; }
.sr-pd .sr-pd-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--sr-border-soft); border-radius: var(--sr-radius); background: var(--sr-white); box-shadow: var(--sr-shadow-soft); transition: transform var(--sr-duration-fast) var(--sr-ease-out), box-shadow var(--sr-duration-fast), border-color var(--sr-duration-fast); }
.sr-pd .sr-pd-card:hover { border-color: var(--sr-blue-500); box-shadow: var(--sr-shadow-card); transform: translateY(-2px); }
.sr-pd .sr-pd-card:has(.sr-pd-name:focus-visible) { outline: 3px solid var(--sr-blue-700); outline-offset: 2px; }
.sr-pd .sr-pd-card:hover .sr-pd-name { color: var(--sr-blue-700); text-decoration: underline; text-underline-offset: 3px; }
.sr-pd .sr-pd-card:hover .sr-pd-cta .sr-pd-i { transform: translateX(3px); }
.sr-pd .sr-pd-card .sr-pd-photo { width: 112px; height: 112px; border-radius: 0; box-shadow: none; --sr-avatar-scale: 34; }
.sr-pd .sr-pd-c__text { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 18px; }
.sr-pd .sr-pd-card .sr-pd-c__badge { margin: 0; }
.sr-pd .sr-pd-c__foot { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.sr-pd .sr-pd-c__foot .sr-pd-cta { margin-left: auto; }

/* Table */
.sr-pd .sr-pd-tablewrap { overflow: hidden; border: 1px solid var(--sr-border-soft); border-radius: var(--sr-radius); background: var(--sr-white); box-shadow: var(--sr-shadow-soft); }
.sr-pd .sr-pd-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; font-size: 0.94rem; }
.sr-pd .sr-pd-table .c-upc { width: 150px; }
.sr-pd .sr-pd-table .c-go { width: 80px; }
.sr-pd .sr-pd-table th { padding: 0; border: 0; border-bottom: 1px solid var(--sr-border); background: var(--sr-surface-tint); color: var(--sr-navy-900); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.sr-pd .sr-pd-table th > span, .sr-pd .sr-pd-table th button { display: flex; align-items: center; gap: 6px; width: 100%; height: 48px; padding: 0 20px; }
.sr-pd .sr-pd-table th button, .sr-pd .sr-pd-table th button:focus { border: 0; background: none; color: inherit; font: inherit; font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.sr-pd .sr-pd-table th button:hover { background: none; color: var(--sr-blue-700); }
.sr-pd .sr-pd-table th button .sr-pd-i { width: 14px; height: 14px; opacity: 0.35; }
.sr-pd .sr-pd-table th[aria-sort] button .sr-pd-i { opacity: 1; color: var(--sr-gold-600); }
.sr-pd .sr-pd-table th.sr-pd-center button, .sr-pd .sr-pd-table th.sr-pd-center > span { justify-content: center; }
.sr-pd .sr-pd-table td { padding: 16px 20px; border: 0; border-bottom: 1px solid var(--sr-border-soft); vertical-align: middle; }
.sr-pd .sr-pd-table tbody tr { position: relative; cursor: pointer; transition: background var(--sr-duration-fast); }
.sr-pd .sr-pd-table tbody tr:hover { background: var(--sr-surface-soft); }
.sr-pd .sr-pd-table tbody tr:hover .sr-pd-name { color: var(--sr-blue-700); text-decoration: underline; text-underline-offset: 3px; }
.sr-pd .sr-pd-table tbody tr:has(.sr-pd-name:focus-visible) { outline: 3px solid var(--sr-blue-700); outline-offset: -3px; }
.sr-pd .sr-pd-table tbody tr:last-child td { border-bottom: 0; }
.sr-pd .sr-pd-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sr-pd .sr-pd-who__text { min-width: 0; }
.sr-pd .sr-pd-table .sr-pd-photo { width: 64px; height: 64px; }
.sr-pd .sr-pd-table .sr-pd-name { font-family: var(--sr-font-heading); font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.sr-pd .sr-pd-table .sr-pd-c__badge { margin: 6px 0 0; }
.sr-pd .sr-pd-table td[data-col="upcoming"], .sr-pd .sr-pd-table td[data-col="go"] { text-align: center; }
.sr-pd .sr-pd-upc-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--sr-radius-pill); background: var(--sr-status-gold-bg); color: var(--sr-status-gold-text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-pd .sr-pd-upc-pill .sr-pd-i { width: 16px; height: 16px; color: var(--sr-gold-600); }
.sr-pd .sr-pd-upc-pill.is-off { background: transparent; color: var(--sr-muted); font-weight: 500; }
.sr-pd .sr-pd-upc-pill.is-off .sr-pd-i { color: var(--sr-border-strong); }
.sr-pd .sr-pd-upc-pill__label { display: none; }
.sr-pd .sr-pd-go { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--sr-border-strong); border-radius: 50%; color: var(--sr-blue-700); transition: background var(--sr-duration-fast), border-color var(--sr-duration-fast), color var(--sr-duration-fast); }
.sr-pd .sr-pd-go .sr-pd-i { width: 16px; height: 16px; }
.sr-pd .sr-pd-go__text { display: none; }
.sr-pd .sr-pd-table tbody tr:hover .sr-pd-go { border-color: var(--sr-navy-900); background: var(--sr-navy-900); color: var(--sr-white); }

/* Phones: each table row takes the same layout as a card. */
@media (max-width: 799px) {
	.sr-pd .sr-pd-tablewrap { overflow: visible; border: 0; background: none; box-shadow: none; }
	.sr-pd .sr-pd-table thead, .sr-pd .sr-pd-table colgroup { display: none; }
	.sr-pd .sr-pd-table, .sr-pd .sr-pd-table tbody, .sr-pd .sr-pd-table tr, .sr-pd .sr-pd-table td { display: block; }
	.sr-pd .sr-pd-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 16px; overflow: hidden; border: 1px solid var(--sr-border-soft); border-radius: var(--sr-radius); background: var(--sr-white); box-shadow: var(--sr-shadow-soft); }
	.sr-pd .sr-pd-table tbody tr:hover { background: var(--sr-white); border-color: var(--sr-blue-500); }
	.sr-pd .sr-pd-table td, .sr-pd .sr-pd-table tbody tr:last-child td { padding: 0; border: 0; }
	.sr-pd .sr-pd-table td[data-col="who"] { grid-column: 1 / -1; padding: 20px 18px; }
	.sr-pd .sr-pd-table td[data-col="upcoming"], .sr-pd .sr-pd-table td[data-col="go"] { display: flex; align-items: center; height: 52px; padding: 0 18px; border-top: 1px solid var(--sr-border-soft); }
	.sr-pd .sr-pd-table td[data-col="go"] { justify-content: flex-end; }
	.sr-pd .sr-pd-upc-pill { height: auto; padding: 0; background: none; color: var(--sr-navy-900); font-weight: 600; }
	.sr-pd .sr-pd-upc-pill__label { display: inline; }
	.sr-pd .sr-pd-go, .sr-pd .sr-pd-table tbody tr:hover .sr-pd-go { display: inline-flex; width: auto; height: auto; gap: 4px; border: 0; border-radius: 0; background: none; color: var(--sr-blue-700); font-weight: 700; }
	.sr-pd .sr-pd-go__text { display: inline; }
}

@media (max-width: 599px) {
	.sr-pd .sr-pd-tools { padding: 14px; }
	.sr-pd .sr-pd-sort { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sr-pd *, .sr-pd *::before, .sr-pd *::after { transition: none !important; }
}
