/*
Theme Name: XProject
Theme URI: https://dionysisxenakis.com/
Author: Dionysis Xenakis
Description: Shared theme for the research project sites EXARCH, ECHO 5.0 and NEPSIS. One codebase, one configuration file per project (projects/*.json) with the project's logo colours, facts and funding statement. Mobile-first, installable on phones (web app manifest), no external requests except the optional Zenodo publication feed and consent-gated Google Analytics.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xproject
*/

/* ---------- Fonts (Commissioner, SIL OFL 1.1) ---------- */
@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/commissioner-latin.woff2") format("woff2-variations"), url("assets/fonts/commissioner-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/commissioner-latin-ext.woff2") format("woff2-variations"), url("assets/fonts/commissioner-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Commissioner";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/commissioner-greek.woff2") format("woff2-variations"), url("assets/fonts/commissioner-greek.woff2") format("woff2");
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

/* ---------- Tokens ----------
   Brand colours come from projects/<key>.json and are printed in <head>:
   --brand (logo colour), --brand-deep (hero/footer ground), --brand-2 (second logo colour),
   --text (body text), --tint (light band), --on-deep (text on --brand-deep), --mark (acronym marks on dark). */
:root {
	--brand: #2a6590;
	--brand-deep: #17344b;
	--brand-2: #2e9e4d;
	--text: #2b3034;
	--muted: #5d656b;
	--tint: #f1f5f8;
	--line: #d9dee2;
	--on-deep: #ffffff;
	--mark: #9fd3ff;
	--paper: #ffffff;

	--font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5625rem;
	--step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	--step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.2rem);
	--measure: 68ch;
	--wrap: 76rem;
	--gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
	--radius: 6px;
	--header-h: 4.25rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--step-0);
	line-height: 1.62;
	font-variation-settings: "FLAR" 0;
	-webkit-font-smoothing: antialiased;
	padding-bottom: env(safe-area-inset-bottom);
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 {
	line-height: 1.15;
	margin: 0 0 0.6em;
	font-weight: 720;
	letter-spacing: -0.01em;
	font-variation-settings: "FLAR" 70;
	color: var(--text);
	text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 680; }
h4 { font-size: var(--step-0); }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
small { font-size: var(--step--1); }
blockquote { margin-left: 0; padding-left: 1.1rem; border-left: 3px solid var(--brand); color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.xp-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand-deep); color: var(--on-deep); padding: 0.6rem 1rem; border-radius: var(--radius); }
.xp-skip:focus { top: 1rem; }
.xp-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.xp-prose > * { max-width: var(--measure); }
.xp-prose > .alignwide, .xp-prose > .xp-wide, .xp-prose > table, .xp-prose > .wp-block-table, .xp-prose > figure { max-width: none; }

