/*
Theme Name: Comité Paris-Chicago
Theme URI: https://comiteparischicago.org
Author: AppyCodes
Description: Custom, hand-coded bilingual (FR/EN) theme for the Comité Paris-Chicago non-profit. Clean, image-forward, generous-whitespace aesthetic referencing StartOrg. Phase 1 front-end: static templates with representative content; ACF/CPT wiring follows in Phase 2.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cpc
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* v3 palette — French-flag navy + Chicago-flag sky blue (no red).
	   #000091 navy = header logo/primary buttons/key accent;
	   #41B6E6 sky  = hover, dividers, highlights;
	   #002395 deep navy = footer. */
	--cpc-blue-900: #002395; /* footer / darkest */
	--cpc-blue-800: #000091; /* navy — heroes, dark sections, key accent */
	--cpc-blue-700: #000074; /* navy hover (darker) */
	--cpc-blue-600: #000091; /* primary buttons / links */
	--cpc-blue-500: #41B6E6; /* sky — focus rings, bright accents */
	--cpc-blue-100: #d4ecfa; /* light sky tint */
	--cpc-blue-050: #eef8fe; /* lightest sky tint */

	/* Footer two-tone (lighter subscription band / darker footer band) */
	--cpc-footer-top:    #143fb0; /* subscription block — lighter blue */
	--cpc-footer-bottom: #001345; /* footer block — darker blue */

	/* Sky-blue accent (formerly red) — hover / highlight / divider */
	--cpc-sky:      #41B6E6;
	--cpc-sky-600:  #1f9fd6; /* darker sky for text contrast on white */

	/* Accent vars remapped to navy/sky so existing components inherit the palette */
	--cpc-red-600: #000091;
	--cpc-red-500: #41B6E6;
	--cpc-red-050: #eef8fe;

	/* Neutral ink + greys */
	--ink-900: #14181f;
	--ink-700: #2b3340;
	--ink-600: #444e5e;
	--ink-500: #6b7382;
	--ink-400: #9aa1ad;
	--line: #e4e8ef;
	--line-strong: #d3d9e3;
	--surface: #f6f8fc;
	--surface-2: #eef2f8;
	--white: #ffffff;

	/* Typography */
	--font-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
	--font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

	/* Spacing scale (4px base) */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;

	/* Radii + shadows */
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(16, 32, 64, .06), 0 2px 8px rgba(16, 32, 64, .05);
	--shadow-md: 0 6px 20px rgba(16, 32, 64, .10);
	--shadow-lg: 0 18px 50px rgba(16, 32, 64, .16);

	--container: 1180px;
	--container-narrow: 760px;
	--header-h: 76px;

	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: var(--font-body);
	color: var(--ink-700);
	background: var(--white);
	line-height: 1.65;
	font-size: 1.0625rem;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--cpc-blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--cpc-blue-800); }

