/* =========================================================
   ReExpoziția – theme styles (on top of Bootstrap 5.3)
   Brand: #0f0040 (Pantone P275C), font Merriweather
   ========================================================= */

:root,
[data-bs-theme="light"] {
	--reex-brand: #0f0040;
	--reex-brand-rgb: 15, 0, 64;
	--reex-brand-soft: #1c0f5e;
	--reex-ink: #14102a;
	--reex-muted: #5c5a6e;
	--reex-lilac: #e6e4ee;
	--reex-lilac-soft: #f3f2f7;
	--reex-line: #d9d6e4;
	--reex-white: #ffffff;
	--reex-radius: .5rem;
	--reex-font: "Merriweather", Georgia, "Times New Roman", serif;
	--reex-sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
	--reex-accent: #5b3fd0;       /* "RE" highlight, rules under titles */
	--reex-accent-soft: #ebe8fb;
	--reex-night: #15122b;        /* dark bands (Despre) */
	--reex-field: #eef0f4;        /* form inputs */
	--reex-highlight: #f5c400;    /* active year */

	--bs-font-sans-serif: var(--reex-font);
	--bs-body-font-family: var(--reex-font);
	--bs-body-color: var(--reex-ink);
	--bs-body-bg: var(--reex-white);
	--bs-primary: var(--reex-brand);
	--bs-primary-rgb: var(--reex-brand-rgb);
	--bs-link-color: var(--reex-brand);
	--bs-link-color-rgb: var(--reex-brand-rgb);
	--bs-link-hover-color: var(--reex-brand-soft);
	--bs-link-hover-color-rgb: 28, 15, 94;
	--bs-border-color: var(--reex-line);
	--bs-heading-color: var(--reex-ink);
}

