/*
Theme Name: Alma Mater
Theme URI: https://www.radioalmamater.bg
Author: Радио Alma Mater
Description: Тема за Радио Alma Mater (88 MHz, София) – плеър на живо, програма, предавания, новини и „Сега звучи“.
Version: 1.0.4
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: alma
*/

/* ---------- Основа ---------- */
:root {
	--ink: #1A0F2E;
	--deep: #2A1650;
	--brand: #663391;
	--muted: #514866;
	--line: #DDD7E8;
	--bg: #F7F5FB;
	--soft: #D9CCF0;
	--lilac: #B794F6;
	--live: #FF6B4A;
	--white: #FFFFFF;
	--radius: 22px;
	--wrap: 1280px;
	--head: "Unbounded", system-ui, sans-serif;
	--body: "Manrope", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: 32px; }
.more { font-weight: 700; color: var(--brand); }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; animation: alma-pulse 1.6s infinite; }
@keyframes alma-pulse { 50% { opacity: 0.35; } }
@keyframes alma-eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Бутони */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 14px 22px; border-radius: 999px; min-height: 48px; border: 1.5px solid transparent; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--deep); color: var(--white); }
.btn--outline { border-color: var(--ink); }
.btn--brand { background: var(--brand); color: var(--white); border: 0; }
.btn--brand:hover { color: var(--white); filter: brightness(1.1); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--white); background: var(--c, var(--brand)); }
.chip:hover { color: var(--white); filter: brightness(1.12); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; color: var(--white); font-size: 12px; font-weight: 700; background: var(--c, var(--brand)); }

/* Икони за пускане/пауза според състоянието на плеъра */
.ico-pause { display: none; }
html.is-playing .ico-play { display: none; }
html.is-playing .ico-pause { display: block; }
html.is-loading .ico-play { opacity: 0.5; }

/* ---------- Хедър ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s ease; }
.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 16px; padding-bottom: 16px; transition: padding 0.25s ease; }
.brand { display: flex; align-items: center; gap: 18px; flex: none; }
.brand__logo { width: 150px; height: 150px; transition: width 0.25s ease, height 0.25s ease; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; transition: font-size 0.25s ease; }
.brand__sub { font-size: 15px; color: var(--muted); font-weight: 600; }
.brand__freq { font-size: 16px; color: var(--brand); font-weight: 700; }
.main-nav { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 2px; }
.main-nav a { display: block; padding: 12px 8px; font-weight: 700; font-size: 16px; border-radius: 10px; white-space: nowrap; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav a[aria-current="page"] { color: var(--brand); background: #F1EAFB; }
.listen-btn { flex: none; margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: var(--white); border: 0; border-radius: 999px; padding: 14px 24px; min-height: 52px; font-weight: 700; font-size: 17px; }
.listen-btn:hover { filter: brightness(1.1); }
.listen-btn__ico { display: none; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; }
.site-header.is-compact { box-shadow: 0 4px 16px rgba(26, 15, 46, 0.08); }
.site-header.is-compact .site-header__in { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-compact .brand__logo { width: 64px; height: 64px; }
.site-header.is-compact .brand__name { font-size: 24px; }
.site-header.is-compact .brand__sub, .site-header.is-compact .brand__freq { display: none; }

@media (max-width: 1180px) {
	.brand__logo { width: 110px; height: 110px; }
	.brand__name { font-size: 28px; }
	.main-nav a { font-size: 15px; padding: 10px 8px; }
}
@media (max-width: 1220px) {
	.brand__logo { width: 84px; height: 84px; }
	.brand__name { font-size: 24px; }
	.brand__sub { font-size: 14px; }
	.brand__freq { font-size: 13px; }
	.menu-toggle { display: inline-flex; order: 3; flex: none; }
	.listen-btn { order: 2; margin-left: 0; padding: 12px 18px; min-height: 48px; font-size: 15px; }
	.brand { order: 1; flex: 1 1 auto; min-width: 0; gap: 12px; }
	.main-nav { order: 4; flex-basis: 100%; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; flex-wrap: wrap; }
	.main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-header.is-compact .brand__logo { width: 48px; height: 48px; }
	.site-header.is-compact .brand__name { font-size: 20px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 520px) {
	.listen-btn .listen-btn__label, .listen-btn .dot-live { display: none; }
	.listen-btn__ico { display: flex; }
	.listen-btn { padding: 0; width: 48px; justify-content: center; }
	.brand__sub { display: none; }
	.brand__logo { width: 64px; height: 64px; }
	.brand__name { font-size: 20px; }
	.site-header__in { gap: 10px; }
}

/* ---------- Начало: hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; padding-top: 64px; padding-bottom: 56px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero__title { font-weight: 800; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.03em; white-space: pre-line; }
.hero__lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.chips, .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btns { gap: 12px; }

.onair { flex: 1 1 420px; min-width: 0; background: var(--deep); color: var(--white); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.onair a { color: var(--white); }
.onair__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onair__badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.12); padding: 8px 12px; border-radius: 999px; }
.onair__time { font-weight: 600; font-size: 15px; color: var(--soft); }
.onair__show { font-size: 34px; }
.onair__hosts { font-size: 17px; color: var(--soft); margin-top: 8px; }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.eq span { flex: 1; border-radius: 4px; transform-origin: bottom; opacity: 0.85; }
html.is-playing .eq span { animation: alma-eq 0.9s ease-in-out infinite; opacity: 1; }
.np { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 12px; }
.np__cover { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--brand); }
.np__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); }
.np__title, .np__artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np__title { font-weight: 700; font-size: 17px; }
.np__artist { font-size: 15px; color: var(--soft); }
.onair__play { display: flex; align-items: center; gap: 20px; }
.bigplay { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 0; background: var(--white); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.onair__state { font-weight: 700; font-size: 16px; }
.onair__next { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: 15px; }
.onair__next span:first-child { color: var(--soft); }
.onair__next strong { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); display: inline-block; flex: none; }

/* ---------- Програма ---------- */
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; }
.days button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sched[hidden] { display: none; }
.slot { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.slot:hover { border-color: var(--c); color: var(--ink); }
.slot__time { align-self: flex-start; font-family: var(--head); font-weight: 700; font-size: 18px; padding: 6px 12px; border-radius: 10px; background: var(--c, var(--brand)); color: var(--white); }
.slot__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.slot__meta { font-size: 14px; opacity: 0.85; }
.slot.is-now { background: var(--c, var(--brand)); color: var(--white); border-color: transparent; }
.slot.is-now .slot__time { background: var(--white); color: var(--c, var(--brand)); }
.empty { color: var(--muted); padding: 20px 0; }

/* ---------- Песни ---------- */
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .hero { padding-top: 32px; gap: 32px; } .onair { padding: 24px; } .onair__show { font-size: 26px; } .section { padding-top: 48px; padding-bottom: 48px; } .app__art { height: 320px; } }
.track { display: flex; flex-direction: column; gap: 6px; }
.track img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--soft); margin-bottom: 4px; }
.track__time { font-size: 13px; font-weight: 700; color: var(--muted); }
.track__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.track__artist { font-size: 14px; color: var(--muted); }

