/*
 * European Dairy — front-end styles.
 * Every value is a theme.json token (var(--wp--preset--*) / var(--wp--custom--*)),
 * transcribed from _build-plan/design-source/index.html (line refs per section).
 * Desktop (>=1280px) = the approved design exactly; the responsive layer at the
 * end is our authorship (ledger B4).
 */

/* ---------- aliases ---------- */
:root {
	--ed-teal: var(--wp--preset--color--teal);
	--ed-deep: var(--wp--preset--color--deep-teal);
	--ed-green: var(--wp--preset--color--green);
	--ed-green-fill: var(--wp--preset--color--green-dark); /* contrast AA, ledger B11 */
	--ed-gold: var(--wp--preset--color--gold);
	--ed-yellow: var(--wp--preset--color--yellow);
	--ed-text: var(--wp--preset--color--text);
	--ed-ink: var(--wp--preset--color--ink);
	--ed-grey: var(--wp--preset--color--light-grey);
	--ed-white: var(--wp--preset--color--white);
	--ed-error: var(--wp--preset--color--error);
	--ed-fs-xs: var(--wp--preset--font-size--x-small);
	--ed-fs-s: var(--wp--preset--font-size--small);
	--ed-fs-m: var(--wp--preset--font-size--medium);
	--ed-fs-l: var(--wp--preset--font-size--large);
	--ed-fs-xl: var(--wp--preset--font-size--x-large);
	--ed-fs-2xl: var(--wp--preset--font-size--xx-large);
	--ed-fs-3xl: var(--wp--preset--font-size--xxx-large);
	--ed-fs-display: var(--wp--preset--font-size--display);
	--ed-s20: var(--wp--preset--spacing--20);
	--ed-s30: var(--wp--preset--spacing--30);
	--ed-s40: var(--wp--preset--spacing--40);
	--ed-s50: var(--wp--preset--spacing--50);
	--ed-s60: var(--wp--preset--spacing--60);
	--ed-s70: var(--wp--preset--spacing--70);
	--ed-s80: var(--wp--preset--spacing--80);
	--ed-r-s: var(--wp--custom--radius--s);
	--ed-r-m: var(--wp--custom--radius--m);
	--ed-ease: var(--wp--custom--ease);
	--ed-header-h: var(--wp--custom--header-height);
	--ed-content: var(--wp--style--global--content-size, 1200px);
	--ed-gutter: var(--ed-s50);
	--ed-rail-space: 0px;
}

