/* Search page (search.php). Dark mode follows html.dark like the rest of the theme. */

.es-page {
	--es-ink: #0f172a;
	--es-muted: #64748b;
	--es-line: rgba(15, 23, 42, .1);
	--es-card: #fff;
	--es-soft: rgba(15, 23, 42, .04);
	--es-red: #f50101;
	--es-green: #005744;
	--es-mark: rgba(245, 1, 1, .14);
	--es-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px -16px rgba(15, 23, 42, .22);
	color: var(--es-ink);
}
.dark .es-page {
	--es-ink: #f1f5f9;
	--es-muted: #94a3b8;
	--es-line: rgba(255, 255, 255, .12);
	--es-card: rgba(15, 23, 42, .78);
	--es-soft: rgba(255, 255, 255, .05);
	--es-mark: rgba(245, 1, 1, .38);
	--es-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.es-page svg { display: block; }
.es-page a { text-decoration: none; }

/* ---- Hero ---- */
.es-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(2.5rem, 6vw, 4.5rem) 1rem clamp(3rem, 7vw, 5rem);
	background:
		radial-gradient(900px circle at 85% -10%, rgba(245, 1, 1, .34), transparent 55%),
		radial-gradient(800px circle at 5% 110%, rgba(0, 150, 110, .35), transparent 55%),
		linear-gradient(160deg, #031a15 0%, #00382c 55%, #0b1c1a 100%);
	color: #fff;
	isolation: isolate;
}
.es-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.es-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--es-red), transparent);
	transform: scaleX(0);
	opacity: 0;
}
.es-page.is-loading .es-hero::after {
	opacity: 1;
	animation: es-bar 1s ease-in-out infinite;
}
.es-hero__inner { max-width: 52rem; margin-inline: auto; text-align: center; }
.es-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .4rem .9rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: #ffd9d9;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(10px);
}
.es-eyebrow svg { width: 1rem; height: 1rem; }
.es-hero__title { margin: 1rem 0 .6rem; font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.25; font-weight: 900; }
.es-hero__subtitle { margin: 0 auto 1.75rem; max-width: 40rem; font-size: clamp(.85rem, 1.6vw, 1rem); line-height: 1.9; color: rgba(255, 255, 255, .74); }

