/* ==========================================================================
   Tema CNMK – stiluri
   Culorile și fonturile vin din theme.json (variabilele --wp--preset--*).
   ========================================================================== */

:root {
	--cnmk-primary: var(--wp--preset--color--primary, #14467a);
	--cnmk-primary-dark: var(--wp--preset--color--primary-dark, #0b2e52);
	--cnmk-night: var(--wp--preset--color--night, #082440);
	--cnmk-accent: var(--wp--preset--color--accent, #3d82bf);
	--cnmk-gold: var(--wp--preset--color--gold, #d9a93c);
	--cnmk-surface: var(--wp--preset--color--surface, #f3f6fa);
	--cnmk-border: var(--wp--preset--color--border, #dbe3ec);
	--cnmk-muted: var(--wp--preset--color--muted, #5a6778);
	--cnmk-text: var(--wp--preset--color--contrast, #1b2533);
	--cnmk-link: var(--wp--preset--color--link, #1a5a9c);
	--cnmk-field-border: #7d8a9c; /* conturul câmpurilor și comutatoarelor: ≥ 3:1 pe alb (WCAG 1.4.11) */
	--cnmk-wide: 1240px;
	--cnmk-gutter: clamp(1rem, 4vw, 2rem);
	--cnmk-radius: 10px;
	--cnmk-shadow: 0 10px 30px rgba(11, 46, 82, 0.12);
	--cnmk-serif: var(--wp--preset--font-family--serif, Georgia, serif);

	/* iconițe (măști SVG, colorate cu currentColor / background) */
	--ico-megaphone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11v2a1 1 0 0 0 1 1h3l5 4V6L7 10H4a1 1 0 0 0-1 1z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12'/%3E%3C/svg%3E");
	--ico-graduation: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2.5 9 2.5 12 0v-5M22 9v6'/%3E%3C/svg%3E");
	--ico-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5h6a4 4 0 0 1 4 4v11a3 3 0 0 0-3-3H2zM22 5h-6a4 4 0 0 0-4 4v11a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
	--ico-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h6'/%3E%3C/svg%3E");
	--ico-clipboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 13l2 2 4-4'/%3E%3C/svg%3E");
	--ico-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--ico-school: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V10M9.5 21V10M14.5 21V10M19 21V10M2 10l10-6 10 6z'/%3E%3C/svg%3E");
	--ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h3l2 5-2.5 1.5a11 11 0 0 0 5 5L14 12l5 2v3a2 2 0 0 1-2 2A15 15 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
	--ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
	--ico-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.5-7-12a7 7 0 0 1 14 0c0 5.5-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
	--ico-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18'/%3E%3C/svg%3E");
	--ico-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5'/%3E%3C/svg%3E");
	--ico-robot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='8' width='14' height='11' rx='2'/%3E%3Cpath d='M12 4v4M2 13v3M22 13v3'/%3E%3Ccircle cx='9.5' cy='13.5' r='1'/%3E%3Ccircle cx='14.5' cy='13.5' r='1'/%3E%3C/svg%3E");
	--ico-award: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14l-1.5 7 5-3 5 3-1.5-7'/%3E%3C/svg%3E");
	--ico-laptop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M2 19h20'/%3E%3C/svg%3E");
	--ico-news: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8h10M7 12h10M7 16h6'/%3E%3C/svg%3E");
	--ico-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15M5 19c3-4 6-7 10-9'/%3E%3C/svg%3E");
	--ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--ico-a11y: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='4.5' r='2'/%3E%3Cpath d='M4.5 8.5l7.5 1.5 7.5-1.5M12 10v4.5M12 14.5l-3.5 6M12 14.5l3.5 6'/%3E%3C/svg%3E");
	--ico-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
}

.cnmk-ico-megaphone { --ico: var(--ico-megaphone); }
.cnmk-ico-graduation { --ico: var(--ico-graduation); }
.cnmk-ico-book { --ico: var(--ico-book); }
.cnmk-ico-file { --ico: var(--ico-file); }
.cnmk-ico-clipboard { --ico: var(--ico-clipboard); }
.cnmk-ico-clock { --ico: var(--ico-clock); }
.cnmk-ico-school { --ico: var(--ico-school); }
.cnmk-ico-phone { --ico: var(--ico-phone); }
.cnmk-ico-mail { --ico: var(--ico-mail); }
.cnmk-ico-map { --ico: var(--ico-map); }
.cnmk-ico-globe { --ico: var(--ico-globe); }
.cnmk-ico-users { --ico: var(--ico-users); }
.cnmk-ico-robot { --ico: var(--ico-robot); }
.cnmk-ico-award { --ico: var(--ico-award); }
.cnmk-ico-laptop { --ico: var(--ico-laptop); }
.cnmk-ico-news { --ico: var(--ico-news); }
.cnmk-ico-leaf { --ico: var(--ico-leaf); }

/* ---------------------------------------------------------------- bază */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

/* Indicatorul de focus: bleumarin pe fundal deschis, auriu pe secțiunile închise.
   Auriul pe alb ar avea doar 2,2:1; WCAG 1.4.11 cere cel puțin 3:1. */
:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--cnmk-primary-dark);
	outline-offset: 2px;
	border-radius: 3px;
}

:where(.cnmk-topbar, .cnmk-band, .cnmk-hero, .cnmk-contact, .cnmk-quote, .cnmk-footer) :where(a, button, input, summary, [tabindex]):focus-visible {
	outline-color: var(--cnmk-gold);
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > main,
.wp-site-blocks > .cnmk-main { flex: 1 0 auto; }

/* containerele temei controlează singure spațierea copiilor */
:root :where(.cnmk-topbar__inner, .cnmk-header__inner, .cnmk-band__inner, .cnmk-layout, .cnmk-hero__inner,
	.cnmk-tiles, .cnmk-section__head, .cnmk-footer__cols, .cnmk-footer__bottom, .cnmk-contact__cols, .cnmk-about) > * {
	margin-block: 0;
}

.cnmk-container,
.cnmk-band__inner,
.cnmk-layout,
.cnmk-section > .wp-block-group__inner-container,
.cnmk-section__inner,
.cnmk-topbar__inner,
.cnmk-header__inner,
.cnmk-hero__inner,
.cnmk-footer__inner {
	width: min(100% - 2 * var(--cnmk-gutter), var(--cnmk-wide));
	margin-inline: auto;
}

/* ascuns vizual, dar citit de cititoarele de ecran; la focus (linkul „Sari la conținut”) devine vizibil */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.screen-reader-text:focus {
	width: auto;
	height: auto;
	clip-path: none;
	overflow: visible;
	white-space: normal;
}

/* ---------------------------------------------------------------- bara de sus */

.cnmk-topbar {
	background: var(--cnmk-night);
	color: #c9d6e5;
	font-size: 0.85rem;
}

.cnmk-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.75rem;
	padding-block: 0.45rem;
}

.cnmk-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
}

.cnmk-topbar__item::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: var(--cnmk-gold);
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}

.cnmk-topbar a { color: #eef3f9; text-decoration: none; }
.cnmk-topbar a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 700px) {
	.cnmk-topbar .cnmk-ico-map { display: none; }
}

/* ---------------------------------------------------------------- antet */

.cnmk-header {
	background: #fff;
	border-bottom: 1px solid var(--cnmk-border);
	box-shadow: 0 2px 10px rgba(11, 46, 82, 0.05);
	position: relative;
	z-index: 20;
}

.cnmk-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 84px;
	padding-block: 0.5rem;
}

.cnmk-header__inner > .cnmk-brand { margin-right: auto; }

.cnmk-brand__link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	color: inherit;
	text-decoration: none;
}

.cnmk-brand__mark { display: flex; flex: none; }
.cnmk-brand__sigla { width: 68px; height: 68px; }
.cnmk-brand__logo {
	width: auto;
	max-width: 160px;
	height: 60px;
	object-fit: contain;
}

.cnmk-brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.cnmk-brand__kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cnmk-muted);
}

.cnmk-brand__name {
	font-family: var(--cnmk-serif);
	font-size: clamp(1.1rem, 2.2vw, 1.4rem);
	font-weight: 700;
	color: var(--cnmk-primary-dark);
}

.cnmk-brand__city {
	font-size: 0.8rem;
	color: var(--cnmk-primary);
	margin-top: 0.1rem;
}

.cnmk-brand__link:hover .cnmk-brand__name { color: var(--cnmk-primary); }

@media (max-width: 480px) {
	.cnmk-brand__sigla { width: 52px; height: 52px; }
	.cnmk-brand__logo { width: 46px; height: 46px; }
	.cnmk-brand__city { display: none; }
}

/* ---------------------------------------------------------------- meniul principal */

.cnmk-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-weight: 600;
	color: var(--cnmk-primary-dark);
	padding: 0.55rem 0.15rem;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.cnmk-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.cnmk-nav .wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.cnmk-nav .wp-block-navigation__container > .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content {
	border-bottom-color: var(--cnmk-gold);
}

.cnmk-nav .wp-block-navigation__container { gap: 1.35rem; }

.cnmk-nav .wp-block-navigation-item__content { text-decoration: none; }

.cnmk-nav .wp-block-navigation__submenu-container {
	background: #fff !important;
	color: var(--cnmk-text) !important;
	border: 1px solid var(--cnmk-border) !important;
	border-radius: var(--cnmk-radius);
	box-shadow: var(--cnmk-shadow);
	padding: 0.4rem !important;
	min-width: 270px !important;
}

.cnmk-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem !important;
	border-radius: 6px;
	font-size: 0.92rem;
	line-height: 1.35;
	color: var(--cnmk-text);
}

.cnmk-nav .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.cnmk-nav .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	background: var(--cnmk-surface);
	color: var(--cnmk-primary-dark);
}

