/* ==========================================================================
   MECSN — Where Security Leaders Connect.
   Design tokens, base, layout, components, templates.
   Logical properties are used throughout so an Arabic (RTL) version works.
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	/* Brand */
	--navy: #0B2D5B;
	--navy-deep: #071E3D;
	--navy-mid: #123B6E;
	--navy-line: #1D4C86;
	--orange: #FF7A00;
	--orange-ink: #B85600;      /* orange for small text on light backgrounds (4.8:1) */
	--orange-soft: #FFF1E4;
	--white: #FFFFFF;
	--gray: #6B7280;
	/* Neutrals */
	--ink: #0E1B2E;
	--ink-2: #3A4658;
	--mist: #F2F5F9;
	--line: #DCE3EC;
	--line-strong: #C3CEDC;
	/* Type */
	--font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5625rem;
	--step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
	--step-4: clamp(2.1rem, 1.4rem + 2.6vw, 3.2rem);
	--step-5: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);
	/* Space & shape */
	--gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
	--section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
	--radius: 4px;
	--radius-lg: 10px;
	--shadow: 0 1px 2px rgba(11, 45, 91, .06), 0 8px 24px -12px rgba(11, 45, 91, .18);
	--measure: 44rem;
	--wrap: 80rem;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { font-family: var(--font-arabic); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--orange-ink); }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-stretch: 112%;
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -0.012em;
	color: var(--navy);
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 105%; letter-spacing: 0; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--orange); color: var(--navy-deep); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000;
	background: var(--navy); color: #fff; padding: .75rem 1rem; font-weight: 600; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.wrap--wide { max-width: 64rem; }
.mecsn-icon { flex: none; vertical-align: -0.2em; }
[hidden] { display: none !important; }

/* ---------- Buttons & links ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: .8rem 1.35rem; border-radius: var(--radius); border: 2px solid transparent;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
	white-space: nowrap;
}
.btn--primary, .wp-block-button__link { background: var(--orange); color: var(--navy-deep); }
.btn--primary:hover, .wp-block-button__link:hover { background: #FF8F2B; color: var(--navy-deep); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--small { padding: .55rem 1rem; font-size: .9375rem; }
.btn--large { padding: 1rem 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn.is-busy { opacity: .7; cursor: progress; }
.text-link {
	font-weight: 600; text-decoration: none; color: var(--navy);
	display: inline-flex; align-items: center; gap: .35rem;
	border-bottom: 2px solid var(--orange); padding-bottom: 1px;
}
.text-link:hover { color: var(--orange-ink); }
.text-link--back { border-bottom-color: var(--line-strong); }
.link-btn {
	background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy);
	cursor: pointer; border-bottom: 2px solid var(--orange); line-height: 1.3;
}
.icon-link { color: var(--navy); display: inline-flex; padding: .25rem; }
.icon-link:hover { color: var(--orange-ink); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); }
.site-logo { flex: none; display: block; }
.site-logo img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; min-width: 0; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.site-nav .menu > li { position: relative; display: flex; align-items: center; }
.site-nav .menu > li > a {
	display: block; padding: .6rem .55rem; font-size: .9375rem; font-weight: 500;
	color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-nav .menu > li.has-sub > a { padding-inline-end: .1rem; }
.site-nav .menu > li > a:hover, .site-nav .menu > li.is-current > a { color: var(--navy); }
.site-nav .menu > li.is-current > a { box-shadow: inset 0 -2px 0 var(--orange); }
.sub-toggle {
	background: none; border: 0; padding: .4rem .3rem; cursor: pointer; color: var(--ink-2);
	display: inline-flex; align-items: center; border-radius: var(--radius);
}
.sub-toggle .mecsn-icon { width: 16px; height: 16px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .mecsn-icon { transform: rotate(180deg); }
.sub-menu {
	list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 60;
	min-width: 15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	box-shadow: var(--shadow); display: none;
}
/* Invisible bridge over the gap so the list stays open while the pointer moves down to it. */
.sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.has-sub:hover > .sub-menu, .has-sub.is-hover > .sub-menu, .has-sub.is-open > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
.sub-menu a { display: block; padding: .55rem .75rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--mist); color: var(--navy); }
.btn--join { padding: .65rem 1.1rem; }
.nav-toggle { display: none; }