/* ---------- base (index.html:61-69) ---------- */
html { scroll-padding-top: var(--ed-header-h); }
body {
	margin: 0;
	font-family: var(--wp--preset--font-family--bord-bia-sans);
	color: var(--ed-ink);
	font-size: var(--ed-fs-m);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	background: var(--ed-white);
}
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: var(--ed-teal); }
a:hover { color: var(--ed-deep); }
button { font-family: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ed-deep); outline-offset: 0; box-shadow: 0 0 0 6px var(--ed-yellow); }
[hidden] { display: none !important; }
.ed-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wp-site-blocks > * + *, .ed-main > * + *, .wp-block-post-content > * + * { margin-block-start: 0; }
.wp-block-post-content > .ed-section { margin-block: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* container: index.html:140 et al. — content width, offset by the side rail */
.ed-wrap {
	width: min(var(--ed-content), calc(100% - var(--ed-rail-space) - 2 * var(--ed-gutter)));
	margin: 0 auto 0 max(calc(var(--ed-rail-space) + var(--ed-gutter)), calc((100% - var(--ed-content)) / 2));
}
@media (min-width: 1280px) {
	.ed-has-rail { --ed-rail-space: var(--wp--custom--rail-space); }
}

.ed-section { position: relative; scroll-margin-top: var(--ed-header-h); }
.ed-bar { display: block; width: 48px; height: 4px; background: var(--ed-green); flex: none; }
.ed-head { display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-head--center { align-items: center; text-align: center; }
.ed-h2 { color: var(--ed-teal); font-size: var(--ed-fs-3xl); line-height: 1.1; font-weight: 700; text-wrap: balance; }
.ed-h2--light { color: var(--ed-white); }
.ed-h3 { color: var(--ed-teal); font-size: var(--ed-fs-2xl); line-height: 1.15; font-weight: 700; }

/* ---------- buttons (index.html:148, 167, 313, 471, 513, 530, 554, 597, 617) ---------- */
.ed-btn {
	display: inline-flex; align-items: center; gap: 12px;
	font-weight: 700; text-decoration: none;
	transition: gap 220ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.ed-btn--green {
	height: 56px; padding: 0 var(--ed-s50);
	background: var(--ed-green-fill); color: var(--ed-white);
	font-size: var(--ed-fs-m); border-radius: var(--ed-r-s);
}
.ed-btn--green:hover { background: var(--ed-white); color: var(--ed-deep); gap: 18px; }
.ed-btn--xl { height: 60px; font-size: var(--ed-fs-l); }
.ed-btn--teal {
	min-height: 56px; padding: 12px var(--ed-s50);
	background: var(--ed-teal); color: var(--ed-white);
	font-size: var(--ed-fs-m); line-height: 1.3; border-radius: var(--ed-r-s);
}
.ed-btn--teal:hover { background: var(--ed-deep); color: var(--ed-white); gap: 18px; }
.ed-btn--outline, .ed-btn--outline-sm {
	height: 52px; padding: 0 var(--ed-s40);
	border: 2px solid var(--ed-teal); color: var(--ed-teal);
	font-size: var(--ed-fs-s); border-radius: var(--ed-r-s); flex: none;
}
.ed-btn--outline-sm { height: 48px; gap: 10px; }
.ed-btn--outline:hover { background: var(--ed-teal); color: var(--ed-white); gap: 18px; }
.ed-btn--outline-sm:hover { background: var(--ed-teal); color: var(--ed-white); gap: 16px; }
.ed-btn--link, .ed-btn--link-sm {
	gap: 10px; color: var(--ed-teal); font-size: var(--ed-fs-m);
	padding-bottom: 4px; border-bottom: 2px solid var(--ed-green);
}
.ed-btn--link-sm { gap: 8px; font-size: var(--ed-fs-s); padding-bottom: 3px; }
.ed-btn--link:hover { color: var(--ed-deep); border-bottom-color: var(--ed-deep); gap: 16px; }
.ed-btn--link-sm:hover { color: var(--ed-deep); border-bottom-color: var(--ed-deep); gap: 14px; }
.ed-btn--back { gap: 10px; }
.ed-btn--back:hover { gap: 16px; }

.ed-round-close {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1.5px solid var(--ed-teal); background: var(--ed-white); color: var(--ed-teal);
	font-size: var(--ed-fs-l); line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background-color 200ms ease, color 200ms ease; flex: none;
}
.ed-round-close:hover { background: var(--ed-teal); color: var(--ed-white); }
.ed-round-close--light { border-color: var(--ed-white); background: transparent; color: var(--ed-white); }
.ed-round-close--light:hover { background: var(--ed-white); color: var(--ed-deep); }

/* ---------- header (index.html:79-93) ---------- */
.ed-header {
	position: sticky; top: 0; z-index: 40;
	height: var(--ed-header-h); background: var(--ed-white);
	border-bottom: 1px solid var(--wp--custom--line--hair);
}
.admin-bar .ed-header { top: var(--wp-admin--admin-bar--height, 0px); }
.ed-header__inner {
	width: min(var(--ed-content), calc(100% - 2 * var(--ed-gutter)));
	height: 100%; margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between; gap: var(--ed-s50);
}
.ed-header__logo { display: flex; align-items: center; flex: none; }
.ed-header__logo-img { height: 52px; width: auto; display: block; }
.ed-lang-zh .ed-header__logo-img { height: 64px; }
.ed-header__actions { display: flex; align-items: center; gap: var(--ed-s50); }
.ed-lang { display: flex; align-items: center; gap: var(--ed-s20); }
.ed-lang__item {
	appearance: none; border: 0; background: transparent; cursor: pointer;
	padding: 6px 8px; font-size: var(--ed-fs-s); font-weight: 400; line-height: 1.6;
	color: var(--ed-text); text-decoration: none;
	border-bottom: 2px solid transparent; transition: color 150ms ease;
}
.ed-lang__item:hover { color: var(--ed-teal); }
.ed-lang__item[aria-current="true"], .ed-lang__item[aria-expanded="true"] { font-weight: 700; color: var(--ed-teal); border-bottom-color: var(--ed-green); }
.ed-header__cta {
	display: inline-flex; align-items: center; height: 48px; padding: 0 var(--ed-s40);
	background: var(--ed-teal); color: var(--ed-white);
	font-size: var(--ed-fs-s); font-weight: 700; text-decoration: none;
	border-radius: var(--ed-r-s); transition: background-color 200ms ease; white-space: nowrap;
}
.ed-header__cta:hover { background: var(--ed-deep); color: var(--ed-white); }

/* ---------- WeChat panel (index.html:97-104) ---------- */
.ed-wechat { background: var(--ed-grey); border-bottom: 1px solid var(--wp--custom--line--hair); padding: var(--ed-s60) 0; }
.ed-wechat__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--ed-s40); text-align: center; }
.ed-wechat .ed-round-close { position: absolute; right: 0; top: 0; }
.ed-wechat__title { max-width: 860px; color: var(--ed-teal); font-size: var(--ed-fs-xl); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.ed-wechat__title:focus { outline: none; }
.ed-wechat__title:focus-visible { outline: 3px solid var(--ed-deep); }
.ed-wechat__zh { color: var(--ed-teal); font-size: var(--ed-fs-l); line-height: 1.4; font-weight: 700; }
.ed-wechat__qr {
	display: block; width: var(--wp--custom--qr); height: var(--wp--custom--qr);
	padding: var(--ed-s30); background: var(--ed-white); border-radius: var(--ed-r-m);
	box-shadow: var(--wp--custom--shadow--qr); object-fit: contain;
}

/* ---------- side rail (index.html:123-130) ---------- */
/* Below 1280: the side menu becomes a sticky, sideways-scrolling bar under the header (Han, 16 Nov). */
@property --ed-fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --ed-fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@media (max-width: 1279px) {
	html:has(body.ed-has-rail) { scroll-padding-top: calc(var(--ed-header-h) + 52px); }
	.ed-has-rail .ed-tile { scroll-margin-top: calc(var(--ed-header-h) + 60px); }
	.ed-has-rail .ed-section { scroll-margin-top: calc(var(--ed-header-h) + 52px); }
	.ed-rail {
		position: sticky; top: var(--ed-header-h); z-index: 35;
		background: var(--ed-white); border-bottom: 1px solid var(--wp--custom--line--hair);
		box-shadow: var(--wp--custom--shadow--event);
	}
	.admin-bar .ed-rail { top: calc(var(--ed-header-h) + var(--wp-admin--admin-bar--height, 0px)); }
	.ed-rail .ed-rail__title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.ed-rail .ed-rail__list {
		flex-direction: row; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain;
		padding: 8px var(--ed-gutter); scroll-padding-inline: var(--ed-gutter);
		scroll-snap-type: x proximity; scrollbar-width: none;
		--ed-fade-size: 32px;
		mask:
			linear-gradient(black, black) no-clip subtract,
			linear-gradient(to right, black, transparent) 0 0 / var(--ed-fade-start) 100% no-repeat no-clip,
			linear-gradient(to right, transparent, black) 100% 0 / var(--ed-fade-end) 100% no-repeat no-clip;
	}
	.ed-rail .ed-rail__list::-webkit-scrollbar { display: none; }
	.ed-rail .ed-rail__list > li { flex: none; scroll-snap-align: start; }
	.ed-rail .ed-rail__link { white-space: nowrap; padding: 8px 12px; min-height: 36px; }
	@supports (animation-timeline: scroll()) {
		.ed-rail .ed-rail__list {
			animation: ed-fade-in-start linear both, ed-fade-out-end linear both;
			animation-timeline: scroll(self inline);
			animation-range: 0 var(--ed-fade-size), calc(100% - var(--ed-fade-size)) 100%;
		}
	}
	@supports not (animation-timeline: scroll()) {
		.ed-rail .ed-rail__list { transition: --ed-fade-start .2s, --ed-fade-end .2s; }
		.ed-rail .ed-rail__list.more-start { --ed-fade-start: var(--ed-fade-size); }
		.ed-rail .ed-rail__list.more-end { --ed-fade-end: var(--ed-fade-size); }
	}
}
@keyframes ed-fade-in-start { to { --ed-fade-start: var(--ed-fade-size); } }
@keyframes ed-fade-out-end { from { --ed-fade-end: var(--ed-fade-size); } }
@media (min-width: 1280px) {
	.ed-rail {
		position: fixed; left: var(--ed-s40);
		top: calc(50% + var(--ed-header-h) / 2); transform: translateY(-50%);
		z-index: 30; width: var(--wp--custom--rail-width);
		max-height: calc(100vh - var(--ed-header-h) - var(--ed-s60)); overflow-y: auto;
		background: var(--ed-white); border-radius: var(--ed-r-m);
		box-shadow: var(--wp--custom--shadow--rail);
		padding: var(--ed-s30) var(--ed-s20);
		display: flex; flex-direction: column; gap: var(--ed-s20);
	}
}
.ed-rail__title { padding: 0 12px; color: var(--ed-text); font-size: 12px; /* token-lint-ok: rail eyebrow, design 124 */ line-height: 1.3; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ed-rail__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ed-rail__link {
	display: flex; align-items: center; gap: 10px; padding: 6px 12px;
	border-radius: var(--ed-r-s); background: transparent; color: var(--ed-ink);
	font-size: var(--ed-fs-xs); line-height: 1.3; font-weight: 400; text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}
.ed-rail__link:hover { color: var(--ed-teal); text-decoration: underline; text-underline-offset: 3px; }
.ed-rail__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ed-text); background: transparent; }
.ed-rail__link[aria-current="true"] { background: var(--ed-grey); color: var(--ed-teal); font-weight: 700; }
.ed-rail__link[aria-current="true"] .ed-rail__dot { border-color: var(--ed-green); background: var(--ed-green); }

/* ---------- 01 hero (index.html:137-152) ---------- */
.ed-hero { height: 760px; overflow: hidden; background: var(--ed-deep); }
.ed-hero__poster, .ed-hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 50%;
}
.ed-hero__scrim { position: absolute; inset: 0; background: var(--wp--custom--scrim--hero); }
.ed-hero__inner {
	position: relative; height: 100%;
	display: flex; flex-direction: column; justify-content: center; gap: var(--ed-s50);
}
.ed-hero__title { max-width: 760px; color: var(--ed-white); font-size: var(--ed-fs-display); line-height: 1.08; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.ed-hero__line { display: block; }
.ed-hero__line--green { color: var(--ed-green); }
.ed-hero__sub { max-width: 600px; color: var(--ed-white); font-size: var(--ed-fs-l); line-height: 1.5; text-wrap: pretty; }
.ed-hero__ctas { display: flex; gap: var(--ed-s30); padding-top: var(--ed-s30); }
.ed-hero__toggle {
	position: absolute; right: var(--ed-s50); bottom: var(--ed-s50);
	width: 48px; height: 48px; border-radius: 50%;
	border: 1.5px solid var(--wp--custom--line--on-dark-strong);
	background: var(--wp--custom--scrim--control); color: var(--ed-white); /* a11y: design 0.35 failed 3:1 over video (1.4.11) */
	font-size: var(--ed-fs-s); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}

/* ---------- 02 about (index.html:157-182) ---------- */
.ed-about { background: var(--ed-white); padding: var(--ed-s80) 0; }
.ed-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ed-s70); align-items: center; }
.ed-about__text { display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-about__lead p { color: var(--ed-ink); font-size: var(--ed-fs-l); line-height: 1.5; text-wrap: pretty; }
.ed-about__body { display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-about__body p { color: var(--ed-text); font-size: var(--ed-fs-m); line-height: 1.65; text-wrap: pretty; }
.ed-about__text strong { color: var(--ed-teal); }
.ed-about__link { display: flex; padding-top: var(--ed-s20); }
.ed-about__media { position: relative; padding-left: var(--ed-s60); }
.ed-about__img { display: block; width: 100%; height: 620px; object-fit: cover; object-position: 38% 60%; border-radius: var(--ed-r-m); }
.ed-round-btn {
	position: absolute; left: -36px; bottom: -40px; width: 216px; height: 216px; border-radius: 50%;
	background: var(--ed-gold); color: var(--ed-deep); text-decoration: none;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--wp--custom--shadow--round); border: 6px solid var(--ed-white);
	transition: transform 300ms var(--ed-ease), box-shadow 300ms ease;
}
.ed-round-btn:hover { box-shadow: var(--wp--custom--shadow--round-hover); color: var(--ed-deep); transform: scale(1.05); }
.ed-round-btn__ring { position: absolute; inset: 8px; border-radius: 50%; border: 1.5px solid var(--wp--custom--line--ring); }
.ed-round-btn__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--ed-s20); padding: 0 28px; text-align: center; }
.ed-round-btn__label { font-size: var(--ed-fs-l); line-height: 1.2; font-weight: 700; }
.ed-round-btn__arrow { font-size: var(--ed-fs-l); line-height: 1; }

