/* ==========================================================================
   МАНУ Custom Theme — main.css
   Institutional, accessible, responsive. Green accent for continuity.
   BEM with `manu-` prefix.
   ========================================================================== */

:root {
	--manu-green:        #409F74;
	--manu-green-dark:   #2f7d5a;
	--manu-green-darker: #266349;
	--manu-ink:          #23292f;   /* body text — high contrast */
	--manu-ink-soft:     #4a545e;
	--manu-line:         #e2e6ea;
	--manu-bg:           #ffffff;
	--manu-bg-soft:      #f5f7f8;
	--manu-topbar:       #444e58;   /* the old dark header colour, reused */
	--manu-footer:       #2b333b;

	--manu-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--manu-sans:  "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--manu-maxw: 1180px;
	--manu-radius: 6px;
	--manu-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--manu-sans);
	font-size: 17px;           /* generous base for older readers */
	line-height: 1.65;
	color: var(--manu-ink);
	background: var(--manu-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--manu-green-dark); text-decoration: none; }
a:hover, a:focus { color: var(--manu-green-darker); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--manu-serif); line-height: 1.25; color: var(--manu-ink); }

/* Accessibility helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
.manu-skip-link:focus {
	position: fixed; left: 12px; top: 12px; z-index: 999;
	width: auto; height: auto; clip: auto;
	background: #fff; color: var(--manu-green-darker);
	padding: 10px 16px; border-radius: var(--manu-radius);
	box-shadow: var(--manu-shadow);
}
:focus-visible {
	outline: 3px solid var(--manu-green);
	outline-offset: 2px;
}

/* Shared inner container */
.manu-header__inner,
.manu-layout__inner,
.manu-footer-widgets__inner,
.manu-footer__inner {
	max-width: var(--manu-maxw);
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.manu-header { background: var(--manu-bg); border-bottom: 3px solid var(--manu-green); }

.manu-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 14px;
	padding-bottom: 14px;
}
.manu-header__logo {
	flex: 0 0 auto;
	display: block;
	height: 88px;
	width: auto;
}
.manu-header__logo img,
.manu-header__logo .custom-logo,
.manu-header__logo a img {
	display: block;
	height: 88px !important;
	width: auto !important;
	max-width: none !important;
	object-fit: contain;
}

.manu-header__titles { flex: 1 1 auto; min-width: 0; }
.manu-header__title-mk {
	margin: 0;
	font-family: var(--manu-serif);
	font-weight: 700;
	font-size: clamp(1.05rem, 2.4vw, 1.6rem);
	letter-spacing: .01em;
	color: var(--manu-ink);
	text-transform: uppercase;
}
.manu-header__title-en {
	margin: 2px 0 0;
	font-size: clamp(.72rem, 1.4vw, .9rem);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--manu-ink-soft);
}
.manu-header__rule {
	display: block;
	width: 64px; height: 3px;
	margin-top: 8px;
	background: var(--manu-green);
}

/* header buttons */
.manu-search-toggle,
.manu-menu-toggle {
	flex: 0 0 auto;
	background: transparent;
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	color: var(--manu-ink);
	width: 46px; height: 46px;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.manu-search-toggle:hover,
.manu-menu-toggle:hover { border-color: var(--manu-green); color: var(--manu-green-dark); }
.manu-menu-toggle { display: none; flex-direction: column; gap: 4px; }
.manu-menu-toggle__bar { width: 22px; height: 2px; background: currentColor; }

/* Controls container (search + hamburger) */
.manu-header__controls {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Fullscreen search overlay */
.manu-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 20px;
}
.manu-search-overlay[hidden] { display: none; }

/* Dimmed themed backdrop */
.manu-search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(43, 51, 58, .82);   /* --manu-topbar tone, semi-transparent */
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .22s ease;
}

/* White modal panel */
.manu-search-overlay__panel {
	position: relative;
	width: 100%;
	max-width: 720px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
	padding: 32px clamp(20px, 5vw, 48px) 32px;
	transform: translateY(-14px) scale(.97);
	opacity: 0;
	transition: transform .22s ease, opacity .22s ease;
}

/* Open state (toggled by JS) */
.manu-search-overlay.is-open .manu-search-overlay__backdrop { opacity: 1; }
.manu-search-overlay.is-open .manu-search-overlay__panel { transform: translateY(0) scale(1); opacity: 1; }

/* Close (X) button — sits at the top-right, clear of the search icon */
.manu-search-overlay__close {
	position: absolute;
	top: -52px; right: 0;
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.12);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.manu-search-overlay__close:hover {
	background: #fff;
	color: var(--manu-green-dark);
}

/* Search form */
.manu-search-overlay__form {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 2px solid var(--manu-green);
	padding-bottom: 10px;
}
.manu-search-overlay__input {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--manu-serif);
	font-size: clamp(1.3rem, 4vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
	border: 0;
	padding: 6px 2px;
	color: var(--manu-ink);
	background: transparent;
}
.manu-search-overlay__input::placeholder { color: #aab2b9; }
.manu-search-overlay__input:focus { outline: none; }

.manu-search-overlay__submit {
	flex: 0 0 auto;
	width: 52px; height: 52px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--manu-green);
	color: #fff;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}
.manu-search-overlay__submit:hover { background: var(--manu-green-dark); }

/* Lock body scroll while overlay is open */
body.manu-search-open { overflow: hidden; }

@media (max-width: 560px) {
	.manu-search-overlay { padding: 20px; padding-top: 76px; }
	.manu-search-overlay__panel { padding: 28px 18px 22px; border-radius: 8px; }
	.manu-search-overlay__close { top: -48px; right: 0; }
	.manu-search-overlay__submit { width: 46px; height: 46px; }
}

/* ==========================================================================
   GALLERY LIGHTBOX
   ========================================================================== */
.manu-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 72px;
}
.manu-lightbox[hidden] { display: none; }

