/* ==========================================================================
   Demokrati.bg 3 — design system
   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: #034a80;
	--blue-600: #0a5c9c;
	--blue-800: #02375f;
	--ink: #071c33;          /* deep navy for dark bands */
	--red: #c8102e;
	--green: #00873e;

	/* Neutrals */
	--text: #101826;
	--muted: #5a6577;
	--line: #dde2e8;
	--paper: #f4f2ed;        /* warm off-white */
	--white: #fff;
	--blue-50: #eaf1f8;

	/* 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(7 28 51 / .06), 0 8px 24px rgb(7 28 51 / .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 33%, var(--red) 33% 66%, var(--green) 66%); }
.overline--light { color: #b9d3ea; }

.tricolor { height: 4px; background: linear-gradient(90deg, var(--blue) 0 60%, var(--red) 60% 80%, var(--green) 80%); }

/* --------------------------------------------------------------------------
   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(--red); }
.btn--accent:hover { --b: #a00d25; }
.btn--light { --b: #fff; --f: var(--ink); }
.btn--light:hover { --b: #dbe8f4; --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: #cfe2f3; }

.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(--red); color: #fff; 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(7 28 51 / .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(7 28 51 / .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: #9cc3e6; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; color: #c8d8e8; 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: #9fb3c8; 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: #0d1522; 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 .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: #b9d3ea; }

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(120% 140% at 85% 10%, #0b4f88 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: #8ec3f0; }
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 36ch; color: #d7e5f2; 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, #4f9be0, #1f6fb5); }
.bar--red { height: 68%; background: var(--red); animation-delay: .12s; }
.bar--green { height: 46%; background: var(--green); 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(--red); 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), #dce8f3); }
.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: #1b2738; }
.card--media .card__title { font-size: 1.1875rem; }
.card--media .card__title a { color: #fff; }
.card--media .card__meta { color: #93a3b8; }
.section--dark .placeholder, .page--dark .placeholder { background: linear-gradient(135deg, #1b2738, #23344b); color: #6f9bc8; }

.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(10 92 156 / .45), 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: #8ec3f0; 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: #0d1522; 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: #c9d8e7; }
.page-hero--dark .overline, .page-hero--blue .overline { color: #b9d3ea; }
.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(--red); 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: #e3ebf4; }
.page--dark .prose a { color: #9cc9f2; }

.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: #0d1522; 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: #c4d2e1; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.2fr 1fr; gap: 40px; padding-block: 64px 48px; }
.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: #8aa3bd; 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; padding: 8px 14px; background: #fff; border-radius: var(--radius); 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: #8aa3bd; }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: #c4d2e1; text-decoration: underline; }
@media (max-width: 1100px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { 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(7 28 51 / .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: #93a3b8; }

.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: #a9c4dd; }
.section--blue .card__type { color: #fff; }
.section--blue .card__excerpt { color: #cfdeec; }
.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, #0d5a97, #0a4b80); 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 #c9d1db; 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(3 74 128 / .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(--red); }
.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: #8aa3bd; }
.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(--red); }
.join__card--donate { border-top-color: var(--green); }
.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(7 28 51 / .16); }
.combo__search { width: 100%; padding: 12px 14px; border: 1.5px solid #c9d1db; border-radius: var(--radius); font-size: 1rem; outline: none; }
.combo__search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(3 74 128 / .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: #93a3b8; }
.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: #1b2738; 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(7 28 51 / .75) 62%, rgb(7 28 51 / .96) 100%); }
.short__link:hover .short__img { transform: scale(1.04); }
.short__link:focus-visible { outline: 3px solid var(--red); 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(--red); 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: #c9d8e7; }

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