/* submeniu închis cu Escape cât timp mouse-ul e încă deasupra lui (front.js) */
.cnmk-nav .has-child.cnmk-dismissed:not(.open-on-click):hover > .wp-block-navigation__submenu-container {
	opacity: 0 !important;
	visibility: hidden !important;
}

.cnmk-nav .wp-block-navigation__responsive-container-open,
.cnmk-nav .wp-block-navigation__responsive-container-close { color: var(--cnmk-primary-dark); }

/* Între 600 și 1100px meniul complet nu încape: folosim tot meniul mobil. */
@media (min-width: 600px) and (max-width: 1099px) {
	.cnmk-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.cnmk-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* Meniul pe ecran complet (mobil / tabletă) */
/* Bara de sus stă peste antet (z-index 40, pentru panoul de accesibilitate); cât timp meniul e deschis,
   antetul trebuie ridicat deasupra ei, altfel bara acoperă butonul de închidere. */
html.has-modal-open .cnmk-header,
.cnmk-header:has(.is-menu-open) { z-index: 50; }

.cnmk-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: 1.25rem var(--cnmk-gutter) 3rem;
	text-align: left;
}

.cnmk-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 2.5rem !important;
	align-items: stretch !important;
}

.cnmk-nav .is-menu-open :where(.wp-block-navigation__container, .wp-block-navigation__submenu-container, .wp-block-navigation-item) {
	align-items: flex-start !important;
	justify-content: flex-start !important;
}