.manu-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(43, 51, 58, .92);   /* strong themed dim */
	opacity: 0;
	transition: opacity .24s ease;
}

.manu-lightbox__stage {
	position: relative;
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: scale(.94);
	opacity: 0;
	transition: transform .24s ease, opacity .24s ease;
}
.manu-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 128px);  /* never exceed viewport, keep ratio */
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 50px rgba(0,0,0,.5);
	background: #1f262d;
}
.manu-lightbox__caption {
	margin-top: 14px;
	max-width: 800px;
	color: #e6eaed;
	font-size: .95rem;
	text-align: center;
}

/* Open state */
.manu-lightbox.is-open .manu-lightbox__backdrop { opacity: 1; }
.manu-lightbox.is-open .manu-lightbox__stage { transform: scale(1); opacity: 1; }

/* Controls (X + arrows) share a look */
.manu-lightbox__close,
.manu-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.12);
	color: #fff;
	border: 0;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.manu-lightbox__close:hover,
.manu-lightbox__nav:hover { background: #fff; color: var(--manu-green-dark); }

.manu-lightbox__close {
	top: 18px; right: 18px;
	width: 48px; height: 48px;
	border-radius: 50%;
}
.manu-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 54px; height: 54px;
	border-radius: 50%;
}
.manu-lightbox__nav--prev { left: 18px; }
.manu-lightbox__nav--next { right: 18px; }
.manu-lightbox__nav[hidden] { display: none; }

.manu-lightbox__counter {
	position: absolute;
	bottom: 20px; left: 50%;
	transform: translateX(-50%);
	color: #cfd6dc;
	font-size: .9rem;
	letter-spacing: .04em;
	background: rgba(0,0,0,.3);
	padding: 4px 12px;
	border-radius: 999px;
}

/* Tablet */
@media (max-width: 900px) {
	.manu-lightbox { padding: 56px 20px; }
	.manu-lightbox__nav { width: 46px; height: 46px; }
	.manu-lightbox__nav--prev { left: 10px; }
	.manu-lightbox__nav--next { right: 10px; }
	.manu-lightbox__image { max-height: calc(100vh - 112px); }
}

/* Mobile: arrows move to the bottom so they don't overlap the image */
@media (max-width: 560px) {
	.manu-lightbox { padding: 56px 12px 84px; }
	.manu-lightbox__close { top: 12px; right: 12px; width: 44px; height: 44px; }
	.manu-lightbox__image { max-height: calc(100vh - 168px); }
	.manu-lightbox__nav {
		top: auto; bottom: 16px;
		transform: none;
		width: 48px; height: 48px;
	}
	.manu-lightbox__nav--prev { left: 30%; }
	.manu-lightbox__nav--next { right: 30%; }
	.manu-lightbox__counter { bottom: 74px; }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.manu-nav { background: var(--manu-bg); border-top: 1px solid var(--manu-line); }
.manu-nav .manu-header__inner { padding-top: 0; padding-bottom: 0; }

.manu-nav__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.manu-nav__list > li { position: relative; }
.manu-nav__list > li > a {
	display: block;
	padding: 15px 16px;
	font-weight: 600;
	font-size: .98rem;
	color: var(--manu-ink);
}
.manu-nav__list > li > a:hover,
.manu-nav__list > li:hover > a,
.manu-nav__list > li.current-menu-item > a,
.manu-nav__list > li.current-menu-parent > a {
	color: var(--manu-green-dark);
	text-decoration: none;
	box-shadow: inset 0 -3px 0 var(--manu-green);
}

/* dropdowns */
.manu-nav__list ul.sub-menu {
	list-style: none;
	margin: 0; padding: 6px 0;
	position: absolute;
	top: 100%; left: 0;
	min-width: 260px;
	background: #fff;
	border: 1px solid var(--manu-line);
	border-top: 3px solid var(--manu-green);
	box-shadow: var(--manu-shadow);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
	z-index: 60;
}
.manu-nav__list > li:hover > .sub-menu,
.manu-nav__list > li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.manu-nav__list .sub-menu a {
	display: block;
	padding: 9px 18px;
	font-size: .95rem;
	color: var(--manu-ink);
}
.manu-nav__list .sub-menu a:hover,
.manu-nav__list .sub-menu li.current-menu-item > a {
	background: var(--manu-bg-soft);
	color: var(--manu-green-dark);
	text-decoration: none;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.manu-hero {
	position: relative;
	max-width: var(--manu-maxw);
	margin: 22px auto 0;
	padding: 0 20px;
}
.manu-hero__track {
	position: relative;
	aspect-ratio: 980 / 408;
	border-radius: var(--manu-radius);
	overflow: hidden;
	background: var(--manu-bg-soft);
}
.manu-hero__slide {
	position: absolute; inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .6s ease;
}
.manu-hero__slide.is-active { opacity: 1; }
.manu-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.manu-hero__caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 16px 20px;
	background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
	color: #fff;
	font-family: var(--manu-serif);
	font-size: 1.15rem;
}
.manu-hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.9);
	color: var(--manu-ink);
	font-size: 1.6rem; line-height: 1;
	cursor: pointer;
	box-shadow: var(--manu-shadow);
}
.manu-hero__nav--prev { left: 30px; }
.manu-hero__nav--next { right: 30px; }
.manu-hero__nav:hover { background: #fff; color: var(--manu-green-dark); }
.manu-hero__dots {
	position: absolute; bottom: 12px; left: 0; right: 0;
	display: flex; gap: 8px; justify-content: center;
}
.manu-hero__dots button {
	width: 10px; height: 10px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.6);
	cursor: pointer;
}
.manu-hero__dots button.is-active { background: #fff; }

/* ==========================================================================
   LAYOUT (content + sidebar)
   ========================================================================== */
.manu-main { display: block; }
.manu-layout { padding: 34px 0 48px; }
.manu-layout__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}
.manu-layout__inner--narrow { display: block; max-width: 860px; }
.manu-layout:not(.manu-layout--sidebar) .manu-layout__inner { grid-template-columns: 1fr; }

