/* ==========================================================================
   stavrev.net 3 — design system (same as demokrati.bg 3 / dabulgaria.bg 3)
   Black & white like the old logo, with the lime accent of „Да, България!“
   (the old theme marked leads with <mark>).
   Fonts: Sofia Sans / Sofia Sans Condensed (OFL, Lettersoup) — Bulgarian
   Cyrillic forms by default.
   ========================================================================== */

@font-face {
	font-family: "Sofia Sans";
	src: url("../fonts/SofiaSans.woff2") format("woff2");
	font-weight: 1 1000;
	font-display: swap;
}
@font-face {
	font-family: "Sofia Sans Condensed";
	src: url("../fonts/SofiaSansCondensed.woff2") format("woff2");
	font-weight: 1 1000;
	font-display: swap;
}

:root {
	/* Brand */
	--ink: #111;             /* logo black: buttons, dark bands */
	--ink-600: #333;         /* hover */
	--ink-2: #1b1b1b;        /* media / dark sections */
	--ink-3: #2b2b2b;        /* cards on dark */
	--accent: #a0c518;       /* lime, „Да, България!“ */
	--accent-600: #8aab12;
	--accent-ink: #111;      /* text on green */
	--ok: #1d7a3e;
	--no: #b42318;

	/* Neutrals */
	--text: #161616;
	--muted: #5e5e5e;
	--line: #e6e3dd;
	--paper: #f5f3ee;        /* warm off-white */
	--tint: #eeebe4;
	--white: #fff;
	--on-dark: #e9e9e9;
	--on-dark-muted: #a6a6a6;

	/* Type */
	--font: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Sofia Sans Condensed", "Sofia Sans", system-ui, sans-serif;

	/* Layout */
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
	--radius-lg: 14px;
	--header-h: 76px;
	--shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--white);
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #000; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1, h2 { font-weight: 800; }
h3, h4 { font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
mark { background: linear-gradient(transparent 12%, var(--accent) 12%, var(--accent) 88%, transparent 88%); color: inherit; padding: 0 .08em; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: .9em; height: .9em; display: inline-block; vertical-align: -.05em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

.overline {
	font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--text); margin: 0 0 .75rem;
	display: flex; align-items: center; gap: .6em;
}
.overline::before { content: ""; width: 22px; height: 4px; background: var(--accent); flex: none; }
.overline a { color: inherit; text-decoration: none; }
.overline a:hover { text-decoration: underline; }
.overline--light { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Buttons & links
   ----------------------------------------------------------------------- */
.btn {
	--b: var(--ink); --f: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .6em 1.4em;
	font-weight: 700; font-size: 1rem; line-height: 1.1; letter-spacing: .01em;
	background: var(--b); color: var(--f); border: 2px solid var(--b); border-radius: 999px;
	text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { --b: var(--ink-600); color: var(--f); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .45em 1.1em; font-size: .9375rem; }
.btn--accent { --b: var(--accent); --f: var(--accent-ink); }
.btn--accent:hover { --b: var(--accent-600); --f: var(--accent-ink); }
.btn--light { --b: #fff; --f: var(--ink); }
.btn--light:hover { --b: var(--accent); --f: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .5); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.more {
	display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
	font-weight: 700; text-decoration: none; color: var(--ink);
	background: linear-gradient(var(--accent), var(--accent)) 0 92% / 100% 4px no-repeat;
}
.more .icon { transition: transform .2s var(--ease); }
.more:hover { text-decoration: none; }
.more:hover .icon { transform: translateX(4px); }
.more--light { color: #fff; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 999px; background: transparent; color: var(--text);
	transition: background .2s;
}
.icon-btn:hover { background: var(--tint); }
.icon-btn--light { color: #fff; }
.icon-btn--light:hover { background: rgb(255 255 255 / .12); }

/* --------------------------------------------------------------------------
   Brand (portrait + name)
   ----------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--tint); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.625rem; line-height: 1; text-transform: uppercase; letter-spacing: -.005em; white-space: nowrap; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__photo { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--accent); }

/* --------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / .95);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgb(0 0 0 / .07); }
/* Logged in: keep the sticky header below the WordPress admin bar. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 10px 12px; border-radius: 999px;
	font-weight: 700; font-size: 1.0625rem; color: var(--text); text-decoration: none; white-space: nowrap;
	transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--tint); color: var(--ink); }
.main-nav a[aria-current] { box-shadow: inset 0 -4px 0 var(--accent); border-radius: 0; }
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.menu-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
	border: 2px solid var(--text); border-radius: 999px; background: transparent; font-weight: 700;
	transition: background .2s, color .2s;
}
.menu-btn:hover { background: var(--text); color: #fff; }

@media (max-width: 1000px) {
	:root { --header-h: 64px; }
	.main-nav { display: none; }
	.site-header__actions { margin-left: auto; }
	.brand__name { font-size: 1.375rem; }
	.brand__photo { width: 38px; height: 38px; }
}
@media (max-width: 420px) {
	.menu-btn span { display: none; }
	.menu-btn { padding: 0; width: 44px; justify-content: center; }
	.brand__name { font-size: 1.25rem; }
}

/* --------------------------------------------------------------------------
   Overlays (menu / search) — native <dialog>
   ----------------------------------------------------------------------- */
.overlay { width: 100%; height: 100%; inset: 0; position: fixed; margin: 0; overflow-y: auto; }
.overlay::backdrop { background: rgb(0 0 0 / .5); }
.overlay[open] { animation: overlay-in .25s var(--ease); }
@keyframes overlay-in { from { opacity: 0; transform: translateY(-12px); } }
.overlay__inner { padding-block: 16px 48px; min-height: 100%; display: flex; flex-direction: column; }
.overlay__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 24px; }

.overlay--menu { background: var(--ink); color: #fff; }
.overlay--menu a { color: #fff; text-decoration: none; }
.overlay__search { display: flex; border-bottom: 2px solid rgb(255 255 255 / .3); margin-bottom: 40px; }
.overlay__search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-size: 1.5rem; padding: 12px 0; outline: none; }
.overlay__search input::placeholder { color: rgb(255 255 255 / .55); }
.overlay__search button { background: none; border: 0; color: #fff; padding: 0 8px; }
.overlay__search:focus-within { border-color: var(--accent); }
.mega { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 40px; }
.mega__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; display: inline-block; margin-bottom: 12px; }
.mega__title:hover { color: var(--accent) !important; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; color: #cfcfcf !important; font-size: 1.0625rem; }
.mega li a:hover { color: #fff !important; }
.overlay__projects { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / .14); }
.overlay__h { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 14px; }
.overlay__projects ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px 32px; }
.overlay__projects a { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.overlay__projects img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.overlay__projects span { display: grid; line-height: 1.25; }
.overlay__projects strong { font-size: 1.125rem; }
.overlay__projects small { color: #cfcfcf; font-size: .875rem; }
.overlay__projects a:hover strong { color: var(--accent); }
.overlay__bottom { margin-top: auto; padding-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.overlay__mail { margin: 0; }
.overlay__mail a { display: inline-flex; align-items: center; gap: 8px; color: #cfcfcf !important; }

.overlay--search { background: var(--white); }
.big-search { display: flex; gap: 12px; align-items: center; border-bottom: 3px solid var(--text); padding-bottom: 8px; margin: 8vh 0 16px; }
.big-search input { flex: 1; min-width: 0; border: 0; outline: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6vw, 4rem); padding: 0; background: transparent; }
.big-search--small { max-width: 640px; margin: 32px auto; }
.big-search--small input { font-size: 2rem; }

/* --------------------------------------------------------------------------
   Social
   ----------------------------------------------------------------------- */
.social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.social--light a { border-color: rgb(255 255 255 / .25); color: #fff !important; }
.social--light a:hover { background: var(--accent); color: var(--ink) !important; border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }
.section--dark { background: var(--ink-2); color: #fff; }
.section--rule { border-top: 1px solid rgb(255 255 255 / .1); }
.section:not([class*="--"]) + .section:not([class*="--"]) { padding-top: 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head__title { font-size: clamp(2rem, 4.2vw, 3.25rem); margin: 0; }
.section--ink .section-head__title, .section--dark .section-head__title { color: #fff; }
.section--ink .more, .section--dark .more { color: #fff; }
.section--ink .overline, .section--dark .overline { color: var(--on-dark); }

.more-wrap { margin: 40px 0 0; }

/* --------------------------------------------------------------------------
   Grids & cards
   ----------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 32px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .875rem; color: var(--muted); }
.card__type { font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; padding: 1px 6px; background: var(--accent); color: var(--accent-ink); border-radius: 3px; }
.card__title { font-size: 1.375rem; line-height: 1.15; margin: 0; overflow-wrap: break-word; }
.card__title a { color: var(--text); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 4px no-repeat; transition: background-size .3s var(--ease); }
.card__title a::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.card:hover .card__title a { background-size: 100% 4px; }
.card__excerpt { margin: 4px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.card__play { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--accent); color: var(--ink); box-shadow: 0 4px 14px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.card__play .icon { width: 22px; height: 22px; margin-left: 3px; }
.card:hover .card__play { transform: scale(1.08); }

.placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink); background: linear-gradient(135deg, var(--paper), var(--tint)); }
.placeholder .mark { width: 22%; min-width: 40px; height: auto; }

/* lead card */
.card--lead .card__media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.card--lead .card__title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.05; }
.card--lead .card__excerpt { font-size: 1.125rem; }

/* row card */
.card--row { flex-direction: row-reverse; align-items: flex-start; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.card--row:first-child { border-top: 0; padding-top: 0; }
.card--row .card__media { flex: 0 0 34%; aspect-ratio: 4 / 3; }
.card--row .card__body { flex: 1; }
.card--row .card__title { font-size: 1.25rem; }
@media (max-width: 600px) {
	.card--row { display: grid; grid-template-columns: minmax(0, 1fr) 30%; grid-template-areas: "meta meta" "title media"; gap: 8px 14px; }
	.card--row .card__body { display: contents; }
	.card--row .card__meta { grid-area: meta; }
	.card--row .card__title { grid-area: title; font-size: 1.1875rem; line-height: 1.18; }
	.card--row .card__media { grid-area: media; align-self: start; }
	.card--row .card__excerpt { grid-column: 1 / -1; }
}

/* media card (dark) */
.card--media { color: #fff; }
.card--media .card__media { aspect-ratio: 16 / 9; background: var(--ink-3); }
.card--media .card__title { font-size: 1.1875rem; }
.card--media .card__title a { color: #fff; }
.card--media .card__meta { color: var(--on-dark-muted); }
.section--dark .placeholder, .page--dark .placeholder, .section--ink .placeholder { background: linear-gradient(135deg, #262626, #333); color: #bbb; }

/* cards on black ("Актуално") */
.section--ink .card__title a { color: #fff; }
.section--ink .card__meta { color: var(--on-dark-muted); }
.section--ink .card__excerpt { color: #cfcfcf; }
.section--ink .card--row { border-color: rgb(255 255 255 / .14); }
.section--ink .card__media { background: var(--ink-3); }
.section--ink a:focus-visible, .section--dark a:focus-visible, .page--dark a:focus-visible { outline-color: var(--accent); }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.listing-lead { margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Rail (horizontal scroller)
   ----------------------------------------------------------------------- */
.rail { position: relative; }
.rail__track {
	--pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
	display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 360px); gap: 24px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
	padding: 4px var(--pad) 24px; scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__controls { display: flex; gap: 8px; justify-content: flex-end; }
.rail__controls .icon-btn { border: 1px solid rgb(255 255 255 / .25); }
.rail__controls .icon-btn:disabled { opacity: .35; cursor: default; }

/* --------------------------------------------------------------------------
   Homepage intro & About
   ----------------------------------------------------------------------- */
.intro { padding-block: clamp(56px, 8vw, 112px); background: var(--paper); }
.intro__grid, .about__grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro__photo, .about__photo { margin: 0; position: relative; }
.intro__photo::before, .about__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--accent); border-radius: var(--radius-lg); }
.intro__photo img, .about__photo img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-lg); filter: grayscale(.15); }
.intro__title, .about__title { font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; line-height: .92; text-transform: uppercase; letter-spacing: -.015em; margin-bottom: .35em; }
.intro__lead { font-size: 1.25rem; max-width: 60ch; }
.intro__lead p:last-child { margin-bottom: 0; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.about { padding-block: clamp(40px, 6vw, 88px); }
.about__grid { align-items: start; }
.about__photo { position: sticky; top: calc(var(--header-h) + 32px); }
.about__text .social { margin-top: 32px; }
.about__mail a { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; }
@media (max-width: 860px) {
	.intro__grid, .about__grid { grid-template-columns: 1fr; }
	.intro__photo, .about__photo { max-width: 280px; position: relative; top: auto; }
}

/* --------------------------------------------------------------------------
   Priorities & proposals (Sofia)
   ----------------------------------------------------------------------- */
.priorities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; counter-reset: prio; }
.priority { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); color: #fff; min-height: 360px; isolation: isolate; }
.priority__media { position: absolute; inset: 0; z-index: -1; }
.priority__media img, .priority__media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.priority__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .05) 20%, rgb(0 0 0 / .85)); }
.priority:hover .priority__media img { transform: scale(1.05); }
.priority__body { margin-top: auto; padding: 24px; }
.priority__num { display: inline-block; font-family: var(--font-display); font-weight: 900; font-size: 1rem; padding: 2px 8px; background: var(--accent); color: var(--ink); border-radius: 3px; margin-bottom: 10px; }
.priority__title { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1; margin: 0; }
.priority__title a { color: #fff; text-decoration: none; }
.priority__title a::after { content: ""; position: absolute; inset: 0; }
.priority__sub { margin: 8px 0 0; font-size: .9375rem; color: #ddd; line-height: 1.4; }
.priority.is-current { outline: 4px solid var(--accent); outline-offset: 3px; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 12px; align-items: start; }
.topic-group[open] { grid-column: 1 / -1; }
.topic-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.topic-group summary { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.1; }
.topic-group summary::-webkit-details-marker { display: none; }
.topic-group summary:hover .topic-group__name { background-size: 100% 4px; }
.topic-group__name { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 4px no-repeat; transition: background-size .3s var(--ease); }
.topic-group__count { font-family: var(--font); font-size: .875rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--tint); }
.topic-group summary .icon { margin-left: auto; transition: transform .2s; color: var(--muted); }
.topic-group[open] summary .icon { transform: rotate(180deg); }
.topic-group__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; padding: 0 24px 24px; }
.topic { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; line-height: 1.25; transition: border-color .2s, background .2s; }
.topic:hover { border-color: var(--ink); text-decoration: none; }
.topic[aria-current] { background: var(--accent); border-color: var(--accent); }
.topic__media { flex: 0 0 72px; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--tint); }
.topic__media img, .topic__media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.topic__media .placeholder .mark { width: 60%; min-width: 0; }

/* Split page (priority / proposal) */
.split { padding-block: clamp(32px, 5vw, 72px); }
.split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split__title { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: .98; }
.split__lede { font-size: 1.25rem; color: var(--muted); }
.split__media { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.split__media img { width: 100%; border-radius: var(--radius-lg); }
.split__media figcaption { font-size: .875rem; margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) { .split__grid { grid-template-columns: 1fr; } .split__media { position: static; order: -1; } }

/* --------------------------------------------------------------------------
   Council work (homepage) & documents
   ----------------------------------------------------------------------- */
.council-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); }
.council-grid__h { font-family: var(--font); font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
@media (max-width: 900px) { .council-grid { grid-template-columns: 1fr; } }

.doc-list { display: grid; border-top: 1px solid var(--line); }
.doc { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc__date { display: grid; justify-items: center; padding: 8px 0; border-radius: var(--radius); background: var(--paper); font-family: var(--font-display); line-height: 1; }
.doc__day { font-weight: 800; font-size: 1.375rem; }
.doc__year { font-size: .875rem; color: var(--muted); margin-top: 4px; }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font-size: .875rem; color: var(--muted); }
.doc__title { font-family: var(--font); font-weight: 700; font-size: 1.1875rem; line-height: 1.3; margin: 0; }
.doc__title a { color: var(--text); text-decoration: none; }
.doc__title a::after { content: ""; position: absolute; inset: 0; }
.doc:hover .doc__title a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.doc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; position: relative; z-index: 1; }
.doc__thumb { width: 120px; }
.doc__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.section--paper .doc__date { background: #fff; }
@media (max-width: 600px) {
	.doc { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
	.doc__thumb { display: none; }
	.doc__day { font-size: 1.125rem; }
}

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--text); font-size: .8125rem; font-weight: 700; white-space: nowrap; text-decoration: none; line-height: 1.6; }
.badge--ok { background: #e4f3e9; color: var(--ok); }
.badge--no { background: #fdeceb; color: var(--no); }
.badge--link:hover { background: var(--ink); color: #fff; text-decoration: none; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 5vw, 72px); max-width: 1100px; margin-inline: auto; align-items: start; }
.doc-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); }
.doc-layout .article__figure { margin-bottom: 32px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-layout__aside { position: static; } }
.fact p { margin: 0; font-size: 1rem; }
.fact--lead p { font-size: 1.125rem; font-weight: 600; }
.fact__h, .facts dt { font-family: var(--font); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.facts { margin: 0; display: grid; gap: 4px; }
.facts dd { margin: 0 0 12px; font-weight: 700; font-size: 1rem; }

/* Filters (documents, comments) */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 16px; align-items: end; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); margin-bottom: 24px; }
.filters__field { display: grid; gap: 6px; min-width: 0; }
.filters__field--wide { grid-column: span 2; }
@media (max-width: 440px) { .filters__field--wide { grid-column: auto; } }
.filters label { font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filters input, .select select { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #d6d2ca; border-radius: var(--radius); background: #fff; color: var(--text); font-size: 1rem; }
.filters input:focus, .select select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgb(160 197 24 / .4); }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select .icon { position: absolute; right: 12px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.filter-bar .select { width: min(100%, 420px); }
.filter-bar__clear { font-weight: 700; font-size: .9375rem; }
.results-count { font-size: .9375rem; margin: 0 0 8px; }

/* Chips (filter links) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .9375rem; background: #fff; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips__count { font-weight: 600; opacity: .6; margin-left: 2px; }
@media (max-width: 700px) {
	.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.chips--scroll a { flex: none; }
}

/* Comments (Facebook posts) */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.timeline__month { grid-column: 1 / -1; font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 24px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.timeline__month:first-child { margin-top: 0; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); min-width: 0; }
.section--paper .post-card { border-color: transparent; box-shadow: var(--shadow); }
.post-card__src { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--text); }
.post-card__src .icon { width: 18px; height: 18px; color: #1877f2; }
.post-card__title { font-size: 1.375rem; line-height: 1.15; margin: 0; overflow-wrap: break-word; }
.post-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.post-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.post-card__embed { width: 100%; min-height: 480px; border: 0; border-radius: var(--radius); background: var(--paper); }
.post-card--open { grid-row: span 2; }

/* Projects (logos) */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.project { position: relative; display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: var(--ink-3); color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / .08); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.project:hover { color: #fff; text-decoration: none; background: #333; border-color: var(--accent); transform: translateY(-2px); }
.project__logo { flex: 0 0 88px; height: 120px; display: grid; place-items: center; }
.project__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 4px 12px rgb(0 0 0 / .35)); transition: transform .3s var(--ease); }
.project:hover .project__logo img { transform: scale(1.06); }
.project__body { display: grid; gap: 4px; min-width: 0; }
.project__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1; text-transform: uppercase; }
.project__slogan { font-weight: 700; color: var(--accent); line-height: 1.3; }
.project__text { color: #cfcfcf; font-size: .9375rem; line-height: 1.45; margin-top: 4px; }
.project__host { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; color: #fff; margin-top: 8px; }
@media (max-width: 420px) { .project { flex-direction: column; } .project__logo { flex-basis: auto; width: 88px; } }

/* --------------------------------------------------------------------------
   YouTube Shorts (inc/shorts.php): vertical cards, homepage rail, /video/ grid, player
   ----------------------------------------------------------------------- */
.short__link { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-3); color: #fff; text-decoration: none; isolation: isolate; }
.short__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.short__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 38%, rgb(0 0 0 / .72) 62%, rgb(0 0 0 / .94) 100%); }
.short__link:hover .short__img { transform: scale(1.04); }
.short__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.short__play { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--ink); box-shadow: 0 4px 14px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.short__play .icon { width: 18px; height: 18px; margin-left: 2px; }
.short__link:hover .short__play { transform: scale(1.08); }
.short__body { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.short__channel { align-self: flex-start; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; background: rgb(255 255 255 / .16); backdrop-filter: blur(4px); }
.short__title { margin: 0; color: #fff; font-size: 1.0625rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.short__body time { font-size: .8125rem; color: #cfcfcf; }

.rail--shorts .rail__track { grid-auto-columns: min(62vw, 250px); gap: 16px; }
.section--shorts .rail__controls .icon-btn { border-color: var(--line); }
.section--shorts .rail__controls .icon-btn:hover { background: var(--tint); }

.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 560px) {
	.shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.shorts-grid .short__body { padding: 10px; }
	.shorts-grid .short__title { font-size: .9375rem; -webkit-line-clamp: 3; }
	.shorts-grid .short__play { width: 32px; height: 32px; top: 8px; right: 8px; }
}
.page-hero--dark .page-hero__lead a { color: #fff; }

.short-player { width: 100%; height: 100%; margin: 0; inset: 0; position: fixed; background: transparent; display: grid; place-items: center; padding: 16px; }
.short-player:not([open]) { display: none; }
.short-player::backdrop { background: rgb(0 0 0 / .92); }
.short-player__frame { position: relative; height: min(86vh, 860px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px); border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.short-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.short-player .icon-btn { position: fixed; color: #fff; background: rgb(255 255 255 / .1); }
.short-player .icon-btn:hover { background: rgb(255 255 255 / .22); }
.short-player .icon-btn:disabled { opacity: .3; cursor: default; }
.short-player__close { top: 16px; right: 16px; }
.short-player__prev { left: 16px; top: 50%; translate: 0 -50%; }
.short-player__next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
	/* Phones: video on top, controls in a bar below so they don't cover YouTube's own */
	.short-player { padding: 0; place-items: start center; }
	.short-player__frame { height: calc(100dvh - 72px); max-width: 100vw; border-radius: 0; }
	.short-player .icon-btn { top: auto; bottom: 12px; translate: none; }
	.short-player__close { right: auto; left: 50%; translate: -50% 0 !important; }
}

/* --------------------------------------------------------------------------
   Page hero & article
   ----------------------------------------------------------------------- */
.page-hero { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero--dark { background: var(--ink); color: #fff; border: 0; }
.page-hero__title { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: .98; margin: 0; max-width: 20ch; }
.page-hero__lead { margin-top: 20px; max-width: 64ch; font-size: 1.25rem; color: var(--muted); }
.page-hero--dark .page-hero__lead { color: #cfcfcf; }
.page-hero--dark .overline { color: var(--on-dark); }
.page-hero__lead > :last-child { margin-bottom: 0; }
.page-hero + .section { padding-top: clamp(32px, 4vw, 56px); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 20px; padding: 0; font-size: .9375rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .45; }
.crumbs a { color: inherit; opacity: .75; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

.article { padding-block: clamp(32px, 5vw, 64px); }
.article__header { max-width: 860px; margin-inline: auto; }
.article__header--wide { max-width: 1100px; }
.article__title { font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.02; margin-bottom: 20px; overflow-wrap: break-word; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; border-block: 1px solid var(--line); margin-bottom: 32px; color: var(--muted); font-size: .9375rem; }
.page--dark .article__meta { border-color: rgb(255 255 255 / .14); color: var(--on-dark-muted); }
.article__lede { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: var(--text); font-weight: 500; margin-bottom: 28px; }
.article__figure { max-width: 1100px; margin: 0 auto 40px; }
.article__figure img { width: 100%; border-radius: var(--radius-lg); }
.article__figure .embed { border-radius: var(--radius-lg); }
.article__tags { max-width: 720px; margin: 32px auto 0; display: flex; flex-wrap: wrap; gap: 6px; }
.byline { display: inline-flex; align-items: center; gap: 10px; }
.byline img { width: 36px; height: 36px; border-radius: 50%; }

.share { display: flex; gap: 6px; align-items: center; }
.share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.share a:hover { background: var(--ink); color: #fff; }
.share .icon { width: 18px; height: 18px; }
.page--dark .share a { background: rgb(255 255 255 / .1); color: #fff; }
.page--dark .share a:hover { background: var(--accent); color: var(--ink); }

/* "Накратко" outline */
.outline { max-width: 720px; margin: 0 auto 40px; padding: 22px 26px; border-left: 6px solid var(--accent); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; }
.outline__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin: 0 0 8px; }
.outline ol { margin: 0; padding-left: 1.2em; }
.outline ul { margin: 4px 0; padding-left: 1.2em; }
.outline li { margin-bottom: 4px; font-weight: 600; }
.outline ul li { font-weight: 400; }
.outline a { text-decoration: none; }
.outline a:hover { text-decoration: underline; }

/* Long-form content */
.prose { max-width: 720px; margin-inline: auto; font-size: 1.1875rem; line-height: 1.7; overflow-wrap: break-word; }
.prose--left { margin-inline: 0; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-thickness: 4px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 6px solid var(--accent); font-family: var(--font-display); font-size: 1.625rem; line-height: 1.25; font-weight: 600; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .9375rem; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-bottom: 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .alignwide { max-width: 1000px; margin-inline: calc(50% - min(500px, 50vw - var(--gutter))); }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.prose .wp-block-gallery figure { margin: 0; }
.prose [data-zoom] { cursor: zoom-in; }
.page--dark .prose, .page--dark .article__lede { color: #ececec; }
.page--dark .prose a { color: #fff; }
.page--dark .prose .btn { color: var(--f); text-decoration: none; }
.page--dark .edit-link a, .section--ink .edit-link a, .section--dark .edit-link a { color: #fff; }
.page--dark .crumbs a { color: #fff; }

.embed { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 1.4em; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-audio { width: 100%; height: 166px; border: 0; }
audio { width: 100%; }

.edit-link { max-width: 720px; margin: 24px auto 0; font-size: .875rem; }
.split .edit-link, .about .edit-link, .doc-layout .edit-link { margin-inline: 0; }

/* Page with side navigation */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-layout__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-layout__foot .edit-link { margin: 0; }
.page-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.page-nav { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--paper); }
.page-nav__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; margin: 0 0 8px; }
.page-nav__title a { text-decoration: none; }
.page-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.page-nav li a { display: block; padding: 7px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 1rem; }
.page-nav li a:hover { text-decoration: underline; }
.page-nav li a[aria-current] { font-weight: 800; box-shadow: inset 4px 0 0 var(--accent); padding-left: 12px; }
.page-nav--private { background: #fff; border: 1px dashed #cfcac0; }
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; } .page-layout__aside { position: static; } }

/* Private page marker */
.page-hero--private { background: repeating-linear-gradient(135deg, var(--paper) 0 18px, #efece5 18px 36px); border-bottom: 3px dashed #cfc9bd; }
.private-badge { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 800; letter-spacing: .02em; }
.private-badge .icon { width: 16px; height: 16px; color: var(--accent); }
.private-badge span { font-weight: 500; color: #cfcfcf; }

/* Dark page variant (media) */
.page--dark { background: var(--ink-2); color: #fff; }

/* --------------------------------------------------------------------------
   Pagination, infinite feed, empty states
   ----------------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border: 0; }
.page--dark .pagination .page-numbers { border-color: rgb(255 255 255 / .2); color: #fff; }
.page--dark .pagination .current { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.feed-more { display: flex; justify-content: center; align-items: center; min-height: 96px; margin-top: 40px; }
.feed-more__spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.page--dark .feed-more__spinner { border-color: rgb(255 255 255 / .2); border-top-color: var(--accent); }
.page--dark .feed-more .btn--outline { color: #fff; border-color: rgb(255 255 255 / .5); }
.page--dark .feed-more .btn--outline:hover { background: #fff; color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .feed-more__spinner { animation-duration: 2.4s; } }

.dir-filter { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; margin: 0 0 40px; }
.dir-filter input { flex: 1; min-width: 0; border: 0; outline: none; padding: 12px 0; background: transparent; font-size: 1.125rem; }
.dir-filter:focus-within { border-color: var(--ink); }

.empty { text-align: center; padding-block: 96px; }
.empty--small { padding-block: 48px; }
.empty__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; margin: 0; color: var(--accent); -webkit-text-stroke: 3px var(--ink); }

/* --------------------------------------------------------------------------
   Image zoom (prose images)
   ----------------------------------------------------------------------- */
.zoom { width: 100%; height: 100%; inset: 0; position: fixed; margin: 0; background: rgb(0 0 0 / .92); display: grid; place-items: center; }
.zoom::backdrop { background: transparent; }
.zoom img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; }
.zoom__close { position: absolute; top: 12px; right: 12px; }
.zoom__caption { color: #ddd; font-size: .9375rem; text-align: center; padding: 8px 16px; }

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cfcfcf; font-size: 1rem; border-top: 6px solid var(--accent); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.site-footer__top { display: grid; grid-template-columns: minmax(260px, 1fr) 2.2fr; gap: 48px; padding-block: 64px 48px; }
.site-footer__brand .brand { margin-bottom: 20px; }
.site-footer__brand .brand:hover { text-decoration: none; }
.site-footer__claim { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.15; max-width: 20ch; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.site-footer__h { font-family: var(--font); font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 16px; }
.site-footer ul:not(.social) { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; }
.site-footer__legal { padding-block: 20px 32px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; color: var(--on-dark-muted); }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: #cfcfcf; text-decoration: underline; }
@media (max-width: 1000px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* Cookie note */
.cookie-note { position: fixed; inset: auto 0 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(0 0 0 / .08); font-size: .9375rem; }
.cookie-note__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.cookie-note p { margin: 0; }

/* WordPress bits */
.wp-block-image img { border-radius: var(--radius); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wp-block-embed iframe { max-width: 100%; }
.media-shorts { margin: 0 0 32px; }
