/*
 * Архив, новости и страница ведущего (#42): блоки ev/festival-archive, ev/news-list, ev/person и первый экран
 * без фото. Размеры — по прототипу (pages.css на теге inner-pages-approved-2026-11-11: .pg-arch*, .pg-news*,
 * .pg-subscribe, .pg-callout--quiet, .pg-person, .pg-works). Токены и общие классы — в theme.json и style.css.
 */

/* Первый экран страницы без фото (Архив, Новости): текст на всю ширину, до 880 px. */
.ev-page-head__copy:only-child { grid-column: 1 / -1; max-width: 880px; }
.ev-page-head__copy:only-child > .has-lead-font-size { max-width: 36em; }

/* Ссылка-действие: ink, 600, подчёркивание flame 2 px (.m7-link прототипа). */
:root :where(.ev-arch__links a, .ev-news__more, .ev-arch-forum a) {
	color: var(--wp--preset--color--ink); font-weight: 600;
	text-decoration: underline 2px var(--wp--preset--color--flame); text-underline-offset: 5px;
}
:root :where(.ev-arch__links a, .ev-news__more, .ev-arch-forum a):hover { text-decoration-color: var(--wp--preset--color--ink); }

/* ---------- Архив: фестивали крупными строками ---------- */

.ev-arch-section > * { margin-block: 0; }
.ev-arch { display: grid; gap: 72px; margin: 0; padding: 0; list-style: none; }
.ev-arch__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.ev-arch__row:nth-child(even) .ev-arch__pic { order: 2; }
.ev-arch__pic { position: relative; isolation: isolate; display: block; }
.ev-arch__pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; }
.ev-arch__pic > .ev-bands { inset: 45% -24px -24px -24px; z-index: -1; }
.ev-arch__pic--empty { aspect-ratio: 3 / 2; border-radius: 28px; background: var(--wp--preset--color--sun-soft); }
/* Номер фестиваля: кружок цвета радуги по порядку строк. */
.ev-arch__num {
	position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 72px; height: 72px;
	border: 4px solid var(--wp--preset--color--paper); border-radius: 50%;
	font: 500 30px/1 var(--wp--preset--font-family--jost); color: var(--wp--preset--color--ink); background: #f8637c;
}
.ev-arch__row:nth-child(4n+2) .ev-arch__num { background: #f6be74; }
.ev-arch__row:nth-child(4n+3) .ev-arch__num { background: #85ac63; }
.ev-arch__row:nth-child(4n+4) .ev-arch__num { background: #72c6e2; }
.ev-arch__copy > * { margin-block: 0; }
.ev-arch__title { font-size: clamp(2rem, 1.3rem + 1.8vw, 3rem); line-height: 1.04; margin-bottom: 12px !important; }
.ev-arch__title a { color: inherit; font-weight: inherit; text-decoration: none; }
.ev-arch__title a:hover { text-decoration: underline 2px var(--wp--preset--color--flame); text-underline-offset: 6px; }
.ev-arch__meta { font-weight: 600; }
.ev-arch__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px !important; padding: 0; list-style: none; }

/* Форум эвритмии под строками: плашка mist. */
.ev-arch-forum {
	display: grid; gap: 20px; justify-items: start; margin-top: var(--ev-section) !important;
	padding: 48px; border-radius: 28px; background: var(--wp--preset--color--mist);
}
.ev-arch-forum > * { margin-block: 0; }
.ev-arch-forum h2 { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.75rem); }

/* ---------- Новости: главная новость крупно, остальные карточками по три ---------- */

.ev-news > * { margin-block: 0; }
.ev-news time { display: block; margin-bottom: 8px; color: var(--wp--preset--color--ink-2); font-size: 15px; line-height: 1.5; }
.ev-news__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-bottom: 72px !important; }
.ev-news__pic { display: block; }
.ev-news__pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; }
.ev-news__copy > * { margin-block: 0; }
.ev-news__top .ev-news__title { margin-bottom: 16px; font-size: clamp(2rem, 1.3rem + 1.6vw, 2.9rem); line-height: 1.04; letter-spacing: -.03em; }
.ev-news__title a { color: inherit; font-weight: inherit; text-decoration: none; }
.ev-news__title a:hover { text-decoration: underline 2px var(--wp--preset--color--flame); text-underline-offset: 5px; }
.ev-news__lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.5; }
.ev-news__more { display: inline-block; margin-top: 20px !important; }