.manu-section-title {
	margin: 0 0 22px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--manu-line);
}
.manu-section-title span { color: var(--manu-green-dark); }

.manu-archive-header { margin-bottom: 26px; }
.manu-archive-header .manu-section-title { margin-bottom: 0; }
.manu-archive-header__desc {
	margin-top: 14px;
	max-width: 68ch;
	color: var(--manu-ink-soft);
	line-height: 1.65;
}
.manu-archive-header__desc p:last-child { margin-bottom: 0; }

.manu-archive-empty {
	margin: 10px 0 0;
	padding: 20px 22px;
	background: var(--manu-bg-soft);
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	color: var(--manu-ink-soft);
}

/* ==========================================================================
   CARDS (news / events)
   ========================================================================== */
.manu-cards { display: flex; flex-direction: column; gap: 4px; }

.manu-card {
	display: block;
	padding: 20px 0;
	border-bottom: 1px solid var(--manu-line);
}
.manu-card--has-image .manu-card__body { display: grid; grid-template-columns: 180px 1fr; gap: 18px; }
.manu-card__thumb { display: block; margin-bottom: 14px; border-radius: var(--manu-radius); overflow: hidden; }
.manu-card--has-image .manu-card__thumb { margin: 0; }
.manu-card__thumb img { width: 100%; aspect-ratio: 400/260; object-fit: cover; }

.manu-card__body { display: flex; gap: 18px; align-items: flex-start; }

.manu-card__date {
	flex: 0 0 auto;
	width: 62px; text-align: center;
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	overflow: hidden;
	line-height: 1;
}
.manu-card__month {
	display: block;
	background: var(--manu-green);
	color: #fff;
	font-size: .72rem; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase;
	padding: 5px 0;
}
.manu-card__day {
	display: block;
	font-family: var(--manu-serif);
	font-size: 1.7rem; font-weight: 700;
	padding: 8px 0;
	color: var(--manu-ink);
}
.manu-card--has-image .manu-card__date { display: none; }

.manu-card__text { min-width: 0; }
.manu-card__title { margin: 0 0 8px; font-size: 1.28rem; font-weight: 600; }
.manu-card__title a { color: var(--manu-ink); }
.manu-card__title a:hover { color: var(--manu-green-dark); text-decoration: none; }

.manu-card__meta {
	list-style: none; margin: 0 0 8px; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 16px;
	font-size: .85rem; color: var(--manu-ink-soft);
}
.manu-card__meta a { color: var(--manu-ink-soft); }
.manu-card__meta a:hover { color: var(--manu-green-dark); }

.manu-card__excerpt { margin: 0 0 10px; color: var(--manu-ink-soft); }
.manu-card__more { font-weight: 600; }
.manu-card__more::after { content: " \2192"; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.navigation.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* paginate_links(type=list) wraps items in <ul class="page-numbers"> —
   neutralise the container so only the actual links/spans look like buttons. */
.pagination .nav-links ul.page-numbers {
	display: flex; flex-wrap: wrap; gap: 6px;
	list-style: none; margin: 0; padding: 0;
	border: 0; min-width: 0; height: auto;
}
.pagination .nav-links ul.page-numbers li { margin: 0; }

/* The button-like items: works for both <a class="page-numbers"> directly
   and <li><a class="page-numbers"> / <span class="page-numbers current">. */
.pagination a.page-numbers,
.pagination .nav-links > .page-numbers,
.pagination li > .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	color: var(--manu-ink); font-weight: 600;
	text-decoration: none;
}
.pagination a.page-numbers:hover,
.pagination li > a.page-numbers:hover { border-color: var(--manu-green); color: var(--manu-green-dark); text-decoration: none; }
.pagination .page-numbers.current { background: var(--manu-green); color: #fff; border-color: var(--manu-green); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.manu-sidebar { display: flex; flex-direction: column; gap: 24px; }
.manu-widget { }
.manu-widget img { border-radius: var(--manu-radius); }
.manu-widget__title {
	font-size: 1.05rem;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--manu-green);
}
.manu-widget ul { list-style: none; margin: 0; padding: 0; }
.manu-widget li + li { margin-top: 2px; }
.manu-widget li a {
	display: block;
	padding: 10px 14px;
	background: var(--manu-bg-soft);
	color: var(--manu-ink);
	border-radius: var(--manu-radius);
	font-size: .95rem;
}
.manu-widget li a:hover { background: var(--manu-green); color: #fff; text-decoration: none; }

/* ==========================================================================
   SINGLE / PAGE
   ========================================================================== */
.manu-single__title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 10px; }
.manu-single__meta,
.manu-card__cats { }
.manu-single__meta {
	list-style: none; margin: 0 0 20px; padding: 0;
	display: flex; flex-wrap: wrap; gap: 6px 16px;
	color: var(--manu-ink-soft); font-size: .9rem;
}
.manu-single__figure { margin: 0 0 24px; border-radius: var(--manu-radius); overflow: hidden; }
.manu-single__content > *,
.manu-page__content > * { margin-top: 0; }
.manu-single__content p,
.manu-page__content p { margin: 0 0 1.1em; }
.manu-single__content h2,
.manu-page__content h2 { margin: 1.6em 0 .5em; }
.manu-single__content img { border-radius: var(--manu-radius); margin: 1em 0; }