/* ---------- Предавания ---------- */
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.show-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.show-card:hover { color: var(--ink); border-color: var(--c); transform: translateY(-2px); transition: transform 0.15s ease; }
.show-card__tile { position: relative; height: 170px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: var(--c, var(--brand)); overflow: hidden; }
.show-card__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; mix-blend-mode: luminosity; }
.show-card__tile > span { position: relative; }
.show-card__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.show-card__name { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.15; }
.show-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.show-card__when { font-weight: 700; font-size: 15px; }
.show-card__who { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Новини ---------- */
.news { display: flex; flex-wrap: wrap; gap: 32px; }
.news__lead { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.news__lead .thumb { height: 320px; }
.news__lead h3 { font-size: 26px; line-height: 1.2; }
.news__lead p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.news__list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.news-row { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.news-row:first-child { padding-top: 0; }
.news-row__meta, .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.news-row__title { font-weight: 700; font-size: 18px; line-height: 1.35; }
.thumb { width: 100%; border-radius: var(--radius); object-fit: cover; background: var(--c, #E9E4F1); }
.thumb--empty { display: flex; align-items: center; justify-content: center; }
.thumb--empty img { width: 96px; height: 96px; opacity: 0.9; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.card .thumb { height: 200px; }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Приложение ---------- */
.app { background: #EFE8FA; border-top: 1px solid var(--line); }
.app__in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.app__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.app__icon { display: flex; align-items: center; gap: 16px; }
.app__icon img { width: 72px; height: 72px; border-radius: 18px; }
.app__title { font-weight: 800; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.app__lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; font-weight: 600; font-size: 16px; }
.features li { display: flex; align-items: center; gap: 10px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--white); border-radius: 14px; padding: 10px 20px 10px 16px; min-height: 56px; }
.store:hover { color: var(--white); background: var(--deep); }
.store small { display: block; font-size: 12px; color: var(--soft); line-height: 1.1; }
.store strong { display: block; font-size: 18px; line-height: 1.15; }
.store.is-soon { opacity: 0.75; }
.app__art { flex: 1 1 380px; min-width: 0; height: 400px; border-radius: 28px; background: var(--brand); overflow: hidden; position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 48px; }
.app__art .blob { position: absolute; border-radius: 50%; opacity: 0.9; }
.app__phone { position: relative; width: 210px; flex: none; border-radius: 32px; background: var(--ink); padding: 8px; box-shadow: 0 20px 40px rgba(26, 15, 46, 0.35); }
.app__phone img { border-radius: 25px; width: 100%; }

/* ---------- Лента „епизоди“ ---------- */
.band { background: var(--deep); color: var(--white); }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band__text { display: flex; flex-direction: column; gap: 14px; flex: 1 1 420px; }
.band h2 { font-size: 30px; }
.band p { font-size: 17px; color: var(--soft); }
.stripes { display: flex; gap: 6px; }
.stripes span { width: 28px; height: 6px; border-radius: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { color: var(--white); font-weight: 700; padding: 14px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.socials a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* ---------- Футър ---------- */
.site-footer { background: var(--ink); color: var(--soft); }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--white); }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 40px; font-size: 15px; line-height: 1.6; padding-top: 56px; padding-bottom: 120px; }
.site-footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.site-footer__col:first-child { flex-basis: 280px; gap: 10px; }
.site-footer__col strong { color: var(--white); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__logo { width: 110px; height: 110px; }

/* ---------- Плеър долу ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.player__in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.player__cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--brand); }
.player__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.player__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FF8A70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__now { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__time { font-size: 14px; color: var(--soft); flex: none; }
.player__btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; }
.player__vol { width: 96px; accent-color: var(--lilac); }
.player__err { font-size: 13px; color: #FFB4A3; }
@media (max-width: 640px) { .player__time, .player__vol { display: none; } }
body { padding-bottom: 72px; }

/* ---------- Вътрешни страници ---------- */
.page-head { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); }
.page-head p { font-size: 18px; color: var(--muted); max-width: 720px; }
.show-hero { background: var(--c, var(--brand)); color: var(--white); }
.show-hero__in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.show-hero__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.show-hero__text h1 { font-size: clamp(34px, 4.6vw, 58px); }
.show-hero__when { display: flex; flex-wrap: wrap; gap: 8px; }
.show-hero__when span { background: rgba(255, 255, 255, 0.16); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.show-hero__img { flex: 0 1 420px; border-radius: var(--radius); overflow: hidden; }
.show-hero a { color: var(--white); }
.layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.layout__side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-size: 20px; }
.prose { font-size: 18px; line-height: 1.7; max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img, .prose figure { border-radius: 14px; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--lilac); font-style: italic; color: var(--muted); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.article-head { padding-top: 48px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.article-head h1 { font-size: clamp(30px, 4vw, 48px); }
.article-cover { margin-top: 32px; border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); background: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 14px; }
.filters a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; }
.notfound { text-align: center; padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.notfound h1 { font-size: clamp(36px, 6vw, 72px); }
.alignwide { max-width: 1100px; }
.alignfull { width: 100%; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); }

/* ---------- „За нас“ и „Екип“ (блокове в страниците) ----------
 * В класическа тема WordPress слага блока „Група“ в допълнителен
 * .wp-block-group__inner-container – затова правилата важат и за него. */
.prose:has(.team-grid), .prose:has(.about-grid) { max-width: none; }
.prose:has(.team-grid) > p, .prose:has(.about-grid) > p, .prose:has(.about-grid) > h2 { max-width: 760px; }
.prose .lead { font-size: 21px; color: var(--muted); }
.about-grid, .team-grid { margin: 32px 0 48px; }
.about-grid:not(:has(> .wp-block-group__inner-container)), .about-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.team-grid:not(:has(> .wp-block-group__inner-container)), .team-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.prose .about-grid *, .prose .team-grid * { margin-top: 0; }
.about-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 6px solid var(--c, var(--brand)); }
.about-card:nth-child(6n+1) { --c: #663391; } .about-card:nth-child(6n+2) { --c: #C2410C; } .about-card:nth-child(6n+3) { --c: #0E7C66; }
.about-card:nth-child(6n+4) { --c: #B0306A; } .about-card:nth-child(6n+5) { --c: #3B3FB6; } .about-card:nth-child(6n+6) { --c: #8A5A00; }
.about-card h3 { font-size: 20px; margin: 0 0 10px; }
.about-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team-card figure, .team-card .wp-block-image { margin: 0; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 !important; }
.team-card h3 { font-size: 20px; margin: 0; padding: 20px 22px 4px; }
.team-card .team-role { color: var(--brand); font-weight: 700; font-size: 14px; margin: 0; padding: 0 22px 10px; }
.team-card p:not(.team-role) { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; padding: 0 22px 22px; }