.cnmk-nav .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	max-width: 640px;
}

.cnmk-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--cnmk-border);
	padding-block: 0.4rem;
}

.cnmk-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--cnmk-serif);
	font-size: 1.25rem;
	border: 0;
}

.cnmk-nav .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: 0 0 0.25rem 0.9rem !important;
	min-width: 0 !important;
	gap: 0 !important;
}

.cnmk-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.3rem 0 !important;
	color: var(--cnmk-muted);
}

/* căutare în antet */
.cnmk-search .wp-block-search__button {
	background: var(--cnmk-surface);
	color: var(--cnmk-primary-dark);
	border: 1px solid var(--cnmk-border);
	border-radius: 999px;
	width: 42px;
	height: 42px;
	padding: 0;
	display: grid;
	place-items: center;
}

.cnmk-search .wp-block-search__button:hover { background: var(--cnmk-primary); color: #fff; }
.cnmk-search .wp-block-search__input { border-radius: 999px; border-color: var(--cnmk-field-border); padding-inline: 1rem; }
.cnmk-search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; padding: 0; }

/* ---------------------------------------------------------------- banda de titlu */

.cnmk-band {
	background:
		radial-gradient(1200px 300px at 85% -40%, rgba(217, 169, 60, 0.22), transparent 60%),
		linear-gradient(120deg, var(--cnmk-primary-dark) 0%, var(--cnmk-primary) 100%);
	color: #fff;
	border-bottom: 4px solid var(--cnmk-gold);
}