/* PDF docs */
.manu-docs { margin-top: 30px; padding-top: 22px; border-top: 2px solid var(--manu-line); }
.manu-docs__title { font-size: 1.2rem; margin: 0 0 12px; }
.manu-docs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.manu-docs__link {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 16px;
	background: var(--manu-bg-soft);
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	font-weight: 600;
	color: var(--manu-green-darker);
}
.manu-docs__link:hover { border-color: var(--manu-green); background: #fff; text-decoration: none; }
.manu-docs__link svg { color: var(--manu-green); flex: 0 0 auto; }

/* Post gallery (bottom of single post) */
/* ==========================================================================
   STANDARD PAGE (breadcrumbs + left menu + prose)
   ========================================================================== */
.manu-pagehead {
	background: var(--manu-bg-soft);
	border-bottom: 1px solid var(--manu-line);
}
.manu-pagehead__inner {
	max-width: var(--manu-maxw);
	margin: 0 auto;
	padding: 26px 20px;
}
.manu-pagehead__title {
	margin: 0;
	font-size: clamp(1.7rem, 4vw, 2.2rem);
	font-weight: 700;
	line-height: 1.15;
}
.manu-pagehead__rule {
	display: block;
	width: 60px; height: 3px;
	background: var(--manu-green);
	margin-top: 12px;
}

/* Breadcrumbs */
.manu-breadcrumbs {
	font-size: .85rem;
	color: var(--manu-ink-soft);
	margin-bottom: 12px;
}
.manu-breadcrumbs a { color: var(--manu-green-dark); }
.manu-breadcrumbs a:hover { color: var(--manu-green-darker); }
.manu-breadcrumbs__sep { margin: 0 7px; color: #aab2b9; }
.manu-breadcrumbs [aria-current="page"] { color: var(--manu-ink); }

/* Two-column layout */
.manu-stdpage { padding: 30px 0 48px; }
.manu-stdpage__inner {
	max-width: var(--manu-maxw);
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
	align-items: start;
}

/* No sidebar (e.g. category archive with no anchor page) — single column. */
.manu-stdpage__inner--full { grid-template-columns: 1fr; }

/* Left section menu */
.manu-page-side {
	position: sticky;
	top: 20px;
	align-self: start;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.manu-page-side__title {
	font-family: var(--manu-serif);
	font-size: .95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--manu-ink-soft);
	padding-bottom: 10px;
	border-bottom: 2px solid var(--manu-green);
	margin: 0 0 8px;
}
.manu-page-side__list,
.manu-page-side__sublist { list-style: none; margin: 0; padding: 0; }

/* Top-level items — NO dot */
.manu-page-side__list > .manu-page-side__item > a {
	display: block;
	padding: 11px 14px;
	font-size: .92rem;
	color: var(--manu-ink-soft);
	border-radius: var(--manu-radius);
}
.manu-page-side__list > .manu-page-side__item > a:hover {
	background: var(--manu-bg-soft);
	color: var(--manu-green-dark);
	text-decoration: none;
}

/* Sub-items — indented, smaller, WITH a dot marker */
.manu-page-side__sublist { padding-left: 14px; margin: 2px 0 4px; }
.manu-page-side__sublist .manu-page-side__item > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	font-size: .85rem;
	color: #6b7178;
	border-radius: var(--manu-radius);
}
.manu-page-side__sublist .manu-page-side__item > a::before {
	content: "";
	flex: 0 0 auto;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: #cfd6dc;
	transition: background .15s ease;
}
.manu-page-side__sublist .manu-page-side__item > a:hover {
	background: var(--manu-bg-soft);
	color: var(--manu-green-dark);
	text-decoration: none;
}
.manu-page-side__sublist .manu-page-side__item > a:hover::before { background: var(--manu-green); }

/* Active item (soft): green text + faint green bg + green dot (if sub) */
.manu-page-side__item.is-current > a {
	background: #f2f8f5;
	color: var(--manu-green-darker);
	font-weight: 600;
}
.manu-page-side__sublist .manu-page-side__item.is-current > a {
	background: transparent;   /* sub-items: no bg, just green text + dot */
}
.manu-page-side__sublist .manu-page-side__item.is-current > a::before { background: var(--manu-green); }

/* Ancestor of the current page (open trail) — subtly emphasised */
.manu-page-side__list > .manu-page-side__item.is-active-trail > a { color: var(--manu-ink); font-weight: 600; }
.manu-page-side__list li { margin-bottom: 2px; }

/* Prose content */
.manu-prose { font-size: 1.06rem; line-height: 1.75; }
.manu-prose > *:first-child { margin-top: 0; }
.manu-prose p { margin: 0 0 1.1em; }
.manu-prose h2 {
	font-size: clamp(1.3rem, 2.6vw, 1.6rem);
	margin: 1.6em 0 .5em;
}
.manu-prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.manu-prose img { border-radius: 8px; margin: 1.4em 0; }
/* Content images span the full width of the content column */
.manu-prose > img,
.manu-prose p > img,
.manu-prose figure img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}
.manu-prose figure { margin: 1.4em 0; }
.manu-prose figure img { margin: 0; }
.manu-prose figcaption {
	margin-top: 8px;
	font-size: .88rem;
	color: var(--manu-ink-soft);
	text-align: center;
}
/* Let editors opt out per-image with the "size-*" or alignment classes */
.manu-prose img.alignleft { width: auto; float: left; margin: .4em 1.4em .8em 0; max-width: 45%; }
.manu-prose img.alignright { width: auto; float: right; margin: .4em 0 .8em 1.4em; max-width: 45%; }
.manu-prose img.aligncenter { width: auto; margin-left: auto; margin-right: auto; }
.manu-prose ul, .manu-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.manu-prose li { margin-bottom: .4em; }
.manu-prose a { color: var(--manu-green-dark); text-decoration: underline; }
.manu-prose a:hover { color: var(--manu-green-darker); }
.manu-prose blockquote {
	border-left: 4px solid var(--manu-green);
	background: var(--manu-bg-soft);
	padding: 16px 20px;
	border-radius: 0 6px 6px 0;
	margin: 22px 0;
	font-family: var(--manu-serif);
	font-style: italic;
	font-size: 1.1rem;
	color: var(--manu-ink);
}
.manu-prose blockquote p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
	.manu-stdpage__inner { grid-template-columns: 1fr; gap: 26px; }
	.manu-page-side {
		order: -1;   /* menu above content on tablet/mobile */
		position: static;
		max-height: none;
		overflow: visible;
	}
}