/* ---------- 03 expanding tiles (index.html:187-316) ---------- */
.ed-tiles { background: var(--ed-grey); padding: var(--ed-s80) 0; }
.ed-tiles__wrap { display: flex; flex-direction: column; gap: var(--ed-s60); }
.ed-tiles__row { display: flex; gap: var(--ed-s30); align-items: stretch; min-height: 640px; }
.ed-tile {
	flex: 0 0 220px; cursor: pointer; position: relative; overflow: hidden;
	border-radius: var(--ed-r-m); background: var(--ed-white);
	display: flex; flex-direction: column; min-width: 0;
	transition: box-shadow 250ms ease;
}
.ed-tile:hover { box-shadow: var(--wp--custom--shadow--tile-hover); }
.ed-tile.is-open { flex: 1 1 0%; cursor: auto; }
.ed-tile__closed { display: contents; }
.ed-tile.is-open .ed-tile__closed { display: none; }
.ed-tile__open { display: none; }
.ed-tile.is-open .ed-tile__open { display: flex; flex-direction: column; }
.ed-tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-tile__scrim-top { position: absolute; inset: 0; background: var(--wp--custom--scrim--tile-closed); }
.ed-tile__closed-body { position: relative; padding: var(--ed-s40); display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-tile__num { color: var(--ed-green); font-size: var(--ed-fs-l); line-height: 1.2; font-weight: 700; }
.ed-tile__closed-title { color: var(--ed-white); font-size: var(--ed-fs-l); line-height: 1.25; font-weight: 700; }
.ed-tile__trigger { appearance: none; border: 0; background: transparent; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ed-tile__trigger::after { content: ""; position: absolute; inset: 0; }
.ed-tile__plus {
	width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ed-white); color: var(--ed-white);
	display: flex; align-items: center; justify-content: center; font-size: var(--ed-fs-l);
}
.ed-tile__banner { position: relative; height: 240px; flex: none; }
.ed-tile__scrim-side { position: absolute; inset: 0; background: var(--wp--custom--scrim--tile-open); }
.ed-tile__banner-text { position: absolute; left: var(--ed-s60); bottom: var(--ed-s50); display: flex; flex-direction: column; gap: var(--ed-s20); }
.ed-tile__open-title { color: var(--ed-white); font-size: var(--ed-fs-2xl); line-height: 1.1; font-weight: 700; }
.ed-tile__items { padding: var(--ed-s30) var(--ed-s60) var(--ed-s60); display: flex; flex-direction: column; }
.ed-tile__item {
	display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--ed-s40);
	padding: var(--ed-s40) 0; border-bottom: 1px solid var(--wp--custom--line--tile);
}
.ed-tile__item:last-child { padding-bottom: 0; border-bottom: 0; }
.ed-tile__item-head { color: var(--ed-teal); font-size: var(--ed-fs-l); line-height: 1.3; font-weight: 700; }
.ed-tile__item-head a { color: var(--ed-teal); text-decoration: none; border-bottom: 2px solid var(--ed-green); }
.ed-tile__item-text { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-tile__item-text p { color: var(--ed-text); font-size: var(--ed-fs-s); line-height: 1.65; text-wrap: pretty; }
.ed-tile__item-text .ed-tile__note { color: var(--ed-ink); font-weight: 700; }
.ed-band {
	display: flex; align-items: center; justify-content: space-between; gap: var(--ed-s50);
	padding: var(--ed-s50) var(--ed-s60); background: var(--ed-deep); border-radius: var(--ed-r-m);
}
.ed-band__text { color: var(--ed-white); font-size: var(--ed-fs-xl); line-height: 1.25; font-weight: 700; }
.ed-band .ed-btn { flex: none; }

/* ---------- 04 map facts (index.html:321-358) ---------- */
.ed-mapfacts { background: var(--ed-teal); padding: var(--ed-s80) 0; overflow: hidden; }
.ed-mapfacts__wrap { display: flex; flex-direction: column; gap: var(--ed-s70); }
.ed-mapfacts__h2 { color: var(--ed-white); font-weight: 700; display: flex; flex-direction: column; gap: var(--ed-s20); }
.ed-mapfacts__h2-main { font-size: var(--ed-fs-3xl); line-height: 1.1; }
.ed-mapfacts__h2-sub { font-size: var(--ed-fs-xl); line-height: 1.3; color: var(--ed-grey); font-weight: 400; }
.ed-mapfacts__grid {
	position: relative; display: grid; grid-template-columns: 360px minmax(0, 1fr) 360px;
	grid-template-rows: auto auto auto auto; row-gap: var(--ed-s40); column-gap: 0;
}
.ed-mapfacts__map {
	grid-column: 2; grid-row: 1 / 5; margin: -24px -110px; min-height: 720px;
	display: flex; align-items: center; justify-content: center; z-index: 0;
}
.ed-mapfacts__map-img { display: block; height: 100%; max-height: 780px; width: auto; max-width: 100%; object-fit: contain; filter: var(--wp--custom--shadow--map); }
.ed-fact {
	position: relative; z-index: 1; background: var(--ed-grey); border-radius: var(--ed-r-s);
	padding: var(--ed-s50); display: flex; flex-direction: column; gap: var(--ed-s30);
	box-shadow: var(--wp--custom--shadow--fact); transition: transform 250ms ease, box-shadow 250ms ease;
}
.ed-fact:hover { transform: translateY(-6px); box-shadow: var(--wp--custom--shadow--fact-hover); }
.ed-fact--left { grid-column: 1; }
.ed-fact--right { grid-column: 3; }
.ed-fact__icon {
	width: var(--wp--custom--icon--m); height: var(--wp--custom--icon--m); border-radius: 50%;
	background: var(--ed-white); display: flex; align-items: center; justify-content: center; flex: none;
}
.ed-fact__icon svg { display: block; }
.ed-fact__title { color: var(--ed-deep); font-size: var(--ed-fs-l); line-height: 1.25; font-weight: 700; }
.ed-fact__text { color: var(--ed-ink); font-size: var(--ed-fs-s); line-height: 1.6; text-wrap: pretty; }

/* ---------- 05 flagship video (index.html:363-370) ---------- */
.ed-flagship { background: var(--ed-white); padding: var(--ed-s80) 0; }
.ed-flagship__wrap { display: flex; flex-direction: column; gap: var(--ed-s60); }
.ed-video-frame {
	position: relative; aspect-ratio: var(--wp--custom--aspect--card);
	border-radius: var(--ed-r-m); overflow: hidden; background: var(--ed-deep);
}
.ed-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a11y 2.4.7: the frame clips the player's own ring, so show it on the frame */
.ed-video-frame:has(video:focus-visible), .ed-video-frame:focus-within { overflow: visible; outline: 3px solid var(--ed-deep); outline-offset: 0; box-shadow: 0 0 0 6px var(--ed-yellow); }
.ed-video-frame:has(video:focus-visible) video, .ed-video-frame:focus-within video { border-radius: var(--ed-r-m); }

/* ---------- 06 drop of milk (index.html:375-400, script 359-363) ---------- */
.ed-drop { background: var(--ed-teal); padding: var(--ed-s80) 0; }
.ed-drop__wrap { display: flex; flex-direction: column; gap: var(--ed-s70); }
.ed-drop__h2 { max-width: 860px; color: var(--ed-white); }
.ed-drop__grid {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto auto; gap: var(--ed-s40);
}
.ed-drop__point {
	min-height: 280px; background: var(--ed-deep); border-radius: var(--ed-r-s);
	display: flex; flex-direction: column; gap: var(--ed-s40);
	transition: background-color 250ms ease;
}
.ed-drop__point:hover { background: var(--wp--custom--scrim--drop-hover); }
.ed-drop__point--left { padding: 40px 228px 40px 40px; align-items: flex-start; text-align: left; }
.ed-drop__point--right { padding: 40px 40px 40px 228px; align-items: flex-end; text-align: right; }
.ed-drop__point--1 { grid-column: 1; grid-row: 1; }
.ed-drop__point--2 { grid-column: 2; grid-row: 1; }
.ed-drop__point--3 { grid-column: 1; grid-row: 2; }
.ed-drop__point-head { display: flex; flex-direction: row; align-items: center; gap: var(--ed-s30); }
.ed-drop__point--right .ed-drop__point-head { flex-direction: row-reverse; }
.ed-drop__num {
	flex: none; width: 56px; height: 56px; background: var(--ed-green-fill); color: var(--ed-white);
	display: flex; align-items: center; justify-content: center; font-size: var(--ed-fs-xl); font-weight: 700;
}
.ed-drop__title { color: var(--ed-white); font-size: var(--ed-fs-xl); line-height: 1.2; font-weight: 700; text-wrap: balance; }
.ed-drop__text { color: var(--ed-grey); font-size: var(--ed-fs-m); line-height: 1.6; text-wrap: pretty; }
.ed-drop__photo {
	grid-column: 2; grid-row: 2; position: relative; overflow: hidden; min-height: 280px;
	border: 1.5px solid var(--wp--custom--line--on-dark); border-radius: var(--ed-r-s);
	padding: 40px 40px 40px 228px; display: flex; align-items: flex-end; justify-content: flex-end;
}
.ed-drop__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.ed-drop__photo .ed-btn { position: relative; }
.ed-drop__disc {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 400px; height: 400px; border-radius: 50%; background: var(--ed-teal);
	box-shadow: var(--wp--custom--shadow--drop); border: 1.5px solid var(--wp--custom--line--disc);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--ed-s40);
	pointer-events: none;
}
.ed-drop__shape { display: block; width: 170px; height: 170px; margin-top: 40px; background: var(--ed-grey); border-radius: 0 50% 50% 50%; transform: rotate(45deg); }
.ed-drop__art { max-width: 240px; max-height: 240px; object-fit: contain; }