body {
	font-family: var(--reex-font);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
	font-family: var(--reex-font);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Bootstrap component re-theming */
.btn-primary {
	--bs-btn-bg: var(--reex-brand);
	--bs-btn-border-color: var(--reex-brand);
	--bs-btn-hover-bg: var(--reex-brand-soft);
	--bs-btn-hover-border-color: var(--reex-brand-soft);
	--bs-btn-active-bg: var(--reex-brand-soft);
	--bs-btn-active-border-color: var(--reex-brand-soft);
}
.btn-outline-primary {
	--bs-btn-color: var(--reex-brand);
	--bs-btn-border-color: var(--reex-brand);
	--bs-btn-hover-bg: var(--reex-brand);
	--bs-btn-hover-border-color: var(--reex-brand);
	--bs-btn-active-bg: var(--reex-brand);
}
.btn-light { --bs-btn-color: var(--reex-brand); --bs-btn-hover-color: var(--reex-brand); }
.form-control:focus {
	border-color: var(--reex-brand);
	box-shadow: 0 0 0 .25rem rgba(var(--reex-brand-rgb), .2);
}

.reex-btn {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .8rem 1.35rem;
	border-radius: .35rem;
	display: inline-flex;
	align-items: center;
	gap: .75rem;
}
.reex-btn:hover { text-decoration: none; }
.reex-btn.btn-sm { padding: .55rem 1rem; font-size: .72rem; }
.reex-arrow { font-size: 1em; }

.reex-link {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: .3em;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--reex-brand);
}
.reex-link-light { color: #fff; }
.reex-link-light:hover { color: #fff; }

.reex-eyebrow {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--reex-muted);
	margin-bottom: .75rem;
}
.reex-eyebrow-light { color: rgba(255, 255, 255, .7); }

.reex-section { padding: 4.5rem 0; }
.reex-section-muted { background: var(--reex-lilac-soft); }
.reex-section-dark { background: var(--reex-brand); color: #fff; }
.reex-section-dark .reex-section-title { color: #fff; }
.reex-section-title { font-size: clamp(1.55rem, 2.4vw, 2.05rem); margin-bottom: 1rem; }
.reex-section-text { color: var(--reex-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.reex-empty { color: var(--reex-muted); font-style: italic; }
.reex-narrow { max-width: 820px; }

.reex-skip { position: absolute; top: 0; left: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- Header ---------- */
.reex-header { background: var(--reex-brand); color: #fff; }
.reex-header .navbar { padding: .9rem 0; }
.reex-logo { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.reex-logo:hover { text-decoration: none; color: #fff; }
.reex-logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.reex-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.reex-logo-name { font-size: 1.2rem; font-weight: 900; letter-spacing: -.01em; }
.reex-logo-tagline { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.reex-nav .nav-link {
	color: rgba(255, 255, 255, .85);
	font-size: .86rem;
	padding: .5rem .85rem;
}
.reex-nav .nav-link:hover, .reex-nav .nav-link.active { color: #fff; text-decoration: none; }
.reex-nav .nav-link.active { text-decoration: underline; text-underline-offset: .5em; }
.reex-nav .dropdown-menu { border-color: var(--reex-line); border-radius: var(--reex-radius); font-size: .9rem; }
.reex-nav .dropdown-item.active, .reex-nav .dropdown-item:active { background: var(--reex-brand); }
.reex-header-actions { display: flex; align-items: center; gap: 1rem; }
.reex-account { color: #fff; font-size: 1.5rem; line-height: 1; }
.reex-account:hover { color: #fff; }
.navbar-toggler { border-color: rgba(255, 255, 255, .4); }
@media (max-width: 991.98px) {
	.reex-header-actions { padding: .75rem 0 .5rem; }
	.reex-nav { padding-top: .5rem; }
}

/* ---------- Hero ---------- */
.reex-hero {
	position: relative;
	background: var(--reex-brand);
	color: #fff;
	padding: 4rem 0 3rem;
	overflow: hidden;
	isolation: isolate;
}
.reex-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--reex-hero-image, none) center / cover no-repeat;
	opacity: 1;
}
.reex-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(var(--reex-brand-rgb), .96) 0%, rgba(var(--reex-brand-rgb), .85) 45%, rgba(var(--reex-brand-rgb), .35) 100%);
}
.reex-hero:not(.has-image)::after {
	background: radial-gradient(60% 90% at 90% 30%, rgba(255, 255, 255, .12) 0%, transparent 60%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .2) 100%);
}
.reex-hero-content { max-width: 560px; }
.reex-hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; color: #fff; margin-bottom: 1.25rem; }
.reex-hero-text { font-size: .98rem; color: rgba(255, 255, 255, .85); max-width: 520px; margin-bottom: 1.75rem; }
.reex-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.reex-hero-deadline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
	margin-top: 2.5rem;
}
.reex-deadline-text {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: .6rem;
}
.reex-countdown { display: flex; gap: .5rem; }
.reex-count {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: .4rem;
	min-width: 62px;
	padding: .45rem .5rem .35rem;
	text-align: center;
	display: flex;
	flex-direction: column;
}
.reex-count-num { font-size: 1.35rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.reex-count-label { font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.reex-countdown.is-done .reex-count { display: none; }
.reex-countdown-done { font-weight: 700; }

/* ---------- Features (about) ---------- */
.reex-features { border-left: 1px solid var(--reex-line); }
.reex-feature { padding: 1.25rem 1.25rem; text-align: center; border-right: 1px solid var(--reex-line); height: 100%; }
.reex-feature-icon { font-size: 2rem; color: var(--reex-brand); display: block; margin-bottom: 1rem; line-height: 1; }
.reex-feature-title { font-size: .92rem; margin-bottom: .5rem; }
.reex-feature-text { font-size: .82rem; color: var(--reex-muted); margin: 0; }
@media (max-width: 767.98px) {
	.reex-features { border-left: 0; }
	.reex-feature { border: 0; border-bottom: 1px solid var(--reex-line); }
}

/* ---------- Cards ---------- */
.reex-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--reex-line);
	border-radius: var(--reex-radius);
	padding: 1.25rem;
	height: 100%;
	color: var(--reex-ink);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.reex-card:hover { text-decoration: none; color: var(--reex-ink); transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(var(--reex-brand-rgb), .6); border-color: rgba(var(--reex-brand-rgb), .35); }
.reex-card-title { font-size: 1rem; margin-bottom: .5rem; }
.reex-card-title a { color: inherit; }
.reex-card-text { font-size: .82rem; color: var(--reex-muted); margin-bottom: 1rem; }
.reex-card-icon { text-align: center; }
.reex-card-icon .reex-card-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.reex-card-icon-wrap { font-size: 2rem; color: var(--reex-brand); line-height: 1; display: block; margin: .5rem 0 1rem; }
.reex-card-arrow { margin-top: auto; color: var(--reex-brand); }
.reex-card-year { font-size: .82rem; color: var(--reex-muted); }
.reex-card-edition .reex-card-title { font-size: .95rem; }
.reex-card-media { display: block; border-radius: .35rem; overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16 / 10; background: var(--reex-lilac); }
.reex-card-media img, .reex-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reex-card-link {
	white-space: nowrap;
	margin-top: auto;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--reex-brand);
	display: inline-flex;
	gap: .5rem;
	align-items: center;
}
.reex-card-post { padding: 0; overflow: hidden; }
.reex-card-post .reex-card-media { border-radius: 0; margin: 0; aspect-ratio: 16 / 9; }
.reex-card-post .reex-card-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.reex-card-label { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--reex-muted); margin-bottom: .4rem; display: block; }
.reex-card-post .reex-card-title { font-size: .95rem; }

/* Placeholder (wireframe box) */
.reex-placeholder {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	background: var(--reex-lilac);
	position: relative;
	border-radius: inherit;
}
.reex-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.reex-placeholder line { stroke: rgba(var(--reex-brand-rgb), .18); stroke-width: .6; vector-effect: non-scaling-stroke; }
.reex-placeholder-lg { aspect-ratio: 4 / 3; border-radius: var(--reex-radius); margin-bottom: 1.5rem; }

/* ---------- Works (gallery) ---------- */
.reex-work { display: block; color: var(--reex-ink); }
.reex-work:hover { text-decoration: none; color: var(--reex-brand); }
.reex-work-media { position: relative; border-radius: var(--reex-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--reex-lilac); }
.reex-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.reex-work:hover img { transform: scale(1.04); }
.reex-work-caption { display: flex; flex-direction: column; padding: .6rem .1rem 0; line-height: 1.3; }
.reex-work-title { font-size: .85rem; font-weight: 700; }
.reex-work-author { font-size: .74rem; color: var(--reex-muted); }
.reex-work-award { position: absolute; left: .6rem; bottom: .6rem; background: var(--reex-brand); color: #fff; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .5rem; border-radius: .25rem; }

/* ---------- Horizontal track (carousel) ---------- */
.reex-track-wrap { position: relative; }
.reex-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3rem) / 4);
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: .25rem;
}
.reex-track::-webkit-scrollbar { display: none; }
.reex-track-item { scroll-snap-align: start; }
@media (max-width: 991.98px) { .reex-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 575.98px) { .reex-track { grid-auto-columns: 82%; } }
.reex-track-btn {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--reex-line);
	background: #fff;
	color: var(--reex-brand);
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4);
	display: grid;
	place-items: center;
	z-index: 2;
}
.reex-track-btn:disabled { opacity: 0; pointer-events: none; }
.reex-track-prev { left: -22px; }
.reex-track-next { right: -22px; }
@media (max-width: 575.98px) { .reex-track-prev { left: -8px; } .reex-track-next { right: -8px; } }
.reex-track-dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1.25rem; }
.reex-track-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--reex-line); padding: 0; }
.reex-track-dots button.is-active { background: var(--reex-brand); }

/* ---------- Impact ---------- */
.reex-stats-head { display: flex; justify-content: flex-end; margin-bottom: 1.25rem; }
.reex-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.reex-stat { text-align: center; padding: .5rem 1rem; border-left: 1px solid rgba(255, 255, 255, .18); display: flex; flex-direction: column; }
.reex-stat:first-child { border-left: 0; }
.reex-stat-icon { font-size: 1.5rem; margin-bottom: .5rem; line-height: 1; }
.reex-stat-value { font-size: 1.7rem; font-weight: 900; line-height: 1.1; }
.reex-stat-label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: .35rem; }
.reex-stat-sub { font-size: .72rem; opacity: .75; }
@media (max-width: 767.98px) {
	.reex-stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
	.reex-stat:nth-child(odd) { border-left: 0; }
}
@media (max-width: 575.98px) {
	.reex-stats-head { justify-content: flex-start; }
}