.es-form { display: flex; gap: .6rem; align-items: stretch; }
.es-field {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	min-width: 0;
	height: 3.9rem;
	padding-inline: 1.15rem;
	gap: .75rem;
	background: #fff;
	color: #0f172a;
	border-radius: 999px;
	box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .5) inset;
	transition: box-shadow .2s ease, transform .2s ease;
}
.dark .es-field { background: rgba(15, 23, 42, .9); color: #f8fafc; box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.es-field:focus-within { box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .55), 0 0 0 4px rgba(245, 1, 1, .35); }
.es-field__icon { flex: none; width: 1.4rem; height: 1.4rem; color: var(--es-red); }
.es-field__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	appearance: none;
}
.es-field__input::placeholder { color: #94a3b8; font-weight: 500; }
.es-field__input::-webkit-search-cancel-button { display: none; }
.es-field__clear {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 50%;
	background: rgba(100, 116, 139, .14);
	color: inherit;
	cursor: pointer;
	transition: background .15s ease;
}
.es-field__clear[hidden] { display: none; }
.es-field__clear:hover { background: rgba(245, 1, 1, .16); }
.es-field__clear svg { width: .95rem; height: .95rem; }
.es-field__kbd {
	flex: none;
	min-width: 1.6rem;
	padding: .15rem .45rem;
	text-align: center;
	font: 700 .78rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #94a3b8;
	border: 1px solid rgba(148, 163, 184, .5);
	border-radius: .45rem;
}
.es-field:focus-within .es-field__kbd, .es-field__input:not(:placeholder-shown) ~ .es-field__kbd { display: none; }
.es-field__spinner {
	display: none;
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	border: 2.5px solid rgba(245, 1, 1, .25);
	border-top-color: var(--es-red);
	animation: es-spin .7s linear infinite;
}
.es-page.is-loading .es-field__spinner { display: block; }
.es-page.is-loading .es-field__kbd { display: none; }
.es-submit {
	flex: none;
	padding-inline: 2rem;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(180deg, #ff2b2b, #d90000);
	box-shadow: 0 14px 30px -10px rgba(245, 1, 1, .7), 0 1px 0 rgba(255, 255, 255, .3) inset;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.es-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.es-submit:active { transform: translateY(0); }

/* ---- Body / layout ---- */
.es-body { max-width: 80rem; margin-inline: auto; padding: 2rem 1rem 4rem; transition: opacity .2s ease; }
.es-page.is-loading .es-body { opacity: .5; pointer-events: none; }
@media (min-width: 640px) { .es-body { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .es-body { padding-inline: 2rem; } }

.es-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.5rem; scroll-margin-top: 6rem; }
.es-summary__text { margin: 0; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; color: var(--es-muted); }
.es-summary__text strong { color: var(--es-ink); font-weight: 900; }
.es-reset {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .4rem .85rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	color: var(--es-red);
	background: rgba(245, 1, 1, .08);
	border: 1px solid rgba(245, 1, 1, .2);
}
.es-reset svg { width: .8rem; height: .8rem; }

.es-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
	.es-layout { grid-template-columns: 17.5rem minmax(0, 1fr); gap: 2rem; align-items: start; }
	.es-filters { position: sticky; top: 6.5rem; }
}

/* ---- Filters ---- */
.es-filters { display: grid; gap: 1.1rem; }
.es-filters__title { margin-bottom: .55rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--es-muted); }
.es-types, .es-filter-group {
	padding: 1rem;
	border-radius: 1.25rem;
	background: var(--es-card);
	border: 1px solid var(--es-line);
	box-shadow: var(--es-shadow);
}
.es-types { display: grid; gap: .25rem; }
.es-type {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding: .6rem .75rem;
	border-radius: .85rem;
	font-size: .92rem;
	font-weight: 700;
	color: var(--es-ink);
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.es-type svg { flex: none; width: 1.15rem; height: 1.15rem; color: var(--es-muted); transition: color .15s ease; }
.es-type__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-type__count {
	min-width: 1.7rem;
	padding: .1rem .5rem;
	text-align: center;
	font-size: .74rem;
	font-weight: 800;
	border-radius: 999px;
	background: var(--es-soft);
	color: var(--es-muted);
}
.es-type:hover { background: var(--es-soft); }
.es-type.is-empty { opacity: .45; }
.es-type.is-active { background: linear-gradient(135deg, #f50101, #c40000); color: #fff; box-shadow: 0 10px 22px -10px rgba(245, 1, 1, .8); }
.es-type.is-active svg { color: #fff; }
.es-type.is-active .es-type__count { background: rgba(255, 255, 255, .22); color: #fff; }

.es-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.es-chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .38rem .75rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	color: var(--es-ink);
	background: var(--es-soft);
	border: 1px solid transparent;
	transition: border-color .15s ease, background .15s ease;
}
.es-chip span { font-size: .7rem; color: var(--es-muted); }
.es-chip:hover { border-color: var(--es-line); }
.es-chip.is-active { background: var(--es-green); color: #fff; }
.es-chip.is-active span { color: rgba(255, 255, 255, .75); }

.es-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .25rem; border-radius: .9rem; background: var(--es-soft); }
.es-segment__item { padding: .45rem .3rem; text-align: center; font-size: .78rem; font-weight: 700; color: var(--es-muted); border-radius: .7rem; transition: background .15s ease, color .15s ease; }
.es-segment__item.is-active { background: var(--es-card); color: var(--es-ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }

@media (max-width: 1023px) {
	.es-filters { gap: .75rem; }
	.es-types { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem; scrollbar-width: none; }
	.es-types::-webkit-scrollbar { display: none; }
	.es-types .es-filters__title { display: none; }
	.es-type { flex: none; padding: .5rem .85rem; background: var(--es-soft); }
	.es-filter-group { display: flex; align-items: center; gap: .75rem; overflow-x: auto; padding: .1rem .25rem; background: transparent; border: 0; box-shadow: none; scrollbar-width: none; }
	.es-filter-group::-webkit-scrollbar { display: none; }
	.es-filter-group .es-filters__title { flex: none; margin: 0; }
	.es-chips { flex-wrap: nowrap; }
	.es-chip { flex: none; background: var(--es-card); border-color: var(--es-line); }
	.es-segment { flex: none; display: flex; }
	.es-segment__item { padding-inline: .9rem; white-space: nowrap; }
}

/* ---- Result list ---- */
.es-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.es-list > li { animation: es-rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
.es-item {
	position: relative;
	display: grid;
	grid-template-columns: 12rem minmax(0, 1fr);
	gap: 1.25rem;
	padding: .8rem;
	border-radius: 1.5rem;
	background: var(--es-card);
	border: 1px solid var(--es-line);
	box-shadow: var(--es-shadow);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.es-item:hover { transform: translateY(-3px); border-color: rgba(245, 1, 1, .35); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 22px 44px -18px rgba(245, 1, 1, .28); }
.es-item__thumb { position: relative; display: block; overflow: hidden; border-radius: 1.1rem; aspect-ratio: 4 / 3; background: var(--es-soft); }
.es-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.es-item:hover .es-item__thumb img { transform: scale(1.06); }
.es-item__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55));
}
.es-item__play svg { width: 2.6rem; height: 2.6rem; padding: .75rem; border-radius: 50%; color: #fff; background: rgba(245, 1, 1, .9); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.es-item__duration { position: absolute; inset-block-end: .55rem; inset-inline-start: .55rem; padding: .1rem .5rem; font-size: .72rem; font-weight: 800; color: #fff; border-radius: .5rem; background: rgba(0, 0, 0, .65); }
.es-item__body { display: flex; flex-direction: column; min-width: 0; padding-block: .3rem; }
.es-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: var(--es-muted); }
.es-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.es-kind { --k: 100 116 139; padding: .15rem .65rem; font-size: .72rem; font-weight: 800; border-radius: 999px; color: rgb(var(--k)); background: rgb(var(--k) / .13); }
.es-kind--news { --k: 220 38 38; }
.es-kind--articles { --k: 0 120 94; }
.es-kind--video { --k: 37 99 235; }
.es-kind--library { --k: 180 83 9; }
.es-kind--mahname { --k: 14 116 144; }
.es-kind--author { --k: 124 58 237; }
.es-kind--editorial { --k: 190 24 93; }
.dark .es-kind--articles { --k: 52 211 153; }
.dark .es-kind--news { --k: 248 113 113; }
.dark .es-kind--video { --k: 96 165 250; }
.dark .es-kind--library { --k: 251 191 36; }
.dark .es-kind--mahname { --k: 34 211 238; }
.dark .es-kind--author { --k: 167 139 250; }
.dark .es-kind--editorial { --k: 244 114 182; }
/* Editor's note: a quote card with a brand accent instead of a picture, so it stands out between articles. */
.es-item--editorial {
	grid-template-columns: 1fr;
	gap: 0;
	padding: 1.15rem 1.4rem 1rem;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(190, 24, 93, .07), transparent 38%),
		var(--es-card);
	border-color: rgba(190, 24, 93, .22);
}
.es-item--editorial::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--es-red), var(--es-green));
}
.es-item--editorial::after {
	content: "\201C";
	position: absolute;
	inset-block-start: -.35rem;
	inset-inline-end: 1rem;
	font: 800 6.5rem/1 Georgia, serif;
	color: rgba(190, 24, 93, .1);
	pointer-events: none;
}
.es-item--editorial .es-item__body { padding-inline: .2rem; }
.es-item--editorial .es-item__snippet { -webkit-line-clamp: 3; font-size: .95rem; }
.es-item--editorial:hover { border-color: rgba(190, 24, 93, .5); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 22px 44px -18px rgba(190, 24, 93, .3); }
.dark .es-item--editorial { background: linear-gradient(135deg, rgba(244, 114, 182, .09), transparent 38%), var(--es-card); }
.dark .es-item--editorial::after { color: rgba(244, 114, 182, .14); }
.es-item__title { margin: .55rem 0 .4rem; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.7; font-weight: 800; }
.es-item__title a { color: var(--es-ink); transition: color .15s ease; }
.es-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: 1.5rem; }
.es-item:hover .es-item__title a { color: var(--es-red); }
.es-item__snippet {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .9rem;
	line-height: 1.95;
	color: var(--es-muted);
}
.es-item__foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: auto; padding-top: .8rem; }
.es-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; }
.es-byline__author { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700; color: var(--es-ink); }
.es-byline__author:hover { color: var(--es-red); }
.es-byline__author img, .es-byline__letter { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 0 0 0 2px var(--es-card), 0 0 0 3px var(--es-line); }
.es-byline__letter { display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; color: #fff; background: var(--es-green); }
.es-byline__plain { font-size: .82rem; font-weight: 700; color: var(--es-muted); }
.es-found { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.es-found__label { font-size: .7rem; font-weight: 700; color: var(--es-muted); }
.es-found__chip { padding: .12rem .6rem; font-size: .7rem; font-weight: 700; border-radius: 999px; color: var(--es-green); background: rgba(0, 87, 68, .1); border: 1px dashed rgba(0, 87, 68, .35); }
.dark .es-found__chip { color: #6ee7b7; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); }
.es-page mark { padding: 0 .18em; color: inherit; border-radius: .3em; background: var(--es-mark); box-shadow: 0 0 0 .06em var(--es-mark); }

@media (max-width: 639px) {
	.es-item { grid-template-columns: 1fr; gap: .8rem; }
	.es-item__thumb { aspect-ratio: 16 / 9; }
	.es-item__body { padding-inline: .4rem .4rem; padding-bottom: .4rem; }
	.es-form { flex-direction: column; }
	.es-field { height: 3.4rem; }
	.es-submit { height: 3.1rem; }
	.es-field__kbd { display: none; }
}

/* ---- People ---- */
.es-people { margin-bottom: 1.75rem; }
.es-people__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.es-people__head h3 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.es-people__head a { font-size: .82rem; font-weight: 700; color: var(--es-red); }
.es-people__row, .es-people__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; }
.es-person {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .85rem 1rem;
	border-radius: 1.25rem;
	color: var(--es-ink);
	background: var(--es-card);
	border: 1px solid var(--es-line);
	box-shadow: var(--es-shadow);
	transition: transform .2s ease, border-color .2s ease;
	animation: es-rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.es-person:hover { transform: translateY(-3px); border-color: rgba(0, 87, 68, .5); }
.es-person__avatar {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.4rem;
	height: 3.4rem;
	overflow: hidden;
	border-radius: 50%;
	font-weight: 900;
	color: #fff;
	background: var(--es-green);
	box-shadow: 0 0 0 3px var(--es-card), 0 0 0 5px rgba(245, 1, 1, .55);
}
.es-person__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.es-person__text { display: grid; gap: .1rem; min-width: 0; }
.es-person__text strong { font-size: .95rem; font-weight: 800; line-height: 1.6; }
.es-person__text em { font-style: normal; font-size: .78rem; color: var(--es-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.es-person__text small { width: fit-content; margin-top: .15rem; padding: .05rem .6rem; font-size: .7rem; font-weight: 800; color: var(--es-green); border-radius: 999px; background: rgba(0, 87, 68, .1); }
.dark .es-person__text small { color: #6ee7b7; background: rgba(52, 211, 153, .12); }

/* ---- Pager ---- */
.es-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin-top: 2rem; }
.es-pager__pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; }
.es-pager__page, .es-pager__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	min-width: 2.6rem;
	height: 2.6rem;
	padding-inline: .8rem;
	font-size: .88rem;
	font-weight: 800;
	color: var(--es-ink);
	border-radius: .9rem;
	background: var(--es-card);
	border: 1px solid var(--es-line);
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.es-pager__page:hover, .es-pager__step:hover { transform: translateY(-2px); border-color: rgba(245, 1, 1, .45); }
.es-pager__page.is-active { color: #fff; background: linear-gradient(135deg, #f50101, #c40000); border-color: transparent; box-shadow: 0 10px 22px -10px rgba(245, 1, 1, .8); }
.es-pager__step svg { width: 1rem; height: 1rem; }
.es-pager__gap { padding-inline: .2rem; color: var(--es-muted); }

/* ---- Start / empty ---- */
.es-start { display: grid; gap: 2.25rem; }
.es-start__prompt, .es-none { display: grid; justify-items: center; gap: .5rem; padding: 2.5rem 1rem; text-align: center; }
.es-start__prompt h2, .es-none h2 { margin: .4rem 0 0; font-size: 1.35rem; font-weight: 900; }
.es-start__prompt p, .es-none p { margin: 0; max-width: 34rem; font-size: .92rem; line-height: 2; color: var(--es-muted); }
.es-start__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.6rem;
	height: 4.6rem;
	border-radius: 1.5rem;
	color: var(--es-red);
	background: rgba(245, 1, 1, .09);
	box-shadow: 0 0 0 8px rgba(245, 1, 1, .05);
}
.es-start__icon svg { width: 2.2rem; height: 2.2rem; }
.es-none__art { width: 7.5rem; color: var(--es-red); }
.es-none__action {
	margin-top: .6rem;
	padding: .6rem 1.4rem;
	font-size: .88rem;
	font-weight: 800;
	color: #fff;
	border-radius: 999px;
	background: var(--es-green);
}
.es-latest .es-list { margin-top: 0; }

@keyframes es-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes es-spin { to { transform: rotate(360deg); } }
@keyframes es-bar { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

@media (prefers-reduced-motion: reduce) {
	.es-list > li, .es-person { animation: none; }
	.es-item, .es-item__thumb img, .es-submit { transition: none; }
}

/* ---- Matches inside monthly PDFs ---- */
.es-pdf-slot:not(.has-content) { display: none; }
.es-pdf-slot.has-content { margin-bottom: 1.75rem; animation: es-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.es-pdf {
	position: relative;
	overflow: hidden;
	padding: 1.1rem;
	border-radius: 1.6rem;
	background:
		radial-gradient(520px circle at 100% 0%, rgba(245, 1, 1, .1), transparent 60%),
		var(--es-card);
	border: 1px solid var(--es-line);
	box-shadow: var(--es-shadow);
}
.es-pdf__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.es-pdf__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 1rem; color: #fff; background: linear-gradient(135deg, #f50101, #b80000); box-shadow: 0 10px 22px -10px rgba(245, 1, 1, .8); }
.es-pdf__icon svg { width: 1.45rem; height: 1.45rem; }
.es-pdf__head h3 { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; font-weight: 900; }
.es-pdf__head h3 small { padding: .05rem .6rem; font-size: .72rem; font-weight: 800; color: var(--es-red); border-radius: 999px; background: rgba(245, 1, 1, .1); }
.es-pdf__head p { margin: .15rem 0 0; font-size: .8rem; line-height: 1.8; color: var(--es-muted); }
.es-pdf__issues { display: grid; gap: .9rem; }
.es-pdf__issue { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1rem; padding: .8rem; border-radius: 1.2rem; background: var(--es-soft); }
.es-pdf__cover { display: block; align-self: start; overflow: hidden; border-radius: .8rem; aspect-ratio: 3 / 4; background: var(--es-line); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.es-pdf__cover img { width: 100%; height: 100%; object-fit: cover; }
.es-pdf__issue-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; margin-bottom: .5rem; }
.es-pdf__issue-head a { font-size: .95rem; font-weight: 900; color: var(--es-ink); }
.es-pdf__issue-head a:hover { color: var(--es-red); }
.es-pdf__issue-head span { font-size: .75rem; font-weight: 700; color: var(--es-muted); }
.es-pdf__hits { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.es-pdf__more { margin-top: .5rem; }
.es-pdf__more summary { cursor: pointer; padding: .3rem 0; font-size: .8rem; font-weight: 800; color: var(--es-green); }
.dark .es-pdf__more summary { color: #6ee7b7; }
.es-pdf__more .es-pdf__hits { margin-top: .45rem; }
.es-pdf__hit { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem .85rem; border-radius: .95rem; color: var(--es-ink); background: var(--es-card); border: 1px solid var(--es-line); transition: transform .2s ease, border-color .2s ease; }
.es-pdf__hit:hover { transform: translateY(-2px); border-color: rgba(245, 1, 1, .45); }
.es-pdf__hit.is-exact { border-color: rgba(0, 87, 68, .45); }
.es-pdf__page { flex: none; padding: .2rem .65rem; font-size: .72rem; font-weight: 900; color: #fff; border-radius: 999px; background: var(--es-green); white-space: nowrap; }
.es-pdf__text { display: grid; gap: .2rem; min-width: 0; font-size: .85rem; line-height: 1.95; color: var(--es-muted); }
.es-pdf__heading { font-size: .88rem; font-weight: 900; color: var(--es-ink); }
.es-pdf__go { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .25rem; color: var(--es-muted); }
.es-pdf__hit:hover .es-pdf__go { color: var(--es-red); }
@media (max-width: 639px) {
	.es-pdf__issue { grid-template-columns: 1fr; }
	.es-pdf__cover { width: 4.5rem; }
	.es-pdf__hit { flex-wrap: wrap; }
}

.es-pdf__hit.is-signed { border-color: rgba(245, 1, 1, .5); background: linear-gradient(135deg, rgba(245, 1, 1, .06), transparent 60%), var(--es-card); }
.es-pdf__signed { justify-self: start; padding: .05rem .6rem; font-size: .68rem; font-weight: 900; font-style: normal; color: #fff; border-radius: 999px; background: var(--es-red); }