.cnmk-band__inner {
	padding-block: clamp(1.75rem, 4vw, 2.75rem);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.cnmk-band :where(h1, h2, .wp-block-post-title, .wp-block-query-title) {
	color: #fff;
	margin: 0;
	max-width: 30ch;
	text-wrap: balance;
}

.cnmk-band__lead { color: #d7e2ef; max-width: 65ch; margin: 0; }
.cnmk-band .wp-block-post-terms a,
.cnmk-band .wp-block-post-date { color: #d7e2ef; }
.cnmk-band .wp-block-post-terms a { text-decoration: none; }
.cnmk-band .wp-block-post-terms a:hover { color: #fff; text-decoration: underline; }

.cnmk-band__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.2rem;
	font-size: 0.92rem;
}

.cnmk-band__meta > * { margin: 0; }

/* cale de navigare */
.cnmk-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.86rem;
	color: #bcd0e6;
}

.cnmk-breadcrumbs li { display: inline-flex; align-items: center; }
.cnmk-breadcrumbs li + li::before { content: "›"; margin: 0 0.5rem; opacity: 0.7; }
.cnmk-breadcrumbs a { color: #e3ecf6; text-decoration: none; }
.cnmk-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.cnmk-breadcrumbs [aria-current] { color: #fff; }

/* ---------------------------------------------------------------- conținutul paginilor */

.cnmk-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

@media (min-width: 960px) {
	.cnmk-layout:has(> .cnmk-sectionnav) { grid-template-columns: 270px minmax(0, 1fr); gap: 3.5rem; }
}

.cnmk-content { max-width: 820px; min-width: 0; overflow-wrap: anywhere; }
.cnmk-layout--narrow .cnmk-content,
.cnmk-layout--narrow { justify-items: center; }
.cnmk-layout--wide .cnmk-content { max-width: none; }

.cnmk-content > .wp-block-post-content > * + * { margin-block-start: 1.1rem; }
.cnmk-content > .wp-block-post-content > :first-child { margin-top: 0; }

/* conținutul paginilor obișnuite (pe site: .cnmk-content; în editor: rădăcina documentului) */
:where(.cnmk-content .wp-block-post-content, .editor-styles-wrapper .is-root-container) > :where(h2, h3, h4) { margin-top: 2.2rem; margin-bottom: 0.6rem; }

.cnmk-lead { font-size: 1.15rem; color: var(--cnmk-muted); }

:where(.cnmk-content .wp-block-post-content, .editor-styles-wrapper .is-root-container) > :where(h2, h3) {
	padding-left: 0.85rem;
	border-left: 4px solid var(--cnmk-gold);
}

:where(.cnmk-content .wp-block-post-content, .editor-styles-wrapper .is-root-container) > h2 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
:where(.cnmk-content .wp-block-post-content, .editor-styles-wrapper .is-root-container) > h3 { font-size: 1.2rem; }

.cnmk-content .wp-block-post-content :where(ul, ol):not(.is-style-cnmk-links) { padding-left: 1.3rem; }
.cnmk-content .wp-block-post-content li + li { margin-top: 0.3rem; }

.wp-block-post-content .wp-block-image img,
.wp-block-post-content .wp-block-gallery img { border-radius: 8px; }

.wp-block-post-content .wp-block-video video { border-radius: 8px; background: #000; }

.cnmk-featured { margin-bottom: 1.75rem; }
.cnmk-featured img { border-radius: var(--cnmk-radius); }

.cnmk-updated {
	margin-top: 3rem !important;
	padding-top: 1rem;
	border-top: 1px solid var(--cnmk-border);
	font-size: 0.85rem;
	color: var(--cnmk-muted);
}

.cnmk-updated::before { content: "Ultima actualizare: "; }

/* meniul secțiunii (lateral) */
.cnmk-sectionnav {
	align-self: start;
	position: sticky;
	top: 1.5rem;
	background: var(--cnmk-surface);
	border: 1px solid var(--cnmk-border);
	border-radius: var(--cnmk-radius);
	padding: 1.1rem 0.75rem 0.9rem;
	font-size: 0.93rem;
}

.cnmk-sectionnav__title {
	margin: 0 0 0.5rem;
	padding: 0 0.6rem 0.65rem;
	border-bottom: 1px solid var(--cnmk-border);
	font-family: var(--cnmk-serif);
	font-size: 1.15rem;
	font-weight: 700;
}

.cnmk-sectionnav__title a { color: var(--cnmk-primary-dark); text-decoration: none; }
.cnmk-sectionnav ul { list-style: none; margin: 0; padding: 0; }
.cnmk-sectionnav ul ul { margin: 0.15rem 0 0.35rem 0.85rem; padding-left: 0.5rem; border-left: 1px solid var(--cnmk-border); }

.cnmk-sectionnav li > a,
.cnmk-sectionnav li > span {
	display: block;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	color: var(--cnmk-text);
	text-decoration: none;
	line-height: 1.35;
}

.cnmk-sectionnav li > a:hover { background: #fff; color: var(--cnmk-primary); }
.cnmk-sectionnav li.has-children > a::after { content: " ›"; color: var(--cnmk-muted); }
.cnmk-sectionnav li.is-ancestor > a { font-weight: 600; color: var(--cnmk-primary-dark); }

.cnmk-sectionnav li.is-current > a {
	background: #fff;
	color: var(--cnmk-primary-dark);
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--cnmk-gold);
}

@media (max-width: 959px) {
	.cnmk-sectionnav { position: static; order: 2; }
}

/* ---------------------------------------------------------------- blocul Fișier (documente) */

.wp-block-file.cnmk-file,
.wp-block-file {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 0;
	padding: 0.7rem 2.75rem 0.7rem 0.75rem;
	background: #fff;
	border: 1px solid var(--cnmk-border);
	border-radius: 8px;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

:root :where(.wp-block-post-content) > .wp-block-file + .wp-block-file { margin-block-start: 0.5rem; }

.wp-block-file::before {
	content: attr(data-type);
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: var(--cnmk-surface);
	color: var(--cnmk-primary);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.wp-block-file:not([data-type])::before { content: "DOC"; }
.wp-block-file.cnmk-file--pdf::before { background: #fdecea; color: #b42318; }
.wp-block-file.cnmk-file--doc::before { background: #e8f0fc; color: #1d4ed8; }
.wp-block-file.cnmk-file--xls::before { background: #e7f6ec; color: #15803d; }
.wp-block-file.cnmk-file--ppt::before { background: #fdf0e6; color: #c2410c; }

.wp-block-file::after {
	content: "";
	position: absolute;
	right: 0.95rem;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background: var(--cnmk-muted);
	-webkit-mask: var(--ico-download) center / contain no-repeat;
	mask: var(--ico-download) center / contain no-repeat;
}

.wp-block-file > a:not(.wp-block-file__button) {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--cnmk-text);
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
	line-height: 1.4;
}

.wp-block-file > a:not(.wp-block-file__button)::before { content: ""; position: absolute; inset: 0; }

.cnmk-file__meta { flex: none; font-size: 0.8rem; color: var(--cnmk-muted); white-space: nowrap; }

.wp-block-file:hover {
	border-color: var(--cnmk-accent);
	background: #fbfdff;
	box-shadow: 0 4px 14px rgba(11, 46, 82, 0.08);
}

.wp-block-file:hover > a { color: var(--cnmk-primary); }
.wp-block-file:hover::after { background: var(--cnmk-primary); }
.wp-block-file:focus-within { outline: 3px solid var(--cnmk-primary-dark); outline-offset: 2px; }
.wp-block-file > a:focus-visible { outline: none; }

.wp-block-file .wp-block-file__button { position: relative; z-index: 1; }

@media (max-width: 520px) {
	.cnmk-file__meta { display: none; }
}

/* ---------------------------------------------------------------- listă de linkuri (stil „Carduri cu linkuri”) */

ul.is-style-cnmk-links {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
	gap: 0.75rem;
}

/* cartelele aceluiași rând au aceeași înălțime și cresc odată cu textul (WCAG 1.4.12: spațiere mărită) */
ul.is-style-cnmk-links li { margin: 0; display: flex; }

ul.is-style-cnmk-links a {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	padding: 1rem 2.6rem 1rem 1.1rem;
	background: #fff;
	border: 1px solid var(--cnmk-border);
	border-left: 4px solid var(--cnmk-primary);
	border-radius: 8px;
	color: var(--cnmk-primary-dark);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.35;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

ul.is-style-cnmk-links a::after {
	content: "";
	position: absolute;
	right: 1rem;
	width: 16px;
	height: 16px;
	background: var(--cnmk-gold);
	-webkit-mask: var(--ico-arrow) center / contain no-repeat;
	mask: var(--ico-arrow) center / contain no-repeat;
}

ul.is-style-cnmk-links a:hover {
	border-color: var(--cnmk-accent);
	border-left-color: var(--cnmk-gold);
	box-shadow: 0 6px 18px rgba(11, 46, 82, 0.1);
	transform: translateY(-1px);
}

/* ---------------------------------------------------------------- secțiunile primei pagini */

:root .cnmk-home > * { margin-block: 0; }

.cnmk-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.cnmk-section--surface { background: var(--cnmk-surface); }

.cnmk-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-bottom: 2rem;
}

.cnmk-section__head h2 { margin: 0; }

.cnmk-eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cnmk-primary);
}

.cnmk-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
}

.cnmk-more a::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--ico-arrow) center / contain no-repeat;
	mask: var(--ico-arrow) center / contain no-repeat;
	transition: transform 0.15s;
}

.cnmk-more a:hover::after { transform: translateX(3px); }

/* erou */
.cnmk-hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(900px 500px at 88% 0%, rgba(217, 169, 60, 0.28), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(61, 130, 191, 0.35), transparent 60%),
		linear-gradient(135deg, var(--cnmk-night) 0%, var(--cnmk-primary-dark) 45%, var(--cnmk-primary) 100%);
}

.cnmk-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 2.5rem;
	padding-block: clamp(3rem, 8vw, 6rem);
}

@media (min-width: 900px) {
	.cnmk-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; }
}

.cnmk-hero .cnmk-eyebrow { color: var(--cnmk-gold); }
.cnmk-hero__text > * { margin-block: 0; }
.cnmk-hero__text > * + * { margin-top: 1rem; }

.cnmk-hero__title {
	color: #fff;
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	line-height: 1.1;
	text-wrap: balance;
}

.cnmk-hero__motto {
	font-family: var(--cnmk-serif);
	font-style: italic;
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	color: var(--cnmk-gold);
}

.cnmk-hero__lead { color: #d7e2ef; font-size: 1.1rem; max-width: 52ch; }
.cnmk-hero .wp-block-buttons { margin-top: 1.75rem !important; gap: 0.75rem; }

.cnmk-hero .wp-block-button__link { background: var(--cnmk-gold); color: var(--cnmk-night); }
.cnmk-hero .wp-block-button__link:hover { background: #ebc164; color: var(--cnmk-night); }

.cnmk-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.6);
}

.cnmk-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.cnmk-hero__media { margin: 0; position: relative; }

.cnmk-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 505 / 299;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 14px 14px 0 rgba(217, 169, 60, 0.85), 0 30px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
	.cnmk-hero__media img { box-shadow: 8px 8px 0 rgba(217, 169, 60, 0.85), 0 20px 40px rgba(0, 0, 0, 0.3); }
	.cnmk-hero__inner { padding-right: 8px; }
}

.cnmk-hero__media figcaption {
	margin-top: 1.4rem;
	color: #bcd0e6;
	font-size: 0.85rem;
}

/* plăci de acces rapid */
.cnmk-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
	gap: 1rem;
}