/* ---------- Buttons ---------- */
.xp-btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	min-height: 2.9rem; padding: 0.65rem 1.2rem;
	border-radius: var(--radius); border: 1.5px solid transparent;
	font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
}
.xp-btn--solid { background: var(--brand-2); color: var(--brand-deep); }
.xp-btn--solid:hover { filter: brightness(1.07); }
.xp-btn--line { border-color: currentColor; color: inherit; }
.xp-btn--line:hover { background: rgba(255, 255, 255, 0.08); }
.xp-btn--brand { background: var(--brand); color: #fff; }

/* ---------- Header ---------- */
.xp-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
	padding-top: env(safe-area-inset-top);
}
.xp-header__in { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.xp-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); margin-right: auto; }
.xp-logo img { display: block; height: 3rem; width: auto; max-width: 11rem; object-fit: contain; }
.xp-logo__text { font-weight: 800; font-size: 1.45rem; letter-spacing: 0.02em; font-variation-settings: "FLAR" 100; color: var(--brand); }
.xp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.2rem; }
.xp-nav li { margin: 0; position: relative; }
.xp-nav a {
	display: block; padding: 0.45rem 0.7rem; border-radius: var(--radius);
	color: var(--text); text-decoration: none; font-weight: 560; font-size: 0.97rem;
}
.xp-nav a:hover { background: var(--tint); }
.xp-nav .current-menu-item > a, .xp-nav .current-menu-ancestor > a, .xp-nav .current_page_item > a, .xp-nav .current_page_parent > a { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.xp-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.35rem; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.xp-nav li:hover > .sub-menu, .xp-nav li:focus-within > .sub-menu { display: flex; }
.xp-menu-btn { display: none; }

@media (max-width: 960px) {
	.xp-menu-btn {
		display: inline-flex; align-items: center; gap: 0.5rem;
		min-height: 2.75rem; padding: 0 0.9rem; border-radius: var(--radius);
		border: 1.5px solid var(--line); background: #fff; color: var(--text);
		font: inherit; font-weight: 650;
	}
	.xp-menu-btn__icon { width: 1.1rem; height: 0.8rem; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
	.xp-menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid currentColor; transform: translateY(-50%); }
	.xp-nav {
		position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 0 0;
		background: #fff; overflow-y: auto; padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
		transform: translateY(-0.5rem); opacity: 0; visibility: hidden;
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
	}
	.xp-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 0.18s ease, transform 0.18s ease; }
	.xp-nav ul { flex-direction: column; gap: 0; }
	.xp-nav a { padding: 0.95rem 0.25rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.xp-nav .current-menu-item > a, .xp-nav .current_page_item > a { box-shadow: inset 3px 0 0 var(--brand); padding-left: 0.8rem; }
	.xp-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
	body.xp-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .xp-nav, .xp-nav.is-open { transition: none; } }

/* ---------- Hero: the acronym decoder ---------- */
.xp-hero { background: var(--brand-deep); color: var(--on-deep); padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); overflow: hidden; }
.xp-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.xp-acronym {
	display: block; margin: 0 0 1.4rem;
	font-size: clamp(3.6rem, 1.2rem + 11vw, 9.5rem);
	line-height: 0.88; font-weight: 820; letter-spacing: 0.01em;
	font-variation-settings: "FLAR" 100;
	color: var(--on-deep); white-space: nowrap;
}
.xp-acronym__l { display: inline-block; }
.xp-acronym__rest { display: inline-block; color: var(--mark); }
.xp-title { display: block; font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem); line-height: 1.45; font-weight: 420; max-width: 46ch; margin: 0 0 1.2rem; color: rgba(255, 255, 255, 0.86); }
.xp-title b { font-weight: 760; color: var(--mark); box-shadow: inset 0 -0.14em 0 currentColor; }
.xp-hero__lead { max-width: 52ch; margin: 0 0 1.8rem; color: rgba(255, 255, 255, 0.78); }
.xp-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.xp-hero .xp-btn--line { color: var(--on-deep); }

/* One orchestrated load: acronym letters light up with their source letters in the title. */
.js .xp-hero[data-decode] .xp-acronym__l, .js .xp-hero[data-decode] .xp-acronym__rest { opacity: 0.18; transition: opacity 0.35s ease; }
.js .xp-hero[data-decode] .xp-title b { color: inherit; box-shadow: inset 0 -0.14em 0 transparent; transition: color 0.35s ease, box-shadow 0.35s ease; }
.js .xp-hero[data-decode] .is-on { opacity: 1 !important; }
.js .xp-hero[data-decode] .xp-title b.is-on { color: var(--mark); box-shadow: inset 0 -0.14em 0 currentColor; }
@media (prefers-reduced-motion: reduce) {
	.js .xp-hero[data-decode] .xp-acronym__l, .js .xp-hero[data-decode] .xp-acronym__rest { opacity: 1; transition: none; }
	.js .xp-hero[data-decode] .xp-title b { color: var(--mark); box-shadow: inset 0 -0.14em 0 currentColor; transition: none; }
}