/* ---------- 07 certifications (index.html:405-427) ---------- */
.ed-certs { background: var(--ed-grey); padding: var(--ed-s80) 0; }
.ed-certs__wrap { display: flex; flex-direction: column; gap: var(--ed-s60); }
.ed-certs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ed-s40); }
.ed-cert {
	background: var(--ed-white); border-radius: var(--ed-r-m); border-top: 4px solid var(--ed-green);
	padding: var(--ed-s50); display: flex; flex-direction: column; gap: var(--ed-s30);
	transition: transform 250ms ease, box-shadow 250ms ease;
}
.ed-cert:hover { transform: translateY(-6px); box-shadow: var(--wp--custom--shadow--card-hover); }
.ed-cert__logo { height: var(--wp--custom--logo--cert); display: flex; align-items: center; }
.ed-cert__logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.ed-cert__name { color: var(--ed-teal); font-size: var(--ed-fs-xl); line-height: 1.2; font-weight: 700; text-wrap: balance; }
.ed-cert__sub { color: var(--ed-deep); font-size: var(--ed-fs-m); line-height: 1.4; font-weight: 700; }
.ed-cert__text { color: var(--ed-text); font-size: var(--ed-fs-s); line-height: 1.65; text-wrap: pretty; }
.ed-cert__more { margin-top: auto; padding-top: var(--ed-s30); display: flex; }

/* ---------- 08 applications (index.html:432-477) ---------- */
.ed-apps { background: var(--ed-white); padding: var(--ed-s80) 0; }
.ed-apps__wrap { display: flex; flex-direction: column; gap: var(--ed-s60); }
.ed-apps__intro { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--ed-s40); text-align: center; }
.ed-apps__copy { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-apps__lead { color: var(--ed-ink); font-size: var(--ed-fs-l); line-height: 1.5; text-wrap: pretty; }
.ed-apps__body { color: var(--ed-text); font-size: var(--ed-fs-m); line-height: 1.6; text-wrap: pretty; }
.ed-apps__picker { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-apps__select { color: var(--ed-teal); font-size: var(--ed-fs-s); font-weight: 700; }
.ed-apps__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ed-s30); }
.ed-app-tab {
	position: relative; appearance: none; border: 0; padding: 0; cursor: pointer;
	height: 280px; border-radius: var(--ed-r-m); overflow: hidden; background: var(--ed-deep); text-align: left;
}
.ed-app-tab__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ed-ease); }
.ed-app-tab:hover .ed-app-tab__img { transform: scale(1.05); }
.ed-app-tab__scrim { position: absolute; inset: 0; background: var(--wp--custom--scrim--app-off); pointer-events: none; }
.ed-app-tab[aria-selected="true"] .ed-app-tab__scrim { background: var(--wp--custom--scrim--app-on); }
.ed-app-tab__title {
	position: absolute; left: var(--ed-s40); right: var(--ed-s40); bottom: var(--ed-s40);
	color: var(--ed-white); font-size: var(--ed-fs-l); line-height: 1.25; font-weight: 700; text-wrap: balance; pointer-events: none;
}
.ed-app-tab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: transparent; pointer-events: none; }
.ed-app-tab[aria-selected="true"] .ed-app-tab__bar { background: var(--ed-green); }
.ed-app-panel__inner {
	background: var(--ed-grey); border-radius: var(--ed-r-m); padding: var(--ed-s60);
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--ed-s70);
}
.ed-app-panel__main { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-app-panel__title { color: var(--ed-teal); font-size: var(--ed-fs-2xl); line-height: 1.15; font-weight: 700; }
.ed-app-panel__text { color: var(--ed-ink); font-size: var(--ed-fs-m); line-height: 1.65; text-wrap: pretty; }
.ed-app-panel__side { display: flex; flex-direction: column; gap: var(--ed-s40); justify-content: space-between; }
.ed-app-panel__side > div:last-child { display: flex; }
.ed-app-panel__ings { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-app-panel__ings-label { color: var(--ed-deep); font-size: var(--ed-fs-s); font-weight: 700; }
.ed-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ed-s20); }
.ed-pill {
	padding: 8px 16px; border-radius: 999px; background: var(--ed-white);
	border: 1.5px solid var(--ed-teal); color: var(--ed-teal);
	font-size: var(--ed-fs-s); font-weight: 700; line-height: 1.3;
	transition: background-color 200ms ease, color 200ms ease; cursor: default;
}
.ed-pill:hover { background: var(--ed-teal); color: var(--ed-white); }