.cnmk-tiles--compact { grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); }

.cnmk-tile {
	position: relative;
	padding: 1.35rem 1.35rem 1.35rem 5rem;
	background: #fff;
	border: 1px solid var(--cnmk-border);
	border-radius: 12px;
	min-height: 100%;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.cnmk-tile::before,
.cnmk-tile::after {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 1.3rem;
	width: 46px;
	height: 46px;
	border-radius: 12px;
}

.cnmk-tile::before { background: var(--cnmk-surface); transition: background 0.15s; }

.cnmk-tile::after {
	background: var(--cnmk-primary);
	-webkit-mask: var(--ico) center / 24px no-repeat;
	mask: var(--ico) center / 24px no-repeat;
}

.cnmk-tile > * { margin: 0; }

.cnmk-tile__title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.05rem !important;
	line-height: 1.3;
	color: var(--cnmk-primary-dark);
}

.cnmk-tile__title a { color: inherit; text-decoration: none; }
.cnmk-tile__title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.cnmk-tile__text { margin-top: 0.3rem !important; font-size: 0.9rem; color: var(--cnmk-muted); line-height: 1.45; }

.cnmk-tile:hover {
	transform: translateY(-2px);
	border-color: var(--cnmk-accent);
	box-shadow: 0 12px 28px rgba(11, 46, 82, 0.12);
}