.xp-facts { margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.xp-facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.xp-facts dt { color: rgba(255, 255, 255, 0.66); font-size: 0.92rem; }
.xp-facts dd { margin: 0; font-weight: 600; }
.xp-facts a { color: var(--on-deep); }
.xp-facts--light { border-top-color: var(--line); }
.xp-facts--light > div { border-bottom-color: var(--line); }
.xp-facts--light dt { color: var(--muted); }
.xp-facts--light a { color: var(--brand); }

@media (max-width: 860px) {
	.xp-hero__grid { grid-template-columns: 1fr; }
	.xp-facts > div { grid-template-columns: 8rem 1fr; }
}

/* ---------- Page header (inner pages) ---------- */
.xp-pagehead { background: var(--tint); border-bottom: 1px solid var(--line); padding: clamp(2rem, 1.5rem + 3vw, 3.75rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.xp-pagehead__kicker { display: block; color: var(--brand); font-weight: 700; margin-bottom: 0.4rem; text-decoration: none; }
.xp-pagehead h1 { margin: 0; }
.xp-pagehead p { margin: 0.8rem 0 0; max-width: 60ch; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* ---------- Sections ---------- */
.xp-main { display: block; }
.xp-section { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.xp-section + .xp-section { border-top: 1px solid var(--line); }
.xp-section--tint { background: var(--tint); }
.xp-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.6rem; }
.xp-section__head h2 { margin: 0; }
.xp-section__more { font-weight: 650; text-decoration: none; }
.xp-lede { font-size: var(--step-1); line-height: 1.55; max-width: 62ch; }
.xp-section p { max-width: 72ch; }
.xp-content { padding: clamp(2rem, 1.5rem + 3vw, 3.75rem) 0 clamp(3rem, 2rem + 3vw, 5rem); }
.xp-content > .xp-wrap > * + h2 { margin-top: 2.4rem; }

/* ---------- Objectives list (project identifiers such as RIO1, MPO2) ---------- */
.xp-objs { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 1rem + 3vw, 3.5rem); }
.xp-objs > li { margin: 0; padding: 1.2rem 0 1.3rem; border-top: 2px solid var(--brand); }
.xp-objs__id { display: block; font-weight: 800; color: var(--brand); font-variation-settings: "FLAR" 100; margin-bottom: 0.25rem; }
.xp-objs h3 { margin-bottom: 0.4rem; }
.xp-objs p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .xp-objs { grid-template-columns: 1fr; } }

/* ---------- Work plan timeline ---------- */
.xp-gantt { --months: 48; margin: 0 0 2rem; }
.xp-gantt__now { margin: 0 0 1rem; color: var(--muted); }
.xp-gantt__now strong { color: var(--text); }
.xp-gantt__scale, .xp-gantt__row { display: grid; grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr); gap: 1rem; align-items: center; }
.xp-gantt__scale { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.35rem; }
.xp-gantt__ticks, .xp-gantt__track { position: relative; height: 1.9rem; }
.xp-gantt__ticks span { position: absolute; top: 0; transform: translateX(-1px); padding-left: 0.3rem; border-left: 1px solid var(--line); height: 100%; white-space: nowrap; }
.xp-gantt__row { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.xp-gantt__label { font-size: 0.95rem; line-height: 1.3; }
.xp-gantt__label b { color: var(--brand); margin-right: 0.35rem; font-variation-settings: "FLAR" 100; }
.xp-gantt__label small { display: block; color: var(--muted); }
.xp-gantt__track { background: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--months) * 12 - 1px), var(--line) calc(100% / var(--months) * 12 - 1px), var(--line) calc(100% / var(--months) * 12)); }
.xp-gantt__bar {
	position: absolute; top: 0.3rem; bottom: 0.3rem;
	left: calc((var(--s) - 1) / var(--months) * 100%);
	width: calc((var(--e) - var(--s) + 1) / var(--months) * 100%);
	background: var(--brand); border-radius: 3px; color: #fff;
	font-size: 0.75rem; font-weight: 650; line-height: 1.3rem; padding: 0 0.4rem; overflow: hidden; white-space: nowrap;
}
.xp-gantt__row:nth-child(even) .xp-gantt__bar { background: var(--brand-2); color: var(--brand-deep); }
.xp-gantt__today { position: absolute; top: -0.2rem; bottom: -0.2rem; width: 2px; background: var(--text); left: calc((var(--m) - 0.5) / var(--months) * 100%); }
@media (max-width: 720px) {
	.xp-gantt__scale, .xp-gantt__row { grid-template-columns: 1fr; gap: 0.35rem; }
	.xp-gantt__scale > :first-child { display: none; }
}