/* ==========================================================================
   MEMBERS PAGE (sections + profile cards)
   ========================================================================== */
/* .manu-members now lives inside .manu-stdpage__content (right column) */
.manu-members { padding: 0; }
.manu-members__intro { margin-bottom: 30px; }

/* One block per membership category (multiple appear on the Членови page). */
.manu-members__category { margin-bottom: 56px; }
.manu-members__category:last-child { margin-bottom: 0; }
.manu-members__category-title {
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	font-weight: 700;
	margin: 0 0 28px;
}

.manu-members__section { margin-bottom: 42px; }
.manu-members__section:last-child { margin-bottom: 0; }
.manu-members__title {
	font-size: clamp(1.25rem, 2.6vw, 1.55rem);
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--manu-line);
}

.manu-members__grid {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
	gap: 16px;
}

.manu-mcard {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--manu-line);
	border-radius: 8px;
	overflow: hidden;
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.manu-mcard:hover {
	border-color: var(--manu-green);
	box-shadow: var(--manu-shadow);
	transform: translateY(-2px);
}
.manu-mcard__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1 1 auto;
	padding: 22px 16px 16px;
	color: inherit;
}
a.manu-mcard__inner:hover { text-decoration: none; }

.manu-mcard__photo {
	width: 84px; height: 84px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--manu-green);
	margin-bottom: 14px;
	background: var(--manu-bg-soft);
	flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
}
.manu-mcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.manu-mcard__photo--initials {
	font-family: var(--manu-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--manu-green-dark);
}

.manu-mcard__name {
	font-family: var(--manu-serif);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--manu-ink);
}
a.manu-mcard__inner:hover .manu-mcard__name { color: var(--manu-green-dark); }
.manu-mcard__role {
	font-size: .85rem;
	color: var(--manu-ink-soft);
	margin-top: 5px;
}

/* Email row — separate link at the bottom of the card */
.manu-mcard__email {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 12px;
	border-top: 1px solid var(--manu-line);
	background: var(--manu-bg-soft);
	font-size: .78rem;
	color: var(--manu-green-dark);
	word-break: break-all;
}
.manu-mcard__email:hover { background: #eef6f2; color: var(--manu-green-darker); text-decoration: none; }
.manu-mcard__email svg { flex: 0 0 auto; }

/* Deceased members — dignified memorial treatment */
.manu-mcard--deceased { background: #fcfcfb; }
.manu-mcard--deceased .manu-mcard__photo {
	border-color: #b8bfc5;
}
.manu-mcard--deceased .manu-mcard__photo img { filter: grayscale(1); }
.manu-mcard--deceased .manu-mcard__photo--initials { color: #6b7178; }
.manu-mcard--deceased .manu-mcard__inner { padding-bottom: 20px; }

.manu-mcard__years {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: .82rem;
	color: #6b7178;
}
.manu-mcard__years-dash {
	width: 14px; height: 1px;
	background: #b8bfc5;
}

@media (max-width: 560px) {
	.manu-members__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.manu-mcard__inner { padding: 18px 12px 14px; }
	.manu-mcard__photo { width: 70px; height: 70px; }
	.manu-mcard__email { font-size: .72rem; }
}


.manu-postgallery__title { font-size: 1.2rem; margin: 0 0 14px; }
.manu-postgallery__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}
.manu-postgallery__grid a {
	display: block;
	border-radius: var(--manu-radius);
	overflow: hidden;
	background: var(--manu-bg-soft);
}
.manu-postgallery__grid img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .25s ease, opacity .15s ease;
}
.manu-postgallery__grid a:hover img { transform: scale(1.05); opacity: .92; }

/* Previous / next post navigation */
.manu-postnav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--manu-line);
}
.manu-postnav__next { margin-left: auto; text-align: right; }
.manu-postnav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	font-weight: 600;
	color: var(--manu-ink);
}
.manu-postnav a:hover {
	border-color: var(--manu-green);
	color: var(--manu-green-dark);
	background: var(--manu-bg-soft);
	text-decoration: none;
}
.manu-postnav__arrow { font-size: 1.3rem; line-height: 1; color: var(--manu-green); }