.cnmk-tile:hover::before { background: var(--cnmk-primary); }
.cnmk-tile:hover::after { background: #fff; }
.cnmk-tile:focus-within { outline: 3px solid var(--cnmk-primary-dark); outline-offset: 2px; }
.cnmk-tile a:focus-visible { outline: none; }

/* lista de anunțuri (carduri cu dată) */
.cnmk-newsgrid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cnmk-newslist .wp-block-post-template {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

:root :where(.cnmk-newsgrid, .cnmk-newslist) .wp-block-post-template > li { margin: 0; }

.cnmk-newsitem {
	position: relative;
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	height: 100%;
	padding: 1.1rem;
	background: #fff;
	border: 1px solid var(--cnmk-border);
	border-radius: 12px;
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.cnmk-newsitem > * { margin: 0 !important; }

.cnmk-newsitem:hover {
	border-color: var(--cnmk-accent);
	box-shadow: 0 10px 24px rgba(11, 46, 82, 0.1);
	transform: translateY(-1px);
}

.cnmk-datebadge {
	flex: none;
	width: 62px;
	padding: 0.45rem 0 0.5rem;
	border-radius: 10px;
	background: var(--cnmk-primary-dark);
	color: #fff;
	text-align: center;
	line-height: 1.05;
}

.cnmk-datebadge > * { margin: 0 !important; }
.cnmk-datebadge__day { font-family: var(--cnmk-serif); font-size: 1.6rem; font-weight: 700; }
.cnmk-datebadge__month { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cnmk-gold); margin-top: 0.2rem !important; }
.cnmk-datebadge__year { font-size: 0.7rem; color: #bcd0e6; margin-top: 0.1rem !important; }

.cnmk-newsitem__body { min-width: 0; }
.cnmk-newsitem__body > * { margin: 0 !important; }

.cnmk-newsitem__cats {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cnmk-primary);
	margin-bottom: 0.3rem !important;
}

.cnmk-newsitem__cats a { color: inherit; text-decoration: none; position: relative; z-index: 1; }
.cnmk-newsitem__cats a:hover { text-decoration: underline; }

.cnmk-newsitem__title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.05rem !important;
	line-height: 1.35;
	font-weight: 600;
}

.cnmk-newsitem__title a { color: var(--cnmk-primary-dark); text-decoration: none; }
.cnmk-newsitem__title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.cnmk-newsitem:hover .cnmk-newsitem__title a { color: var(--cnmk-primary); }
.cnmk-newsitem:focus-within { outline: 3px solid var(--cnmk-primary-dark); outline-offset: 2px; }
.cnmk-newsitem__title a:focus-visible { outline: none; }

.cnmk-newsitem__excerpt { margin-top: 0.4rem !important; font-size: 0.92rem; color: var(--cnmk-muted); }
.cnmk-newsitem__excerpt .wp-block-post-excerpt__more-text { display: none; }

/* filtre pe categorii */
.cnmk-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.75rem !important;
	padding: 0;
	list-style: none;
}

.cnmk-chips li { margin: 0; }

.cnmk-chips a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--cnmk-border);
	border-radius: 999px;
	background: #fff;
	color: var(--cnmk-primary-dark);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.cnmk-chips a:hover,
.cnmk-chips .current-cat a { background: var(--cnmk-primary); border-color: var(--cnmk-primary); color: #fff; }

/* paginare */
.wp-block-query-pagination { margin-top: 2rem; gap: 0.5rem; font-weight: 600; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers { text-decoration: none; padding: 0.35rem 0.7rem; border-radius: 6px; }
.wp-block-query-pagination .page-numbers.current { background: var(--cnmk-primary); color: #fff; }

/* despre colegiu */
.cnmk-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.cnmk-about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; }
}

.cnmk-about__text > * { margin-block: 0; }
.cnmk-about__text > * + * { margin-top: 1rem; }

.cnmk-year {
	font-family: var(--cnmk-serif);
	font-size: clamp(3.5rem, 9vw, 5.5rem);
	font-weight: 700;
	line-height: 1;
	color: #9a6b12; /* auriu închis: contrast ≥ 4.5 pe alb */
}

.cnmk-quote {
	margin: 0;
	padding: 3rem 2rem 1.75rem;
	border: 0;
	border-radius: 16px;
	background: var(--cnmk-primary-dark);
	color: #e8eef6;
	box-shadow: var(--cnmk-shadow);
	position: relative;
}

.cnmk-quote::before {
	content: "„";
	position: absolute;
	top: -0.2rem;
	left: 1.2rem;
	font-family: var(--cnmk-serif);
	font-size: 5rem;
	line-height: 1;
	color: var(--cnmk-gold);
}

.cnmk-quote p { font-family: var(--cnmk-serif); font-size: 1.2rem; line-height: 1.55; margin-top: 1.25rem; }
.cnmk-quote cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.85rem; color: var(--cnmk-gold); letter-spacing: 0.08em; text-transform: uppercase; }

/* butoane secundare */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--cnmk-primary);
	border: 2px solid var(--cnmk-primary);
	padding-block: calc(0.7rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--cnmk-primary); color: #fff; }

/* banda de contact */
.cnmk-contact {
	background: var(--cnmk-primary-dark);
	color: #d7e2ef;
}

.cnmk-contact h2 { color: #fff; }
.cnmk-contact .cnmk-eyebrow { color: var(--cnmk-gold); }

.cnmk-contact__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: 1.5rem;
}

.cnmk-contact__item {
	position: relative;
	padding: 1.25rem 1.25rem 1.25rem 4.25rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
}

.cnmk-contact__item::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 1.3rem;
	width: 28px;
	height: 28px;
	background: var(--cnmk-gold);
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}