/* ---------- Work package detail ---------- */
.xp-wps { list-style: none; padding: 0; margin: 0; }
.xp-wps > li { margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.5rem 2.5rem; }
.xp-wps h3 { margin-bottom: 0.4rem; }
.xp-wps h3 b { color: var(--brand); margin-right: 0.4rem; font-variation-settings: "FLAR" 100; }
.xp-wps__meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.xp-wps ul { margin: 0; }
@media (max-width: 760px) { .xp-wps > li { grid-template-columns: 1fr; } }

/* ---------- Partners ---------- */
.xp-partners { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.xp-partners > li { margin: 0; padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.9rem; align-items: start; }
.xp-partners__mark { width: 4.5rem; height: 3rem; display: flex; align-items: center; justify-content: center; }
.xp-partners__mark img { max-height: 3rem; width: auto; object-fit: contain; }
.xp-partners__code { width: 4.5rem; height: 3rem; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--brand); border-radius: var(--radius); color: var(--brand); font-weight: 800; font-variation-settings: "FLAR" 100; letter-spacing: 0.03em; }
.xp-partners__name { font-weight: 650; line-height: 1.3; display: block; }
.xp-partners__name a { color: var(--text); text-decoration: none; }
.xp-partners__name a:hover { color: var(--brand); text-decoration: underline; }
.xp-partners__meta { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 0.2rem; }
.xp-partners__role { display: inline-block; margin-top: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--brand); }
@media (max-width: 960px) { .xp-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .xp-partners { grid-template-columns: 1fr; } }

/* ---------- Tables (deliverables, budgets) ---------- */
.xp-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; margin: 0 0 1.5rem; }
.xp-table th { text-align: left; font-weight: 700; font-size: 0.86rem; color: var(--muted); border-bottom: 2px solid var(--text); padding: 0.55rem 0.75rem 0.55rem 0; }
.xp-table td { border-bottom: 1px solid var(--line); padding: 0.7rem 0.75rem 0.7rem 0; vertical-align: top; }
.xp-table td:first-child { font-weight: 750; color: var(--brand); white-space: nowrap; font-variation-settings: "FLAR" 100; }
.xp-table .xp-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp-table tfoot td { font-weight: 750; border-bottom: 0; border-top: 2px solid var(--text); color: var(--text); }
.xp-status { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--tint); color: var(--muted); white-space: nowrap; }
.xp-status--ok { background: var(--brand); color: #fff; }
@media (max-width: 720px) {
	.xp-table--stack thead { display: none; }
	.xp-table--stack tr { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
	.xp-table--stack td { border: 0; padding: 0; }
	.xp-table--stack td:first-child { grid-row: span 3; }
	.xp-table--stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 0.85rem; }
	.xp-table--stack tfoot tr { border-bottom: 0; }
}
.xp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Publications ---------- */
.xp-pubs { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: pub; }
.xp-pubs > li { margin: 0; padding: 0.95rem 0 1rem 2.6rem; border-top: 1px solid var(--line); position: relative; counter-increment: pub; }
.xp-pubs > li::before { content: counter(pub); position: absolute; left: 0; top: 0.95rem; font-weight: 800; color: var(--brand); font-variation-settings: "FLAR" 100; }
.xp-pubs__title { font-weight: 650; }
.xp-pubs__venue { font-style: italic; }
.xp-pubs__links { display: block; margin-top: 0.3rem; font-size: 0.92rem; }
.xp-pubs__links a { margin-right: 1rem; }
.xp-zenodo__status { color: var(--muted); }
.xp-zenodo[aria-busy="true"] .xp-zenodo__status::after { content: "…"; }
.xp-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; }
.xp-links li { margin: 0; }
.xp-links a { font-weight: 650; }