/* ---------- 09 video cards (index.html:482-501) ---------- */
.ed-videos { background: var(--ed-deep); padding: var(--ed-s80) 0; }
.ed-videos__wrap { display: flex; flex-direction: column; gap: var(--ed-s60); }
.ed-videos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ed-s40); }
.ed-vcard { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-vcard__link { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--ed-r-m); overflow: hidden; background: var(--ed-teal); }
.ed-vcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ed-ease); }
.ed-vcard__link:hover .ed-vcard__img { transform: scale(1.05); }
.ed-vcard__scrim { position: absolute; inset: 0; background: var(--wp--custom--scrim--video); pointer-events: none; }
.ed-vcard__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 64px; height: 64px; border-radius: 50%; background: var(--ed-green-fill); color: var(--ed-white);
	display: flex; align-items: center; justify-content: center; font-size: 22px; /* token-lint-ok: play glyph, design 494 */ padding-left: 5px; pointer-events: none;
}
.ed-vcard__title { color: var(--ed-white); font-size: var(--ed-fs-l); line-height: 1.3; font-weight: 700; }

/* video dialog (index.html:107-117) — native <dialog> */
.ed-video-dialog { border: 0; padding: var(--ed-s40); background: transparent; color: var(--ed-white); max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; }
.ed-video-dialog[open] { display: flex; align-items: center; justify-content: center; }
.ed-video-dialog:modal { overscroll-behavior: contain; }
.ed-video-dialog::backdrop { background: var(--wp--custom--scrim--backdrop); overflow: hidden; overscroll-behavior: contain; }
.ed-video-dialog__inner { width: min(1100px, 100%); display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-video-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ed-s30); }
.ed-video-dialog__head form { margin: 0; }
.ed-video-dialog__title { color: var(--ed-white); font-size: var(--ed-fs-xl); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.ed-video-dialog__video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 160px); background: var(--wp--custom--scrim--video-bg); border-radius: var(--ed-r-m); }

/* ---------- 10 coverage + press cards (index.html:506-538, 758-776) ---------- */
.ed-coverage { background: var(--ed-white); padding: var(--ed-s80) 0; }
.ed-coverage__wrap { display: flex; flex-direction: column; gap: var(--ed-s60); }
.ed-coverage__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ed-s50); }
.ed-coverage__list { display: flex; flex-direction: column; gap: var(--ed-s40); scroll-margin-top: 112px; }
.ed-rule-head { display: flex; align-items: center; gap: var(--ed-s30); }
.ed-rule-head__title { flex: none; color: var(--ed-teal); font-size: var(--ed-fs-2xl); line-height: 1.15; font-weight: 700; }
.ed-rule-head__title--sm { color: var(--ed-deep); font-size: var(--ed-fs-m); line-height: 1.3; }
.ed-rule-head__rule { flex: 1; height: 1px; background: var(--wp--custom--line--rule); }
.ed-press-grid { display: grid; gap: var(--ed-s40); }
.ed-press-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ed-press-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-press-card {
	display: flex; flex-direction: column; background: var(--ed-grey); border-radius: var(--ed-r-m); overflow: hidden;
	transition: transform 250ms ease, box-shadow 250ms ease; scroll-margin-top: calc(var(--ed-header-h) + 24px);
}
.ed-press-card:hover { transform: translateY(-6px); box-shadow: var(--wp--custom--shadow--card-hover); }
.ed-press-card__img { display: block; width: 100%; height: auto; aspect-ratio: var(--wp--custom--aspect--card); object-fit: cover; }
.ed-press-card__img--empty { background: var(--ed-deep); }
.ed-press-card__body { flex: 1; padding: var(--ed-s40); display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-press-card__place { color: var(--ed-text); font-size: var(--ed-fs-xs); line-height: 1.4; font-weight: 700; }
.ed-press-card__title { color: var(--ed-deep); font-size: var(--ed-fs-m); line-height: 1.35; font-weight: 700; text-wrap: pretty; }
.ed-press-card__sub { color: var(--ed-text); font-size: var(--ed-fs-xs); line-height: 1.6; text-wrap: pretty; }
.ed-press-card__more { margin-top: auto; padding-top: var(--ed-s20); display: flex; }
.ed-press-list { background: var(--ed-white); padding: var(--ed-s80) 0; }
.ed-pager { margin-top: var(--ed-s60); display: flex; gap: var(--ed-s30); flex-wrap: wrap; font-size: var(--ed-fs-s); font-weight: 700; }
.ed-pager .page-numbers { color: var(--ed-teal); text-decoration: none; padding: 6px 10px; border-radius: var(--ed-r-s); }
.ed-pager .page-numbers.current { background: var(--ed-grey); }

/* ---------- 11 business + events (index.html:543-605) ---------- */
.ed-biz { background: var(--ed-grey); }
.ed-biz__band { background: var(--ed-teal); }
.ed-biz__band-inner {
	max-width: 1440px; margin: 0 auto 0 max(var(--ed-rail-space), calc((100% - 1440px) / 2));
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 560px;
}
.ed-biz__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.ed-biz__text { padding: var(--ed-s80) 120px var(--ed-s80) var(--ed-s70); display: flex; flex-direction: column; justify-content: center; gap: var(--ed-s40); }
.ed-biz__lead { color: var(--ed-white); font-size: var(--ed-fs-l); line-height: 1.5; text-wrap: pretty; }
.ed-biz__body { color: var(--ed-grey); font-size: var(--ed-fs-m); line-height: 1.6; text-wrap: pretty; }
.ed-biz__cta { display: flex; padding-top: var(--ed-s20); }
.ed-biz__events { padding: var(--ed-s80) 0; display: flex; flex-direction: column; gap: var(--ed-s60); }
.ed-biz__list { display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ed-s40); }
.ed-event {
	background: var(--ed-white); border-radius: var(--ed-r-m); overflow: hidden; display: flex; flex-direction: column;
	box-shadow: var(--wp--custom--shadow--event); transition: transform 250ms ease, box-shadow 250ms ease;
}
.ed-event:hover { transform: translateY(-6px); box-shadow: var(--wp--custom--shadow--card-hover); }
.ed-slides { position: relative; aspect-ratio: var(--wp--custom--aspect--card); overflow: hidden; background: var(--ed-deep); }
.ed-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 400ms ease; }
.ed-slide.is-active { opacity: 1; visibility: visible; }
.ed-slide__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ed-slides__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
	border: 0; padding: 0; background: var(--wp--custom--scrim--control); color: var(--ed-white);
	font-size: var(--ed-fs-l); line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center; transition: background-color 150ms ease; z-index: 1;
}
.ed-slides__arrow:hover { background: var(--ed-deep); }
.ed-slides__arrow--prev { left: 12px; }
.ed-slides__arrow--next { right: 12px; }
.ed-slides__dots {
	position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 1;
	display: flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 999px; background: var(--wp--custom--scrim--control);
}
.ed-slides__dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ed-slides__dot span { display: block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ed-white); background: transparent; }
.ed-slides__dot[aria-current="true"] span { background: var(--ed-white); }
.ed-event__body { flex: 1; padding: var(--ed-s50); display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-event__type { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--ed-grey); color: var(--ed-teal); font-size: var(--ed-fs-xs); font-weight: 700; }
.ed-event__title { color: var(--ed-deep); font-size: var(--ed-fs-l); line-height: 1.3; font-weight: 700; text-wrap: balance; }
.ed-event__meta { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--ed-s30); row-gap: 4px; font-size: var(--ed-fs-s); line-height: 1.4; }
.ed-event__meta dt { color: var(--ed-text); }
.ed-event__date { color: var(--ed-teal); font-weight: 700; }
.ed-event__city { color: var(--ed-ink); font-weight: 700; }
.ed-event__text { color: var(--ed-text); font-size: var(--ed-fs-s); line-height: 1.6; text-wrap: pretty; }
.ed-event__cta { margin-top: auto; padding-top: var(--ed-s20); display: flex; }