/* ---------- CTA ---------- */
.reex-cta-section { padding-top: 0; }
.reex-section-muted + .reex-cta-section { padding-top: 4.5rem; }
.reex-cta {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem 2rem;
	background: var(--reex-lilac-soft);
	border: 1px solid var(--reex-line);
	border-radius: var(--reex-radius);
	padding: 1.75rem 2rem;
}
.reex-cta-icon { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--reex-line); background: #fff; display: grid; place-items: center; font-size: 1.6rem; color: var(--reex-brand); }
.reex-cta-title { font-size: 1.25rem; margin-bottom: .35rem; }
.reex-cta-text { font-size: .85rem; color: var(--reex-muted); margin: 0; max-width: 520px; }
.reex-cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
@media (max-width: 767.98px) {
	.reex-cta { grid-template-columns: 1fr; }
	.reex-cta-actions { align-items: flex-start; }
}

/* ---------- Footer ---------- */
.reex-footer { background: var(--reex-brand); color: rgba(255, 255, 255, .8); padding: 3.5rem 0 1.5rem; font-size: .85rem; }
.reex-footer a { color: rgba(255, 255, 255, .8); }
.reex-footer a:hover { color: #fff; }
.reex-logo-footer { margin-bottom: 1rem; }
.reex-footer-desc { margin-bottom: 1.25rem; }
.reex-footer-title { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.reex-footer-menu { list-style: none; margin: 0; padding: 0; }
.reex-footer-menu li { margin-bottom: .4rem; }
.reex-socials { display: flex; gap: .75rem; }
.reex-social { font-size: 1.15rem; }
.reex-footer-desc { max-width: 460px; }
.reex-hp { position: absolute; left: -9999px; }
.reex-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .75rem 2rem;
	border-top: 1px solid rgba(255, 255, 255, .15);
	margin-top: 3rem;
	padding-top: 1.25rem;
	font-size: .75rem;
}
.reex-copyright { margin: 0; }
.reex-footer-legal { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }

/* ---------- Inner pages ---------- */
.reex-page-header { background: var(--reex-brand); color: #fff; padding: 3.5rem 0; }
.reex-page-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; margin: 0; }
.reex-page-lead { max-width: 640px; margin-top: 1rem; color: rgba(255, 255, 255, .85); }
.reex-page-figure { margin-bottom: 2rem; }
.reex-meta { color: var(--reex-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.reex-aside { background: var(--reex-lilac-soft); border: 1px solid var(--reex-line); border-radius: var(--reex-radius); padding: 1.5rem; font-size: .9rem; }
.reex-aside p { margin-bottom: .5rem; }
.reex-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.reex-post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--reex-line); }
.reex-results { list-style: none; padding: 0; margin: 0; }
.reex-results li { padding: 1.25rem 0; border-bottom: 1px solid var(--reex-line); }
.reex-pagination { margin-top: 3rem; }
.reex-pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.reex-pagination .page-numbers { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--reex-line); border-radius: .35rem; color: var(--reex-brand); }
.reex-pagination .page-numbers.current { background: var(--reex-brand); color: #fff; border-color: var(--reex-brand); }
.reex-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--reex-line); }
.reex-comment-list { list-style: none; padding: 0; }
.reex-comment-form input[type="text"], .reex-comment-form input[type="email"], .reex-comment-form input[type="url"], .reex-comment-form textarea { display: block; width: 100%; border: 1px solid var(--reex-line); border-radius: .35rem; padding: .5rem .75rem; }

/* ---------- Block editor content ---------- */
.reex-content { font-size: 1.02rem; }
.reex-content > * { margin-bottom: 1.25rem; }
.reex-content h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.reex-content h3 { font-size: 1.25rem; margin-top: 2rem; }
.reex-content img { max-width: 100%; height: auto; border-radius: .35rem; }
.reex-content .alignwide { margin-left: calc(50% - 50vw + 1rem); margin-right: calc(50% - 50vw + 1rem); max-width: 100vw; }
.reex-content .wp-block-button__link { background: var(--reex-brand); color: #fff; border-radius: .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .8rem 1.35rem; }
.reex-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--reex-brand); border: 1px solid var(--reex-brand); }
.reex-content blockquote { border-left: 3px solid var(--reex-brand); padding-left: 1.25rem; color: var(--reex-muted); font-style: italic; }
.reex-content .wp-block-quote cite { font-style: normal; font-size: .85rem; }
.reex-content .has-primary-background-color { background: var(--reex-brand); }
.reex-content .has-primary-color { color: var(--reex-brand); }
.reex-content .has-lilac-background-color { background: var(--reex-lilac); }
.reex-content .has-lilac-color { color: var(--reex-lilac); }
.reex-content .has-white-background-color { background: #fff; }
.reex-content .has-white-color { color: #fff; }
.reex-content .has-ink-color { color: var(--reex-ink); }
.reex-content .has-ink-background-color { background: var(--reex-ink); }
.reex-content .wp-block-columns { gap: 2rem; }
.reex-content .wp-block-group.has-background { padding: 2rem; border-radius: var(--reex-radius); }
.wp-caption, .wp-block-image figcaption { font-size: .8rem; color: var(--reex-muted); text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* =========================================================
   v1.1 – homepage feedback + inner-page designs
   ========================================================= */

/* ---------- Homepage additions ---------- */
.reex-card-static:hover { transform: none; box-shadow: none; border-color: var(--reex-line); }
.reex-card-static .reex-card-text { margin-bottom: 0; }
.reex-card-hazard { align-items: center; padding: 1.75rem 1.25rem 1.25rem; }
.reex-card-hazard .reex-card-icon-wrap { margin: 0 0 1rem; }
.reex-card-hazard .reex-hazard { width: 56px; height: 56px; }
.reex-card-hazard .reex-card-title { margin-bottom: 1rem; }
.reex-hazard { display: inline-block; width: 1em; height: 1em; }

.reex-accordion { --bs-accordion-border-color: var(--reex-line); --bs-accordion-border-radius: var(--reex-radius); --bs-accordion-inner-border-radius: calc(var(--reex-radius) - 1px); --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--reex-brand); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--reex-brand-rgb), .2); }
.reex-accordion .accordion-button { font-family: var(--reex-font); font-weight: 700; font-size: .95rem; color: var(--reex-ink); padding: 1.1rem 1.25rem; }
.reex-accordion .accordion-button:not(.collapsed) { color: var(--reex-brand); box-shadow: inset 0 -1px 0 var(--reex-line); }
.reex-accordion .accordion-body { font-size: .9rem; color: var(--reex-muted); }
.reex-accordion .accordion-body p:last-child { margin-bottom: 0; }