/* ---------- News ---------- */
.xp-news { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.xp-news > li { margin: 0; }
.xp-news__img { display: block; aspect-ratio: 16 / 10; background: var(--tint); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.8rem; }
.xp-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-news time { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.2rem; }
.xp-news h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.xp-news h3 a { color: var(--text); text-decoration: none; }
.xp-news h3 a:hover { color: var(--brand); text-decoration: underline; }
.xp-news p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.xp-news--list { grid-template-columns: 1fr; gap: 0; }
.xp-news--list > li { display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.xp-news--list .xp-news__img { margin: 0; }
@media (max-width: 860px) { .xp-news { grid-template-columns: 1fr; } .xp-news--list > li { grid-template-columns: 1fr; } }
.xp-empty { color: var(--muted); padding: 1.2rem 0; border-top: 1px solid var(--line); }
.xp-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-weight: 650; }
.xp-single__meta { color: var(--muted); margin: 0.6rem 0 0; }
.xp-single__img { margin: 0 0 2rem; }
.xp-single__img img { border-radius: var(--radius); }

/* ---------- Media list (press, TV) ---------- */
.xp-media { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.xp-media > li { margin: 0; padding: 0.9rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; }
.xp-media time { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 600px) { .xp-media > li { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ---------- Contact ---------- */
.xp-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.xp-contact address { font-style: normal; }
@media (max-width: 760px) { .xp-contact { grid-template-columns: 1fr; } }

/* ---------- WordPress content ---------- */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border-bottom: 1px solid var(--line); padding: 0.6rem 0.75rem 0.6rem 0; text-align: left; vertical-align: top; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: 0.9rem; color: var(--muted); }
.xp-content iframe { max-width: 100%; }

/* ---------- Footer & funding ---------- */
.xp-footer { background: var(--brand-deep); color: var(--on-deep); padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 calc(1.5rem + env(safe-area-inset-bottom)); font-size: 0.97rem; }
.xp-footer a { color: var(--on-deep); }
.xp-funding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem 1.5rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.xp-funding__flag { width: 5.4rem; height: auto; display: block; }
.xp-funding__lead { font-weight: 700; font-size: 1.08rem; margin: 0 0 0.35rem; }
.xp-funding p { margin: 0 0 0.5rem; max-width: 80ch; }
.xp-funding__disc { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }
.xp-funding__banner { grid-column: 1 / -1; background: #fff; border-radius: var(--radius); padding: 0.6rem; max-width: 46rem; }
.xp-funding__banner img { display: block; width: 100%; height: auto; }
.xp-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding: 2rem 0; }
.xp-footer h2 { font-size: 1rem; color: var(--on-deep); margin: 0 0 0.6rem; font-variation-settings: "FLAR" 100; }
.xp-footer ul { list-style: none; padding: 0; margin: 0; }
.xp-footer li + li { margin-top: 0.35rem; }
.xp-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; }
@media (max-width: 760px) { .xp-footer__cols { grid-template-columns: 1fr; } .xp-funding { grid-template-columns: 1fr; } }

/* ---------- Consent banner (only rendered when a GA4 ID is configured) ---------- */
.xp-consent { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 90; max-width: 40rem; margin-inline: auto; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }
.xp-consent p { margin: 0 0 0.8rem; font-size: 0.95rem; }
.xp-consent__actions { display: flex; gap: 0.6rem; justify-content: flex-end; }
.xp-consent .xp-btn--line { color: var(--text); }

/* ---------- 404 ---------- */
.xp-404 { padding: 5rem 0; }

@media print {
	.xp-header, .xp-footer__cols, .xp-consent, .xp-hero__actions { display: none !important; }
	.xp-hero, .xp-footer { background: #fff !important; color: #000 !important; }
}

/* ---------- Coordinator welcome ---------- */
.xp-welcome { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: start; padding: 2rem 0 2.2rem; border-top: 2px solid var(--brand); border-bottom: 1px solid var(--line); margin: 0 0 2.5rem; max-width: none !important; }
.xp-welcome__photo { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; display: block; background: var(--tint); }
.xp-welcome__who { margin: 0 0 1rem; line-height: 1.4; }
.xp-welcome__who strong { display: block; font-size: var(--step-1); font-variation-settings: "FLAR" 70; }
.xp-welcome__who span { display: block; color: var(--muted); }
.xp-welcome__role { display: inline-block; margin-top: 0.4rem; font-weight: 700; color: var(--brand); }
.xp-welcome__note p { max-width: 66ch; }
.xp-welcome__sign { font-weight: 650; margin-top: 0.4rem; }
@media (max-width: 640px) { .xp-welcome { grid-template-columns: 1fr; } .xp-welcome__photo { width: 8rem; height: 8rem; } }

/* ---------- Group credit ---------- */
.xp-credit a { font-weight: 650; }