/* ---------- 12 study visit (index.html:610-627) ---------- */
.ed-visit { background: var(--ed-white); padding: var(--ed-s80) 0; }
.ed-visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ed-s70); align-items: center; }
.ed-visit__text { display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-visit__p { color: var(--ed-text); font-size: var(--ed-fs-m); line-height: 1.65; text-wrap: pretty; }
.ed-visit__cta { display: flex; padding-top: var(--ed-s20); }
.ed-visit__fig { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-visit__cap { color: var(--ed-deep); font-size: var(--ed-fs-s); font-weight: 700; }

/* ---------- 13 contact (index.html:632-687) ---------- */
.ed-contact { background: var(--ed-grey); padding: var(--ed-s80) 0; }
.ed-contact__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--ed-s70); align-items: start; }
.ed-contact__intro { display: flex; flex-direction: column; gap: var(--ed-s40); position: sticky; top: 136px; }
.ed-contact__h2 { color: var(--ed-teal); font-weight: 700; display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-contact__eyebrow { font-size: var(--ed-fs-m); line-height: 1.2; color: var(--ed-deep); }
.ed-contact__title { font-size: var(--ed-fs-3xl); line-height: 1.1; text-wrap: balance; }
.ed-contact__p { color: var(--ed-text); font-size: var(--ed-fs-m); line-height: 1.65; text-wrap: pretty; }
.ed-form-placeholder { background: var(--ed-white); border-radius: var(--ed-r-m); padding: var(--ed-s60); color: var(--ed-text); font-size: var(--ed-fs-s); border: 1.5px dashed var(--wp--custom--line--field); }

/* Gravity Forms (gravity-theme framework) → design form 650-683 */
.ed-contact .gform_wrapper.gravity-theme {
	margin: 0; background: var(--ed-white); border-radius: var(--ed-r-m); padding: var(--ed-s60);
}
.ed-contact .gform_wrapper.gravity-theme .gform_heading { margin: 0; }
.ed-contact .gform_wrapper.gravity-theme .gform_required_legend { color: var(--ed-text); font-size: var(--ed-fs-xs); line-height: 1.6; margin: 0 0 var(--ed-s40); }
.ed-contact .gform_wrapper.gravity-theme .gfield_required { color: var(--ed-error); }
.ed-contact .gform_wrapper.gravity-theme .gform_fields { grid-column-gap: var(--ed-s40); grid-row-gap: var(--ed-s40); }
.ed-contact .gform_wrapper.gravity-theme .gfield_label {
	color: var(--ed-ink); font-size: var(--ed-fs-s); font-weight: 700; line-height: 1.3; margin-bottom: var(--ed-s20); padding: 0;
}
.ed-contact .gform_wrapper.gravity-theme .gfield_required .gfield_required_asterisk, .ed-contact .gform_wrapper.gravity-theme .gfield_required_text { color: var(--ed-error); font-size: var(--ed-fs-s); }
.ed-contact .gform_wrapper.gravity-theme input[type="text"],
.ed-contact .gform_wrapper.gravity-theme input[type="email"],
.ed-contact .gform_wrapper.gravity-theme select,
.ed-contact .gform_wrapper.gravity-theme textarea {
	width: 100%; border: 1.5px solid var(--wp--custom--line--field); border-radius: var(--ed-r-s);
	background: var(--ed-white); font-family: inherit; font-size: var(--ed-fs-s); color: var(--ed-ink);
	transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ed-contact .gform_wrapper.gravity-theme input[type="text"],
.ed-contact .gform_wrapper.gravity-theme input[type="email"],
.ed-contact .gform_wrapper.gravity-theme select { height: 52px; padding: 0 16px; }
.ed-contact .gform_wrapper.gravity-theme select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.ed-contact .gform_wrapper.gravity-theme .ginput_container_select { position: relative; }
.ed-contact .gform_wrapper.gravity-theme .ginput_container_select::after {
	content: "▼"; content: "▼" / ""; position: absolute; /* decorative: empty alt so screen readers skip it */ right: 16px; top: 50%; transform: translateY(-50%);
	color: var(--ed-teal); font-size: 12px; /* token-lint-ok: select arrow glyph, design 669 */ pointer-events: none;
}
.ed-contact .gform_wrapper.gravity-theme textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 0; height: auto; }
.ed-contact .gform_wrapper.gravity-theme textarea.large { height: calc(5lh + 31px); }
.ed-contact .gform_wrapper.gravity-theme input:hover,
.ed-contact .gform_wrapper.gravity-theme select:hover,
.ed-contact .gform_wrapper.gravity-theme textarea:hover { border-color: var(--wp--custom--line--field-hover); }
.ed-contact .gform_wrapper.gravity-theme input:focus,
.ed-contact .gform_wrapper.gravity-theme select:focus,
.ed-contact .gform_wrapper.gravity-theme textarea:focus { border-color: var(--ed-teal); outline: none; box-shadow: var(--wp--custom--shadow--field-focus); }
.ed-contact .gform_wrapper.gravity-theme .gfield_error input,
.ed-contact .gform_wrapper.gravity-theme .gfield_error select,
.ed-contact .gform_wrapper.gravity-theme .gfield_error textarea { border-color: var(--ed-error); background: var(--wp--custom--scrim--error-field); }
.ed-contact .gform_wrapper.gravity-theme .gfield_error .gfield_label { color: var(--ed-ink); }
.ed-contact .gform_wrapper.gravity-theme .gfield_validation_message,
.ed-contact .gform_wrapper.gravity-theme .validation_message {
	background: none; border: 0; padding: 0; margin-top: var(--ed-s20);
	color: var(--ed-error); font-size: var(--ed-fs-xs); font-weight: 700; line-height: 1.4;
}
.ed-contact .gform_wrapper.gravity-theme .gform_validation_errors {
	margin: 0 0 var(--ed-s40); padding: 12px 16px; border: 0; border-radius: var(--ed-r-s); box-shadow: none;
	background: var(--wp--custom--scrim--error-bg);
}
.ed-contact .gform_wrapper.gravity-theme .gform_validation_errors > h2 {
	color: var(--ed-error); font-size: var(--ed-fs-s); font-weight: 700; line-height: 1.4; margin: 0;
}
.ed-contact .gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon { display: none; }
.ed-contact .gform_wrapper.gravity-theme .gform_validation_errors:focus { outline: none; box-shadow: none; }
.ed-contact .gform_wrapper.gravity-theme .gform_validation_errors > ol { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ed-contact .gform_wrapper.gravity-theme .gform_footer { margin: var(--ed-s40) 0 0; padding: var(--ed-s20) 0 0; }
.ed-contact .gform_wrapper.gravity-theme .ed-form-submit {
	appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
	height: 60px; padding: 0 var(--ed-s50); background: var(--ed-teal); color: var(--ed-white);
	font-size: var(--ed-fs-l); font-weight: 700; line-height: 1; border-radius: var(--ed-r-s);
	transition: gap 220ms ease, background-color 200ms ease, color 200ms ease;
}
.ed-contact .gform_wrapper.gravity-theme .ed-form-submit:hover { background: var(--ed-deep); gap: 18px; }
.ed-contact .gform_confirmation_message {
	background: var(--ed-white); border-radius: var(--ed-r-m); border-top: 4px solid var(--ed-green);
	padding: var(--ed-s60); display: flex; flex-direction: column; gap: var(--ed-s30);
	color: var(--ed-teal); font-size: var(--ed-fs-xl); line-height: 1.25; font-weight: 700;
}
.ed-contact .gform_confirmation_message::before {
	content: "✓"; width: 56px; height: 56px; border-radius: 50%; background: var(--ed-green-fill); color: var(--ed-white);
	display: flex; align-items: center; justify-content: center; font-size: var(--ed-fs-xl); font-weight: 700;
}
.ed-contact .gform_wrapper .gfield--type-honeypot, .ed-contact .gform_wrapper .gform_validation_container { display: none !important; }

/* ---------- sources (index.html:692-711) ---------- */
.ed-sources { background: var(--ed-white); padding: var(--ed-s70) 0; border-top: 1px solid var(--wp--custom--line--hair); }
.ed-sources__wrap { display: flex; flex-direction: column; gap: var(--ed-s50); }
.ed-sources__head { display: flex; flex-direction: column; gap: var(--ed-s30); max-width: 760px; }
.ed-sources__h2 { color: var(--ed-teal); font-size: var(--ed-fs-xl); line-height: 1.2; font-weight: 700; }
.ed-sources__intro { color: var(--ed-text); font-size: var(--ed-fs-s); line-height: 1.6; text-wrap: pretty; }
.ed-sources__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ed-s40); }
.ed-sources__group { display: flex; flex-direction: column; gap: var(--ed-s30); padding-top: var(--ed-s30); border-top: 2px solid var(--ed-green); }
.ed-sources__title { color: var(--ed-deep); font-size: var(--ed-fs-s); line-height: 1.35; font-weight: 700; }
.ed-sources__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-sources__list li { font-size: var(--ed-fs-xs); line-height: 1.45; }
.ed-sources__list a {
	color: var(--ed-teal); text-decoration: underline; text-decoration-color: var(--wp--custom--line--underline);
	text-underline-offset: 3px; transition: color 150ms ease, text-decoration-color 150ms ease;
}
.ed-sources__list a:hover { color: var(--ed-deep); text-decoration-color: currentColor; }
.ed-sources__list svg { display: inline-block; margin-left: 4px; vertical-align: -1px; }