.ev-news__cards {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px;
	margin: 0; padding: 40px 0 0; border-top: 2px solid var(--wp--preset--color--ink); list-style: none;
}
.ev-news__card a { display: block; color: inherit; font-weight: 400; text-decoration: none; }
.ev-news__card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 16px; border-radius: 20px; }
.ev-news__card .ev-news__title { margin: 0 0 8px; font-size: 22px; line-height: 28px; letter-spacing: 0; }
.ev-news__card p { margin: 0; color: var(--wp--preset--color--ink-2); font-size: 16px; line-height: 24px; }
.ev-news__card a:hover .ev-news__title { text-decoration: underline 2px var(--wp--preset--color--flame); text-underline-offset: 5px; }

.ev-news__pages { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 56px !important; font: 500 18px/24px var(--wp--preset--font-family--jost); }
.ev-news__pages a { color: var(--wp--preset--color--ink); font-weight: 500; }
.ev-news__pages .current { text-decoration: underline 2px var(--wp--preset--color--ink); text-underline-offset: 5px; }

.ev-news__subscribe {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
	margin-top: 72px !important; padding: 28px 32px; border-radius: 20px; background: var(--wp--preset--color--mist);
}
.ev-news__subscribe p { margin: 0; }
.ev-news__subscribe .wp-block-buttons { display: flex; flex-wrap: wrap; }

/* ---------- Страница ведущего ---------- */

.ev-person__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.ev-person__grid--text { grid-template-columns: minmax(0, 880px); }
.ev-person__portrait {
	position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ev-header-h) + 3px + 24px);
	margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: #e9e4de;
}
.ev-person__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.ev-person__copy > * { margin-block: 0; }
.ev-person__copy > * + * { margin-top: 16px; }
.ev-person__copy > .ev-crumbs { margin-bottom: 20px; }
.ev-person__copy > .ev-crumbs + * { margin-top: 0; }
.ev-person__name { margin-bottom: 20px !important; font-size: var(--wp--preset--font-size--page-title); }
.ev-person__name + * { margin-top: 0; }
.ev-person__city { color: var(--wp--preset--color--ink-2); }
.ev-person__bio > * { margin-block: 0; }
.ev-person__bio > * + * { margin-top: 16px; }
.ev-person__subtitle { margin: 48px 0 8px !important; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; }
.ev-person__work { margin-top: 0 !important; margin-bottom: 16px !important; font-size: var(--wp--preset--font-size--card-title); }

.ev-section__head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.ev-section__head > * { margin: 0; }
.ev-section__head p { color: var(--wp--preset--color--ink-2); }
.ev-person__history { max-width: 960px; margin: 0; padding: 0; border-top: 2px solid var(--wp--preset--color--ink); list-style: none; }
.ev-person__history :is(a, div) {
	display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: baseline;
	padding: 18px 0; border-bottom: 1px solid var(--wp--preset--color--line); color: inherit; font-weight: 400; text-decoration: none;
}
.ev-person__history b { font: 500 28px/1 var(--wp--preset--font-family--jost); }
.ev-person__history span { font: 500 22px/28px var(--wp--preset--font-family--jost); }
.ev-person__history small { color: var(--wp--preset--color--ink-2); font-size: 15px; }
.ev-person__history a:hover span { text-decoration: underline 2px var(--wp--preset--color--flame); text-underline-offset: 5px; }

/* ---------- Телефон ---------- */

@media (max-width: 860px) {
	.ev-arch { gap: 56px; }
	.ev-arch__row { grid-template-columns: 1fr; gap: 24px; }
	.ev-arch__row:nth-child(even) .ev-arch__pic { order: 0; }
	.ev-arch__pic > .ev-bands { inset: 50% -16px -16px -16px; }
	.ev-arch__num { left: 16px; top: 16px; width: 56px; height: 56px; font-size: 24px; }
	.ev-arch-forum { padding: 32px 22px; }

	.ev-news__top { grid-template-columns: 1fr; gap: 32px; }
	.ev-news__cards { grid-template-columns: 1fr; }
	.ev-news__subscribe { padding: 24px 20px; }

	.ev-person__grid { grid-template-columns: 1fr; gap: 32px; }
	.ev-person__portrait { position: static; max-width: 320px; margin-bottom: 24px; }
	.ev-person__history :is(a, div) { grid-template-columns: 64px 1fr; }
	.ev-person__history small { grid-column: 2; }
}