h1, h2, h3, h4, h5 {
	font-family: var(--font-head);
	color: var(--ink-900);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

:focus-visible { outline: 3px solid var(--cpc-blue-500); outline-offset: 2px; border-radius: 4px; }

.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--cpc-blue-800); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   3. Layout primitives  (standardized across every page)
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.25rem); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.section--tight { padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.section--surface { background: var(--surface); }
.section--blue { background: var(--cpc-blue-800); color: #e9eefb; }
.section--blue h2, .section--blue h3 { color: #fff; }

/* Standardized section header */
.section-head { max-width: 720px; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
	display: block;
	font-family: var(--font-head); font-weight: 700; font-size: 2.5rem;
	letter-spacing: .08em; text-transform: uppercase; color: var(--cpc-blue-800);
	margin-bottom: 1.1rem; padding-bottom: .6rem;
	/* Chicago-flag blue rule under the subheading (replaces the old leading line) */
	border-bottom: 3px solid var(--cpc-sky);
}
.section-head--center .eyebrow { width: -moz-fit-content; width: fit-content; margin-inline: auto; }
.section-head p { color: var(--ink-600); font-size: 1.075rem; margin-bottom: 0; }
.section-head h2 + p { margin-top: .75rem; }

/* Standardized responsive grids */
.grid { display: grid; gap: clamp(1.25rem, .75rem + 1.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   4. Buttons (standardized)
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .55rem;
	font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1;
	padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Primary: navy bg / white text, sky-blue on hover (per v3 brief). */
.btn--primary { background: var(--cpc-blue-800); color: #fff; box-shadow: 0 6px 16px rgba(0,0,145,.24); }
.btn--primary:hover { background: var(--cpc-sky); color: var(--cpc-blue-800); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(65,182,230,.4); }

.btn--accent { background: var(--cpc-blue-800); color: #fff; box-shadow: 0 6px 16px rgba(0,0,145,.24); }
.btn--accent:hover { background: var(--cpc-sky); color: var(--cpc-blue-800); transform: translateY(-2px); }

/* Secondary / outline: white bg, navy border + text, sky-blue on hover. */
.btn--ghost { background: #fff; color: var(--cpc-blue-800); border-color: var(--cpc-blue-800); }
.btn--ghost:hover { border-color: var(--cpc-sky); color: var(--cpc-sky); background: var(--cpc-blue-050); }

.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; color: var(--cpc-blue-800); border-color: #fff; }

/* Sky-blue pill (hero CTA, per Canva) */
.btn--sky { background: var(--cpc-sky); color: #fff; box-shadow: 0 8px 22px rgba(65,182,230,.45); }
.btn--sky:hover { background: #fff; color: var(--cpc-blue-800); transform: translateY(-2px); }

.btn--sm { padding: .6rem 1.1rem; font-size: .875rem; }

/* Inline text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; }
.link-arrow .arrow { transition: transform .2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   5. Media placeholders (Phase 1 — branded gradient tiles in lieu of photos)
   ========================================================================== */
.media {
	position: relative; overflow: hidden; background: var(--surface-2);
	display: grid; place-items: center; isolation: isolate;
}
.media::after { /* subtle skyline motif */
	content: ""; position: absolute; inset: 0; opacity: .5; z-index: -1;
	background-image:
		radial-gradient(circle at 18% 120%, rgba(255,255,255,.18), transparent 45%),
		radial-gradient(circle at 82% 130%, rgba(255,255,255,.14), transparent 45%);
}
.media__label {
	color: rgba(255,255,255,.95); font-family: var(--font-head); font-weight: 600;
	font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
	text-align: center; padding: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.media__tag {
	position: absolute; top: .9rem; left: .9rem; z-index: 2;
	background: rgba(255,255,255,.92); color: var(--cpc-blue-800);
	font-family: var(--font-head); font-weight: 600; font-size: .72rem;
	letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px;
}
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media.has-img .media__label { display: none; }
.media.is-4x3 { aspect-ratio: 4 / 3; }
.media.is-16x9 { aspect-ratio: 16 / 9; }
.media.is-1x1 { aspect-ratio: 1 / 1; }
.media.is-3x2 { aspect-ratio: 3 / 2; }

/* Gradient variants per category / context */
.g-blue   { background: linear-gradient(135deg, #1f57b6, #16386e); }
.g-red    { background: linear-gradient(135deg, #41B6E6, #1f7fb0); }
.g-teal   { background: linear-gradient(135deg, #1a9ca6, #0f5d76); }
.g-violet { background: linear-gradient(135deg, #6d54c8, #3a2a8c); }
.g-amber  { background: linear-gradient(135deg, #e9943a, #b5611a); }
.g-slate  { background: linear-gradient(135deg, #3f5a86, #233452); }

/* ==========================================================================
   6. Site header / navigation
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100; background: #fff;
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header__bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1.5rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-head); }
.brand__mark {
	width: 42px; height: 42px; border-radius: 11px; flex: none;
	background: linear-gradient(135deg, var(--cpc-blue-600), var(--cpc-blue-800));
	color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem;
	box-shadow: var(--shadow-sm);
}
.brand__name { font-weight: 700; font-size: 1.05rem; color: var(--ink-900); line-height: 1.1; }
.brand__name span { display: block; font-size: .72rem; font-weight: 500; color: var(--cpc-red-600); letter-spacing: .06em; text-transform: uppercase; }
/* New logo: circular emblem (Eiffel + Willis) SVG + wordmark, per Canva.
   Emblem ships in black & white SVGs; wordmark colour set per context. */
.brand__emblem { display: block; width: auto; height: clamp(40px, 5.2vw, 52px); flex: none; }
.brand__word { font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, .85rem + .55vw, 1.25rem); color: var(--ink-900); line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; }
.site-header--blue .brand__word { color: #fff; }
.brand--footer .brand__emblem { height: 56px; }
.brand--footer .brand__word { color: #fff; }

.nav-wrap { display: flex; align-items: center; gap: 1.75rem; }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav a {
	display: inline-flex; align-items: center; gap: .3rem;
	font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-900);
	padding: .6rem .85rem; border-radius: 8px;
}
.primary-nav a:hover { color: var(--cpc-sky); background: var(--cpc-blue-050); } /* sky-blue on hover */
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-parent > a { color: var(--cpc-blue-800); } /* navy for active */

/* dropdown */
.primary-nav .menu-item-has-children > a::after,
.primary-nav .page_item_has_children > a::after {
	content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); opacity: .7;
}
.primary-nav .sub-menu, .primary-nav .children {
	list-style: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg); padding: .5rem; margin: 0; flex-direction: column; gap: 0;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--ease); z-index: 50;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li:hover > .children,
.primary-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a, .primary-nav .children a { width: 100%; padding: .6rem .75rem; font-size: .92rem; font-weight: 500; }

/* language switcher */
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang-switch a {
	font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .03em;
	padding: .4rem .7rem; color: var(--ink-500);
}
.lang-switch a.is-active { background: var(--cpc-blue-600); color: #fff; }
.lang-switch a:not(.is-active):hover { background: var(--cpc-blue-050); color: var(--cpc-blue-700); }

/* mobile toggle */
.nav-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px;
	background: #fff; cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	content: ""; display: block; width: 20px; height: 2px; background: var(--ink-800, #2b3340); border-radius: 2px; transition: .25s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Header colour-test variant (page-logo-test.php) — solid Paris-Chicago blue
   bar with the white logo. Nav/lang text invert to light on desktop; on mobile
   they live in the white overlay, so they keep their default dark colour. */
.site-header--blue { background: rgb(43, 108, 163); border-bottom-color: rgba(255,255,255,.18); }
.site-header--blue.is-stuck { box-shadow: 0 6px 20px rgba(8,20,42,.28); }
.site-header--blue .nav-toggle { background: transparent; border-color: rgba(255,255,255,.5); }
.site-header--blue .nav-toggle span,
.site-header--blue .nav-toggle span::before,
.site-header--blue .nav-toggle span::after { background: #fff; }
@media (min-width: 861px) {
	.site-header--blue .primary-nav a { color: #fff; }
	.site-header--blue .primary-nav a:hover { color: #fff; background: rgba(255,255,255,.16); }
	.site-header--blue .primary-nav .current-menu-item > a,
	.site-header--blue .primary-nav .current_page_item > a,
	.site-header--blue .primary-nav .current-menu-parent > a { color: #fff; }
	.site-header--blue .lang-switch { border-color: rgba(255,255,255,.45); }
	.site-header--blue .lang-switch a { color: rgba(255,255,255,.85); }
	.site-header--blue .lang-switch a.is-active { background: #fff; color: rgb(43,108,163); }
	.site-header--blue .lang-switch a:not(.is-active):hover { background: rgba(255,255,255,.18); color: #fff; }
}

/* ==========================================================================
   7. Standardized page hero (every inner page uses this band)
   ========================================================================== */
.page-hero {
	position: relative; color: #fff; overflow: hidden;
	background: linear-gradient(120deg, var(--cpc-blue-800), var(--cpc-blue-600));
	padding-block: clamp(2.75rem, 2rem + 4vw, 5rem);
}
.page-hero::before {
	content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light;
	background:
		radial-gradient(circle at 85% -10%, rgba(255,255,255,.5), transparent 40%),
		radial-gradient(circle at 10% 120%, rgba(65,182,230,.55), transparent 45%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lede { color: rgba(255,255,255,.86); font-size: 1.15rem; max-width: 60ch; margin-top: .9rem; }

/* breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; margin-bottom: 1.1rem; color: rgba(255,255,255,.8); }
.breadcrumbs a { color: rgba(255,255,255,.92); font-weight: 500; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs .sep { opacity: .6; }
.breadcrumbs .current { color: #fff; font-weight: 600; }

/* ==========================================================================
   8. Home — split-screen dual-video hero (Paris left, Chicago right)
   ========================================================================== */
.hero {
	position: relative; color: #fff; overflow: hidden; isolation: isolate;
	min-height: clamp(540px, 86vh, 860px); display: grid; place-items: center;
	background: var(--cpc-blue-900); /* fallback while videos load */
}
.hero__videos { position: absolute; inset: 0; z-index: -2; display: flex; }
.hero__video { flex: 1 1 50%; position: relative; overflow: hidden; }
.hero__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px); z-index: -1; background: rgba(255,255,255,.22); }
.hero__scrim {
	position: absolute; inset: 0; z-index: -1;
	/* background: linear-gradient(180deg, rgba(6,10,28,.5) 0%, rgba(6,10,28,.34) 38%, rgba(6,10,28,.6) 100%); */
}
.hero__inner { text-align: center; max-width: 900px; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.hero__title {
	font-family: var(--font-serif); font-weight: 700; color: #fff; letter-spacing: -.005em;
	font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.12;
	text-shadow: 0 2px 28px rgba(0,0,0,.42);
}
.hero__years {
	font-family: var(--font-serif); font-weight: 700; color: #fff;
	font-size: clamp(1.3rem, 1rem + 1.5vw, 2.1rem); margin: 1.4rem 0 2.1rem;
	text-shadow: 0 2px 18px rgba(0,0,0,.42);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: .85rem; }
/* White outline CTA — see-through so it doesn't block the video behind it. */
.hero__cta .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.9); box-shadow: 0 4px 16px rgba(0,0,0,.28); }
.hero__cta .btn:hover { background: #fff; color: var(--cpc-blue-800); border-color: #fff; }
@media (max-width: 768px) {
	.hero__videos { flex-direction: column; } /* stack Paris / Chicago vertically */
	.hero__seam { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; transform: translateY(-1px); }
}

/* ==========================================================================
   9. Cards (standardized): generic, event, activity, member
   ========================================================================== */
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__media { aspect-ratio: 3 / 2; }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cpc-red-600); margin-bottom: .5rem; }
.card__title { font-size: 1.18rem; margin-bottom: .5rem; line-height: 1.25; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--cpc-blue-700); }
.card__excerpt { color: var(--ink-600); font-size: .96rem; margin-bottom: 1rem; }
.card__foot { margin-top: auto; }

/* News card grid on home reuses .card */

/* Activity blocks (Activités landing): a big, bold category heading above each
   article-preview card. */
.activity-block { display: flex; flex-direction: column; gap: 1.1rem; }
.activity-block__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.1; }
.activity-block__title a { color: inherit; }
.activity-block__title a:hover { color: var(--cpc-blue-700); }

/* Activity cards (image-forward, whole card links) */
.activity-card {
	position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
	min-height: 280px; color: #fff; box-shadow: var(--shadow-sm);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: #fff; }
.activity-card .media { position: absolute; inset: 0; }
.activity-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,42,.82) 8%, rgba(8,20,42,.15) 55%, rgba(8,20,42,.05)); z-index: 1; }
.activity-card__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; min-height: 280px; }
.activity-card__kicker { font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: .35rem; }
.activity-card h3 { color: #fff; font-size: 1.4rem; }
.activity-card__go { display: inline-flex; align-items: center; gap: .45rem; margin-top: .7rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; opacity: .95; }
.activity-card .arrow { transition: transform .25s var(--ease); }
.activity-card:hover .arrow { transform: translateX(4px); }

/* Member cards */
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); display: flex; flex-direction: column; }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member-card__photo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1.1rem; box-shadow: 0 6px 18px rgba(16,32,64,.18); border: 4px solid #fff; }
.member-card__photo .media { width: 100%; height: 100%; border-radius: 50%; }
.member-card__photo .media__label { font-size: 1.6rem; letter-spacing: 0; }
.member-card h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.member-card__role { font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cpc-red-600); margin-bottom: .85rem; }
.member-card__bio { font-size: .92rem; color: var(--ink-600); text-align: left; }
.member-card__bio p { margin: 0 0 .6em; }
.member-card__bio p:last-child { margin-bottom: 0; }
/* Collapsed preview — fades out; "Read more" removes the clamp to show the full bio. */
.member-card__bio.is-clamped { max-height: 7.6em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.readmore { background: none; border: none; cursor: pointer; color: var(--cpc-blue-600); font-family: var(--font-head); font-weight: 600; font-size: .86rem; padding: .5rem 0 0; align-self: flex-start; }
.readmore:hover { color: var(--cpc-blue-800); }

/* ==========================================================================
   10. Mission teaser (home) + split sections
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.75rem, 1rem + 3vw, 4rem); align-items: center; }
.split__media .media { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 1.75rem; }
.stat { }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--cpc-blue-700); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--ink-500); margin-top: .3rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.chip { background: var(--cpc-blue-050); color: var(--cpc-blue-700); border: 1px solid var(--cpc-blue-100); border-radius: 999px; padding: .4rem .85rem; font-size: .82rem; font-weight: 500; font-family: var(--font-head); }

/* ==========================================================================
   11. Event listing (activity sub-pages) — standardized entry
   ========================================================================== */
.event-list { display: flex; flex-direction: column; gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.event {
	display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.25rem, .5rem + 2vw, 2.5rem);
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: clamp(1.1rem, .5rem + 1.5vw, 1.75rem); box-shadow: var(--shadow-sm);
	scroll-margin-top: calc(var(--header-h) + 1rem);
}
.event__media { }
.event__media .media { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.event__content { min-width: 0; }
.event__date { display: inline-flex; align-items: baseline; gap: .4rem; font-family: var(--font-head); font-weight: 600; color: var(--cpc-red-600); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .55rem; }
.event h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin-bottom: .65rem; }
.event__body { color: var(--ink-600); }
.event__body p:last-child { margin-bottom: 0; }

/* Scrollable event gallery. Photos retain their original proportions so
   portrait and landscape images are never cropped into square thumbnails. */
.gallery { width: 100%; max-width: 100%; min-width: 0; margin-top: 1.35rem; overflow: hidden; }
.gallery__viewport {
	display: flex; align-items: flex-start; width: 100%; max-width: 100%; min-width: 0; gap: .85rem;
	overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
	scrollbar-width: thin; scroll-behavior: smooth; padding: 0 0 .65rem;
}
.gallery__viewport:focus-visible { outline: 3px solid var(--cpc-sky); outline-offset: 4px; border-radius: var(--radius-sm); }
.gallery__slide {
	display: flex; flex: 0 0 auto; flex-direction: column; width: max-content; min-width: 0; margin: 0; overflow: hidden;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-snap-align: start;
}
.gallery__zoom {
	display: flex; align-items: center; justify-content: center; width: max-content; height: 340px; min-width: 240px;
	padding: 0; border: 0; background: #eef2f7; cursor: zoom-in;
}
.gallery__zoom:focus-visible { outline: 3px solid var(--cpc-sky); outline-offset: -3px; }
.gallery__image {
	display: block; width: auto; max-width: none; height: 100%; max-height: none;
	object-fit: contain; object-position: center center; margin: auto;
}
.gallery__caption {
	box-sizing: border-box; width: 0; min-width: 100%; padding: .7rem .85rem .8rem;
	color: var(--ink-600); font-size: .84rem; line-height: 1.45; background: #fff;
}
.gallery__controls { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; margin-top: .6rem; }
.gallery__status { min-width: 4rem; margin: 0; color: var(--ink-500); font-family: var(--font-head); font-size: .82rem; font-weight: 600; text-align: center; }
.gallery__nav {
	display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
	border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--cpc-blue-700); cursor: pointer;
}
.gallery__nav:hover { border-color: var(--cpc-blue-600); background: var(--cpc-blue-050); }
.gallery__nav:disabled { opacity: .4; cursor: default; }
.gallery__nav--prev svg { transform: scaleX(-1); }

@media (max-width: 640px) {
	.gallery__zoom { height: 185px; min-width: 160px; }
}

/* event links / attachments */
.event__links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.tag-link {
	display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
	padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--cpc-blue-700); background: #fff;
}
.tag-link:hover { border-color: var(--cpc-blue-600); background: var(--cpc-blue-050); }
.tag-link.is-pdf { color: var(--cpc-red-600); border-color: var(--cpc-red-050); background: var(--cpc-red-050); }
.tag-link svg { flex: none; }

/* Single event page */
.single-evenement .page-hero h1 { max-width: 30ch; }
.event-single__media .media { border-radius: var(--radius-lg); margin-bottom: 1.75rem; box-shadow: var(--shadow-md); }
.event-single .event__date { margin-bottom: 1.1rem; }
.event-single__back { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ==========================================================================
   12. Mission article (readable single column)
   ========================================================================== */
.article { font-size: 1.075rem; color: var(--ink-700); }
.article h2 { margin: 2.25rem 0 .9rem; }
.article h3 { margin: 1.75rem 0 .6rem; }
.article > p:first-of-type { font-size: 1.2rem; color: var(--ink-600); }
.article ul { padding-left: 1.2em; }
.article strong { color: var(--ink-900); }
.pull-quote {
	border-left: 4px solid var(--cpc-red-500); margin: 2rem 0; padding: .4rem 0 .4rem 1.5rem;
	font-family: var(--font-head); font-weight: 600; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
	color: var(--cpc-blue-800); line-height: 1.3;
}
.footer-banner .media { aspect-ratio: 21 / 7; border-radius: var(--radius-lg); }

/* ==========================================================================
   13. Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); align-items: start; }
.contact-detail { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--cpc-blue-050); color: var(--cpc-blue-700); display: grid; place-items: center; }
.contact-detail h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: .15rem; font-family: var(--font-head); }
.contact-detail a { font-weight: 600; font-size: 1.05rem; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink-700); }
.field input, .field textarea {
	width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink-800);
	padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cpc-blue-500); box-shadow: 0 0 0 3px var(--cpc-blue-100); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .82rem; color: var(--ink-500); margin-top: .35rem; }
.honeypot { position: absolute; left: -9999px; }

/* Contact Form 7 — themed to match the design system */
.form-card .wpcf7-form p { margin: 0 0 1.1rem; }
.form-card .wpcf7-form label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-700); }
.form-card .wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
.form-card .wpcf7-form input[type="text"],
.form-card .wpcf7-form input[type="email"],
.form-card .wpcf7-form textarea {
	width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink-800);
	padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	background: var(--surface); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-card .wpcf7-form input:focus,
.form-card .wpcf7-form textarea:focus { outline: none; border-color: var(--cpc-blue-500); box-shadow: 0 0 0 3px var(--cpc-blue-100); background: #fff; }
.form-card .wpcf7-form textarea { resize: vertical; min-height: 140px; }
.form-card .wpcf7-submit {
	display: inline-flex; align-items: center; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
	padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
	background: var(--cpc-blue-800); color: #fff; transition: all .2s var(--ease);
}
.form-card .wpcf7-submit:hover { background: var(--cpc-sky); color: var(--cpc-blue-800); transform: translateY(-2px); }
.form-card .wpcf7-not-valid-tip { color: #c8203a; font-size: .82rem; font-weight: 600; margin-top: .3rem; }
.form-card .wpcf7-form .wpcf7-response-output {
	margin: 1rem 0 0; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; border-width: 1px; border-style: solid;
}
.form-card .wpcf7-form.sent .wpcf7-response-output { border-color: #1a9c6a; background: #eafaf2; color: #0f6b48; }
.form-card .wpcf7-form.invalid .wpcf7-response-output,
.form-card .wpcf7-form.failed .wpcf7-response-output { border-color: #c8203a; background: var(--cpc-red-050); color: #9a1024; }
.form-card .wpcf7-spinner { margin-left: .6rem; }

/* ==========================================================================
   14. Footer
   ========================================================================== */
/* Two-tone footer (brief, June 5): lighter-blue subscription band above a
   darker-blue footer band. */
.site-footer { background: var(--cpc-footer-bottom); color: #c7d3ec; }
.site-footer a { color: #d7e1f5; }
.site-footer a:hover { color: #fff; }
.footer-subscribe { background: var(--cpc-footer-top); padding-block: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); }
.footer-main { background: var(--cpc-footer-bottom); padding-top: clamp(2.5rem, 1.75rem + 2.5vw, 4rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.75rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 38ch; color: #9fb1d4; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { font-size: .95rem; }
/* Newsletter signup strip (MailPoet in Phase 2) */
.footer-newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer-newsletter__text { max-width: 46ch; }
.footer-newsletter__text h4 { color: #fff; font-size: 1.2rem; margin-bottom: .3rem; }
.footer-newsletter__text p { color: #d3def6; margin: 0; font-size: .95rem; }
.footer-newsletter form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.footer-newsletter .wpcf7-form-control-wrap { flex: 1 1 240px; display: block; } /* CF7 wraps the email field */
.footer-newsletter input[type="email"] {
	width: 100%; min-width: 240px; flex: 1; padding: .8rem 1.1rem; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
	color: #fff; font-family: var(--font-body); font-size: .95rem;
}
.footer-newsletter input::placeholder { color: #9fb1d4; }
.footer-newsletter input[type="email"]:focus { outline: none; border-color: var(--cpc-sky); background: rgba(255,255,255,.14); }
.footer-newsletter button,
.footer-newsletter input[type="submit"] {
	white-space: nowrap; border: none; cursor: pointer; padding: .8rem 1.6rem; border-radius: 999px;
	font-family: var(--font-head); font-weight: 600; font-size: .95rem;
	background: var(--cpc-sky); color: var(--cpc-blue-900); transition: background .2s var(--ease), color .2s var(--ease);
}
.footer-newsletter button:hover,
.footer-newsletter input[type="submit"]:hover { background: #fff; color: var(--cpc-blue-900); }
.footer-newsletter .wpcf7-spinner { margin: 0 0 0 .4rem; }
.footer-newsletter .wpcf7-not-valid-tip { flex-basis: 100%; color: #ffd7dd; font-size: .82rem; }

/* Footer newsletter CF7 layout (account for CF7's auto-paragraph wrapper and
   keep the validation/response message out of the layout flow) */
footer .wpcf7 form > p {
	display: flex;
	gap: 10px;
}

footer .wpcf7-response-output {
	position: absolute;
	transform: translateY(40px);
	padding: 0!important;
	border: none!important;
}
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; font-size: .85rem; color: #8fa2c7; }

/* ==========================================================================
   15. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-6); }
.flow > * + * { margin-top: 1.1rem; }
.is-hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.divider-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,16,32,.92); display: none; place-items: center; padding: 2rem; }
.lightbox.is-open { display: grid; }
.lightbox__panel { width: min(720px, 90vw); aspect-ratio: 4/3; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 1.25rem; right: 1.5rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,.28); }

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	:root { --header-h: 66px; }
	.nav-toggle { display: grid; }
	.nav-wrap {
		position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
		flex-direction: column; align-items: stretch; gap: 0; padding: 1rem clamp(1.1rem,4vw,2rem) 1.5rem;
		border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		transform: translateY(-130%); transition: transform .3s var(--ease); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.nav-wrap.is-open { transform: translateY(0); }
	.primary-nav { width: 100%; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav > .menu > li, .primary-nav li { border-bottom: 1px solid var(--line); }
	.primary-nav a { padding: .9rem .4rem; font-size: 1rem; }
	.primary-nav .sub-menu, .primary-nav .children {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		border: none; padding: 0 0 .5rem .9rem; min-width: 0; display: none;
	}
	.primary-nav li.is-expanded > .sub-menu, .primary-nav li.is-expanded > .children { display: flex; }
	.primary-nav .menu-item-has-children > a::after, .primary-nav .page_item_has_children > a::after { margin-left: auto; }
	.lang-switch { align-self: flex-start; margin-top: 1rem; }
	.split { grid-template-columns: 1fr; }
	.split__media { order: -1; }
	.contact-grid { grid-template-columns: 1fr; }
	.event { grid-template-columns: 1fr; }
	.event__media .media { aspect-ratio: 16/9; }
}

@media (max-width: 560px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; }
	.brand__name { font-size: .98rem; }
	.hero__cta .btn { width: auto; } /* keep the hero CTA compact on mobile (not full width) */
}

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

/* ==========================================================================
   N. Home events calendar (cpc_event_calendar)
   A month grid (left) + the selected day's events (right). Days with events
   are marked with a category-tinted dot; selecting one lists its events as
   gradient chips that link to each event's single page.
   ========================================================================== */
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.section-head__lede { max-width: 56ch; margin: .6rem auto 0; color: var(--ink-600); }

.cal {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 1.5rem; align-items: start;
	max-width: 980px; margin-inline: auto;
}
.cal__panel {
	background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
}

/* Header: prev / month-title / next */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal__month { font-size: 1.15rem; text-transform: capitalize; text-align: center; flex: 1; }
.cal__nav {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--line-strong); background: var(--white);
	color: var(--cpc-blue-700); cursor: pointer;
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cal__nav:hover { background: var(--cpc-blue-800); color: var(--white); border-color: var(--cpc-blue-800); }
.cal__nav:disabled { opacity: .35; cursor: default; pointer-events: none; }
.cal__prev svg { transform: scaleX(-1); }

/* Month grid */
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
	text-align: center; font-size: .7rem; font-weight: 600; color: var(--ink-500);
	text-transform: uppercase; letter-spacing: .04em; padding-bottom: .35rem;
}
.cal__cell {
	position: relative; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 3px;
	aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 10px;
	background: var(--surface); color: var(--ink-600); font: inherit;
}
.cal__cell.is-blank { background: transparent; }
.cal__cell.has-events {
	cursor: pointer; background: var(--cpc-blue-050);
	color: var(--ink-900); font-weight: 600;
	transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.cal__cell.has-events:hover { background: var(--cpc-blue-100); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.cal__cell.is-today { box-shadow: inset 0 0 0 2px var(--cpc-blue-500); }
.cal__cell.is-selected { background: var(--cpc-blue-800); color: var(--white); }
.cal__cell.is-selected .cal__num { color: var(--white); }
.cal__num { font-size: .95rem; line-height: 1; }
.cal__dot { width: 7px; height: 7px; border-radius: 50%; }
.cal__dot--n {
	width: auto; height: auto; min-width: 16px; padding: 1px 5px; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: .62rem; font-weight: 700; line-height: 1.3; color: var(--white);
}

/* Agenda (selected day's events) */
.cal__agenda-date { font-size: 1rem; color: var(--cpc-blue-800); text-transform: capitalize; margin-bottom: .85rem; }
.cal__events { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.cal__event { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cal__event a { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .85rem; color: var(--white); }
.cal__event a:hover { color: var(--white); opacity: .94; }
.cal__event-title { font-family: var(--font-head); font-weight: 600; font-size: .98rem; line-height: 1.25; }
.cal__event-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.cal__empty { color: var(--ink-500); font-size: .95rem; margin: 0; }

@media (max-width: 760px) {
	.cal { grid-template-columns: 1fr; }
	.cal__num { font-size: .85rem; }
}

/* Home feed: latest-news main column + compact calendar sidebar.
   The calendar drops to its stacked (compact) form so it fits a narrow column. */
.home-feed {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	align-items: start;
}
.home-feed__side .section-head { margin-bottom: 1.1rem; }

/* Compact calendar — single column (grid stacked over agenda), tighter spacing,
   no max-width so it fills whatever column it sits in. */
.cal--compact { grid-template-columns: 1fr; max-width: none; margin: 0; gap: 1rem; }
.cal--compact .cal__panel { padding: 1rem; }
.cal--compact .cal__head { margin-bottom: .75rem; }
.cal--compact .cal__month { font-size: 1.02rem; }
.cal--compact .cal__nav { width: 32px; height: 32px; }
.cal--compact .cal__grid { gap: 3px; }
.cal--compact .cal__num { font-size: .82rem; }
.cal--compact .cal__agenda-date { font-size: .95rem; }
.cal--compact .cal__event a { padding: .6rem .75rem; }
.cal--compact .cal__event-title { font-size: .92rem; }

@media (max-width: 900px) {
	/* News stacks above; the compact calendar sits below, capped so it doesn't
	   stretch the full width on tablets. */
	.home-feed { grid-template-columns: 1fr; }
	.home-feed__side { max-width: 520px; }
}

/* ==========================================================================
   Single event main image — show the full photo (fixes portrait head-crop)
   Added 2026-09-22. Overrides the fixed 16:9 "object-fit:cover" crop so the
   whole photo is visible on /evenement/ pages (thumbnails elsewhere unchanged).
   ========================================================================== */
.event-single__media .media.has-img { aspect-ratio: auto; background: var(--surface-2); }
.event-single__media .media.has-img .media__img {
	position: static; display: block;
	width: auto; max-width: 100%;
	height: auto; max-height: 78vh;
	margin: 0 auto; object-fit: contain;
}
.event-single__media .media.has-img::after { display: none; }

/* ==========================================================================
   Client proofreading round — added 2026-10-25
   ========================================================================== */

/* (#2) Featured event photo on the category pages: show portrait images in full
   instead of cropping them into the 4:3 / 16:9 frame. Small archive-card and
   home-card thumbnails keep their uniform crop so the grids stay tidy. */
.event__media .media.has-img { aspect-ratio: auto; background: var(--surface-2); }
.event__media .media.has-img .media__img {
	position: static; display: block;
	width: 100%; height: auto; max-height: 460px;
	margin: 0 auto; object-fit: contain;
}
.event__media .media.has-img::after { display: none; }

/* (#1) Images placed between paragraphs in an article: full width by default,
   with WordPress caption + left / right / centre alignment so editors can lay
   out photos inside the text (not only as a block at the bottom). */
.article img { height: auto; border-radius: var(--radius); }
.article figure { margin: 1.6rem 0; }
.article figure img { width: 100%; }
.article figcaption,
.article .wp-caption-text {
	margin-top: .5rem; color: var(--ink-500); font-size: .9rem; line-height: 1.45; text-align: center;
}
.article .wp-caption { max-width: 100%; height: auto; }
.article img.aligncenter,
.article .aligncenter { display: block; margin-inline: auto; }
.article img.alignleft,
.article .alignleft { float: left; margin: .4rem 1.5rem 1rem 0; max-width: 50%; }
.article img.alignright,
.article .alignright { float: right; margin: .4rem 0 1rem 1.5rem; max-width: 50%; }
.article::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
	.article .alignleft, .article .alignright,
	.article img.alignleft, .article img.alignright { float: none; margin: 1.2rem auto; max-width: 100%; }
}

/* (#6) Team page split into Le Bureau (Officers) + Conseil (Board) sections. */
.team-section--divider { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.team-section__title {
	font-family: var(--font-head); font-weight: 600;
	font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); color: var(--cpc-blue-800);
	padding-bottom: .55rem; margin-bottom: 1.6rem; border-bottom: 2px solid var(--line);
}

/* "Read more / Lire la suite" link on the featured (first) event of a category page. */
.event__more { margin-top: 1.15rem; margin-bottom: 0; }

/* ==========================================================================
   Featured image caption on article pages — added 2026-11-10
   Shows the image's Media Library "Caption" under the featured image on
   /evenement/ and news post pages. The negative top margin pulls it up under
   the image (the image keeps its 1.75rem bottom margin when there's no caption).
   ========================================================================== */
.event-single__caption {
	margin: -1.15rem 0 1.75rem;
	color: var(--ink-500); font-size: .9rem; line-height: 1.45; text-align: center;
}
.event-single__caption a { color: inherit; text-decoration: underline; }

/* ==========================================================================
   Footer newsletter — Jetpack Subscriptions form — added 2026-11-28
   Jetpack wraps the email field and button in <p> tags; lay them out like the
   previous Contact Form 7 form (the input/button styles above still apply).
   ========================================================================== */
.footer-newsletter .jetpack_subscription_widget { flex: 0 1 540px; min-width: 0; }
.footer-newsletter .wp-block-jetpack-subscriptions__container form { margin: 0; }
.footer-newsletter #subscribe-email { flex: 1 1 240px; margin: 0; }
.footer-newsletter #subscribe-submit { flex: 0 0 auto; margin: 0; }
.footer-newsletter #subscribe-submit button { margin: 0; }
.footer-newsletter .jetpack_subscription_widget p:not(#subscribe-email):not(#subscribe-submit) { flex-basis: 100%; margin: .4rem 0 0; color: #d3def6; font-size: .9rem; }