@media (max-width: 1340px) {
	.site-nav .menu > li > a { padding-inline: .4rem; font-size: .875rem; }
	.site-logo img { height: 40px; }
}
@media (max-width: 1200px) {
	:root { --header-h: 68px; }
	.site-header { backdrop-filter: none; background: #fff; } /* backdrop-filter would trap the fixed menu panel */
	.site-logo img { height: 40px; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: .4rem; margin-inline-start: auto;
		background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
		padding: .5rem .75rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
	}
	.nav-toggle__open { display: inline-flex; }
	.nav-toggle__close { display: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline-flex; }
	.site-nav {
		display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 99;
		flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--gutter) 2rem; overflow-y: auto;
		border-top: 1px solid var(--line);
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { display: flex; }
	.nav-open { overflow: hidden; }
	.site-nav .menu { flex-direction: column; align-items: stretch; }
	.site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.site-nav .menu > li > a { flex: 1; padding: .9rem 0; font-size: 1.0625rem; }
	.site-nav .menu > li.is-current > a { box-shadow: none; color: var(--orange-ink); }
	.sub-toggle { padding: .75rem; }
	.sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 .75rem; min-width: 0; width: 100%; }
	.has-sub:hover > .sub-menu, .has-sub.is-hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
	.sub-menu::before { display: none; }
	.has-sub.is-open > .sub-menu { display: block; }
	.sub-menu a { padding-inline-start: 1rem; }
	.btn--join { align-self: stretch; padding: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--navy-deep); color: #fff;
	padding-block: clamp(4rem, 3rem + 6vw, 8.5rem) clamp(4rem, 3rem + 5vw, 7.5rem);
}
.hero__art { position: absolute; inset: 0 0 0 auto; width: min(58%, 56rem); z-index: -1;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.hero__art .lattice { width: 100%; height: 100%; }
.hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 30, 61, .94) 0%, rgba(7, 30, 61, .8) 45%, rgba(7, 30, 61, .35) 100%); }
.hero__inner { position: relative; }
.hero__org { font-weight: 500; color: #B9C6D8; margin-bottom: 1.25rem; font-size: 1rem; }
.hero__title {
	font-size: var(--step-5); font-stretch: 118%; font-weight: 800; color: #fff;
	max-width: 11.5em; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 1.5rem;
}
.hero__text { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); max-width: 34em; color: #D7E0EC; line-height: 1.55; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Lattice */
.lattice .lt-grid polygon { fill: none; stroke: var(--navy-line); stroke-width: 1.2; opacity: .75; }
.lattice .lt-cell { fill: var(--navy-mid); stroke: none; opacity: 0; animation: lt-fade .8s ease-out forwards; animation-delay: var(--d); }
.lattice .lt-cell--accent { fill: #17457F; }
.lattice .lt-link { stroke: var(--orange); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); opacity: .85; animation: lt-draw 1.1s cubic-bezier(.5, 0, .2, 1) forwards; animation-delay: var(--d); }
.lattice .lt-dot { fill: #fff; opacity: 0; animation: lt-fade .5s ease-out forwards; animation-delay: var(--d); }
.lattice .lt-dot--accent { fill: var(--orange); }
@keyframes lt-draw { to { stroke-dashoffset: 0; } }
@keyframes lt-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.lattice .lt-cell, .lattice .lt-dot { animation: none; opacity: 1; }
	.lattice .lt-link { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 860px) {
	.hero__art { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.section-head__text { max-width: 40rem; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--ink-2); margin: 0; }

/* Who we are */
.who { background: var(--white); padding-top: var(--section) !important; }
.who__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 5rem; }
.who__sub { font-family: var(--font-display); font-stretch: 105%; font-weight: 600; font-size: var(--step-2); line-height: 1.25; color: var(--ink-2); }
.who__body { max-width: var(--measure); }
.who__body > p { color: var(--ink-2); }
.evolution { display: flex; align-items: stretch; gap: 1rem; margin-bottom: 2rem; }
.evolution__step { flex: 1; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--mist); }
.evolution__step--now { background: var(--navy); border-color: var(--navy); color: #fff; }
.evolution__abbr { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 1.6rem; letter-spacing: .02em; color: var(--navy); }
.evolution__step--now .evolution__abbr { color: #fff; }
.evolution__abbr b { color: var(--orange); font-weight: 800; }
.evolution__name { display: block; font-size: .875rem; line-height: 1.35; margin-top: .25rem; color: var(--ink-2); }
.evolution__step--now .evolution__name { color: #C9D5E5; }
.evolution__arrow { align-self: center; color: var(--orange-ink); }
[dir="rtl"] .evolution__arrow .mecsn-icon { transform: scaleX(-1); }
@media (max-width: 860px) { .who__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .evolution { flex-direction: column; } .evolution__arrow { transform: rotate(90deg); } }

/* Why we connect */
.why { background: var(--mist); padding-block: var(--section) !important; }
.why__label { font-size: 1rem; font-family: var(--font-body); font-stretch: 100%; font-weight: 600; color: var(--orange-ink); letter-spacing: 0; margin-bottom: 1.25rem; }
.why__lead {
	font-family: var(--font-display); font-stretch: 112%; font-weight: 700; color: var(--navy);
	font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em;
	max-width: 22em; margin-bottom: 2.25rem; text-wrap: balance;
}
.why__text { columns: 2 22rem; column-gap: 3rem; color: var(--ink-2); max-width: 64rem; }
.why__text p { break-inside: avoid; }

/* Objectives (also used on interior pages) */
.objectives-section { padding-top: var(--section) !important; }
.objectives { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.objective { padding: 2rem 1.75rem 2.25rem; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: #fff; position: relative; }
.objective__num {
	display: inline-grid; place-items: center; width: 2.6rem; height: 2.95rem; margin-bottom: 1.25rem;
	font-family: var(--font-display); font-weight: 800; font-stretch: 112%; color: var(--navy-deep); font-size: 1.1rem;
	background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.objective__title { font-size: 1.2rem; margin-bottom: .6rem; }
.objective p { color: var(--ink-2); margin: 0; font-size: 1rem; }
@media (max-width: 960px) { .objectives { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .objectives { grid-template-columns: 1fr; } }

/* Network */
.network__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.net-card {
	display: flex; flex-direction: column; padding: clamp(1.75rem, 1rem + 2vw, 2.75rem);
	background: var(--navy); color: #fff; border-radius: var(--radius-lg); text-decoration: none; min-height: 17rem;
	position: relative; overflow: hidden; transition: background-color .2s;
}
.net-card::after {
	content: ""; position: absolute; inset-inline-end: -48px; bottom: -64px; width: 230px; height: 260px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115'%3E%3Cpolygon points='50,2 98,29.5 98,85.5 50,113 2,85.5 2,29.5' fill='none' stroke='%231D4C86' stroke-width='2'/%3E%3Cpolygon points='50,22 80,39.5 80,75.5 50,93 20,75.5 20,39.5' fill='none' stroke='%231D4C86' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.net-card:hover { background: var(--navy-mid); color: #fff; }
.net-card h3 { color: #fff; font-size: var(--step-2); margin-bottom: .6rem; }
.net-card p { color: #C9D5E5; max-width: 30em; }
.net-card__icon { color: var(--orange); margin-bottom: 1.25rem; }
.net-card__icon .mecsn-icon { width: 34px; height: 34px; }
.net-card__cta { margin-top: auto; font-weight: 600; border-bottom: 2px solid var(--orange); align-self: flex-start; padding-bottom: 1px; }
@media (max-width: 760px) { .network__cards { grid-template-columns: 1fr; } }

/* Feeds on the homepage */
.feed__empty {
	border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; color: var(--ink-2);
	display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0;
}
.feed__post-job { margin-top: 1.25rem; color: var(--ink-2); }

/* Ethics band */
.ethics { background: var(--navy-deep); color: #D7E0EC; padding-block: var(--section) !important; margin-top: var(--section); }
.ethics h2 { color: #fff; }
.ethics__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem 5rem; align-items: start; }
.ethics__grid > div > p { max-width: 34em; }
.ethics__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-line); }
.ethics__list li { padding: .95rem 0 .95rem 1.75rem; border-bottom: 1px solid var(--navy-line); position: relative; color: #fff; font-weight: 500; }
.ethics__list li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 1.3rem; width: .7rem; height: .8rem; background: var(--orange);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
[dir="rtl"] .ethics__list li { padding: .95rem 1.75rem .95rem 0; }
@media (max-width: 860px) { .ethics__grid { grid-template-columns: 1fr; } }

/* Join */
.join { padding-block: var(--section) !important; }
.join__head { max-width: 40rem; margin-bottom: 2.25rem; }
.join__head p { color: var(--ink-2); }
.join__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.join-card { border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.join-card h3 { font-size: var(--step-2); }
.join-card p { color: var(--ink-2); margin-bottom: 1.25rem; }
.join-card .text-link { margin-top: 1rem; }
@media (max-width: 760px) { .join__cards { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #B9C6D8; padding-top: 4rem; font-size: .9375rem; }
.ethics + .join + .site-footer, .site-footer { margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; padding-bottom: 3rem; }
.site-footer__logo img { height: 52px; width: auto; }
.site-footer__slogan { color: #fff; font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
.site-footer__about { max-width: 26rem; }
.site-footer__social { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; gap: .5rem; }
.site-footer__social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--navy-line); border-radius: var(--radius); }
.site-footer__social a:hover { border-color: var(--orange); }
.foot-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-col__title { font-size: .9375rem; font-family: var(--font-body); font-stretch: 100%; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .55rem; }
.foot-col li a { color: #B9C6D8; }
.foot-col li a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid var(--navy-line); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer__bottom p { margin: 0; }
.legal-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.legal-menu a { color: #B9C6D8; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Interior pages ---------- */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: 2rem clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.page-head__title { font-size: var(--step-4); max-width: 22em; margin-bottom: .75rem; }
.page-head__intro { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 42em; margin: 0; }
.page-head__kicker { font-weight: 600; color: var(--orange-ink); margin-bottom: .5rem; }
.page-head__meta { color: var(--ink-2); margin: .5rem 0 0; }
.crumbs { margin-bottom: 1.75rem; font-size: .875rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li { color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline-end: .35rem; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.page-body { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section); }

/* Readable content column; wide components break out to full container width. */
.entry-content > * { max-width: var(--measure); }
.entry-content > .wp-block-shortcode, .entry-content > .mecsn-directory, .entry-content > .objectives,
.entry-content > .board-grid, .entry-content > .choice, .entry-content > .vm, .entry-content > .mecsn-news,
.entry-content > .mecsn-knowledge, .entry-content > .e-list, .entry-content > .contact-layout, .entry-content > .docs,
.entry-content > .mecsn-form-wrap, .entry-content > .alignwide, .entry-content > .alignfull { max-width: none; }
.entry-content > .mecsn-form-wrap { max-width: 52rem; }
.entry-content h2 { font-size: var(--step-3); margin-top: 2.5rem; }
.entry-content h3 { margin-top: 1.75rem; }
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.35rem; margin: 0 0 1.25rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content li::marker { color: var(--orange-ink); }
.entry-content ol > li::marker { font-weight: 600; }
.entry-content .wp-block-details, .entry-content details:not(.mecsn-dialog details) {
	border-bottom: 1px solid var(--line); padding: 1rem 0; margin: 0;
}
.entry-content details:first-of-type { border-top: 1px solid var(--line); }
.entry-content summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style-position: outside; }
.entry-content details[open] summary { margin-bottom: .6rem; }
.entry-content details p { color: var(--ink-2); margin: 0; }
.mecsn-callout { background: var(--orange-soft); border-inline-start: 4px solid var(--orange); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); }
.mecsn-small, .entry-content .mecsn-small { font-size: .875rem; color: var(--ink-2); }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.wp-block-buttons { margin: 1.5rem 0; }
.why-lead { margin: 2rem 0; padding: 0; border: 0; max-width: 40rem; }
.why-lead p { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; color: var(--navy); font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.015em; }

/* Vision & mission */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.vm__item { background: var(--navy); color: #D7E0EC; padding: 2rem; border-radius: var(--radius-lg); }
.vm__item h3 { color: var(--orange); font-family: var(--font-body); font-stretch: 100%; font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; }
.vm__item p { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 1.3rem; line-height: 1.35; color: #fff; margin: 0; }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }

/* Membership choice */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 3rem; }
.choice__card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; background: #fff; display: flex; flex-direction: column; }
.choice__card h3 { font-size: var(--step-2); margin-top: 0; }
.choice__card p { color: var(--ink-2); }
.choice__icon { color: var(--orange-ink); margin-bottom: 1rem; }
.choice__icon .mecsn-icon { width: 30px; height: 30px; }
.choice__links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 0; }
@media (max-width: 760px) { .choice { grid-template-columns: 1fr; } }

/* ---------- Directories ---------- */
.mecsn-filters {
	display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; gap: .9rem; align-items: end;
	background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; margin-bottom: 1.25rem;
}
.mecsn-filters--jobs { grid-template-columns: 2fr repeat(5, minmax(0, 1fr)) auto; }
.mecsn-filter label { display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; }
.mecsn-filter input, .mecsn-filter select, .mecsn-search input, .site-search input {
	width: 100%; font: inherit; font-size: .9375rem; padding: .6rem .7rem; border: 1px solid var(--line-strong);
	border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 44px;
}
.mecsn-search { position: relative; }
.mecsn-search .mecsn-icon { position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%); color: var(--gray); pointer-events: none; }
.mecsn-search input { padding-inline-start: 2.3rem; }
.mecsn-filter--submit .btn { min-height: 44px; }
.mecsn-results { color: var(--ink-2); font-size: .9375rem; margin-bottom: 1.25rem; }
@media (max-width: 1080px) {
	.mecsn-filters, .js .mecsn-filters, .mecsn-filters--jobs, .js .mecsn-filters--jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mecsn-filter--search { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.mecsn-filters, .js .mecsn-filters, .mecsn-filters--jobs, .js .mecsn-filters--jobs { grid-template-columns: 1fr; }
}

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Member cards */
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; }
.m-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.m-card:hover { border-color: var(--navy); }
.m-card__photo { aspect-ratio: 4 / 4.4; background: var(--mist); overflow: hidden; }
.m-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.mecsn-initials {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 4rem;
	font-family: var(--font-display); font-weight: 800; font-stretch: 118%; color: var(--navy); font-size: 2.2rem;
	background: linear-gradient(135deg, var(--mist), #E3E9F1);
}
.m-card__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.m-card__name { font-size: 1.125rem; margin: 0 0 .3rem; }
.m-card__name a { color: var(--navy); text-decoration: none; }
.m-card__role { font-weight: 500; margin: 0; font-size: .9375rem; line-height: 1.4; }
.m-card__org { color: var(--ink-2); margin: 0 0 .9rem; font-size: .9375rem; }
.m-card__meta { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; font-size: .8125rem; color: var(--ink-2); }
.m-card__country { display: inline-flex; gap: .25rem; align-items: center; }
.m-card__country .mecsn-icon { width: 15px; height: 15px; }
.tag, .tags .tag { display: inline-block; background: var(--orange-soft); color: #7A3A00; padding: .2rem .55rem; border-radius: 3px; font-size: .8125rem; font-weight: 500; }
.tags { list-style: none; padding: 0 !important; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags .tag { margin: 0; }

/* Business cards */
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.b-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; transition: border-color .15s; }
.b-card:hover { border-color: var(--navy); }
.b-card__logo { height: 9rem; display: grid; place-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid var(--line); }
.b-card__logo img { max-height: 5.5rem; width: auto; object-fit: contain; }
.b-card__logo .mecsn-initials { border-radius: var(--radius); width: 5rem; height: 5rem; font-size: 1.6rem; min-height: 0; }
.b-card__body { padding: 1.15rem 1.25rem .5rem; flex: 1; }
.b-card__cat { font-size: .8125rem; font-weight: 600; color: var(--orange-ink); margin: 0 0 .3rem; }
.b-card__name { font-size: 1.15rem; margin: 0 0 .9rem; }
.b-card__name a { color: var(--navy); text-decoration: none; }
.b-card__facts { margin: 0; display: grid; gap: .35rem; font-size: .875rem; }
.b-card__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; }
.b-card__facts dt { color: var(--ink-2); }
.b-card__facts dd { margin: 0; font-weight: 500; }
.b-card__web { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; margin: .75rem 1.25rem 1.15rem; font-size: .875rem; font-weight: 600; color: var(--navy); text-decoration: none; align-self: flex-start; }
.b-card__web:hover { color: var(--orange-ink); text-decoration: underline; }
.b-card__web .mecsn-icon { width: 16px; height: 16px; }
.mecsn-disclaimer { font-size: .8125rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; max-width: 52rem; }

/* Pagination */
.mecsn-pagination { margin-top: 2.5rem; }
.mecsn-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mecsn-pagination a, .mecsn-pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; font-weight: 500; color: var(--navy); }
.mecsn-pagination a:hover { border-color: var(--navy); }
.mecsn-pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.mecsn-pagination .gap { align-self: center; padding: 0 .25rem; }

/* Empty states */
.mecsn-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); background: #fff; max-width: 46rem; }
.mecsn-empty__title { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.25rem; color: var(--navy); margin-bottom: .4rem; }
.mecsn-empty p { color: var(--ink-2); }
.mecsn-empty p:last-child { margin-bottom: 0; }

/* ---------- Board ---------- */
.board-grid { list-style: none; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.5rem; }
.board-card { margin: 0 !important; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.board-card__photo { aspect-ratio: 1 / 1; background: var(--mist); }
.board-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.board-card--placeholder .mecsn-initials { color: var(--line-strong); }
.board-card--placeholder .mecsn-initials .mecsn-icon { width: 72px; height: 72px; }
.board-card__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.board-card__role { font-size: .875rem; font-weight: 600; color: var(--orange-ink); margin: 0 0 .25rem; }
.board-card__name { font-size: 1.15rem; margin: 0 0 .35rem !important; }
.board-card--placeholder .board-card__name { color: var(--gray); }
.board-card__title { margin: 0; font-weight: 500; font-size: .9375rem; }
.board-card__org { margin: 0 0 1rem; color: var(--ink-2); font-size: .9375rem; }
.board-card__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Dialog */
.mecsn-dialog { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(44rem, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); box-shadow: 0 30px 80px -20px rgba(7, 30, 61, .5); }
.mecsn-dialog::backdrop { background: rgba(7, 30, 61, .6); }
.mecsn-dialog__inner { padding: 2rem; position: relative; }
.mecsn-dialog__close { position: absolute; top: 1rem; inset-inline-end: 1rem; background: var(--mist); border: 0; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.mecsn-dialog__head { display: grid; grid-template-columns: 7rem 1fr; gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; padding-inline-end: 2.5rem; }
.mecsn-dialog__photo { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.mecsn-dialog__photo img { width: 100%; height: 100%; object-fit: cover; }
.mecsn-dialog h2 { font-size: var(--step-2); margin: 0 0 .25rem; }
.mecsn-dialog__head p { margin: 0; color: var(--ink-2); }
.mecsn-dialog__body { color: var(--ink-2); }

/* ---------- Article cards (news & knowledge) ---------- */
.a-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.a-card { position: relative; display: flex; flex-direction: column; }
.a-card__media { aspect-ratio: 16 / 10; background: var(--mist); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1rem; }
.a-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.a-card:hover .a-card__media img { transform: scale(1.03); }
.a-card__placeholder { display: block; width: 100%; height: 100%; background:
	linear-gradient(135deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%) 0 0 / 22px 22px, var(--mist); }
.a-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8125rem; color: var(--ink-2); margin-bottom: .45rem; }
.a-card__cat { font-weight: 600; color: var(--orange-ink); }
.a-card__title { font-size: 1.2rem; line-height: 1.25; margin-bottom: .5rem; }
.a-card__title a { color: var(--navy); text-decoration: none; }
.a-card:hover .a-card__title a { text-decoration: underline; text-decoration-color: var(--orange); }
.a-card__excerpt { color: var(--ink-2); font-size: .9375rem; margin-bottom: .5rem; }
.a-card__kind, .article-kind { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .5rem; border-radius: 3px; background: var(--mist); color: var(--ink-2); align-self: flex-start; }
.kind--announcement { background: var(--navy); color: #fff; }
.kind--analysis { background: var(--orange-soft); color: #7A3A00; }
.kind--thirdparty { background: #EEF0F3; color: var(--ink-2); }
.a-card--featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; }
.a-card--featured .a-card__media { margin: 0; aspect-ratio: 16 / 9; }
.a-card--featured .a-card__title { font-size: var(--step-3); }
.a-card--featured .a-card__excerpt { font-size: 1.0625rem; }
.news-featured { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.a-grid--home { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: repeat(3, auto); gap: 1.25rem 2.5rem; }
.a-grid--home .a-card--lead { grid-row: 1 / span 3; }
.a-grid--home .a-card--lead .a-card__title { font-size: var(--step-2); }
.a-grid--home .a-card--compact { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.a-grid--home .a-card--compact:last-child { border-bottom: 0; }
.a-grid--home .a-card--compact .a-card__media { margin: 0; }
.a-grid--home .a-card--compact .a-card__title { font-size: 1.05rem; }
@media (max-width: 960px) {
	.a-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.a-card--featured, .a-grid--home { grid-template-columns: 1fr; }
	.a-grid--home .a-card--lead { grid-row: auto; }
}
@media (max-width: 600px) { .a-grid { grid-template-columns: 1fr; } .a-grid--home .a-card--compact { grid-template-columns: 6.5rem 1fr; } }

.news-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.news-search { flex: 0 1 18rem; }
.mecsn-tabs ul { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .4rem; }
.mecsn-tabs li { margin: 0 !important; }
.mecsn-tabs a { display: inline-block; padding: .45rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .875rem; text-decoration: none; color: var(--ink); }
.mecsn-tabs a:hover { border-color: var(--navy); }
.mecsn-tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Events ---------- */
.e-list { display: grid; gap: 1rem; }
.e-list--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e-card { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: border-color .15s; }
.e-card:hover { border-color: var(--navy); }
.e-card__date { background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem .5rem; text-align: center; }
.e-card__day { font-family: var(--font-display); font-weight: 800; font-stretch: 118%; font-size: 2rem; line-height: 1; }
.e-card__month { font-size: .8125rem; margin-top: .3rem; color: #C9D5E5; }
.e-card--past .e-card__date { background: var(--mist); color: var(--ink-2); }
.e-card--past .e-card__month { color: var(--ink-2); }
.e-card__body { padding: 1.1rem 1.25rem; }
.e-card__type { font-size: .8125rem; font-weight: 600; color: var(--orange-ink); margin: 0 0 .25rem; }
.e-card__title { font-size: 1.15rem; margin: 0 0 .6rem; }
.e-card__title a { color: var(--navy); text-decoration: none; }
.e-card__facts { list-style: none; margin: 0 0 .6rem; padding: 0 !important; font-size: .875rem; color: var(--ink-2); display: grid; gap: .25rem; }
.e-card__facts li { display: flex; gap: .4rem; align-items: flex-start; margin: 0 !important; }
.e-card__facts .mecsn-icon { width: 16px; height: 16px; margin-top: .15rem; }
.e-card__state { font-size: .8125rem; font-weight: 600; margin: 0; color: var(--navy); }
.e-card--open .e-card__state, .e-card--external .e-card__state { color: #1E6B3A; }
.e-list--past { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .e-list--home, .e-list--past { grid-template-columns: 1fr; } }

/* Event single */
.event-body, .job-body, .profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; align-items: start; }
.event-figure { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.register-box, .apply-box { border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.register-box h2, .apply-box h2 { font-size: 1.3rem; }
.register-box .mecsn-grid { grid-template-columns: 1fr; }
.register-box .mecsn-fieldset { padding: 0; border: 0; margin: 0; }
.register-box .mecsn-required-note { display: none; }
.agenda { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.agenda li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.agenda__time { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.speakers { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.speakers li { display: flex; gap: .85rem; align-items: center; margin: 0 !important; }
.speakers .mecsn-initials { width: 3rem; height: 3rem; min-height: 0; border-radius: 50%; font-size: 1rem; flex: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.facts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; color: var(--ink-2); }
.facts li { display: flex; gap: .5rem; align-items: flex-start; }
.facts .mecsn-icon { margin-top: .2rem; color: var(--orange-ink); }
.facts--inline { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1rem; }
@media (max-width: 960px) {
	.event-body, .job-body, .profile-body { grid-template-columns: 1fr; }
	.register-box, .apply-box { position: static; }
}

/* ---------- Jobs ---------- */
.j-list { display: grid; gap: .9rem; }
.j-card { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; background: #fff; transition: border-color .15s; }
.j-card:hover { border-color: var(--navy); }
.j-card__logo { width: 4.5rem; height: 4.5rem; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; padding: .4rem; background: #fff; }
.j-card__logo img { max-height: 100%; object-fit: contain; }
.j-card__logo .mecsn-initials { font-size: 1.15rem; min-height: 0; border-radius: 2px; }
.j-card__title { font-size: 1.15rem; margin: 0 0 .15rem; }
.j-card__title a { color: var(--navy); text-decoration: none; }
.j-card__title a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.j-card__company { margin: 0 0 .45rem; font-weight: 500; }
.j-card__facts { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .875rem; color: var(--ink-2); }
.j-card__facts li { display: flex; gap: .35rem; align-items: center; margin: 0 !important; }
.j-card__facts .mecsn-icon { width: 16px; height: 16px; }
.j-card__side { text-align: end; }
.j-card__dates { font-size: .8125rem; color: var(--ink-2); margin: 0 0 .6rem; }
@media (max-width: 700px) {
	.j-card { grid-template-columns: 3.25rem minmax(0, 1fr); }
	.j-card__logo { width: 3.25rem; height: 3.25rem; }
	.j-card__side { grid-column: 1 / -1; text-align: start; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .85rem; }
	.j-card__dates { margin: 0; }
}
.job-head { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem; align-items: center; }
.job-head__logo { width: 5.5rem; height: 5.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: grid; place-items: center; padding: .5rem; overflow: hidden; }
.job-head__logo .mecsn-initials { min-height: 0; }
.job-head .page-head__title { font-size: var(--step-3); margin-bottom: .3rem; }
.job-head__company { font-weight: 500; font-size: 1.1rem; margin: 0; }
.facts-dl { margin: 0 0 1.25rem; display: grid; gap: .65rem; }
.facts-dl div { display: grid; gap: .1rem; }
.facts-dl dt { font-size: .8125rem; color: var(--ink-2); }
.facts-dl dd { margin: 0; font-weight: 500; }
@media (max-width: 600px) { .job-head { grid-template-columns: 1fr; } }

/* ---------- Profiles ---------- */
.profile-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: 2rem 3rem; }
.profile-head__grid { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; align-items: center; }
.profile-head__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.profile-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.profile-head__logo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 1.5rem; }
.profile-head__logo img { max-height: 8rem; width: auto; object-fit: contain; }
.profile-head__kind { font-weight: 600; color: var(--orange-ink); margin-bottom: .4rem; }
.profile-head h1 { margin-bottom: .4rem; }
.profile-head__role { font-size: 1.25rem; font-weight: 500; margin: 0; }
.profile-head__org { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 1rem; }
.profile-head__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.aside-block { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.aside-block h2 { font-size: 1rem; font-family: var(--font-body); font-stretch: 100%; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 700px) { .profile-head__grid { grid-template-columns: 9rem 1fr; gap: 1.25rem; align-items: start; } }
@media (max-width: 460px) { .profile-head__grid { grid-template-columns: 1fr; } .profile-head__photo { max-width: 12rem; } }

/* ---------- Articles ---------- */
.article-head { padding-block: 2rem 2.5rem; }
.article-head__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: 1rem; }
.article-head__cat { font-weight: 600; color: var(--orange-ink); }
.article-head__title { font-size: var(--step-4); }
.article-head__dek { font-size: 1.25rem; color: var(--ink-2); line-height: 1.45; }
.article-head__byline { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--ink-2); font-size: .9375rem; border-top: 1px solid var(--line); padding-top: 1rem; margin: 1.5rem 0 0; }
.article-head__byline span:first-child { color: var(--ink); font-weight: 600; }
.article-figure { margin: 0 auto 2.5rem; }
.article-figure img { border-radius: var(--radius-lg); width: 100%; }
.article-figure figcaption { font-size: .875rem; color: var(--ink-2); margin-top: .5rem; }
.article-body { font-size: 1.125rem; line-height: 1.7; }
.article-body > p:first-child { font-size: 1.2rem; }
.article-download { margin: 2rem 0; }
.source-box { border: 1px solid var(--line); border-inline-start: 4px solid var(--navy); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 2.5rem 0; }
.source-box h2 { font-size: .9375rem; font-family: var(--font-body); font-stretch: 100%; color: var(--ink-2); font-weight: 600; margin: 0 0 .3rem; }
.source-box p { margin: 0; }
.related { background: var(--mist); padding-top: var(--section) !important; }
.related h2 { margin-bottom: 1.75rem; }

/* ---------- Documents ---------- */
.docs { list-style: none; padding: 0 !important; display: grid; gap: .75rem; max-width: 46rem; }
.doc { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin: 0 !important; }
.doc:hover { border-color: var(--navy); }
.doc__icon, .doc__dl { color: var(--orange-ink); }
.doc__title { font-weight: 600; text-decoration: none; color: var(--navy); }
.doc__body p { margin: .2rem 0 0; font-size: .875rem; color: var(--ink-2); }
.mecsn-docs-empty { color: var(--ink-2); font-style: italic; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.contact-layout__aside h2 { font-size: 1.4rem; margin-top: 0; }
.contact-layout__aside h3 { font-size: 1rem; font-family: var(--font-body); font-stretch: 100%; font-weight: 600; color: var(--ink); }
.contact-details { list-style: none; padding: 0 !important; margin: 0 0 2rem; display: grid; gap: .8rem; }
.contact-details li { display: flex; gap: .65rem; align-items: flex-start; margin: 0 !important; }
.contact-details .mecsn-icon { color: var(--orange-ink); margin-top: .2rem; }
.contact-layout__shortcuts { background: var(--mist); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.contact-layout__shortcuts ul { margin: 0; padding-inline-start: 1.1rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.mecsn-form { display: grid; gap: 2rem; }
.mecsn-fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.75rem; margin: 0; min-width: 0; }
.mecsn-fieldset > legend { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 1.2rem; color: var(--navy); padding: 0 .5rem; margin-inline-start: -.5rem; }
.mecsn-fieldset__intro { color: var(--ink-2); font-size: .9375rem; }
.mecsn-required-note { font-size: .8125rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.mecsn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.mecsn-field--wide { grid-column: 1 / -1; }
.mecsn-field > label, .mecsn-choice > legend { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; color: var(--ink); padding: 0; }
.mecsn-field input[type="text"], .mecsn-field input[type="email"], .mecsn-field input[type="tel"], .mecsn-field input[type="number"],
.mecsn-field input[type="date"], .mecsn-field select, .mecsn-field textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; min-height: 46px;
	border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.mecsn-field textarea { resize: vertical; line-height: 1.5; }
.mecsn-field input:focus, .mecsn-field select:focus, .mecsn-field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(255, 122, 0, .35); outline-offset: 0; }
.mecsn-field input[type="file"] { font: inherit; font-size: .9375rem; padding: .65rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); width: 100%; background: var(--mist); }
.mecsn-field.has-error input, .mecsn-field.has-error select, .mecsn-field.has-error textarea { border-color: #B42318; }
.mecsn-help { font-size: .8125rem; color: var(--ink-2); margin: .35rem 0 0; }
.mecsn-error { font-size: .875rem; color: #B42318; font-weight: 600; margin: .35rem 0 0; }
.mecsn-req { color: #B42318; }
.mecsn-choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.mecsn-choice__opts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.mecsn-field--checkboxes .mecsn-choice__opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .5rem 1rem; }
.mecsn-check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; line-height: 1.45; }
.mecsn-check input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--navy); flex: none; }
.mecsn-field--consent .mecsn-check span { font-size: .9375rem; }
.mecsn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mecsn-form__actions { display: flex; justify-content: flex-start; }
.mecsn-notice { border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.mecsn-notice p:last-child, .mecsn-notice ul:last-child { margin-bottom: 0; }
.mecsn-notice--error { background: #FEF3F2; border: 1px solid #F3B8B2; color: #7A1A12; }
.mecsn-notice--error a { color: #7A1A12; }
.mecsn-notice--success { background: #EEF8F1; border: 1px solid #A9D8B8; color: #13492A; display: flex; gap: .75rem; align-items: flex-start; }
.mecsn-notice--success .mecsn-icon { color: #1E6B3A; width: 24px; height: 24px; flex: none; }
@media (max-width: 640px) { .mecsn-grid { grid-template-columns: 1fr; } .mecsn-fieldset { padding: 1.1rem; } }

/* ---------- Misc ---------- */
.post-list { display: grid; gap: 1.5rem; max-width: var(--measure); }
.post-item { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.post-item__date { font-size: .875rem; color: var(--ink-2); margin-bottom: .25rem; }
.post-item__title { font-size: 1.35rem; }
.post-item__title a { text-decoration: none; }
.site-search { display: flex; gap: .75rem; margin-bottom: 2rem; max-width: 36rem; }
.site-search .mecsn-search { flex: 1; }
.link-list { list-style: none; padding: 0 !important; }
.link-list a { font-weight: 600; }

@media print {
	.site-header, .site-footer, .hero__art, .mecsn-filters, .mecsn-pagination { display: none !important; }
	body { color: #000; }
}
.mecsn-directory, .mecsn-news, .mecsn-knowledge, .e-list, .board-grid, .objectives, .choice { margin-bottom: 2.5rem; }
.job-body .entry-content h2, .profile-body .entry-content h2, .event-body h2 { font-size: var(--step-2); margin-top: 2rem; }
.job-body__aside > p { margin-top: 1rem; }
.entry-content .objectives { padding: 0; }
.entry-content .objective { margin: 0; }
.entry-content .objective::marker { content: none; }
.entry-content .objective__title, .entry-content .choice__card h3, .entry-content .vm__item h3, .entry-content .board-card__name { margin-top: 0; }

/* v1.1 — expired jobs, A–Z bar, badges */
.badge { display: inline-block; vertical-align: middle; font-family: var(--font-body); font-stretch: 100%; font-size: .75rem; font-weight: 600; letter-spacing: 0; padding: .2rem .55rem; border-radius: 3px; line-height: 1.3; }
.badge--expired { background: #FDECEA; color: #8A1F1F; border: 1px solid #F3B8B2; }
.page-head__title .badge { font-size: .9rem; margin-inline-start: .5rem; }
.j-card--expired { background: #FAFBFC; }
.j-card--expired .j-card__title a, .j-card--expired .j-card__company { color: var(--ink-2); }
.j-card--expired .j-card__logo { filter: grayscale(1); opacity: .7; }
.j-card__closed { display: inline-block; font-size: .8125rem; font-weight: 600; color: #8A1F1F; }
.expired-banner { margin-top: 1.5rem; background: #FDECEA; border: 1px solid #F3B8B2; color: #6E1A14; padding: .9rem 1.1rem; border-radius: var(--radius-lg); }
.expired-banner a { color: #6E1A14; font-weight: 600; }
.az-bar { margin: 0 0 1.25rem; }
.az-bar ul { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .3rem; }
.az-bar li { margin: 0 !important; }
.az-bar a, .az-bar span { display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border-radius: var(--radius); font-size: .875rem; font-weight: 600; text-decoration: none; }
.az-bar a { color: var(--navy); border: 1px solid var(--line-strong); background: #fff; }
.az-bar a:hover { border-color: var(--navy); }
.az-bar a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.az-bar span { color: var(--line-strong); border: 1px solid var(--line); }
.mecsn-filters--jobs { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); }
.mecsn-filters--members { grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) { .mecsn-filters--members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mecsn-filters--members { grid-template-columns: 1fr; } }
.board-card__photo, .profile-head__photo, .mecsn-dialog__photo { overflow: hidden; }
.mecsn-filters--members { grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr)) auto; }
@media (max-width: 1080px) { .mecsn-filters--members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mecsn-filters--members { grid-template-columns: 1fr; } }

/* v1.3 — article SEO/AIO components */
.takeaways { background: var(--navy); color: #D7E0EC; border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 0 0 2rem; }
.takeaways h2 { color: var(--orange); font-family: var(--font-body); font-stretch: 100%; font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; }
.takeaways ul { margin: 0; padding-inline-start: 1.1rem; }
.takeaways li { margin-bottom: .5rem; color: #fff; font-size: 1.0625rem; line-height: 1.5; }
.takeaways li::marker { color: var(--orange); }
.toc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.toc__title { font-weight: 600; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-inline-start: 1.2rem; }
.toc li { margin-bottom: .3rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.article-body h2 { font-size: var(--step-2); margin-top: 2.25rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.article-faq, .article-sources { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.article-faq h2, .article-sources h2 { font-size: var(--step-2); }
.article-faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.article-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.article-faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.article-sources ol { padding-inline-start: 1.25rem; font-size: .9375rem; }
.article-sources li { margin-bottom: .4rem; }
.article-sources span { color: var(--ink-2); }
.ai-note { font-size: .875rem; color: var(--ink-2); background: var(--mist); border-radius: var(--radius); padding: .75rem 1rem; margin-top: 2rem; }
.article-cta { margin: 2.5rem 0 1rem; background: var(--orange-soft); border-inline-start: 4px solid var(--orange); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 1.5rem; display: grid; gap: 1rem; }
.article-cta__title { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; color: var(--navy); font-size: 1.25rem; margin-bottom: .35rem; }
.article-cta p { margin: 0; }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.article-head__byline span { color: var(--ink-2) !important; font-weight: 400 !important; }
.article-head__byline span:first-child { color: var(--ink) !important; font-weight: 600 !important; }

.j-card__via{color:var(--ink-2,#6B7280);font-weight:400;font-size:.9em}
