/* ePurgatory Soul List — inherits the theme font; keeps the original list look. */

.esl {
	max-width: 900px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.5;
}

.esl ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.esl-section-title {
	font-size: 1.15em;
	font-weight: 700;
	margin: 0 0 0.6em;
	color: inherit;
}

.esl-recent,
.esl-anniv {
	margin: 0 0 1.4em;
	padding: 0 0 1.2em;
	border-bottom: 1px solid #e5e5e5;
}

.esl-recent-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1em;
}

.esl-recent-item {
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
	flex: 1 1 11rem;
	max-width: 16rem;
	min-width: 0;
}

.esl-recent-photo img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
}

.esl-recent-text {
	min-width: 0;
}

.esl-recent-name {
	display: block;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.3;
}

.esl-recent-died {
	margin: 0.2em 0 0;
	font-size: 0.9em;
	color: #555;
}

.esl-anniv-today-note {
	margin: 0 0 0.6em;
	font-weight: 600;
}

.esl-anniv-list {
	margin: 0;
}

.esl-anniv-item {
	padding: 0.28em 0.4em;
	border-radius: 4px;
}

.esl-anniv-today {
	background: #f4efe6;
	font-weight: 600;
}

.esl-anniv-name {
	font-weight: 600;
}

.esl-anniv-died {
	color: #555;
	font-weight: 400;
}

.esl-anniv-badge {
	display: inline-block;
	margin-left: 0.35em;
	padding: 0.05em 0.45em;
	border-radius: 3px;
	background: #6b5b3e;
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.esl-anniv-more {
	margin: 0.4em 0 0;
}

.esl-anniv-more summary {
	cursor: pointer;
	color: #6b5b3e;
	font-weight: 600;
}

.esl-search {
	margin: 0 0 1em;
}

.esl-search label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25em;
}

.esl-search-row {
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	align-items: center;
}

.esl-search input[type="search"] {
	flex: 1 1 220px;
	min-width: 0;
	padding: 0.45em 0.6em;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
}

.esl-button {
	padding: 0.45em 1.1em;
	border: 1px solid #6b5b3e;
	background: #6b5b3e;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.esl-button:hover,
.esl-button:focus {
	background: #4f432d;
}

.esl-clear {
	font-size: 0.9em;
}

.esl-az ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em;
	margin: 0 0 1em;
}

.esl-az a,
.esl-az span {
	display: inline-block;
	min-width: 1.9em;
	padding: 0.2em 0.45em;
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.9em;
}

.esl-az .esl-active a {
	background: #6b5b3e;
	border-color: #6b5b3e;
	color: #fff;
}

.esl-az .esl-empty span {
	color: #b0a898;
	border-color: #eee;
	cursor: default;
}

.esl-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0.5em 0;
}

.esl-info {
	margin: 0;
	color: #555;
	font-size: 0.95em;
}

.esl-pages ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em;
}

.esl-page,
.esl-dots {
	display: inline-block;
	padding: 0.2em 0.6em;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
}

.esl-dots {
	border-color: transparent;
}

.esl-current {
	background: #6b5b3e;
	border-color: #6b5b3e;
	color: #fff;
}

.esl-entry {
	display: flex;
	gap: 1.25em;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1em 0;
	border-bottom: 1px solid #e5e5e5;
}

.esl-text {
	flex: 1 1 auto;
	min-width: 0;
}

.esl-name {
	font-weight: 700;
	font-size: 1.1em;
	margin: 0 0 0.25em;
}

.esl-died {
	margin: 0 0 0.35em;
}

.esl-label {
	font-weight: 600;
}

.esl-memo p {
	margin: 0 0 0.5em;
}

.esl-memo {
	overflow-wrap: anywhere;
}

.esl-photo {
	flex: 0 0 auto;
	max-width: 40%;
}

.esl-photo img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 0.4em;
}

.esl-photo-link {
	display: inline-block;
	cursor: zoom-in;
}

.esl-empty {
	padding: 1em 0;
}

.esl a:focus-visible,
.esl button:focus-visible,
.esl input:focus-visible,
.esl summary:focus-visible {
	outline: 2px solid #6b5b3e;
	outline-offset: 2px;
}

/* Simple lightbox (no external libraries). */
.esl-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 16, 10, 0.88);
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	cursor: zoom-out;
}

.esl-lightbox.is-open {
	display: flex;
}

.esl-lightbox img {
	max-width: min(100%, 96vw);
	max-height: 92vh;
	width: auto;
	height: auto;
	box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
	cursor: default;
}

.esl-lightbox__close {
	position: absolute;
	top: 0.6rem;
	right: 0.8rem;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
}

@media (max-width: 600px) {
	.esl-entry {
		flex-direction: column;
	}

	.esl-photo {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.esl-lightbox {
		scroll-behavior: auto;
	}
}
