/* ==========================================================================
   dabulgaria.bg 3 — design system (forked from demokrati.bg 3)
   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 (from the logo). "--blue*" names are kept from the demokrati3 fork
	   and hold the „Да, България!“ purple. */
	--blue: #48155c;         /* logo purple */
	--blue-600: #5b2869;
	--blue-800: #2f0b3b;
	--ink: #21072b;          /* deep purple for dark bands */
	--lime: #a0c518;         /* logo green */
	--lime-600: #8aab12;
	--lime-ink: #1d2600;     /* text on lime */
	--red: #c62839;          /* errors / required only */
	--green: #6f8f0a;        /* lime dark enough for borders on white */

	/* Neutrals */
	--text: #1a1320;
	--muted: #625a68;
	--line: #e4dee8;
	--paper: #f6f3ee;        /* warm off-white */
	--white: #fff;
	--blue-50: #f3edf6;

	/* 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(33 7 43 / .06), 0 8px 24px rgb(33 7 43 / .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;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-800); }
:focus-visible { outline: 3px solid var(--blue-600); 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 { font-weight: 800; }
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; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
[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); }
.center { text-align: center; }
.muted { color: var(--muted); }

.overline {
	font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--blue); margin: 0 0 .75rem;
	display: flex; align-items: center; gap: .6em;
}
.overline::before { content: ""; width: 22px; height: 3px; background: linear-gradient(90deg, var(--blue) 0 50%, var(--lime) 50%); }
.overline--light { color: #dccbe3; }

.tricolor { height: 4px; background: linear-gradient(90deg, var(--blue) 0 70%, var(--lime) 70%); }

/* --------------------------------------------------------------------------
   Buttons & links
   ----------------------------------------------------------------------- */
.btn {
	--b: var(--blue); --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(--blue-800); color: var(--f); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: .45em 1.1em; font-size: .9375rem; }