/* ---------- Sans typography for the inner-page designs ---------- */
.reex-sans .reex-main { --reex-font: var(--reex-sans); font-family: var(--reex-sans); }
.reex-sans .reex-main .reex-btn { letter-spacing: .06em; }

.reex-rule { display: block; width: 52px; height: 3px; background: #8b7ce8; margin: 1.5rem 0; border-radius: 2px; }
.reex-re { color: var(--reex-accent); }

/* ---------- Page hero (image background, text on the left) ---------- */
.reex-phero {
	position: relative;
	isolation: isolate;
	color: #fff;
	background: var(--reex-night);
	padding: clamp(3.5rem, 8vw, 5.5rem) 0;
	overflow: hidden;
}
.reex-phero::before,
.reex-why::before,
.reex-quote::before,
.reex-prizes::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--reex-bg, none) right center / cover no-repeat;
}
.reex-phero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(10, 8, 20, .92) 0%, rgba(10, 8, 20, .7) 42%, rgba(10, 8, 20, .15) 80%);
}
.reex-phero-title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #fff; margin: 0; }
.reex-phero-text { font-size: clamp(1.2rem, 2.2vw, 1.75rem); font-weight: 300; line-height: 1.3; color: rgba(255, 255, 255, .92); margin: 0; }
.reex-phero-eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .95rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; }
.reex-phero-eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.reex-phero-edition .reex-phero-title { margin-bottom: 1rem; }
.reex-phero-edition .reex-phero-text { margin-bottom: 2rem; }
.reex-phero-dates { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 2.25rem; }
.reex-phero-dates dt { font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.reex-phero-dates dd { font-size: 1.3rem; margin: .25rem 0 0; }
.reex-btn-glass { background: rgba(255, 255, 255, .14); }
.reex-phero .reex-btn { border-width: 2px; }

/* ---------- Split rows (text + full-bleed image) ---------- */
/* Desktop: 4 columns [edge | text | image | edge]; the middle two follow the .container width,
   so the text lines up with the rest of the page while the image runs to the window edge. */
.reex-split { display: grid; background: #f7f7f9; }
.reex-split + .reex-split { border-top: 6px solid #fff; }
.reex-split-body { padding: 2.5rem 1.5rem; align-self: center; }
.reex-split-body p { color: #4a4858; font-size: 1.02rem; max-width: 620px; }
.reex-split-title { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; color: var(--reex-brand); margin-bottom: 1.5rem; }
.reex-split-media { position: relative; aspect-ratio: 16 / 9; }
.reex-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reex-split-dark { background: var(--reex-night); color: #fff; }
.reex-split-dark .reex-split-title { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.reex-split-dark .reex-split-body p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
@media (min-width: 992px) {
	.reex-split { --reex-cw: 960px; --reex-text: .56; grid-template-columns: 1fr calc(var(--reex-cw) * var(--reex-text)) calc(var(--reex-cw) * (1 - var(--reex-text))) 1fr; }
	.reex-split-body { grid-column: 2; grid-row: 1; padding: 3.5rem 3rem 3.5rem .75rem; }
	.reex-split-media { grid-column: 3 / 5; grid-row: 1; aspect-ratio: auto; min-height: 300px; }
	.reex-split-reverse { --reex-text: .45; }
	.reex-split-reverse .reex-split-media { grid-column: 1 / 3; }
	.reex-split-reverse .reex-split-body { grid-column: 3; padding: 3.5rem .75rem 3.5rem 3rem; }
	.reex-split-repeat { --reex-text: .49; }
	.reex-split-repeat .reex-split-media { margin: 1.5rem 0; }
}
@media (min-width: 1200px) { .reex-split { --reex-cw: 1140px; } }
@media (min-width: 1400px) { .reex-split { --reex-cw: 1320px; } }
.reex-repeat-intro { font-size: .95rem !important; }
.reex-repeat { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1.25rem; }
.reex-repeat li { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 1.25rem; }
.reex-repeat-icon { font-size: 2rem; color: var(--reex-brand); text-align: center; line-height: 1; }
.reex-repeat-text { display: flex; flex-direction: column; border-left: 1px solid var(--reex-line); padding-left: 1.5rem; line-height: 1.3; }
.reex-repeat-word { font-size: 1.3rem; color: var(--reex-brand); }
.reex-repeat-sub { font-size: .92rem; color: var(--reex-muted); }

/* ---------- "De ce ReExpoziția" ---------- */
.reex-why, .reex-quote, .reex-prizes { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.reex-why { padding: clamp(3rem, 6vw, 4.5rem) 0; background: #1c0f55; }
.reex-why::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 9, 72, .97) 0%, rgba(28, 14, 88, .85) 50%, rgba(28, 14, 88, .45) 100%); }
.reex-why .reex-split-title { color: #fff; }
.reex-why-body p { color: rgba(255, 255, 255, .88); font-size: .98rem; }
.reex-risks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); }
.reex-risks li { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: .5rem 1rem; border-left: 1px solid rgba(255, 255, 255, .35); }
.reex-risks li:first-child { border-left: 0; }
.reex-risks .reex-hazard { width: 72px; height: 72px; }
.reex-risks span { font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.reex-risks-tagline { text-align: center; margin: 0; font-size: 1rem; }
@media (min-width: 992px) {
	.reex-why .col-lg-6 + .col-lg-6 { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 3rem; }
}

/* ---------- Closing quote band ---------- */
.reex-quote { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--reex-night); }
.reex-quote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 24, .9) 0%, rgba(12, 12, 24, .72) 55%, rgba(12, 12, 24, .35) 100%); }
.reex-quote-text { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.35; max-width: 880px; margin: 0; }

/* ---------- Ediția curentă ---------- */
.reex-page-heading { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; color: #141414; margin-bottom: 1.5rem; }
.reex-page-heading::after { content: ""; display: block; width: 40px; height: 3px; background: currentColor; margin-top: .6rem; }
.reex-page-heading-light { color: #fff; }
.reex-lead-text { max-width: 1060px; }
.reex-lead-text p { color: #3d3b48; font-size: 1.04rem; }
.reex-juror { display: grid; grid-template-columns: 165px 1fr; gap: 1.5rem; align-items: start; }
.reex-juror-photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--reex-lilac); }
.reex-juror-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); }
.reex-juror-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.5rem; color: rgba(var(--reex-brand-rgb), .3); }
.reex-juror-name { font-size: 1.15rem; font-weight: 700; margin: .75rem 0 .35rem; }
.reex-juror-role { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #9a98a6; margin-bottom: 1rem; }
.reex-juror-bio { font-size: .9rem; color: #4a4858; margin: 0; }
@media (max-width: 575.98px) { .reex-juror { grid-template-columns: 120px 1fr; gap: 1rem; } }

.reex-prizes { padding: clamp(3rem, 6vw, 4.5rem) 0; background: #1d1a1c; }
.reex-prizes::before { background-position: center; }
.reex-prizes::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 16, 20, .92) 0%, rgba(18, 16, 20, .72) 45%, rgba(18, 16, 20, .55) 100%); }
.reex-prizes-text { font-size: 1.1rem; color: rgba(255, 255, 255, .9); margin: 0; }
.reex-prize-cols { display: grid; grid-template-columns: 1fr 1fr; }
.reex-prize-col { padding: 0 2rem; }
.reex-prize-col + .reex-prize-col { border-left: 1px solid rgba(255, 255, 255, .45); }
.reex-prize-title { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; margin-bottom: 1.25rem; }
.reex-prize-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.reex-prize-list li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 1rem; }
.reex-laurel { width: 40px; height: 40px; color: rgba(255, 255, 255, .9); }
.reex-prize-label { font-size: 1.02rem; }
.reex-prize-value { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 767.98px) {
	.reex-prize-cols { grid-template-columns: 1fr; gap: 2rem; }
	.reex-prize-col { padding: 0; }
	.reex-prize-col + .reex-prize-col { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 2rem; }
}