.cnmk-contact__item > * { margin: 0; }
.cnmk-contact__item h3 { color: #fff; font-family: var(--wp--preset--font-family--sans); font-size: 1rem !important; margin-bottom: 0.35rem; }
.cnmk-contact__item p { font-size: 0.95rem; line-height: 1.55; }
.cnmk-contact a { color: #fff; }
.cnmk-contact a:hover { color: var(--cnmk-gold); }
.cnmk-contact .wp-block-buttons { margin-top: 2rem; }
.cnmk-contact .wp-block-button__link { background: var(--cnmk-gold); color: var(--cnmk-night); }
.cnmk-contact .wp-block-button__link:hover { background: #ebc164; color: var(--cnmk-night); }

/* ---------------------------------------------------------------- subsol */

.cnmk-footer {
	background: var(--cnmk-night);
	color: #b9c8d9;
	font-size: 0.93rem;
}

.cnmk-footer__inner { padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }

.cnmk-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: 2rem 3rem;
}

@media (min-width: 1000px) {
	.cnmk-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.cnmk-footer h2 {
	margin: 0 0 0.9rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cnmk-gold);
}

.cnmk-footer ul { list-style: none; margin: 0; padding: 0; }
.cnmk-footer li + li { margin-top: 0.45rem; }
.cnmk-footer a { color: #e6edf5; text-decoration: none; }
.cnmk-footer a:hover { color: var(--cnmk-gold); text-decoration: underline; }
.cnmk-footer p { margin: 0 0 0.5rem; }
.cnmk-footer .cnmk-brand__kicker { color: #9fb3c9; }
.cnmk-footer .cnmk-brand__name { color: #fff; }
.cnmk-footer .cnmk-brand__city { color: var(--cnmk-gold); }
.cnmk-footer .cnmk-brand { margin-bottom: 1rem; }
/* Inelul albastru al siglei s-ar pierde pe fundalul închis: contur alb. */
.cnmk-footer .cnmk-brand__sigla { border-radius: 50%; box-shadow: 0 0 0 2px #fff; }

.cnmk-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.84rem;
	color: #8ea3bb;
}

.cnmk-footer__bottom p { margin: 0; }

/* ---------------------------------------------------------------- căutare / 404 */

.cnmk-searchform .wp-block-search__inside-wrapper { max-width: 640px; }
.cnmk-searchform .wp-block-search__input { border: 1px solid var(--cnmk-field-border); border-radius: 8px 0 0 8px; padding: 0.7rem 1rem; }
.cnmk-searchform .wp-block-search__button { margin-left: 0; border-radius: 0 8px 8px 0; background: var(--cnmk-primary); color: #fff; }

/* ---------------------------------------------------------------- panoul de accesibilitate */

.cnmk-topbar { position: relative; z-index: 40; }
.cnmk-topbar__inner > .cnmk-a11y { margin-left: auto; }
.cnmk-a11y { position: relative; }

.cnmk-a11y__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.2rem 0.75rem 0.2rem 0.6rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.cnmk-a11y__toggle::before {
	content: "";
	width: 16px;
	height: 16px;
	background: var(--cnmk-gold);
	-webkit-mask: var(--ico-a11y) center / contain no-repeat;
	mask: var(--ico-a11y) center / contain no-repeat;
}

.cnmk-a11y__toggle:hover,
.cnmk-a11y__toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

@media (max-width: 520px) {
	.cnmk-a11y__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.cnmk-a11y__toggle { padding: 0.35rem; }
}

.cnmk-a11y__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.6rem);
	width: min(300px, calc(100vw - 2rem));
	padding: 1rem;
	background: #fff;
	color: var(--cnmk-text);
	border: 1px solid var(--cnmk-border);
	border-radius: var(--cnmk-radius);
	box-shadow: var(--cnmk-shadow);
	display: grid;
	gap: 0.5rem;
	font-size: 0.92rem;
}

.cnmk-a11y__panel[hidden] { display: none; }
.cnmk-a11y__panel p { margin: 0; }
.cnmk-a11y__title { font-weight: 700; color: var(--cnmk-primary-dark); margin-bottom: 0.25rem !important; }

.cnmk-a11y__text {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--cnmk-border);
}

.cnmk-a11y__text > span { margin-right: auto; }
.cnmk-a11y__text output { min-width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; }

.cnmk-a11y__panel button {
	font: inherit;
	cursor: pointer;
	border: 1px solid var(--cnmk-border);
	border-radius: 6px;
	background: var(--cnmk-surface);
	color: var(--cnmk-primary-dark);
	padding: 0.45rem 0.7rem;
}

.cnmk-a11y__text button { font-weight: 700; min-width: 2.6rem; }

.cnmk-a11y__switch {
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
}

.cnmk-a11y__switch::after {
	content: "";
	flex: none;
	width: 34px;
	height: 20px;
	border-radius: 999px;
	background: var(--cnmk-field-border) radial-gradient(circle at 10px 50%, #fff 7px, transparent 7.5px);
	transition: background 0.15s;
}

.cnmk-a11y__switch[aria-pressed="true"] { border-color: var(--cnmk-primary); background: #e8f0fa; }
.cnmk-a11y__switch[aria-pressed="true"]::after { background: var(--cnmk-primary) radial-gradient(circle at 24px 50%, #fff 7px, transparent 7.5px); }
.cnmk-a11y__panel button:hover { border-color: var(--cnmk-primary); }
.cnmk-a11y__reset { background: #fff !important; }
.cnmk-a11y__more { text-align: center; font-size: 0.85rem; }

/* panoul e alb, deși stă în bara de sus închisă la culoare: nu moștenește culorile ei */
.cnmk-topbar .cnmk-a11y__panel a { color: var(--cnmk-link); text-decoration: underline; }
.cnmk-topbar .cnmk-a11y__panel a:hover { color: var(--cnmk-primary-dark); }
.cnmk-a11y__panel :where(a, button):focus-visible { outline-color: var(--cnmk-primary-dark); }

/* modurile de accesibilitate (clase pe <html>, puse de front.js) */
html.cnmk-a11y-text-1 { font-size: 112.5%; }
html.cnmk-a11y-text-2 { font-size: 125%; }
html.cnmk-a11y-text-3 { font-size: 137.5%; }

html.cnmk-a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }

html.cnmk-a11y-readable body,
html.cnmk-a11y-readable body :where(*:not(svg, svg *)) {
	font-family: Verdana, Tahoma, "Segoe UI", sans-serif !important;
	letter-spacing: 0.02em;
	word-spacing: 0.08em;
	line-height: 1.7;
}

html.cnmk-a11y-nomotion *,
html.cnmk-a11y-nomotion *::before,
html.cnmk-a11y-nomotion *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

html.cnmk-a11y-contrast body,
html.cnmk-a11y-contrast body *,
html.cnmk-a11y-contrast body *::before,
html.cnmk-a11y-contrast body *::after {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

html.cnmk-a11y-contrast body a,
html.cnmk-a11y-contrast body a * { color: #ffe14d !important; }

/* pe fundalul negru, conturul de focus devine galben (bleumarinul nu s-ar vedea) */
html.cnmk-a11y-contrast body :focus-visible,
html.cnmk-a11y-contrast body :focus-within:is(.wp-block-file, .cnmk-tile, .cnmk-newsitem) { outline-color: #ffe14d !important; }

/* iconițele (măști) devin galbene; selectorii încep cu „html… body” ca să bată regula generală de mai sus */
html.cnmk-a11y-contrast body .cnmk-tile::after,
html.cnmk-a11y-contrast body .cnmk-topbar__item::before,
html.cnmk-a11y-contrast body .cnmk-contact__item::before,
html.cnmk-a11y-contrast body .wp-block-file::after,
html.cnmk-a11y-contrast body ul.is-style-cnmk-links a::after,
html.cnmk-a11y-contrast body .cnmk-more a::after,
html.cnmk-a11y-contrast body .cnmk-a11y__toggle::before { background-color: #ffe14d !important; }

/* suprafețele invizibile care fac tot cardul clicabil rămân transparente */
html.cnmk-a11y-contrast body .wp-block-file > a::before,
html.cnmk-a11y-contrast body .cnmk-tile__title a::after,
html.cnmk-a11y-contrast body .cnmk-newsitem__title a::after { background-color: transparent !important; }

html.cnmk-a11y-contrast body .wp-block-button__link,
html.cnmk-a11y-contrast body .cnmk-consent__load { border: 2px solid #ffe14d !important; }

html.cnmk-a11y-contrast .cnmk-tile::before { border: 1px solid #fff; }
html.cnmk-a11y-contrast :where(.wp-block-file, .cnmk-tile, .cnmk-newsitem, .cnmk-sectionnav, .cnmk-a11y__panel, ul.is-style-cnmk-links a) { border: 1px solid #fff !important; }
html.cnmk-a11y-contrast .cnmk-a11y__switch[aria-pressed="true"]::after { background: #ffe14d !important; }
html.cnmk-a11y-contrast img { filter: none; }

/* ---------------------------------------------------------------- conținut extern (încărcare la cerere) */

.cnmk-consent {
	padding: 1.25rem 1.4rem;
	border: 1px dashed var(--cnmk-accent);
	border-radius: var(--cnmk-radius);
	background: var(--cnmk-surface);
}

.cnmk-consent p { margin: 0; }
.cnmk-consent__text { color: var(--cnmk-muted); font-size: 0.93rem; }

.cnmk-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
	margin-top: 0.85rem !important;
}

.cnmk-consent__load {
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 6px;
	background: var(--cnmk-primary);
	color: #fff;
}

.cnmk-consent__load:hover { background: var(--cnmk-primary-dark); }

/* notă pentru redactori: informații de completat înainte de publicare */
.cnmk-todo {
	padding: 0.9rem 1.1rem;
	border: 2px dashed #c27c0e;
	border-radius: 8px;
	background: #fff8e6;
	color: #6b4303;
}

/* o casetă golită în editor nu mai apare pe site */
.cnmk-todo:empty { display: none; }

/* ---------------------------------------------------------------- accesibilitate, tipărire */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.cnmk-topbar, .cnmk-header, .cnmk-footer, .cnmk-sectionnav, .cnmk-search { display: none !important; }
	.cnmk-band { background: none; color: #000; border: 0; }
	.cnmk-band :where(h1, .wp-block-post-title) { color: #000; }
	.wp-block-file::after { display: none; }
}
