/* Biography listing page */
.biographies-page { margin-top: 20px; }
.biographies-hero { align-items: center; background-color: #2f68b1; background-image: linear-gradient(115deg, rgba(12,42,88,.9), rgba(47,104,177,.48)), linear-gradient(115deg, rgba(23,72,145,.96), rgba(66,130,214,.82)); background-position: center; background-repeat: no-repeat; background-size: cover; border-radius: 24px; box-shadow: 0 22px 50px rgba(44,92,168,.2); color: #fff; display: flex; justify-content: space-between; min-height: 220px; overflow: hidden; padding: 42px 48px; position: relative; }
.biographies-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biographies-hero::before { background: linear-gradient(115deg, rgba(12,42,88,.9), rgba(47,104,177,.48)); content: ''; inset: 0; position: absolute; z-index: 1; }
.biographies-hero::after { background: rgba(255,255,255,.1); border-radius: 50%; content: ''; height: 280px; position: absolute; left: -110px; top: -145px; width: 280px; }
.biographies-hero-content { position: relative; z-index: 2; }
.biographies-eyebrow { color: rgba(255,255,255,.72); font-size: 12px; }
.biographies-hero h1 { font-size: clamp(32px,5vw,52px); font-weight: 900; margin: 12px 0 8px; }
.biographies-hero p { color: rgba(255,255,255,.82); margin: 0; max-width: 560px; }
.biographies-hero-mark { color: rgba(255,255,255,.22); font-size: 88px; margin-left: 8%; transform: rotate(-12deg); position: relative; z-index: 2; }
.biographies-toolbar { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin: 22px 0 34px; padding: 16px 20px; }
.biographies-search { align-items: center; background: rgba(255,255,255,.65); border: 1px solid rgba(91,134,221,.12); border-radius: 14px; color: #71819a; display: flex; flex: 1; gap: 12px; max-width: 560px; padding: 0 16px; }
.biographies-search input { background: transparent; border: 0; color: inherit; font: inherit; height: 48px; outline: 0; width: 100%; }
.biographies-search:focus-within { border-color: #3674d8; box-shadow: 0 0 0 4px rgba(54,116,216,.1); }
.biographies-count { background: rgba(54,116,216,.1); border-radius: 18px; color: #3674d8; font-size: 12px; padding: 8px 14px; white-space: nowrap; }
.biographies-section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 16px; }
.biographies-section-heading h2 { font-size: 24px; font-weight: 900; margin: 0; }
.biographies-section-heading p { color: #77869d; font-size: 12px; margin: 0; }
.biographies-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.biography-card-item { min-width: 0; }
.biography-card { align-items: center; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.85); border-radius: 20px; box-shadow: 0 16px 36px rgba(44,92,168,.1); color: inherit; display: flex; gap: 18px; min-height: 188px; padding: 14px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.biography-card { height: 100%; text-decoration: none; }
.biography-card:hover { background: rgba(255,255,255,.92); box-shadow: 0 22px 45px rgba(44,92,168,.18); color: inherit; transform: translateY(-5px); }
.biography-card-image { flex: 0 0 130px; }
.bio-card-img { border-radius: 20px 8px 20px 8px; height: 155px; object-fit: cover; width: 130px; }
.biography-placeholder { align-items: center; background: #e8eef8; color: #8da0bd; display: flex; font-size: 30px; justify-content: center; }
.biography-card-content { min-width: 0; }
.biography-card-label { background: rgba(54,116,216,.1); border-radius: 10px; color: #3674d8; display: inline-block; font-size: 10px; margin-bottom: 8px; padding: 5px 9px; }
.biography-card h3 { font-size: 19px; font-weight: 900; line-height: 1.5; margin: 0 0 8px; }
.biography-card p { color: #71819a; display: -webkit-box; font-size: 12px; line-height: 1.9; margin: 0 0 12px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.biography-read-more { color: #3674d8; font-size: 12px; font-weight: 700; }
.biography-read-more i { margin-right: 5px; transition: transform .2s ease; }
.biography-card:hover .biography-read-more i { transform: translateX(-4px); }
.biographies-empty { margin-top: 22px; padding: 52px 20px; text-align: center; }
.biographies-empty i { color: #3674d8; font-size: 36px; }
.biographies-empty h2 { font-size: 20px; margin: 16px 0 6px; }
.biographies-empty p, .biographies-no-results { color: #71819a; font-size: 13px; }
.biographies-no-results { padding: 30px; text-align: center; }
body.theme-dark .biographies-toolbar, body.theme-dark .biography-card, body.theme-dark .biographies-empty { background: linear-gradient(145deg, rgba(10,20,38,.94), rgba(16,28,48,.96)); border-color: rgba(132,170,255,.24); color: #f5f9ff; }
body.theme-dark .biographies-search { background: rgba(18,29,49,.98); border-color: rgba(132,170,255,.26); }
body.theme-dark .biography-card:hover { background: rgba(25,44,72,.98); }
body.theme-dark .biography-card p, body.theme-dark .biographies-section-heading p { color: rgba(255,255,255,.7); }
body.calendar-theme-active .biographies-hero { background-color: var(--theme-hero-background); background-image: linear-gradient(115deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12)), var(--theme-hero-image); }
body.calendar-theme-active .biographies-hero-image { display: none; }
body.calendar-theme-active .biographies-hero {
	border: 1px solid var(--theme-card-border);
	border-radius: var(--theme-radius);
	background-image: linear-gradient(115deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .12)), var(--theme-home-hero-image, var(--theme-hero-image));
}
body.calendar-theme-active .biographies-toolbar,
body.calendar-theme-active .biography-card,
body.calendar-theme-active .biographies-empty {
	background: linear-gradient(135deg, var(--theme-surface), var(--theme-card-gradient));
	border-color: var(--theme-card-border);
	border-radius: var(--theme-radius);
	color: var(--theme-text) !important;
}
body.calendar-theme-active .biography-card:hover {
	background: linear-gradient(135deg, var(--theme-surface), var(--theme-card-gradient));
	border-color: var(--theme-accent);
}
body.calendar-theme-active .biographies-search {
	background: var(--theme-surface);
	border-color: var(--theme-card-border);
	color: var(--theme-text) !important;
}
body.calendar-theme-active .biographies-search:focus-within,
body.calendar-theme-active .biographies-count,
body.calendar-theme-active .biography-card-label {
	border-color: var(--theme-accent);
	color: var(--theme-accent) !important;
}
body.calendar-theme-active .biographies-count,
body.calendar-theme-active .biography-card-label {
	background: var(--theme-accent-soft);
}
body.calendar-theme-active .biography-card h3,
body.calendar-theme-active .biographies-section-heading h2,
body.calendar-theme-active .biographies-empty h2 {
	color: var(--theme-text) !important;
}
body.calendar-theme-active .biography-card p,
body.calendar-theme-active .biographies-section-heading p,
body.calendar-theme-active .biographies-empty p,
body.calendar-theme-active .biographies-no-results {
	color: var(--theme-text) !important;
	opacity: .76;
}
body.calendar-theme-active .biography-read-more,
body.calendar-theme-active .biographies-empty > i {
	color: var(--theme-accent) !important;
}
body.calendar-theme-active .biographies-count,
body.calendar-theme-active .biographies-count * {
	color: var(--theme-biography-count-text, var(--theme-accent)) !important;
}
body.calendar-theme-active .biography-card-label {
	color: var(--theme-biography-badge-text, var(--theme-accent)) !important;
}
@media (max-width: 767px) { .biographies-hero { min-height: 190px; padding: 30px 24px; } .biographies-hero-mark { display: none; } .biographies-toolbar { align-items: stretch; flex-direction: column; } .biographies-search { max-width: none; } .biographies-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; } .biographies-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .biography-card { gap: 12px; } .biography-card-image { flex-basis: 100px; } .bio-card-img { height: 130px; width: 100px; } .biography-card h3 { font-size: 16px; } .biography-card p { font-size: 11px; } }