.reex-entries-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; margin-bottom: 1rem; }
.reex-toggle { display: inline-flex; flex-wrap: wrap; gap: 0; }
.reex-toggle-btn {
	border: 0;
	background: #efeff1;
	color: #6b6a72;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .8rem 1.9rem;
	border-radius: 0;
}
.reex-toggle-btn:first-child { border-radius: .2rem 0 0 .2rem; }
.reex-toggle-btn:last-child { border-radius: 0 .2rem .2rem 0; }
.reex-toggle-btn:hover { color: #1b1b1f; text-decoration: none; }
.reex-toggle-btn.active { background: #2c2c30; color: #fff; }
.reex-work-entry .reex-work-media { border-radius: 0; aspect-ratio: 16 / 9; }
.reex-work-entry .reex-work-title { font-size: .95rem; }
.reex-work-entry .reex-work-author { font-size: .9rem; }

/* ---------- Ediții anterioare ---------- */
.reex-archive-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 2rem; margin-bottom: 2.25rem; }
.reex-archive-title { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; color: #111; margin-bottom: .5rem; }
.reex-archive-subtitle { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; line-height: 1.2; color: #3a3a3a; margin: 0; }
.reex-archive-filters { display: flex; flex-direction: column; align-items: flex-end; gap: 1.75rem; padding-top: 1.5rem; }
.reex-years { display: flex; gap: clamp(1.25rem, 4vw, 3.25rem); }
.reex-year { position: relative; font-size: 1.05rem; font-weight: 700; color: #a3a3a8; padding-bottom: .4rem; }
.reex-year:hover { color: #111; text-decoration: none; }
.reex-year.is-active { color: #111; }
.reex-year.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 12px; height: 3px; margin-left: -6px; background: var(--reex-highlight); border-radius: 2px; }
.reex-archive .reex-toggle { gap: 1rem; }
.reex-archive .reex-toggle-btn { border-radius: .15rem; padding: .7rem 1.9rem; font-size: .75rem; letter-spacing: .1em; }
.reex-archive .reex-toggle-btn.active { background: #111; }
@media (max-width: 767.98px) { .reex-archive-filters { align-items: flex-start; padding-top: 0; } }

.reex-masonry { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 40px; grid-auto-flow: row dense; gap: 16px; }
.reex-masonry-item { position: relative; display: block; overflow: hidden; background: var(--reex-lilac); grid-column: span 4; grid-row: span 5; }
.reex-masonry-item:nth-child(8n + 1) { grid-column: span 6; grid-row: span 6; }
.reex-masonry-item:nth-child(8n + 2) { grid-column: span 2; grid-row: span 6; }
.reex-masonry-item:nth-child(8n + 3),
.reex-masonry-item:nth-child(8n + 4) { grid-column: span 4; grid-row: span 3; }
.reex-masonry-item:nth-child(8n + 5),
.reex-masonry-item:nth-child(8n + 7) { grid-column: span 2; grid-row: span 5; }
.reex-masonry-item:nth-child(8n + 6),
.reex-masonry-item:nth-child(8n + 8) { grid-column: span 4; grid-row: span 5; }
.reex-masonry-item img, .reex-masonry-item .reex-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; transition: transform .4s ease; }
.reex-masonry-item:hover img { transform: scale(1.03); }
.reex-masonry-caption {
	position: absolute;
	inset: auto 0 0;
	padding: 2rem .9rem .75rem;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75));
	color: #fff;
	font-size: .85rem;
	line-height: 1.3;
	opacity: 0;
	transition: opacity .25s ease;
}
.reex-masonry-caption strong { display: block; }
.reex-masonry-item:hover .reex-masonry-caption,
.reex-masonry-item:focus-visible .reex-masonry-caption { opacity: 1; }
@media (max-width: 991.98px) {
	.reex-masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 10px; }
	.reex-masonry-item,
	.reex-masonry-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
	.reex-masonry-item:nth-child(3n + 1) { grid-column: span 2; grid-row: span 1; }
	.reex-masonry-caption { opacity: 1; }
}

/* ---------- Formular de înscriere ---------- */
.reex-phero-form { padding-bottom: 4rem; }
.reex-phero-form::before { background-position: right top; background-size: min(100%, 1400px) auto; }
.reex-phero-form::after { background: linear-gradient(180deg, rgba(10, 8, 20, .35) 0%, rgba(10, 8, 20, .75) 45%, rgba(10, 8, 20, .95) 100%), linear-gradient(90deg, rgba(10, 8, 20, .85) 0%, rgba(10, 8, 20, 0) 65%); }
@media (max-width: 991.98px) { .reex-phero-form::before { background-size: auto 420px; } }
.reex-phero-form .reex-phero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .75rem; }
.reex-phero-form .reex-phero-text { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 400; }
.reex-breadcrumb { display: flex; align-items: center; gap: .6rem; font-size: 1rem; margin-bottom: .5rem; }
.reex-breadcrumb a { color: #fff; }
.reex-breadcrumb .bi { font-size: .7rem; }

.reex-form-card { position: relative; background: #fff; color: var(--reex-ink); border-radius: .35rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); margin-top: 2rem; overflow: hidden; scroll-margin-top: 1rem; }
.reex-form-tabs { display: grid; grid-template-columns: 1fr 1fr; flex-wrap: nowrap; }
.reex-form-tab { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .4rem 1.75rem; border: 0; padding: 1.1rem 1rem; background: var(--reex-accent-soft); color: var(--reex-brand); }
.reex-form-tab.active { background: var(--reex-brand); color: #fff; }
.reex-form-tab-title { position: relative; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700; }
.reex-form-tab.active .reex-form-tab-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.4rem; height: 3px; background: #9a8cf0; border-radius: 2px; }
.reex-form-tab-ages { font-size: .9rem; opacity: .8; }
.reex-form-alert { margin: 1.25rem clamp(1.25rem, 3vw, 2.25rem) 0; }
.reex-form { padding: 1.25rem clamp(1.25rem, 3vw, 2.25rem) 2rem; }
.reex-form-heading { position: relative; font-size: 1.3rem; font-weight: 700; color: var(--reex-brand); margin: 1rem 0 1.25rem; }
.reex-form-heading::after { content: ""; position: absolute; left: 0; bottom: -.35rem; width: 22px; height: 3px; background: var(--reex-accent); border-radius: 2px; }
.reex-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.reex-form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.reex-input { background: var(--reex-field); border: 1px solid #e2e4eb; border-radius: .2rem; padding: .6rem .9rem; font-size: .92rem; }
.reex-input:focus { background: #fff; }
textarea.reex-input { height: 100%; min-height: 72px; resize: vertical; }
.reex-upload { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 72px; border: 1px dashed #c3c5d1; border-radius: .2rem; background: #f8f8fb; text-align: center; transition: border-color .2s ease, background .2s ease; }
.reex-upload:hover, .reex-upload:focus-within { border-color: var(--reex-accent); background: var(--reex-accent-soft); }
.reex-upload.has-file { border-style: solid; border-color: var(--reex-accent); }
.reex-upload.is-invalid { border-color: var(--bs-form-invalid-border-color); }
.reex-upload-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.reex-upload-label { display: flex; flex-direction: column; gap: .15rem; padding: .75rem 1rem; cursor: pointer; }
.reex-upload-title { font-size: 1rem; font-weight: 700; color: var(--reex-brand); }
.reex-upload-title .bi { font-size: 1.45rem; color: #6b4de6; vertical-align: -.2em; margin-right: .5rem; }
.reex-upload-hint { font-size: .76rem; color: #7a7988; word-break: break-word; }
.reex-upload .invalid-feedback { position: relative; z-index: 2; padding: 0 .75rem .5rem; }
.reex-checks { display: grid; gap: .6rem; margin: 1.5rem 0 1.25rem; }
.reex-checks-2 { grid-template-columns: 1fr 1fr; gap: .75rem 2rem; }
.reex-check { font-size: .88rem; color: #4a4858; margin: 0; }
.reex-check .form-check-input { width: 1.15em; height: 1.15em; border-color: #b9bac6; border-radius: .15rem; margin-top: .15em; }
.reex-check .form-check-input:checked { background-color: var(--reex-brand); border-color: var(--reex-brand); }
.reex-check a { color: var(--reex-brand); text-decoration: underline; text-underline-offset: .2em; }
.reex-check-file { display: grid; gap: .35rem; padding-left: 0; }
.reex-check-file label { font-size: .88rem; }
.reex-check-file .form-control { max-width: 340px; font-size: .8rem; }
.reex-form-intro { display: flex; align-items: center; gap: 1.5rem; background: var(--reex-accent-soft); border-radius: .2rem; padding: 1rem 1.5rem; margin: .5rem 0 1.25rem; }
.reex-form-intro .bi { font-size: 2.4rem; color: var(--reex-brand); line-height: 1; }
.reex-form-intro p { margin: 0; font-size: .9rem; color: #3a3850; }
.reex-form-legal { font-size: .82rem; color: #55535f; line-height: 1.55; }
.reex-form-submit { width: 100%; justify-content: center; padding: 1rem; font-size: .95rem; letter-spacing: .06em; }
.reex-form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 3.5rem 1.5rem; }
.reex-form-success .bi { font-size: 3rem; color: var(--reex-accent); }
.reex-form-success p { font-size: 1.1rem; max-width: 560px; margin: 0; }
@media (max-width: 767.98px) {
	.reex-form-grid, .reex-form-grid-3, .reex-checks-2 { grid-template-columns: 1fr; }
	.reex-form-tab { flex-direction: column; align-items: center; gap: .5rem; }
	.reex-form-intro { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ---------- Media: share ---------- */
.reex-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.reex-share-label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--reex-muted); margin-right: .5rem; }
.reex-share-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--reex-line); background: #fff; color: var(--reex-brand); font-size: 1rem; }
.reex-share-btn:hover, .reex-share-btn.is-copied { background: var(--reex-brand); border-color: var(--reex-brand); color: #fff; text-decoration: none; }
.reex-tags a { display: inline-block; font-size: .78rem; padding: .2rem .6rem; border: 1px solid var(--reex-line); border-radius: 1rem; margin: 0 .25rem .25rem 0; }
@media (max-width: 575.98px) {
	.reex-phero-text br, .reex-archive-subtitle br, .reex-prizes-text br { display: none; }
}

/* =========================================================
   v1.2 – branding, cookie consent, legal pages
   ========================================================= */
.reex-logo-image { display: block; height: auto; max-width: 100%; }
.reex-logo-header .reex-logo-image { height: 46px; width: auto; }
.reex-logo-footer .reex-logo-image { width: 280px; }
.reex-partner { display: inline-flex; align-items: center; }
.reex-partner img { height: 38px; width: auto; display: block; }
.reex-partner:hover img { opacity: .85; }
@media (max-width: 991.98px) {
	.reex-logo-header .reex-logo-image { height: 38px; }
	.reex-partner img { height: 32px; }
}

/* Footer: legal links + "Setări cookies" */
.reex-footer-legal-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.reex-cookie-settings-link { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .8); font: inherit; cursor: pointer; }
.reex-cookie-settings-link:hover, .reex-cookie-settings-link:focus-visible { color: #fff; text-decoration: underline; }

/* Cookie banner */
.reex-cookie {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 1080;
	max-width: 1080px;
	margin: 0 auto;
	background: var(--reex-brand);
	color: rgba(255, 255, 255, .9);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: var(--reex-radius);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
	font-size: .85rem;
}
.reex-cookie[hidden] { display: none; }
.reex-cookie-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2rem; padding: 1.25rem 1.5rem; }
.reex-cookie-body { flex: 1 1 420px; }
.reex-cookie-title { font-size: 1rem; color: #fff; margin-bottom: .4rem; }
.reex-cookie-text { margin: 0; line-height: 1.6; }
.reex-cookie a { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.reex-cookie-prefs { margin-top: 1rem; display: grid; gap: .6rem; }
.reex-cookie-prefs[hidden] { display: none; }
.reex-cookie-option { margin: 0; }
.reex-cookie-option .form-check-input { background-color: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .5); }
.reex-cookie-option .form-check-input:checked { background-color: #9a8cf0; border-color: #9a8cf0; }
.reex-cookie-option .form-check-input:disabled { opacity: .7; }
.reex-cookie-option .form-check-label { opacity: 1 !important; }
.reex-cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.reex-cookie-actions [hidden] { display: none; }
@media (max-width: 575.98px) {
	.reex-cookie { left: .5rem; right: .5rem; bottom: .5rem; }
	.reex-cookie-inner { padding: 1rem; }
	.reex-cookie-actions { width: 100%; }
	.reex-cookie-actions .reex-btn { flex: 1 1 auto; justify-content: center; }
}

/* Legal pages: wide tables scroll on small screens */
.reex-content .wp-block-table { overflow-x: auto; }
.reex-content .wp-block-table table { min-width: 640px; font-size: .9rem; }
.reex-content .wp-block-table th { background: var(--reex-lilac-soft); }

/* =========================================================
   v1.3 – Regulament page, header spacing
   ========================================================= */
/* Header: more air between "Înscrie lucrare" and the PADROM logo, with a discreet divider. */
.reex-header-actions { gap: 1.25rem; }
.reex-partner { margin-left: .5rem; padding-left: 1.75rem; border-left: 1px solid rgba(255, 255, 255, .22); }
.reex-partner img { height: 32px; }
@media (max-width: 991.98px) {
	.reex-partner { margin-left: .25rem; padding-left: 1.25rem; }
	.reex-partner img { height: 28px; }
}

/* Regulament */
.reex-rules-intro, .reex-rules-prizes, .reex-rules-docs { max-width: 1000px; }
.reex-rules-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--reex-ink); margin-bottom: 2.5rem; }
.reex-rules-text { font-size: 1.02rem; color: #3d3b48; }
.reex-rules-text a { color: var(--reex-brand); text-decoration: underline; text-underline-offset: .2em; }
.reex-rules-who { margin-bottom: 2rem; }
.reex-rules-card { display: flex; gap: 1.1rem; height: 100%; padding: 1.4rem 1.5rem; background: var(--reex-lilac-soft); border: 1px solid var(--reex-line); border-radius: var(--reex-radius); }
.reex-rules-card-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--reex-line); color: var(--reex-brand); font-size: 1.25rem; }
.reex-rules-card-title { font-weight: 700; color: var(--reex-brand); margin-bottom: .35rem; }
.reex-rules-card-text { font-size: .95rem; color: #3d3b48; margin: 0; }
.reex-rules-prizes { margin-top: 3.5rem; }
.reex-rules-docs { margin-top: 3.5rem; }

/* Prize list on a light background (Regulament) */
.reex-prize-cols-light { margin-top: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--reex-line); border-bottom: 1px solid var(--reex-line); }
.reex-prize-cols-light .reex-prize-col:first-child { padding-left: 0; }
.reex-prize-cols-light .reex-prize-col + .reex-prize-col { border-left-color: var(--reex-line); }
.reex-prize-cols-light .reex-prize-title { color: var(--reex-brand); }
.reex-prize-cols-light .reex-laurel { color: var(--reex-brand); }
.reex-prize-cols-light .reex-prize-label { color: #3d3b48; }
.reex-prize-cols-light .reex-prize-value { color: var(--reex-ink); }
@media (max-width: 767.98px) {
	.reex-prize-cols-light .reex-prize-col + .reex-prize-col { border-top-color: var(--reex-line); }
}

/* Document cards */
.reex-doc { display: flex; align-items: center; gap: 1rem; height: 100%; padding: 1.25rem 1.35rem; background: #fff; border: 1px solid var(--reex-line); border-radius: var(--reex-radius); color: var(--reex-ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.reex-doc:hover, a.reex-doc:focus-visible { text-decoration: none; color: var(--reex-ink); transform: translateY(-2px); border-color: rgba(var(--reex-brand-rgb), .4); box-shadow: 0 12px 28px -18px rgba(var(--reex-brand-rgb), .6); }
.reex-doc-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: .4rem; background: var(--reex-brand); color: #fff; font-size: 1.35rem; }
.reex-doc-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.reex-doc-title { font-weight: 700; line-height: 1.3; }
.reex-doc-meta { font-size: .8rem; color: var(--reex-muted); }
.reex-doc-arrow { color: var(--reex-brand); }
.reex-doc.is-pending { background: var(--reex-lilac-soft); border-style: dashed; cursor: not-allowed; }
.reex-doc.is-pending .reex-doc-icon { background: var(--reex-lilac); color: rgba(var(--reex-brand-rgb), .45); }
.reex-doc.is-pending .reex-doc-title { color: rgba(20, 16, 42, .65); }

/* v1.4 – archived editions: edition name above the gallery, children's texts on the work page */
.reex-archive-edition { margin: -1rem 0 1.5rem; font-size: .95rem; color: var(--reex-muted); }
.reex-archive-edition a { color: var(--reex-brand); font-weight: 600; }
.reex-work-text-scan { max-width: 560px; margin: 0; border: 1px solid var(--reex-line); border-radius: var(--reex-radius); overflow: hidden; }
.reex-work-text-scan img { display: block; width: 100%; height: auto; border-radius: 0; }

/* v1.5 – final feedback: footer logo links, accessibility module */
.reex-logo-footer-pair { position: relative; display: inline-block; }
.reex-logo-area { position: absolute; top: 0; bottom: 0; width: 50%; border-radius: 50%; }
.reex-logo-area-home { left: 0; }
.reex-logo-area-partner { right: 0; }
.reex-logo-area:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.reex-a11y { position: fixed; left: 1rem; bottom: 1rem; z-index: 1070; font-family: var(--reex-sans); }
.reex-a11y-toggle { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid #fff; background: var(--reex-brand); color: #fff; font-size: 1.6rem; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); cursor: pointer; }
.reex-a11y-toggle:hover, .reex-a11y-toggle:focus-visible { background: var(--reex-brand-soft); outline: 2px solid var(--reex-brand); outline-offset: 2px; }
.reex-a11y-panel { position: absolute; left: 0; bottom: calc(100% + .75rem); width: 17.5rem; max-width: calc(100vw - 2rem); max-height: calc(100vh - 6rem); overflow-y: auto; padding: 1rem; background: #fff; color: var(--reex-ink); border: 1px solid var(--reex-line); border-radius: var(--reex-radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); display: grid; gap: .5rem; }
.reex-a11y-panel[hidden] { display: none; }
.reex-a11y-head { display: flex; align-items: center; justify-content: space-between; }
.reex-a11y-title { font-family: var(--reex-sans); font-size: 1rem; font-weight: 700; margin: 0; }
.reex-a11y-close { background: none; border: 0; padding: .25rem; color: var(--reex-ink); cursor: pointer; }
.reex-a11y-size { display: flex; align-items: center; gap: .5rem; padding: .25rem 0 .5rem; border-bottom: 1px solid var(--reex-line); margin-bottom: .25rem; }
.reex-a11y-size-label { flex: 1; font-size: .85rem; line-height: 1.2; }
.reex-a11y-size-value { min-width: 3rem; text-align: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.reex-a11y-size-btn { width: 2.4rem; height: 2.2rem; border: 1px solid var(--reex-line); border-radius: .35rem; background: var(--reex-lilac-soft); color: var(--reex-ink); font-weight: 700; cursor: pointer; }
.reex-a11y-size-btn:disabled { opacity: .4; cursor: default; }
.reex-a11y-option, .reex-a11y-reset { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .75rem; border: 1px solid var(--reex-line); border-radius: .35rem; background: #fff; color: var(--reex-ink); font-size: .9rem; text-align: left; cursor: pointer; }
.reex-a11y-option .bi { font-size: 1.1rem; }
.reex-a11y-option[aria-pressed="true"] { background: var(--reex-brand); border-color: var(--reex-brand); color: #fff; }
.reex-a11y-reset { justify-content: center; background: none; border-style: dashed; }
.reex-a11y-option:focus-visible, .reex-a11y-reset:focus-visible, .reex-a11y-size-btn:focus-visible, .reex-a11y-close:focus-visible { outline: 2px solid var(--reex-accent); outline-offset: 2px; }

html.reex-a11y-size-1 { font-size: 112%; }
html.reex-a11y-size-2 { font-size: 125%; }
html.reex-a11y-size-3 { font-size: 137%; }
html.reex-a11y-contrast { --reex-muted: #14102a; --reex-line: #5c5a6e; --bs-border-color: #5c5a6e; --bs-secondary-color: #14102a; }
html.reex-a11y-contrast .reex-footer, html.reex-a11y-contrast .reex-footer a, html.reex-a11y-contrast .reex-footer button, html.reex-a11y-contrast .reex-footer p { color: #fff !important; }
html.reex-a11y-contrast .reex-hero.has-image::after { background: rgba(10, 0, 40, .88) !important; }
html.reex-a11y-links a:not(.btn):not(.reex-logo-area) { text-decoration: underline !important; text-underline-offset: .2em; }
html.reex-a11y-spacing body { letter-spacing: .03em; word-spacing: .12em; }
html.reex-a11y-spacing p, html.reex-a11y-spacing li, html.reex-a11y-spacing dd { line-height: 2 !important; }
html.reex-a11y-motion *, html.reex-a11y-motion *::before, html.reex-a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media print { .reex-a11y { display: none; } }