.btn--accent { --b: var(--lime); --f: var(--lime-ink); }
.btn--accent:hover { --b: #b4da2a; --f: var(--lime-ink); }
.btn--light { --b: #fff; --f: var(--ink); }
.btn--light:hover { --b: #efe6f2; --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(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }

.more {
	display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
	font-weight: 700; text-decoration: none; color: var(--blue);
}
.more .icon { transition: transform .2s var(--ease); }
.more:hover .icon { transform: translateX(4px); }
.more--light { color: #fff; }
.more--light:hover { color: #e8dcec; }

.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(--blue-50); }
.icon-btn--light { color: #fff; }
.icon-btn--light:hover { background: rgb(255 255 255 / .12); }

/* --------------------------------------------------------------------------
   Breaking banner
   ----------------------------------------------------------------------- */
.breaking { background: var(--lime); color: var(--lime-ink); font-size: .9375rem; }
.breaking__inner { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.breaking__label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; padding: 3px 8px; border: 1px solid rgb(255 255 255 / .6); border-radius: 4px; flex: none; }
.breaking__text { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; flex: 1; min-width: 0; }
.breaking__text:hover { color: #fff; text-decoration: underline; }
.breaking__close { color: #fff; width: 36px; height: 36px; margin-left: auto; }
.breaking__close:hover { background: rgb(255 255 255 / .15); }

/* --------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgb(255 255 255 / .94);
	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(33 7 43 / .08); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { width: auto; height: 44px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: 10px 14px; border-radius: 999px;
	font-weight: 700; font-size: 1.0625rem; color: var(--text); text-decoration: none;
	transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--blue-50); color: var(--blue); }
.main-nav a[aria-current] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); 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: 960px) {
	:root { --header-h: 64px; }
	.main-nav, .site-header__cta { display: none; }
	.site-header__actions { margin-left: auto; }
	.brand img { height: 36px; }
}
@media (max-width: 420px) {
	.menu-btn span { display: none; }
	.menu-btn { padding: 0; width: 44px; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Overlays (menu / search) — native <dialog>
   ----------------------------------------------------------------------- */
.overlay { width: 100%; height: 100%; inset: 0; position: fixed; margin: 0; overflow-y: auto; }
.overlay::backdrop { background: rgb(33 7 43 / .5); }
.overlay[open] { animation: overlay-in .25s var(--ease); }
@keyframes overlay-in { from { opacity: 0; transform: translateY(-12px); } }
.overlay__inner { padding-block: 20px 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__logo { height: 40px; width: auto; }
.overlay__search { display: flex; border-bottom: 2px solid rgb(255 255 255 / .3); margin-bottom: 40px; }
.overlay__search input { flex: 1; 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: #fff; }
.mega { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 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(--lime); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; color: #e3d6e8; font-size: 1.0625rem; }
.mega li a:hover { color: #fff; }
.overlay__bottom { margin-top: auto; padding-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.overlay__parties { margin: 0; color: #c6afcf; font-size: .9375rem; }
.overlay__parties a { text-decoration: underline; }

.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; }

/* --------------------------------------------------------------------------
   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(--blue); border-color: var(--blue); color: #fff; }
.social--light a { border-color: rgb(255 255 255 / .25); color: #fff; }
.social--light a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--paper { background: var(--paper); }
.section--blue { background: var(--blue); color: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section--dark { background: #1a0522; color: #fff; }
.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--blue .section-head__title, .section--ink .overline, .section--ink .section-head__title, .section--dark .section-head__title { color: #fff; }
.section--blue .more, .section--ink .more, .section--dark .more { color: #fff; }
.section--blue .overline, .section--dark .overline { color: #dccbe3; }

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(120% 140% at 85% 10%, #6e2d86 0%, transparent 55%),
		linear-gradient(180deg, var(--blue) 0%, var(--ink) 100%);
	color: #fff;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; gap: 40px; min-height: min(64vh, 600px); padding-block: clamp(48px, 7vw, 96px) 0; }
.hero__text { padding-bottom: clamp(48px, 6vw, 88px); }
.hero__title {
	font-size: clamp(3rem, 7.4vw, 6.5rem); font-weight: 900; line-height: .92; letter-spacing: -.015em;
	text-transform: uppercase; margin-bottom: .3em;
}
.hero__title em { font-style: normal; display: block; color: var(--lime); }
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 36ch; color: #ecdff1; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 2vw, 24px); }
.bar { display: block; width: clamp(56px, 8vw, 120px); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: bar-up 1.1s var(--ease) both; }
.bar--blue { height: 92%; background: linear-gradient(180deg, #8b4fa3, #5b2869); }
.bar--red { height: 68%; background: var(--lime); animation-delay: .12s; }
.bar--green { height: 46%; background: #d3e49c; animation-delay: .24s; }
@keyframes bar-up { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .bar { animation: none; } }
@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; min-height: 0; }
	.hero__art { height: 120px; justify-content: flex-start; order: -1; display: none; }
	.hero__text { padding-bottom: 56px; }
}

/* --------------------------------------------------------------------------
   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)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--blue-50); }
.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; }
.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(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.card__title { font-size: 1.375rem; line-height: 1.15; margin: 0; }
.card__title a { color: var(--text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px 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% 2px; }
.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: rgb(255 255 255 / .95); color: var(--blue); 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(--blue); background: linear-gradient(135deg, var(--blue-50), #e8dced); }
.placeholder .mark { width: 22%; min-width: 40px; height: auto; opacity: .9; }

/* 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) {
	/* Phones: meta spans the full width, so the title starts level with a smaller thumbnail
	   instead of being squeezed into a narrow column under the date. */
	.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; }
}

/* compact card */
.card--compact { padding-block: 14px; border-top: 1px solid var(--line); }

/* media card (dark rail) */
.card--media { color: #fff; }
.card--media .card__media { aspect-ratio: 16 / 9; background: #2f1239; }
.card--media .card__title { font-size: 1.1875rem; }
.card--media .card__title a { color: #fff; }
.card--media .card__meta { color: #bca6c5; }
.section--dark .placeholder, .page--dark .placeholder { background: linear-gradient(135deg, #2f1239, #3d1849); color: #a87bb9; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@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; }

/* --------------------------------------------------------------------------
   Tiles
   ----------------------------------------------------------------------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tile {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
	padding: 20px 22px; border-radius: var(--radius); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18);
	color: #fff; font-weight: 700; font-size: 1.125rem; text-decoration: none; transition: background .2s, transform .2s var(--ease);
}
.tile:hover { background: rgb(255 255 255 / .16); color: #fff; transform: translateY(-2px); }
.section--paper .tile, .tiles--regions .tile { background: #fff; border-color: var(--line); color: var(--text); }
.section--paper .tile:hover { border-color: var(--blue); color: var(--blue); }

/* --------------------------------------------------------------------------
   Principles (manifest)
   ----------------------------------------------------------------------- */
.principles { position: relative; overflow: hidden; }
.principles::after { content: ""; position: absolute; right: -8%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(160 197 24 / .22), transparent 65%); pointer-events: none; }
.principles__head { max-width: 760px; margin-bottom: 40px; position: relative; z-index: 1; }
.principles__title { font-size: clamp(2rem, 4.4vw, 3.5rem); color: #fff; }
.principles__list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius-lg); overflow: hidden; position: relative; z-index: 1; }
.principles__list li { display: flex; gap: 18px; align-items: baseline; padding: 28px; background: var(--ink); font-family: var(--font-display); font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.15; }
.principles__num { font-size: 1rem; font-weight: 800; color: var(--lime); font-family: var(--font); letter-spacing: .06em; }

/* --------------------------------------------------------------------------
   Tabs
   ----------------------------------------------------------------------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
@media (max-width: 700px) {
	/* One swipeable row on phones; the fade hints there is more to the right. */
	.tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter) 64px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list [role="tab"] {
	flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
	border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 1rem; color: var(--text);
	transition: background .2s, color .2s, border-color .2s;
}
.tabs__list [role="tab"]:hover { border-color: var(--blue); color: var(--blue); }
.tabs__list [aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs__list [aria-selected="true"]:hover { color: #fff; }
.tabs__count { font-size: .8125rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: rgb(0 0 0 / .07); }
[aria-selected="true"] .tabs__count { background: rgb(255 255 255 / .2); }

/* --------------------------------------------------------------------------
   People
   ----------------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 32px 24px; margin-bottom: 32px; }
.person { position: relative; display: flex; flex-direction: column; gap: 12px; }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--blue-50); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.25); transition: transform .5s var(--ease), filter .3s; }
.person:hover .person__photo img { transform: scale(1.04); filter: none; }
.person__name { font-size: 1.25rem; margin: 0 0 2px; }
.person__name a { color: var(--text); text-decoration: none; }
.person__name a::after { content: ""; position: absolute; inset: 0; }
.person:hover .person__name a { color: var(--blue); }
.person__role { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.person--sm { flex-direction: row; align-items: center; }
.person--sm .person__photo { width: 64px; flex: none; aspect-ratio: 1; border-radius: 999px; }
.person--sm .person__name { font-size: 1.0625rem; }

/* --------------------------------------------------------------------------
   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: #1a0522; color: #fff; border: 0; }
.page-hero--blue { background: linear-gradient(180deg, var(--blue), var(--blue-800)); 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, .page-hero--blue .page-hero__lead { color: #ddcfe3; }
.page-hero--dark .overline, .page-hero--blue .overline { color: #dccbe3; }
.page-hero__lead > :last-child { margin-bottom: 0; }

.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__title { font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.02; margin-bottom: 20px; }
.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; }
.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); }

.share { display: flex; gap: 6px; align-items: center; }
.share span { margin-right: 4px; }
.share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.share a:hover { background: var(--blue); color: #fff; }
.share .icon { width: 18px; height: 18px; }

/* Long-form content */
.prose { max-width: 720px; margin-inline: auto; font-size: 1.1875rem; line-height: 1.7; }
.prose > * + * { margin-top: 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; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--lime); 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; }
.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; }
.page--dark .prose, .page--dark .article__lede { color: #efe7f2; }
.page--dark .prose a { color: var(--lime); }

.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; }

.edit-link { max-width: 720px; margin: 24px auto 0; font-size: .875rem; }

/* related / aside blocks */
.related { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.mini-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px 24px; }

/* --------------------------------------------------------------------------
   Pagination
   ----------------------------------------------------------------------- */
.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(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); 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: #fff; color: var(--ink); }

/* --------------------------------------------------------------------------
   Person page
   ----------------------------------------------------------------------- */
.profile { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(32px, 5vw, 64px); }
.profile__photo img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.profile__name { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: .98; margin-bottom: 12px; }
.profile__role { font-size: 1.25rem; color: var(--muted); margin-bottom: 24px; }
.profile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.profile .prose { margin-inline: 0; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile__photo { max-width: 320px; } }

/* Persons directory */
.dir-group { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.dir-group:first-of-type { border-top: 0; }
.dir-group__title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.dir-cat { margin-top: 40px; }
.dir-cat__title { font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.dir-cat__title small { font-family: var(--font); font-size: .9375rem; color: var(--muted); font-weight: 600; }
.councils { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 24px; }
.council { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.council summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.council summary::-webkit-details-marker { display: none; }
.council summary .icon { transition: transform .2s; color: var(--muted); }
.council[open] summary .icon { transform: rotate(180deg); }
.council summary small { color: var(--muted); font-weight: 600; margin-left: auto; }
.council__body { padding: 0 18px 18px; display: grid; gap: 12px; }
.dir-filter { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; margin-top: 16px; }
.dir-filter input { flex: 1; border: 0; outline: none; padding: 12px 0; background: transparent; }
.dir-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dir-jump a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9375rem; }
.dir-jump a:hover { border-color: var(--blue); color: var(--blue); }

/* Documents list */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 4px; }
.doc .icon { width: 28px; height: 28px; color: var(--blue); }
.doc__title { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.doc__title a { color: var(--text); text-decoration: none; }
.doc__title a::after { content: ""; position: absolute; inset: 0; }
.doc:hover .doc__title a { color: var(--blue); }
.doc__meta { font-size: .875rem; color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: .8125rem; font-weight: 700; white-space: nowrap; }

/* Dark page variant (media) */
.page--dark { background: #1a0522; color: #fff; }

/* Empty state / 404 */
.empty { text-align: center; padding-block: 96px; }
.empty__code { font-family: var(--font-display); font-weight: 900; font-size: clamp(6rem, 20vw, 12rem); line-height: 1; color: var(--blue-50); -webkit-text-stroke: 2px var(--blue); }

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d9cbe0; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: minmax(240px, 1fr) 3fr; gap: 48px; padding-block: 64px 48px; }
.site-footer__brand address { font-style: normal; line-height: 1.5; margin-bottom: 12px; }
.site-footer__brand .social { margin-top: 20px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.site-footer__nav ul { font-size: .9375rem; }
.site-footer__brand img { height: 52px; width: auto; margin-bottom: 20px; }
.site-footer__claim { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.15; max-width: 18ch; }
.site-footer__mail { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__h { font-family: var(--font); font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b39cbd; margin: 0 0 16px; }
.site-footer ul:not(.social) { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__parties { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 28px; border-top: 1px solid rgb(255 255 255 / .1); }
.site-footer__parties a { display: inline-flex; align-items: center; transition: transform .2s var(--ease); }
.site-footer__parties a:hover { transform: translateY(-2px); }
.site-footer__parties img { height: 40px; width: auto; }
.site-footer__legal { padding-block: 20px 32px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; color: #b39cbd; }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: #d9cbe0; 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(33 7 43 / .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); }

/* Chips (filter links) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 1rem; background: #fff; }
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chips a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.page--dark .chips a { background: transparent; border-color: rgb(255 255 255 / .25); color: #fff; }
.page--dark .chips a[aria-current] { background: #fff; color: var(--ink); border-color: #fff; }

/* People on dark backgrounds */
.page--dark .person__name a, .section--dark .person__name a { color: #fff; }
.page--dark .person__role, .section--dark .person__role { color: #bca6c5; }

.page-hero + .section { padding-top: clamp(32px, 4vw, 56px); }
@media (max-width: 700px) {
	.dir-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.dir-jump a { flex: none; }
}

/* Bars animate when the hero scrolls into view (JS adds .is-visible). */
.js .hero__art .bar { animation-play-state: paused; }
.js .hero__art.is-visible .bar { animation-play-state: running; }

/* "Актуално" on blue (homepage) — same gradient as the /aktualno/ page hero. */
.section--current { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-800) 100%); }
.section--blue .card__title a { color: #fff; }
.section--blue .card__meta { color: #cdb6d6; }
.section--blue .card__type { color: #fff; }
.section--blue .card__excerpt { color: #e2d5e8; }
.section--blue .card--row { border-color: rgb(255 255 255 / .16); }
.section--blue .card__media { background: rgb(255 255 255 / .08); }
.section--blue .placeholder { background: linear-gradient(135deg, #5b2869, #48155c); color: #fff; }
.section--blue a:focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form-layout__main:only-child { grid-column: 1 / -1; }
.form-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.form-layout__aside .person__photo { max-width: 240px; }
.form-intro { margin-top: 24px; font-size: 1rem; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } .form-layout__aside { position: static; order: -1; } .form-layout__aside .person { flex-direction: row; align-items: center; } .form-layout__aside .person__photo { width: 96px; } }
.form-title { font-size: 2rem; }
.form { display: grid; gap: 20px; max-width: 760px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; }
.field label, .dates legend { font-weight: 700; font-size: 1rem; }
.field label span[aria-hidden] { color: var(--red); }
.field input, .field textarea, .field select {
	width: 100%; padding: 12px 14px; border: 1.5px solid #d9d0de; border-radius: var(--radius); background: #fff; color: var(--text);
	font-size: 1.0625rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(72 21 92 / .12); }
.field input[type="file"] { padding: 10px; background: var(--paper); }
.field label > input { margin-top: 6px; font-weight: 400; }
.field--error input, .field--error textarea { border-color: var(--red); }
.field__error { margin: 0; color: var(--red); font-size: .9375rem; font-weight: 600; }
.form__note { font-size: .9375rem; margin: 0; }
.dates { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 20px; margin: 0; display: grid; gap: 16px; }
.dates legend { padding: 0 6px; }
.dates legend .muted { font-weight: 500; }
.dates__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dates__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 20px 24px; border-radius: var(--radius); border-left: 5px solid; margin-bottom: 24px; }
.notice > :last-child { margin-bottom: 0; }
.notice h2 { font-size: 1.75rem; }
.notice--success { background: #eaf6ef; border-color: var(--green); }
.notice--error { background: #fdecee; border-color: var(--red); color: #7a0a1c; }
.picker { margin-top: 24px; }
.picker__item { position: relative; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.picker__item:hover { border-color: var(--blue); background: var(--blue-50); }
.picker__link { position: absolute; inset: 0; z-index: 2; }

/* Infinite listing loader */
.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(--blue); animation: spin .8s linear infinite; }
.page--dark .feed-more__spinner { border-color: rgb(255 255 255 / .2); border-top-color: #fff; }
.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; } }
.badge--red { background: #fdecee; color: var(--red); }
.doc--link .icon { color: var(--blue); }
.search-people { margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.mega__sub { margin: 20px 0 6px; font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b39cbd; }
.overlay__cta { margin: 40px 0 0; }
@media (min-width: 961px) { .overlay__cta { display: none; } }

.site-footer__h a { color: inherit; }

/* Включи се */
.join { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.join__card { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 6px solid var(--blue); }
.join__card--member { border-top-color: var(--blue); }
.join__card--donate { border-top-color: var(--lime); }
.join__title { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.join__text { color: var(--muted); flex: 1; }
.join__links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.join__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--blue-50); color: var(--blue); font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.join__link:hover { background: var(--blue); color: #fff; }

/* --------------------------------------------------------------------------
   Campaigns / candidates
   ----------------------------------------------------------------------- */
.campaign-hero__grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ballot { display: grid; justify-items: center; gap: 4px; padding: 14px 22px 10px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.ballot__label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ballot__num { font-family: var(--font-display); font-weight: 900; font-size: 4.5rem; line-height: .9; color: var(--blue); }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 28px 20px; }
.cand { position: relative; display: flex; flex-direction: column; gap: 10px; }
.cand__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--blue-50); }
.cand__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .5s var(--ease); }
.cand:hover .cand__photo img { transform: scale(1.04); }
.cand__num { position: absolute; left: 10px; top: 10px; min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; box-shadow: 0 4px 12px rgb(0 0 0 / .2); }
.cand__name { font-size: 1.125rem; line-height: 1.2; margin: 0; }
.cand__name a { color: var(--text); text-decoration: none; }
.cand__name a::after { content: ""; position: absolute; inset: 0; }
.cand:hover .cand__name a { color: var(--blue); }
.cand__note { margin: -4px 0 0; font-size: .875rem; color: var(--muted); }
.cand__note--draft { color: var(--red); font-weight: 700; }
.cand-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 40px; }
.cand-tools .dir-filter { flex: 1 1 320px; max-width: 480px; }
.select select { appearance: none; padding: 12px 44px 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235a6577' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; font-weight: 600; color: var(--text); max-width: 100%; }
.cand-region { padding-block: 40px; border-top: 1px solid var(--line); margin: 0; }
.cand-region__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cand-region__head img { width: 56px; height: 56px; object-fit: contain; }
.cand-region__head p { margin: 0; }
.cand-region__title { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0; }
.cand-region__text { color: var(--muted); max-width: 70ch; }
.cand-sub { margin-top: 32px; }
.cand-sub__title { font-size: 1.375rem; margin-bottom: 16px; }
.cand-sub__title small { font-family: var(--font); font-size: .9375rem; font-weight: 600; color: var(--muted); }
.cand-facts { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cand-facts li { display: grid; gap: 2px; padding: 10px 16px; border-radius: var(--radius); background: var(--blue-50); }
.cand-facts span { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cand-facts strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--blue); }

/* Region picker (combobox) */
.combo { position: relative; }
.combo__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; color: var(--text); max-width: 100%; }
.combo__btn:hover, .combo__btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.combo__btn .icon { transition: transform .2s; }
.combo__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.combo__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo__panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(360px, calc(100vw - 2 * var(--gutter))); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgb(33 7 43 / .16); }
.combo__search { width: 100%; padding: 12px 14px; border: 1.5px solid #d9d0de; border-radius: var(--radius); font-size: 1rem; outline: none; }
.combo__search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(72 21 92 / .12); }
.combo__list { list-style: none; margin: 8px 0 0; padding: 0; max-height: min(50vh, 380px); overflow-y: auto; overscroll-behavior: contain; }
.combo__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); cursor: pointer; }
.combo__list li small { flex: none; font-weight: 700; font-size: .8125rem; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 1px 8px; }
.combo__list li:hover, .combo__list li.is-active { background: var(--blue-50); color: var(--blue); }
.combo__list li[aria-selected="true"] { font-weight: 800; color: var(--blue); }
.combo__empty { margin: 12px; color: var(--muted); }

/* Breaking banner on phones: label + close on top, text full width, max 3 lines */
@media (max-width: 700px) {
	.breaking__inner { flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-block: 8px 10px; }
	.breaking__label { order: 0; }
	.breaking__close { order: 1; margin-left: auto; margin-right: -8px; }
	.breaking__text { order: 2; flex: 1 0 100%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
	.breaking__text .icon { display: inline; vertical-align: -3px; width: 1em; height: 1em; }
	.breaking__inner:not(:has(.breaking__label)) .breaking__close { order: 3; }
	.breaking__inner:not(:has(.breaking__label)) .breaking__text { flex-basis: calc(100% - 48px); }
}

/* Dark article pages (media): lighter rules and meta. No inline border styles —
   WP core sets border-style:solid on any [style*=border-color]. */
.page--dark .article__meta { border-color: rgb(255 255 255 / .12); color: #bca6c5; }
.page--dark .related { border-color: rgb(255 255 255 / .1); }
.page--dark .share a { background: rgb(255 255 255 / .1); color: #fff; }
.page--dark .share a:hover { background: #fff; color: var(--ink); }
.section--rule { border-top: 1px solid rgb(255 255 255 / .1); }

/* Menu overlay search: magnifier in proportion with the 1.5rem input, 48px tap target */
.overlay__search button { display: grid; place-items: center; width: 48px; height: 48px; flex: none; margin-right: -6px; border-radius: 999px; }
.overlay__search input { min-width: 0; width: 100%; }
.overlay { overflow-x: hidden; }
.overlay__search button:hover { background: rgb(255 255 255 / .1); }
.overlay__search button .icon { width: 28px; height: 28px; max-width: none; }

/* Phones: two people per row instead of one full-width portrait */
@media (max-width: 560px) {
	.people, .cands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.person__name, .cand__name { font-size: 1.0625rem; }
	.person__role { font-size: .875rem; }
	.cand__num { min-width: 32px; height: 32px; font-size: 1rem; left: 8px; top: 8px; }
}

/* --------------------------------------------------------------------------
   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: #2f1239; 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(33 7 43 / .75) 62%, rgb(33 7 43 / .96) 100%); }
.short__link:hover .short__img { transform: scale(1.04); }
.short__link:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.short__play { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgb(255 255 255 / .95); color: var(--blue); 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: #ddcfe3; }

.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(--blue-50); }

.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(20 4 26 / .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; }
}

/* ==========================================================================
   dabulgaria.bg components
   ========================================================================== */

/* Header menu: item with CSS class "highlight" (e.g. „Избори 2026“) */
.main-nav a.highlight { background: var(--lime); color: var(--lime-ink); border-radius: 999px; padding-inline: .9em; }
.main-nav a.highlight:hover { background: #b4da2a; color: var(--lime-ink); }
.mega__title.highlight, .site-footer__h a.highlight { color: var(--lime); }

/* Page tiles (Вашите представители, Партията …) */
.ptiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.ptile { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.ptile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--blue); }
.ptile__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-50); }
.ptile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ptile:hover .ptile__img img { transform: scale(1.04); }
.ptile__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; }
.ptile__title .icon { color: var(--lime-600); transition: transform .2s var(--ease); }
.ptile:hover .ptile__title .icon { transform: translateX(3px); }
.ptiles--dark .ptile { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: #fff; }
.ptiles--dark .ptile:hover { background: rgb(255 255 255 / .12); color: #fff; }
.ptiles--dark .ptile__img { background: rgb(255 255 255 / .05); }
.ptiles--dark .placeholder { background: linear-gradient(135deg, #3a1248, #2a0b35); color: #a87bb9; }
.ptiles--dark .ptile__title .icon { color: var(--lime); }

/* Join band */
.join-band { background: linear-gradient(90deg, rgb(246 250 232 / .94) 0%, rgb(246 250 232 / .8) 28%, rgb(246 250 232 / .15) 60%, rgb(246 250 232 / 0) 100%), url("../img/bg/team.jpg") center 30% / cover no-repeat, #eef5d6; }
.join-band .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.join-band__title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--blue); margin-bottom: .2em; }
.join-band__lead { font-size: 1.1875rem; color: var(--muted); max-width: 32ch; }
.join-band__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.join-tile { display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; padding: 24px 16px 20px; background: #fff; border-radius: var(--radius-lg); text-decoration: none; color: var(--text); text-align: center; border-bottom: 4px solid var(--lime); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.join-tile:hover { transform: translateY(-4px); color: var(--blue); }
.join-tile__img { display: grid; place-items: center; width: 96px; height: 96px; color: var(--blue); }
.join-tile__img img { max-height: 96px; width: auto; object-fit: contain; }
.join-tile__img .mark { width: 72px; }
.join-tile__title { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
@media (max-width: 860px) { .join-band .container { grid-template-columns: 1fr; } }

/* Support band */
.support-band { background: linear-gradient(90deg, rgb(33 7 43 / .94) 0%, rgb(33 7 43 / .82) 45%, rgb(47 11 59 / .45) 100%), url("../img/bg/supporters.jpg") center / cover no-repeat, var(--blue-800); color: #fff; padding-block: clamp(56px, 8vw, 104px); }
.support-band__inner { display: grid; grid-template-columns: minmax(0, 2fr) auto; gap: 32px 48px; align-items: center; }
.support-band__title { font-size: clamp(1.875rem, 3.6vw, 2.875rem); color: #fff; }
.support-band__lead { color: #ecdff1; font-size: 1.1875rem; max-width: 62ch; margin: 0; }
.support-band__title { max-width: 26ch; }
@media (max-width: 860px) { .support-band { background: linear-gradient(rgb(33 7 43 / .86), rgb(33 7 43 / .86)), url("../img/bg/supporters.jpg") center / cover no-repeat, var(--blue-800); } }
.support-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .support-band__inner { grid-template-columns: 1fr; } }

/* Representatives band */
.ptiles--contain .ptile__img { background: linear-gradient(160deg, #fff, var(--blue-50)); }
.ptiles--contain .ptile__img img { object-fit: contain; padding: 14px; }

/* Campaign */
.campaign-hero { background: radial-gradient(80% 120% at 100% 0%, #6e2d86 0%, transparent 60%), var(--blue); color: #fff; padding-block: clamp(36px, 5vw, 64px); }
.campaign-hero .crumbs a { color: #dccbe3; }
.campaign-hero__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 32px; }
.campaign-hero__title { font-size: clamp(2.25rem, 5vw, 4rem); margin: 0; }
.campaign-hero__title a { color: #fff; text-decoration: none; }
.campaign-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.campaign-link { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; height: 100%; padding: 10px 18px 10px 10px; border-radius: var(--radius-lg); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); color: #fff; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.campaign-link:hover { background: rgb(255 255 255 / .16); color: #fff; transform: translateY(-2px); }
.campaign-link img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.campaign-link__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.campaign-link__sub { display: block; font-size: .9375rem; color: #dccbe3; line-height: 1.3; margin-top: 2px; }
.campaign-link .icon { color: var(--lime); }
@media (max-width: 1000px) { .campaign-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .campaign-links { grid-template-columns: 1fr; } }

/* Events */
.card--event { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.event-date { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; color: var(--blue); }
.event-date__day { font-family: var(--font-display); font-weight: 900; font-size: 2.5rem; line-height: 1; }
.event-date__month { font-weight: 700; }
.card--event .card__meta { display: flex; align-items: center; gap: 6px; }

/* Footer address */
.site-footer address { color: #d9cbe0; }

/* Big „ДА“ mark (homepage closing hero) */
.hero__art--da { display: grid; place-items: center; align-self: center; }
.da-mark { position: relative; display: block; width: clamp(180px, 18vw, 260px); aspect-ratio: 1; margin: clamp(56px, 6vw, 76px) 56px; }
.da-mark img { position: relative; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
.da-mark__ring { position: absolute; inset: 0; border-radius: 50%; }
.da-mark__ring--1 { background: rgb(160 197 24 / .22); transform: scale(1.16); }
.da-mark__ring--2 { background: rgb(160 197 24 / .12); transform: scale(1.34); }
.da-mark__ring--3 { border: 2px solid rgb(160 197 24 / .25); transform: scale(1.52); }
@media (prefers-reduced-motion: no-preference) {
	/* Runs when the section scrolls into view (.is-visible from main.js), like the bars on demokrati3. */
	.js .da-mark img { transform: scale(.6) rotate(-12deg); opacity: 0; transition: transform .9s cubic-bezier(.3, 1.5, .5, 1), opacity .5s; }
	.js .da-mark__ring { opacity: 0; transform: scale(.9); transition: transform 1.1s var(--ease), opacity .8s; }
	.js .is-visible .da-mark img { transform: none; opacity: 1; }
	.js .is-visible .da-mark__ring { opacity: 1; }
	.js .is-visible .da-mark__ring--1 { transform: scale(1.16); transition-delay: .25s; }
	.js .is-visible .da-mark__ring--2 { transform: scale(1.34); transition-delay: .4s; }
	.js .is-visible .da-mark__ring--3 { transform: scale(1.52); transition-delay: .55s; }
	.is-visible .da-mark__ring--3 { animation: da-pulse 3.2s 1.8s ease-in-out infinite; }
	@keyframes da-pulse { 50% { transform: scale(1.6); opacity: .4; } }
}
@media (max-width: 860px) { .hero__art--da { display: none; } }

/* ==========================================================================
   pages
   ========================================================================== */
/* Generic pages, payments, FAQ, apps (merged into main.css before release) */

/* Page with side navigation */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.page-layout .prose, .page-layout .article__figure, .page-layout .edit-link { max-width: none; margin-inline: 0; }
.page-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.page-layout__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-layout__foot .edit-link { margin: 0; }
.article:not(:has(.page-layout)) .page-layout__foot { max-width: 720px; margin-inline: auto; }
@media (max-width: 960px) { .page-layout { grid-template-columns: 1fr; } .page-layout__aside { position: static; } }

.page-nav { border-left: 3px solid var(--lime); padding-left: 20px; }
.page-nav__title { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.page-nav__title a { color: var(--muted); text-decoration: none; }
.page-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.page-nav li a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3; }
.page-nav li a:hover { color: var(--blue); }
.page-nav li a[aria-current] { color: var(--blue); font-weight: 800; }

.aside-box { padding: 24px; border-radius: var(--radius-lg); background: var(--blue-50); font-size: 1rem; }
.aside-box--plain { background: none; border: 1px solid var(--line); }
.aside-box__title { font-family: var(--font); font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }
.aside-box p:last-child { margin-bottom: 0; }

.prose--wide { max-width: none; }
.prose--lead { font-size: clamp(1.25rem, 1.8vw, 1.4375rem); }
.article--tight { padding-bottom: 0; }
.card--page .card__title { font-size: 1.5rem; }

/* Split page */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split .prose { margin: 0; }
.split__media { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.split__media img { width: 100%; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media { order: -1; position: static; } }

/* Apps */
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 20px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.app__icon { width: 112px; height: 112px; display: grid; place-items: center; color: var(--blue); }
.app__icon img { max-height: 112px; width: auto; border-radius: 22px; }
.app__icon .mark { width: 80px; }
.app__title { font-size: 1.375rem; margin: 0; }
.app__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: auto 0 0; }
.app__links .btn { min-height: 36px; padding: .35em .9em; font-size: .875rem; }
.app__links .icon { width: 1em; height: 1em; }

/* FAQ */
.faq { max-width: 860px; margin: 32px auto 0; }
.faq__group { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 48px 0 16px; }
.faq__group:first-child { margin-top: 0; }
.faq__intro { margin: 0 0 16px; max-width: none; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-of-type { border-top: 1px solid var(--line); }
.faq__item summary { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 800; }
.faq__q { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
.faq__item summary:hover .faq__q { color: var(--blue); }
.faq__toggle { position: relative; width: 20px; height: 20px; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 2px; background: var(--blue); transition: transform .2s var(--ease); }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: rotate(0); }
.faq__item[open] .faq__num { background: var(--lime); color: var(--lime-ink); }
.faq__a { max-width: none; padding: 0 0 24px 56px; }
@media (max-width: 560px) { .faq__a { padding-left: 0; } .faq__item summary { grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 12px; } .faq__num { width: 32px; height: 32px; } }

/* Payment form */
.pay-intro { margin-bottom: 32px; }
.pay { display: grid; gap: 28px; }
.pay__step { margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.pay__step legend { display: flex; align-items: center; gap: 12px; padding: 0 8px; margin-left: -8px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.pay__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font); font-size: 1rem; }
.pay__note { font-size: .9375rem; margin-bottom: 20px; }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 20px; }
.amount input, .paytype input { position: absolute; opacity: 0; pointer-events: none; }
.amount span { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; min-height: 52px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 800; font-size: 1.125rem; cursor: pointer; transition: border-color .15s, background .15s; }
.amount:hover span { border-color: var(--blue); }
.amount input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.amount input:focus-visible + span, .paytype input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.field--amount { max-width: 260px; }
.field--amount.is-locked input { background: var(--paper); color: var(--muted); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix span { display: grid; place-items: center; padding: 0 16px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper); font-weight: 700; }
.paytypes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 16px; }
.paytype span { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; }
.paytype small { color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.paytype input:checked + span { border-color: var(--blue); background: var(--blue-50); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field__help { margin: 0; color: var(--muted); font-size: .875rem; }
.field--captcha { max-width: 360px; }
.btn--lg { min-height: 56px; padding: .7em 1.8em; font-size: 1.125rem; }
.pay-done { padding: 32px; border-radius: var(--radius-lg); background: var(--blue-50); }
.pay-bank { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 20px 0 0; }
.pay-bank dt { color: var(--muted); }
.pay-bank dd { margin: 0; font-weight: 600; }
.pay-bank code { font-size: 1.0625rem; }
@media (max-width: 640px) { .fields, .paytypes { grid-template-columns: 1fr; } .pay__step { padding: 20px 16px; } }

/* ==========================================================================
   media
   ========================================================================== */
/* ==========================================================================
   News, media library, podcast, events, English section
   ========================================================================== */

.listing-lead { margin-bottom: clamp(40px, 6vw, 72px); }
.chips__count { font-weight: 600; opacity: .6; font-size: .875em; margin-left: 2px; }
.page--dark .chips a[aria-current] .chips__count { opacity: .7; }

/* Podcast */
.podcast-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.podcast-hero__cover { width: clamp(160px, 20vw, 280px); height: auto; border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgb(0 0 0 / .35); }
.podcast-hero__listen { margin-top: 28px; }
.platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.platform { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .35); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; transition: background .2s, color .2s; }
.platform:hover { background: #fff; color: var(--blue); }
@media (max-width: 760px) { .podcast-hero__grid { grid-template-columns: 1fr; } .podcast-hero__cover { order: -1; width: 140px; } }

.episodes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.episode { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); }
.episode__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); }
.episode__img img, .episode__img .placeholder { width: 100%; height: 100%; object-fit: cover; }
.episode__title { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 4px 0 10px; }
.episode__title a { color: var(--text); text-decoration: none; }
.episode__title a:hover { color: var(--blue); }
.episode audio { width: 100%; max-width: 560px; height: 40px; }
@media (max-width: 560px) { .episode { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; } }

.article__audio { max-width: 1100px; margin: 0 auto 40px; }
.article__audio audio { width: 100%; }

/* Events */
.events-grid { margin-bottom: clamp(40px, 6vw, 72px); }
.event-facts { list-style: none; margin: 0 0 32px; padding: 16px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); }
.event-facts li { display: inline-flex; align-items: center; gap: 8px; }
.event-facts .icon { color: var(--blue); }

.region-link { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; font-weight: 600; }
.region-link .icon { color: var(--lime-600); }
.page--dark .region-link a { color: var(--lime); }
.page--dark .related { border-color: rgb(255 255 255 / .12); }

/* English home */
.en-hero { background: linear-gradient(90deg, rgb(33 7 43 / .92) 0%, rgb(33 7 43 / .7) 55%, rgb(33 7 43 / .35)), var(--hero-img, none) center / cover no-repeat, var(--ink); }
.en-hero .hero__text { padding-block: clamp(64px, 10vw, 140px); max-width: 760px; }
.en-hero__feature { display: inline-grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; margin-top: 8px; padding: 18px 22px; border-radius: var(--radius-lg); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); color: #fff; text-decoration: none; max-width: 560px; transition: background .2s; }
.en-hero__feature:hover { background: rgb(255 255 255 / .18); color: #fff; }
.en-hero__feature .overline { grid-column: 1 / -1; margin: 0; }
.en-hero__feature-title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.15; }
.en-hero__feature .icon { color: var(--lime); }
.en-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.en-block .section-head { margin-top: 0; }
.en-block .section-head + * { margin-top: 0; }
.en-block__img { margin: 0 0 24px; }
.en-block__img img { width: 100%; border-radius: var(--radius-lg); }
.en-chair { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.en-chair__photo img { width: 100%; border-radius: var(--radius-lg); }
.en-chair__name { font-size: 1.75rem; }
.en-block .prose + .section-head { margin-top: 48px; }
@media (max-width: 860px) { .en-grid { grid-template-columns: 1fr; } .en-chair { grid-template-columns: 110px minmax(0, 1fr); } }

/* ==========================================================================
   people
   ========================================================================== */
/* ==========================================================================
   People, structure, regions, sectors, campaigns (dabulgaria3)
   ========================================================================== */

.subnav { margin: 24px 0 0; }
.article--tight { padding-block: clamp(28px, 4vw, 48px) 0; }
.article--tight .prose { margin-inline: 0; max-width: 820px; }
.article--tight .edit-link { max-width: 820px; margin-inline: 0; }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--people { padding-block: clamp(36px, 5vw, 64px); }
.section--people .people { margin-bottom: 0; }
.more-wrap { margin: 32px 0 0; text-align: center; }
.btn[aria-busy="true"] { opacity: .6; }
.section--dark .grid .card--media .card__title a { color: #fff; }

/* Directory (all representatives) */
.section--dir { padding-top: clamp(28px, 4vw, 48px); }
.dir-cat__title a { color: inherit; text-decoration: none; }
.dir-cat__title a:hover { color: var(--blue); }
.people > [data-person-name] { display: contents; }
.people > [data-person-name][hidden] { display: none; }

/* Profile (single-teams, single-candidate) */
.profile__parts { margin: -12px 0 24px; color: var(--muted); }
.profile__parts a { font-weight: 700; }
.profile .social { margin-bottom: 28px; }
.profile .social a { border-color: var(--line); }
.profile__note { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--red); background: #fdecee; border-radius: var(--radius); font-size: 1rem; }
.profile__note strong { display: block; }
.profile__video { margin-top: 24px; }
.profile__video .embed { border-radius: var(--radius-lg); overflow: hidden; }
.facts { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; max-width: 720px; }
.facts li { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 16px; padding: 14px 20px; background: #fff; font-size: 1.0625rem; }
.facts span { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }
.motivation summary { cursor: pointer; display: inline-flex; list-style: none; }
.motivation summary::-webkit-details-marker { display: none; }
.motivation[open] summary { margin-bottom: 24px; }
.profile h2.profile__h { font-size: 1.75rem; margin: 40px 0 16px; }
.profile h2.profile__h:first-child { margin-top: 0; }

/* Entity cards: local organisations, working groups */
.ents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.ents--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.ent { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.ent:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ent__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50); }
.ent__img img { width: 100%; height: 100%; object-fit: cover; }
.ent__img img.is-person { object-position: 50% 20%; }
.ent__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.ent__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; margin: 0; }
.ent__title a { color: var(--text); text-decoration: none; }
.ent__title a::after { content: ""; position: absolute; inset: 0; }
.ent:hover .ent__title a { color: var(--blue); }
.ent__meta { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.ent__meta .icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; color: var(--blue); }
.ent__text { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.ent__text p { margin: 0 0 .4em; }
.ents--compact .ent { flex-direction: row; align-items: center; border-radius: var(--radius); }
.ents--compact .ent__body { padding: 12px 16px; }
.ents--compact .ent__title { font-size: 1.125rem; }
.ents-divider { margin: 40px 0 20px; font-size: 1.5rem; }

/* Region page */
.org { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(32px, 5vw, 72px); padding-block: clamp(32px, 5vw, 56px); align-items: start; }
.org .prose { margin-inline: 0; }
.org__aside { display: grid; gap: 20px; }
.org__aside h2 { font-size: 1rem; font-family: var(--font); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.org__fb { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--blue-50); color: var(--blue); text-decoration: none; font-weight: 700; line-height: 1.25; }
.org__fb .icon { width: 28px; height: 28px; flex: none; }
.org__fb:hover { background: var(--blue); color: #fff; }
.org__back { margin-top: 24px; }
@media (max-width: 860px) { .org { grid-template-columns: 1fr; } }

/* Candidates */
.cand-photo-ph { aspect-ratio: 4 / 5; }
.cand__name { font-family: var(--font-display); font-weight: 700; }
.cand__name strong { display: block; font-weight: 900; }
.cand__num { background: var(--lime); color: var(--lime-ink); }
.cand-types { margin-bottom: 32px; }
.cand-region--grid { border-top: 0; padding-block: 0 32px; }
.cand-region { scroll-margin-top: calc(var(--header-h) + 16px); }
.campaign-page__content { margin-bottom: 40px; }
.campaign-page__content .prose { margin-inline: 0; }
.candidate-campaign { margin-bottom: 8px; }
.candidate-campaign a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.candidate-pdf { margin: 0 0 28px; }
@media (max-width: 560px) {
	.ents:not(.ents--compact) { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ents:not(.ents--compact) .ent__body { padding: 12px; }
	.ents:not(.ents--compact) .ent__title { font-size: 1.125rem; }
	.ents:not(.ents--compact) .ent__text { display: none; }
	.ents--compact { grid-template-columns: 1fr 1fr; }
	.campaign-banner img { width: 100%; }
}
.campaign-banner img { width: 100%; height: auto; }

/* Party structure: leadership band (first three bodies) + the rest */
.party-lead { background: linear-gradient(180deg, rgb(33 7 43 / .2) 0%, rgb(33 7 43 / .55) 45%, rgb(33 7 43 / .9) 80%, var(--ink) 100%), url("../img/bg/founders.jpg") center 30% / cover no-repeat, var(--ink); }
.party-lead + .party-rest { padding-top: clamp(32px, 4vw, 48px); }
.ptiles--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.ptiles--lg .ptile__title { font-size: 1.75rem; padding: 20px 24px; }
.ptiles--dark.ptiles--contain .ptile__img { background: linear-gradient(160deg, #4a1a5c, #2f0b3b); }
.ptiles--dark.ptiles--contain .ptile__img img { padding: 20px; }
.ptiles--dark .ptile { background: #2a0a35; border-color: rgb(255 255 255 / .12); }
.ptiles--dark .ptile:hover { background: #3a1248; }
.ptiles--sm { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .ptiles--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ptiles--sm .ptile__title { font-size: 1.1875rem; padding: 14px 16px; }
@media (max-width: 560px) { .ptiles--sm { grid-template-columns: 1fr 1fr; } }

/* Homepage people tabs: six per row */
.people--home { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1100px) { .people--home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .people--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; } }

/* Tiles stretched across one row (e.g. the four „Вашите представители“) */
@media (min-width: 861px) { .ptiles--fill { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } .ptiles--fill .ptile__img { aspect-ratio: 16 / 9; } }