@media (max-width: 480px) {
	.manu-postnav__label { display: none; }   /* arrows only on very small screens */
	.manu-postnav a { padding: 12px 16px; }
	.manu-postnav__arrow { font-size: 1.5rem; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.manu-footer-widgets {
	background: var(--manu-footer);
	color: #cfd6dc;
	padding: 40px 0;
}
.manu-footer-widgets__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 32px;
}
.manu-footer-widgets a { color: #fff; }
.manu-fwidget__title {
	color: #fff;
	font-size: 1.1rem;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--manu-green);
}
.manu-fwidget p { margin: 0 0 .8em; }
.manu-map { aspect-ratio: 16/10; border-radius: var(--manu-radius); overflow: hidden; background: #1f262d; }
.manu-map iframe { width: 100%; height: 100%; border: 0; }
.manu-map--placeholder { background: #1f262d; }
.manu-fwidget__hint { color: #8b949d; font-size: .9rem; margin: 0; }

/* Footer gallery grid */
.manu-fgallery {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
	gap: 6px;
}
.manu-fgallery img {
	width: 100%; aspect-ratio: 1; object-fit: cover;
	border-radius: 4px;
	transition: opacity .15s ease;
}
.manu-fgallery a:hover img { opacity: .8; }

.manu-footer {
	background: #222a31;
	color: #9aa4ad;
	padding: 26px 0;
	position: relative;
}
.manu-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.manu-footer__logo img { width: 74px; height: auto; }
.manu-footer__copy { margin: 0; font-size: .9rem; }
.manu-to-top {
	position: absolute; right: 20px; bottom: 20px;
	width: 42px; height: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--manu-green); color: #fff;
	border-radius: var(--manu-radius);
}
.manu-to-top:hover { background: var(--manu-green-dark); color: #fff; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
	.manu-layout__inner { grid-template-columns: 1fr; gap: 34px; }
	.manu-sidebar { order: 2; }
}

@media (max-width: 820px) {
	body { font-size: 16px; }

	/* Collapse nav into a toggle */
	.manu-menu-toggle { display: inline-flex; }
	.manu-nav { display: none; border-top: 1px solid var(--manu-line); }
	.manu-nav.is-open { display: block; }
	.manu-nav__list { flex-direction: column; }
	.manu-nav__list > li > a { padding: 14px 4px; border-bottom: 1px solid var(--manu-line); }
	.manu-nav__list > li > a:hover,
	.manu-nav__list > li.current-menu-item > a { box-shadow: inset 4px 0 0 var(--manu-green); }

	/* Sub-menus become static, always visible when parent open */
	.manu-nav__list ul.sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; border-top: 0;
		box-shadow: none;
		min-width: 0;
		padding: 0 0 8px;
		background: var(--manu-bg-soft);
	}
	.manu-nav__list .sub-menu a { padding-left: 24px; }

	.manu-hero__nav--prev { left: 26px; }
	.manu-hero__nav--next { right: 26px; }
}

@media (max-width: 560px) {
	.manu-header__inner { flex-wrap: nowrap; gap: 10px; align-items: center; }
	.manu-header__logo { height: 46px; flex: 0 0 auto; }
	.manu-header__logo img,
	.manu-header__logo .custom-logo,
	.manu-header__logo a img { height: 46px !important; }
	.manu-header__titles { flex: 1 1 auto; min-width: 0; }
	.manu-header__title-mk { font-size: .82rem; line-height: 1.2; }
	.manu-header__title-en { display: none; }

	/* Search + hamburger side by side, compact */
	.manu-header__controls { flex-direction: row; gap: 6px; }
	.manu-search-toggle,
	.manu-menu-toggle { width: 40px; height: 40px; }
	.manu-menu-toggle__bar { width: 18px; }
	.manu-search-toggle svg { width: 20px; height: 20px; }

	.manu-card__body { gap: 14px; }
	.manu-card--has-image .manu-card__body { grid-template-columns: 1fr; }
	.manu-card__date { width: 54px; }
	.manu-card__day { font-size: 1.4rem; }
	.manu-card__title { font-size: 1.14rem; }

	.manu-hero { padding: 0 14px; }
	.manu-hero__nav { width: 38px; height: 38px; }
	.manu-hero__nav--prev { left: 20px; }
	.manu-hero__nav--next { right: 20px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.manu-hero__slide { transition: none; }
}

/* ==========================================================================
   FRONT PAGE — hero (70%) + latest-posts strip (30%)
   ========================================================================== */
.manu-front { padding: 22px 0 48px; }
.manu-front__inner {
	max-width: var(--manu-maxw);
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 70fr 30fr;
	gap: 28px;
	align-items: stretch;
}

/* Hero sits inside the 70% column: drop its own container width/margin. */
.manu-front__hero { min-width: 0; }
.manu-front__hero .manu-hero {
	max-width: none;
	margin: 0;
	padding: 0;
	height: 100%;
}
.manu-front__hero .manu-hero__track {
	height: 100%;
	aspect-ratio: 980 / 540;
}

/* ---------- Latest strip ---------- */
.manu-latest {
	min-width: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--manu-line);
	border-top: 3px solid var(--manu-green);
	border-radius: var(--manu-radius);
	background: var(--manu-bg);
	box-shadow: var(--manu-shadow);
	overflow: hidden;
}
.manu-latest__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 2px solid var(--manu-line);
}
.manu-latest__title {
	margin: 0;
	font-family: var(--manu-serif);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--manu-ink);
}
.manu-latest__nav { display: flex; gap: 6px; flex: 0 0 auto; }
.manu-latest__arrow {
	width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	padding: 0;
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	background: var(--manu-bg);
	color: var(--manu-ink-soft);
	font-size: 1rem; line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.manu-latest__arrow:hover,
.manu-latest__arrow:focus-visible {
	border-color: var(--manu-green);
	color: var(--manu-green-dark);
	background: var(--manu-bg-soft);
}

/* Viewport shows one item tall on desktop; JS translates the list. */
.manu-latest__viewport {
	position: relative;
	flex: 1 1 auto;
	overflow: hidden;
}
.manu-latest__list {
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.manu-latest__item {
	border-bottom: 1px solid var(--manu-line);
}
.manu-latest__card { padding: 16px 16px 18px; }

.manu-latest__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	font-size: .82rem;
	color: var(--manu-ink-soft);
}
.manu-latest__date { white-space: nowrap; }
.manu-latest__cat {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 4px;
	background: var(--manu-bg-soft);
	color: var(--manu-green-dark);
	font-weight: 600;
	line-height: 1.4;
}
.manu-latest__cat:hover { background: #eaf3ee; text-decoration: none; }

.manu-latest__post-title {
	margin: 0 0 10px;
	font-family: var(--manu-serif);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}
.manu-latest__post-title a { color: var(--manu-ink); }
.manu-latest__post-title a:hover { color: var(--manu-green-dark); text-decoration: none; }

.manu-latest__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .88rem;
	font-weight: 600;
	color: var(--manu-green-dark);
}
.manu-latest__more:hover { color: var(--manu-green-darker); text-decoration: none; }
.manu-latest__more-arrow { transition: transform .15s ease; }
.manu-latest__more:hover .manu-latest__more-arrow { transform: translateX(3px); }

/* Auto-height on smaller viewports: stack hero over the strip. */
@media (max-width: 900px) {
	.manu-front__inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.manu-front__hero .manu-hero__track {
		height: auto;
		aspect-ratio: 980 / 540;
	}
	/* On mobile the strip flows naturally — show all items, no clipping. */
	.manu-latest__viewport { overflow: visible; }
	.manu-latest__list { transform: none !important; }
	.manu-latest__nav { display: none; }
	.manu-latest__item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.manu-latest__list { transition: none; }
}

/* ==========================================================================
   SINGLE MEMBER PROFILE (CPT clen)
   Photo floats left; name, meta and biography flow around it as one column,
   the way the old profile read. No horizontal dividers between blocks.
   ========================================================================== */
.manu-member { overflow: hidden; }

.manu-member__aside {
	float: left;
	width: 300px;
	margin: 4px 30px 0 0;
}
.manu-member__photo {
	border-radius: var(--manu-radius);
	overflow: hidden;
	border: 1px solid var(--manu-line);
	background: var(--manu-bg-soft);
}
.manu-member__photo img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
}
.manu-member__photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
	font-family: var(--manu-serif);
	font-size: 4rem;
	font-weight: 700;
	color: var(--manu-green-dark);
	background: linear-gradient(160deg, #eef4f1, #e2ece7);
}
.manu-member__email {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 14px;
	font-size: .92rem;
	font-weight: 600;
	color: var(--manu-green-dark);
	word-break: break-word;
	text-align: center;
}
.manu-member__email:hover { color: var(--manu-green-darker); text-decoration: none; }
.manu-member__email svg { flex: 0 0 auto; }