/* ---------- page header (index.html:719-725) ---------- */
.ed-page-header { background: var(--ed-teal); padding: var(--ed-s70) 0; }
.ed-page-header__inner { display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-crumbs { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--ed-s20); color: var(--ed-grey); font-size: var(--ed-fs-s); line-height: 1.4; flex-wrap: wrap; }
.ed-crumbs a { color: var(--ed-white); text-underline-offset: 3px; }
.ed-crumbs a:hover { color: var(--ed-white); text-decoration-thickness: 2px; }
.ed-page-header__title { color: var(--ed-white); font-size: var(--ed-fs-3xl); line-height: 1.1; font-weight: 700; }

/* ---------- about text (index.html:730-742) ---------- */
.ed-abouttext { background: var(--ed-white); padding: var(--ed-s80) 0; border-bottom: 1px solid var(--wp--custom--line--hair); }
.ed-abouttext__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--ed-s70); align-items: start; }
.ed-abouttext__logo {
	aspect-ratio: 1 / 1; background: var(--ed-grey); border-radius: var(--ed-r-m);
	display: flex; align-items: center; justify-content: center; padding: var(--ed-s60);
}
.ed-abouttext__logo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ed-abouttext__text { display: flex; flex-direction: column; gap: var(--ed-s30); }
.ed-abouttext__sub { color: var(--ed-deep); font-size: var(--ed-fs-l); line-height: 1.4; font-weight: 700; }
.ed-abouttext__p { color: var(--ed-text); font-size: var(--ed-fs-m); line-height: 1.65; text-wrap: pretty; }

/* ---------- single press release (index.html:784-800) ---------- */
.ed-release { background: var(--ed-white); padding: var(--ed-s70) 0 var(--ed-s80); }
.ed-release__inner { width: min(860px, calc(100% - 2 * var(--ed-gutter))); margin: 0 auto; display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-release__head { display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-release__back { display: flex; }
.ed-release__place { padding-top: var(--ed-s30); color: var(--ed-text); font-size: var(--ed-fs-s); line-height: 1.4; font-weight: 700; }
.ed-release__title { color: var(--ed-teal); font-size: var(--ed-fs-2xl); line-height: 1.15; font-weight: 700; text-wrap: balance; }
.ed-release__sub { color: var(--ed-deep); font-size: var(--ed-fs-l); line-height: 1.5; text-wrap: pretty; }
.ed-release__img { display: block; width: 100%; height: auto; aspect-ratio: var(--wp--custom--aspect--card); object-fit: cover; border-radius: var(--ed-r-m); }
.ed-release__body .wp-block-post-content { display: flex; flex-direction: column; gap: var(--ed-s40); padding-top: var(--ed-s30); }
.ed-release__body .wp-block-post-content > :where(p, h2, h3) { margin: 0; }
.ed-release__body h2 { padding-top: var(--ed-s30); color: var(--ed-teal); font-size: var(--ed-fs-xl); line-height: 1.25; font-weight: 700; text-wrap: balance; }
.ed-release__body h3 { color: var(--ed-teal); font-size: var(--ed-fs-l); line-height: 1.3; font-weight: 700; }
.ed-release__body p { color: var(--ed-ink); font-size: var(--ed-fs-m); line-height: 1.7; text-wrap: pretty; }
.ed-release__body ul { display: flex; flex-direction: column; gap: var(--ed-s20); padding-left: 1.25em; margin: 1em 0; color: var(--ed-ink); font-size: var(--ed-fs-m); line-height: 1.6; list-style: disc; } /* design keeps the UA list margin */
.ed-release__body li { padding-left: 4px; }
.ed-release__body figure { display: flex; flex-direction: column; gap: var(--ed-s20); margin: 1em 40px; } /* design keeps the UA figure margin */
.ed-release__body figure img { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; align-self: flex-start; border-radius: var(--ed-r-m); }
.ed-release__body figcaption { color: var(--ed-text); font-size: var(--ed-fs-xs); line-height: 1.5; margin: 0; text-align: left; }

/* ---------- prose pages (accessibility statement) ---------- */
.ed-prose { width: min(860px, calc(100% - 2 * var(--ed-gutter))); margin: 0 auto 0 max(var(--ed-gutter), calc((100% - var(--ed-content)) / 2)); padding: var(--ed-s70) 0 var(--ed-s80); display: flex; flex-direction: column; gap: var(--ed-s40); }
.ed-prose > * { margin: 0; }
.ed-prose h2 { padding-top: var(--ed-s30); color: var(--ed-teal); font-size: var(--ed-fs-xl); line-height: 1.25; font-weight: 700; }
.ed-prose h3 { color: var(--ed-teal); font-size: var(--ed-fs-l); line-height: 1.3; font-weight: 700; }
.ed-prose p, .ed-prose li { color: var(--ed-ink); font-size: var(--ed-fs-m); line-height: 1.7; }
.ed-prose ul { padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--ed-s20); }

/* ---------- footer (index.html:810-819) ---------- */
.ed-footer { background: var(--ed-grey); border-top: 1px solid var(--wp--custom--line--hair); }
.ed-footer__inner { padding-top: var(--ed-s40); display: flex; align-items: flex-end; gap: var(--ed-s50); }
.ed-footer__strip { flex: 1; min-width: 0; padding-bottom: var(--ed-s40); display: flex; align-items: center; gap: var(--ed-s50); }
.ed-footer__eu { flex: none; height: var(--wp--custom--logo--eu); width: auto; display: block; }
.ed-footer__partner { flex: none; height: var(--wp--custom--logo--partner); width: auto; display: block; }
.ed-footer__disclaimer { flex: 1; min-width: 0; color: var(--ed-ink); font-size: var(--ed-fs-xs); line-height: 1.6; text-wrap: pretty; }
.ed-footer__legal { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; margin-top: 6px; }
.ed-footer__legal .ed-footer__a11y { margin-top: 0; }
button.ed-btn { border: 0; cursor: pointer; font-family: inherit; }
.ed-footer__a11y { display: inline-block; margin-top: 6px; color: var(--ed-teal); font-size: var(--ed-fs-xs); font-weight: 700; text-underline-offset: 3px; }
.ed-footer__sig { flex: none; height: var(--wp--custom--logo--signature); width: auto; display: block; }

/* ---------- 404 ---------- */
.ed-404 { padding: var(--ed-s80) 0; }
.ed-404 .ed-wrap { display: flex; flex-direction: column; gap: var(--ed-s40); }

/* =====================================================================
 * Responsive layer (ledger B4, our authorship; desktop >= 1280 untouched)
 * ===================================================================== */
@media (max-width: 1279px) {
	.ed-tiles__row { min-height: 600px; }
	.ed-tile { flex-basis: 180px; }
	.ed-mapfacts__grid { grid-template-columns: 300px minmax(0, 1fr) 300px; }
	.ed-mapfacts__map { margin: -24px -80px; }
	.ed-drop__point--left { padding-right: 180px; }
	.ed-drop__point--right, .ed-drop__photo { padding-left: 180px; }
	.ed-drop__disc { width: 320px; height: 320px; }
	.ed-drop__shape { width: 136px; height: 136px; margin-top: 32px; }
	.ed-biz__text { padding-right: var(--ed-s60); }
}

@media (max-width: 1099px) {
	/* tiles stack: closed tiles become bars, the open tile reads full width */
	.ed-tiles__row { flex-direction: column; min-height: 0; }
	.ed-tile, .ed-tile.is-open { flex: none; }
	.ed-tile:not(.is-open) { min-height: 140px; }
	.ed-tile__scrim-top { background: var(--wp--custom--scrim--tile-bar); } /* a11y: titles + numbers sit mid-bar on stacked tiles */
	.ed-mapfacts__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--ed-s40); }
	.ed-mapfacts__map { grid-column: 1 / -1; grid-row: 1; margin: 0; min-height: 0; height: 420px; }
	.ed-fact { grid-row: auto !important; grid-column: auto; }
	.ed-drop__grid { grid-template-columns: minmax(0, 1fr); }
	.ed-drop__point, .ed-drop__photo { grid-column: 1 !important; grid-row: auto !important; padding: var(--ed-s50) !important; min-height: 0; }
	.ed-drop__point--right { align-items: flex-start; text-align: left; }
	.ed-drop__point--right .ed-drop__point-head { flex-direction: row; }
	.ed-drop__photo { min-height: 260px; }
	.ed-drop__disc { display: none; }
	.ed-certs__grid { grid-template-columns: minmax(0, 1fr); }
	.ed-apps__tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 0; padding-bottom: 4px; }
	.ed-app-tab { flex: 0 0 220px; height: 220px; scroll-snap-align: start; }
	.ed-app-panel__inner { grid-template-columns: minmax(0, 1fr); gap: var(--ed-s50); }
	.ed-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ed-press-grid--4, .ed-press-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ed-biz__band-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.ed-biz__img { height: 340px; }
	.ed-biz__text { padding: var(--ed-s70) var(--ed-gutter); }
	.ed-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ed-about__grid, .ed-visit__grid, .ed-contact__grid, .ed-abouttext__grid { grid-template-columns: minmax(0, 1fr); gap: var(--ed-s60); }
	.ed-about__media { padding-left: var(--ed-s60); margin-bottom: 40px; }
	.ed-about__img { height: 460px; }
	.ed-contact__intro { position: static; }
	.ed-abouttext__logo { max-width: 320px; }
	.ed-sources__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ed-footer__inner { flex-wrap: wrap; }
}

@media (max-width: 767px) {
	:root { --ed-header-h: 72px; }
	.ed-header__logo-img { height: 40px; }
	.ed-lang-zh .ed-header__logo-img { height: 48px; }
	.ed-header__inner { gap: var(--ed-s30); }
	.ed-header__actions { gap: var(--ed-s30); }
	.ed-lang { gap: 0; }
	.ed-lang__item { padding: 6px 6px; font-size: var(--ed-fs-xs); }
	.ed-header__cta { height: 40px; padding: 0 12px; font-size: var(--ed-fs-xs); }
	.ed-hero { height: auto; min-height: 600px; }
	.ed-hero__scrim { background: var(--wp--custom--scrim--hero-phone); } /* a11y: text spans the full width on phones */
	.ed-hero__inner { padding: var(--ed-s80) 0 calc(var(--ed-s80) + 32px); min-height: 600px; }
	.ed-hero__toggle { right: var(--ed-s30); bottom: var(--ed-s30); }
	.ed-btn--green, .ed-btn--teal { height: auto; min-height: 52px; padding: 12px 20px; line-height: 1.3; font-size: var(--ed-fs-s); }
	.ed-btn--xl { font-size: var(--ed-fs-m); }
	.ed-about__media { padding-left: 0; }
	.ed-about__img { height: 360px; }
	.ed-round-btn { width: 150px; height: 150px; left: -8px; bottom: -36px; border-width: 4px; }
	.ed-round-btn__inner { padding: 0 18px; }
	.ed-round-btn__label, .ed-round-btn__arrow { font-size: var(--ed-fs-s); }
	.ed-tile__banner { height: 200px; }
	.ed-tile__banner-text { left: var(--ed-s40); bottom: var(--ed-s40); }
	.ed-tile__items { padding: var(--ed-s20) var(--ed-s40) var(--ed-s40); }
	.ed-tile__item { grid-template-columns: minmax(0, 1fr); gap: var(--ed-s20); }
	.ed-band { flex-direction: column; align-items: flex-start; padding: var(--ed-s50) var(--ed-s40); }
	.ed-mapfacts__grid { grid-template-columns: minmax(0, 1fr); }
	.ed-mapfacts__map { height: 320px; }
	.ed-fact { padding: var(--ed-s40); }
	.ed-app-panel__inner { padding: var(--ed-s40); }
	.ed-videos__grid, .ed-press-grid--4, .ed-press-grid--3, .ed-events, .ed-sources__grid { grid-template-columns: minmax(0, 1fr); }
	.ed-coverage__head { flex-direction: column; align-items: flex-start; }
	.ed-rule-head__title { font-size: var(--ed-fs-xl); }
	.ed-biz__img { height: 260px; }
	.ed-event__body { padding: var(--ed-s40); }
	.ed-contact .gform_wrapper.gravity-theme { padding: var(--ed-s40); }
	.ed-contact .gform_wrapper.gravity-theme .ed-form-submit { height: 56px; font-size: var(--ed-fs-m); }
	.ed-footer__strip { flex-wrap: wrap; gap: var(--ed-s40); }
	.ed-footer__disclaimer { flex-basis: 100%; }
	.ed-footer__sig { height: 120px; margin-left: auto; }
	.ed-video-dialog { padding: var(--ed-s30); }
}

@media (max-width: 599px) {
	/* phones: logo + language switch only; every section CTA still leads to the form */
	.ed-header__cta { display: none; }
	.ed-header__logo-img { height: 36px; }
	/* a11y 1.4.10 reflow at 320px: the logo gives way to the language switch (VN logo is wider) */
	.ed-header__logo { flex: 0 1 auto; min-width: 0; }
	.ed-header__logo-img { width: auto; max-width: 100%; height: auto; max-height: 36px; }
	.ed-header__actions { flex: none; }
}

@media print {
	.ed-rail, .ed-header, .ed-hero__video, .ed-hero__toggle, .ed-video-dialog, .ed-slides__arrow, .ed-slides__dots { display: none !important; }
	[data-reveal], [data-reveal-group] > * { opacity: 1 !important; translate: none !important; scale: none !important; }
}