.manu-member__eyebrow {
	margin: 0 0 4px;
	font-size: .82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--manu-green-dark);
}
.manu-member__name {
	margin: 0 0 18px;
	font-family: var(--manu-serif);
	font-size: clamp(1.6rem, 3.2vw, 2.1rem);
	font-weight: 700;
	line-height: 1.2;
}
.manu-member__meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 9px 20px;
	margin: 0 0 26px;
}
.manu-member__meta dt {
	color: var(--manu-ink-soft);
	font-size: .95rem;
}
.manu-member__meta dd {
	margin: 0;
	font-weight: 500;
	font-size: .95rem;
}

/* Section titles: serif + green dot, no rule beneath. */
.manu-member__section-title {
	margin: 0 0 12px;
	font-family: var(--manu-serif);
	font-size: clamp(1.35rem, 2.6vw, 1.7rem);
	font-weight: 700;
}
.manu-member__meta + .manu-member__section-title,
.manu-prose + .manu-member__section-title,
.manu-member__biblio + .manu-member__section-title { margin-top: 24px; }

.manu-member__biblio {
	margin: 0;
	padding: 0;
	list-style: none;
}
.manu-member__biblio li {
	position: relative;
	padding: 7px 0 7px 22px;
	font-size: .98rem;
	line-height: 1.55;
}
.manu-member__biblio li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 15px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--manu-green);
}

.manu-member__clear { clear: both; }

@media (max-width: 560px) {
	/* Photo block centered; email left-aligned to the photo's left edge. */
	.manu-member__aside {
		float: none;
		width: 100%;
		max-width: 300px;
		margin: 0 auto 20px;
	}
	/* Text content stays left-aligned. */
	.manu-member__eyebrow,
	.manu-member__name,
	.manu-member__meta,
	.manu-member__section-title,
	.manu-prose,
	.manu-member__biblio {
		text-align: left;
	}
}

/* ==========================================================================
   SINGLE PROJECT (CPT proekt)
   ========================================================================== */
.manu-project__section { margin-bottom: 30px; }
.manu-project__section:last-child { margin-bottom: 0; }
.manu-project__section-title {
	margin: 0 0 12px;
	font-family: var(--manu-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	font-weight: 700;
}

/* Leaders */
.manu-project__people { list-style: none; margin: 0; padding: 0; }
.manu-project__person {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--manu-line);
}
.manu-project__person:last-child { border-bottom: 0; }
.manu-project__person-name { font-weight: 600; font-size: 1.02rem; color: var(--manu-ink); }
a.manu-project__person-name:hover { color: var(--manu-green-dark); text-decoration: none; }
.manu-project__person-years {
	flex: 0 0 auto;
	font-size: .9rem;
	color: var(--manu-ink-soft);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Participating members */
.manu-project__members {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 4px 20px;
}
.manu-project__members li {
	position: relative;
	padding: 6px 0 6px 20px;
	font-size: .98rem;
}
.manu-project__members li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 13px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--manu-green);
}

/* Documents */
.manu-project__docs { list-style: none; margin: 0; padding: 0; }
.manu-project__docs li { margin-bottom: 8px; }
.manu-project__doc {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 14px;
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	background: var(--manu-bg);
	font-size: .96rem;
	font-weight: 500;
	color: var(--manu-ink);
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.manu-project__doc svg { flex: 0 0 auto; color: var(--manu-green-dark); }
.manu-project__doc:hover {
	border-color: var(--manu-green);
	background: var(--manu-bg-soft);
	color: var(--manu-green-darker);
	text-decoration: none;
}

/* External link button */
.manu-project__external { margin: 8px 0 0; }
.manu-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	background: var(--manu-green);
	color: #fff;
	font-weight: 600;
	font-size: .96rem;
	border-radius: var(--manu-radius);
	transition: background .15s ease;
}
.manu-btn:hover { background: var(--manu-green-dark); color: #fff; text-decoration: none; }

/* ==========================================================================
   Projects listing (page-templates/template-projects.php)
   ========================================================================== */

.manu-projects__intro { margin-bottom: 22px; }

/* ---------- Filter bar ---------- */
.manu-projects__filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 26px;
	padding: 14px;
	background: var(--manu-bg-soft);
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	position: sticky;
	top: 10px;
	z-index: 5;
}
.manu-projects__filter-field { position: relative; }
.manu-projects__filter-field--text { flex: 1 1 320px; }
.manu-projects__filter-field--select { flex: 0 1 280px; }

.manu-projects__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--manu-ink-soft);
	pointer-events: none;
}
.manu-projects__search,
.manu-projects__dept-select {
	width: 100%;
	font: inherit;
	color: var(--manu-ink);
	background: var(--manu-bg);
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	padding: 11px 14px;
}
.manu-projects__search { padding-left: 40px; }
.manu-projects__search:focus,
.manu-projects__dept-select:focus {
	outline: none;
	border-color: var(--manu-green);
	box-shadow: 0 0 0 3px rgba(64, 159, 116, .18);
}

/* ---------- No results ---------- */
.manu-projects__empty {
	margin: 0 0 24px;
	padding: 16px 18px;
	background: var(--manu-bg-soft);
	border: 1px dashed var(--manu-line);
	border-radius: var(--manu-radius);
	color: var(--manu-ink-soft);
}

/* ---------- Department groups ---------- */
.manu-projects__group { margin-bottom: 30px; }
.manu-projects__group[hidden] { display: none; }

.manu-projects__group-title {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--manu-green);
	font-family: var(--manu-serif);
	font-size: 1.28rem;
	color: var(--manu-ink);
}
.manu-projects__group-count {
	font-family: var(--manu-sans);
	font-size: .95rem;
	font-weight: 600;
	color: var(--manu-ink-soft);
}

/* Empty department: greyed, muted rule, no interaction. */
.manu-projects__group.is-empty .manu-projects__group-title {
	border-bottom-color: var(--manu-line);
	color: var(--manu-ink-soft);
	opacity: .6;
}

/* ---------- Project list + accordion ---------- */
.manu-projects__list { list-style: none; margin: 0; padding: 0; }

.manu-projects__item {
	border: 1px solid var(--manu-line);
	border-radius: var(--manu-radius);
	margin-bottom: 10px;
	background: var(--manu-bg);
	overflow: hidden;
}
.manu-projects__item[hidden] { display: none; }
.manu-projects__item.is-open { box-shadow: var(--manu-shadow); }

.manu-projects__item-head { margin: 0; }

.manu-projects__toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 15px 18px;
	font: inherit;
	color: var(--manu-ink);
}
.manu-projects__toggle:hover { background: var(--manu-bg-soft); }
.manu-projects__toggle:focus-visible {
	outline: 2px solid var(--manu-green);
	outline-offset: -2px;
}

.manu-projects__item-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.manu-projects__item-title {
	font-family: var(--manu-serif);
	font-size: 1.06rem;
	font-weight: 600;
	line-height: 1.3;
}
.manu-projects__item-leaders {
	font-size: .9rem;
	color: var(--manu-ink-soft);
}
.manu-projects__item-years {
	flex: 0 0 auto;
	font-size: .9rem;
	font-weight: 600;
	color: var(--manu-ink-soft);
	white-space: nowrap;
}
.manu-projects__chevron {
	flex: 0 0 auto;
	color: var(--manu-ink-soft);
	transition: transform .2s ease;
}
.manu-projects__item.is-open .manu-projects__chevron { transform: rotate(180deg); }

/* ---------- Expanded panel ---------- */
.manu-projects__panel { border-top: 1px solid var(--manu-line); }
.manu-projects__panel-inner { padding: 6px 18px 18px; }
.manu-projects__panel-inner .manu-project__section { margin-top: 16px; }
.manu-projects__panel-inner .manu-project__section-title {
	font-family: var(--manu-serif);
	font-size: 1.02rem;
	margin: 0 0 8px;
	color: var(--manu-green-darker);
}

/* Leaders inside the accordion: years sit right next to the name, not pushed
   to the far edge (overrides the space-between from the shared .manu-project
   rule). */
.manu-projects__panel-inner .manu-project__person {
	justify-content: flex-start;
	gap: 10px;
}
.manu-projects__panel-inner .manu-project__person-years {
	margin-left: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.manu-projects__filter { position: static; }
	.manu-projects__filter-field--text,
	.manu-projects__filter-field--select { flex: 1 1 100%; }
	.manu-projects__toggle { flex-wrap: wrap; gap: 6px 14px; }
	.manu-projects__item-years { order: 3; }
}
