/*
Theme Name: Economic Justice and Infrastructure (EJI)
Theme URI: https://economicjusticeinitiative.org/
Author: Economic Justice and Infrastructure
Author URI: https://economicjusticeinitiative.org/
Description: Block theme for the Economic Justice and Infrastructure (EJI) single-page site, "Where Digital Infrastructure Meets Main Street." Native Gutenberg: theme.json tokens, editable section patterns, WordPress-managed navigation, Leadership profiles, a Join EJI questionnaire with stored submissions and email delivery, and Posts support for future news.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eji-theme
Tags: one-column, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, block-patterns, block-styles
*/

/* ==========================================================================
   1. Fonts (self-hosted, Open Font License)
   ========================================================================== */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-display-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-display-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-display-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('assets/fonts/playfair-display-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('assets/fonts/source-sans-3-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('assets/fonts/source-sans-3-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 200 900; font-display: swap; src: url('assets/fonts/source-sans-3-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 200 900; font-display: swap; src: url('assets/fonts/source-sans-3-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   2. Design tokens (mirror theme.json palette for plain CSS)
   ========================================================================== */
:root {
	--eji-navy: #071C32;
	--eji-navy-2: #0B2545;
	--eji-navy-hover: #123A66;
	--eji-blue: #1769D1;
	--eji-sky: #8BC7F5;
	--eji-gold: #F1A72B;
	--eji-cream: #F6F2E9;
	--eji-white: #FFFFFF;
	--eji-ink: #20272D;
	--eji-mist: #D9E6F4;
	--eji-muted: #4A535B;
	--eji-error: #B3261E;
	--eji-slate: #B9C3CC;
	--eji-photo-fallback: #e6dfd0;

	--eji-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--eji-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--eji-container: 1400px;
	--eji-pad-y: clamp(64px, 8vw, 120px);
	--eji-pad-x: clamp(24px, 6vw, 96px);

	--eji-hair-dark: rgba(7, 28, 50, .2);
	--eji-hair-light: rgba(139, 199, 245, .3);
}

/* ==========================================================================
   3. Base
   ========================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--eji-cream);
	color: var(--eji-ink);
	font-family: var(--eji-sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
*, *::before, *::after { box-sizing: border-box; }

a { color: var(--eji-blue); text-decoration: none; }
a:hover { color: var(--eji-gold); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--eji-serif); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[id] { scroll-margin-top: 120px; }
input, select, button, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--eji-gold); outline-offset: 3px; }
.eji-section--cream :focus-visible,
.eji-section--white :focus-visible,
.eji-form :focus-visible { outline-color: var(--eji-blue); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--eji-gold); color: var(--eji-navy); padding: 12px 20px; font-weight: 700; }
.skip-link:focus { left: 16px; top: 16px; }

/* Flow-layout groups: spacing comes from flex/grid gaps, never from WP margins. */
.eji-section .wp-block-group > *,
.eji-hero .wp-block-group > *,
.eji-header__inner > *,
.eji-footer__inner .wp-block-group > * { margin-block-start: 0; margin-block-end: 0; }

/* ==========================================================================
   4. Shared primitives
   ========================================================================== */
.eji-container { max-width: var(--eji-container); margin-left: auto; margin-right: auto; }

.eji-section { padding: var(--eji-pad-y) var(--eji-pad-x); }
.eji-section--navy { background: var(--eji-navy); color: var(--eji-cream); }
.eji-section--cream { background: var(--eji-cream); color: var(--eji-ink); }
.eji-section--white { background: var(--eji-white); color: var(--eji-ink); }
.eji-section--rule-bottom { border-bottom: 1px solid var(--eji-navy); }
.eji-section--rule-top { border-top: 1px solid var(--eji-navy); }

/* Column stacks */
.wp-block-group.eji-stack { display: flex; flex-direction: column; gap: 28px; }
.wp-block-group.eji-stack--sm { gap: 20px; }
.wp-block-group.eji-stack--xs { gap: 12px; }
.wp-block-group.eji-stack--md { gap: 24px; }
.wp-block-group.eji-stack--lg { gap: 32px; }

/* Eyebrows & labels */
.eji-eyebrow {
	font-family: var(--eji-sans); font-size: 12px; letter-spacing: .28em; font-weight: 600;
	text-transform: uppercase; color: var(--eji-blue); line-height: 1.5;
}
.eji-section--navy .eji-eyebrow, .eji-eyebrow--sky { color: var(--eji-sky); }
.eji-eyebrow--gold { color: var(--eji-gold); font-weight: 700; }

.eji-label {
	font-family: var(--eji-sans); font-size: 11px; letter-spacing: .24em; font-weight: 700;
	text-transform: uppercase; color: var(--eji-blue); line-height: 1.5;
}
.eji-section--navy .eji-label, .eji-label--sky { color: var(--eji-sky); }
.eji-label--gold { color: var(--eji-gold); }
.eji-label--blue { color: var(--eji-blue); }
.eji-label--lg { font-size: 12px; }

/* Section header: eyebrow + H2 on the left, lead paragraph on the right */
.wp-block-group.eji-section-head {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 32px 40px; align-items: end; margin-bottom: 56px;
}
.wp-block-group.eji-section-head--lg { margin-bottom: 64px; }
.wp-block-group.eji-section-head__title { display: flex; flex-direction: column; gap: 20px; }
.wp-block-group.eji-section-head__text { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }

/* Display headings */
.eji-title {
	font-family: var(--eji-serif); font-weight: 700; color: var(--eji-navy);
	font-size: clamp(40px, 5vw, 84px); line-height: .98; letter-spacing: -.025em;
}
.eji-title--md { font-size: clamp(38px, 4.4vw, 72px); line-height: 1; letter-spacing: -.02em; }
.eji-title--lg { font-size: clamp(40px, 4.8vw, 80px); line-height: 1; letter-spacing: -.02em; }
.eji-title--xl { font-size: clamp(52px, 9vw, 168px); line-height: .92; letter-spacing: -.035em; }
.eji-title--join { font-size: clamp(40px, 5vw, 88px); line-height: .95; letter-spacing: -.03em; }
.eji-section--navy .eji-title, .eji-banner .eji-title, .eji-join .eji-title { color: var(--eji-cream); }
.eji-title em { font-style: italic; color: var(--eji-blue); }
.eji-section--navy .eji-title em, .eji-banner .eji-title em, .eji-join .eji-title em, .eji-hero__title em { color: var(--eji-gold); }

/* Lead paragraphs */
.eji-lead { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; max-width: 560px; }
.eji-lead--rule { border-left: 2px solid var(--eji-gold); padding-left: 24px; }
.eji-section--navy .eji-lead { color: var(--eji-mist); }
.eji-lead--narrow { max-width: 540px; }
.eji-note { font-size: 16px; line-height: 1.55; padding-left: 26px; }
.eji-statement {
	font-family: var(--eji-serif); font-size: clamp(21px, 1.7vw, 28px); line-height: 1.35;
	color: var(--eji-navy); max-width: 560px;
}
.eji-support { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; color: var(--eji-ink); max-width: 540px; }

/* Buttons (core/button with EJI block styles) */
.wp-block-buttons.eji-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.wp-block-buttons.eji-cta-row { margin-top: 56px; }
.wp-block-buttons.eji-cta-row--md { margin-top: 48px; }
.wp-block-button .wp-block-button__link {
	border-radius: 0; font-family: var(--eji-sans); font-weight: 700; font-size: 13px; letter-spacing: .16em;
	text-transform: uppercase; padding: 16px 28px; line-height: 1.2; text-decoration: none;
	background: var(--eji-navy); color: #fff; border: 0; display: inline-block;
	transition: background-color .2s ease, color .2s ease;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible { background: var(--eji-blue); color: #fff; }
.wp-block-button.is-style-eji-navy .wp-block-button__link { background: var(--eji-navy); color: #fff; }
.wp-block-button.is-style-eji-navy .wp-block-button__link:hover { background: var(--eji-blue); color: #fff; }
.wp-block-button.is-style-eji-gold .wp-block-button__link { background: var(--eji-gold); color: var(--eji-navy); }
.wp-block-button.is-style-eji-gold .wp-block-button__link:hover { background: #fff; color: var(--eji-navy); }
.wp-block-button.is-style-eji-blue .wp-block-button__link { background: var(--eji-blue); color: #fff; }
.wp-block-button.is-style-eji-blue .wp-block-button__link:hover { background: var(--eji-gold); color: var(--eji-navy); }
.wp-block-button.is-style-eji-text-link .wp-block-button__link {
	background: transparent; color: var(--eji-sky); font-weight: 600; font-size: 14px; letter-spacing: .04em;
	text-transform: none; border-bottom: 1px solid var(--eji-blue); padding: 0 0 2px; border-radius: 0;
}
.wp-block-button.is-style-eji-text-link .wp-block-button__link:hover { background: transparent; color: var(--eji-gold); border-bottom-color: var(--eji-gold); }
.eji-section--cream .wp-block-button.is-style-eji-text-link .wp-block-button__link,
.eji-section--white .wp-block-button.is-style-eji-text-link .wp-block-button__link { color: var(--eji-blue); }

/* Chips (core/list) */
ul.eji-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
ul.eji-chips li { border: 1px solid rgba(139, 199, 245, .45); padding: 8px 14px; font-size: 14px; font-weight: 600; line-height: 1.3; margin: 0; }
ul.eji-chips--light li { border-color: rgba(7, 28, 50, .35); font-size: 15px; color: var(--eji-navy); }

/* Photos */
.wp-block-image.eji-photo { margin: 0; overflow: hidden; background: var(--eji-navy-2); }
.wp-block-image.eji-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-block-image.eji-photo--portrait { aspect-ratio: 4 / 5; max-height: 760px; border-bottom: 3px solid var(--eji-blue); }
.eji-section--white .wp-block-image.eji-photo--portrait { background: var(--eji-photo-fallback); }

/* Masthead rows (HBCU, community benefit) */
.wp-block-group.eji-masthead {
	display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	border-top: 2px solid var(--eji-navy); border-bottom: 1px solid var(--eji-navy); padding: 14px 0;
}
.eji-masthead p { font-size: 12px; letter-spacing: .24em; font-weight: 700; color: var(--eji-navy); text-transform: uppercase; }
.wp-block-group.eji-masthead--open { border-bottom: 0; padding: 14px 0 0; margin-bottom: 32px; gap: 16px; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.eji-header {
	position: sticky; top: 0; z-index: 50; background: var(--eji-navy); color: var(--eji-cream);
	border-bottom: 1px solid rgba(139, 199, 245, .18);
}
.admin-bar .eji-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .eji-header { top: 46px; } }

.wp-block-group.eji-header__inner {
	max-width: var(--eji-container); margin: 0 auto; padding: 14px 28px;
	display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap;
}
.wp-block-group.eji-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.eji-brand .wp-block-site-logo { line-height: 0; }
.eji-brand .wp-block-site-logo img { width: 64px; height: auto; display: block; }
.wp-block-group.eji-brand__text { display: flex; flex-direction: column; line-height: 1; gap: 0; }
.eji-brand__name { font-family: var(--eji-serif); font-weight: 800; font-size: 22px; letter-spacing: .04em; line-height: 1; color: #fff; }
.eji-brand__name a { color: #fff; }
.eji-brand__name a:hover { color: var(--eji-gold); }
.eji-brand__sub { font-size: 9px; letter-spacing: .22em; font-weight: 600; color: var(--eji-sky); margin-top: 3px; text-transform: uppercase; line-height: 1.2; }

.wp-block-group.eji-header__nav { order: 3; flex: 1 1 100%; display: flex; justify-content: flex-end; min-width: 0; }
.eji-header__nav .wp-block-navigation { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--eji-cream); }
.eji-header__nav .wp-block-navigation__container { gap: 18px 22px; justify-content: flex-end; }
.eji-header .wp-block-navigation-item__content.wp-block-navigation-item__content { color: var(--eji-cream); }
.eji-header .wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.eji-header .wp-block-navigation-item__content.wp-block-navigation-item__content:focus-visible { color: var(--eji-gold); }

.wp-block-buttons.eji-header__join { margin-left: auto; }
.eji-header__join .wp-block-button .wp-block-button__link { font-size: 13px; letter-spacing: .14em; padding: 12px 20px; background: var(--eji-gold); color: var(--eji-navy); }
.eji-header__join .wp-block-button .wp-block-button__link:hover { background: #fff; color: var(--eji-navy); }

/* Mobile menu: hamburger below 768px (core switches at 600px; extend it) */
.eji-header .wp-block-navigation__responsive-container-open,
.eji-header .wp-block-navigation__responsive-container-close { color: var(--eji-cream); }
.eji-header .wp-block-navigation__responsive-container-open svg,
.eji-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
@media (min-width: 600px) and (max-width: 767.98px) {
	.eji-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.eji-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 767.98px) {
	.wp-block-group.eji-header__inner { flex-wrap: nowrap; gap: 12px 16px; padding: 12px 20px; }
	.wp-block-group.eji-header__nav { order: 3; flex: 0 0 auto; }
	.wp-block-buttons.eji-header__join { order: 2; margin-left: auto; }
	.eji-header__join .wp-block-button .wp-block-button__link { padding: 10px 14px; font-size: 12px; }
	.eji-brand__sub { display: none; }
}
.eji-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--eji-navy); color: var(--eji-cream); padding: 24px;
}
.eji-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; gap: 22px; }
.eji-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 22px; }
.eji-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--eji-serif); font-size: 26px; font-weight: 700; letter-spacing: 0;
}
.eji-header .wp-block-navigation__responsive-container-close { right: 24px; top: 24px; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.wp-block-group.eji-hero {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	background: var(--eji-navy); color: var(--eji-cream); padding: 0;
}
.wp-block-group.eji-hero__copy {
	padding: clamp(56px, 7vw, 112px) clamp(28px, 6vw, 96px); display: flex; flex-direction: column;
	justify-content: center; gap: 28px; position: relative;
}
.eji-hero__copy::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--eji-blue), transparent); }
.eji-hero__eyebrow {
	font-size: 12px; line-height: 1.6; letter-spacing: .22em; font-weight: 600; color: var(--eji-sky);
	text-transform: uppercase; position: relative; padding-left: 50px;
}
.eji-hero__eyebrow::before { content: ""; position: absolute; left: 0; top: 9px; width: 36px; height: 1px; background: var(--eji-blue); }
.eji-hero__title { font-family: var(--eji-serif); font-size: clamp(44px, 5.6vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.02em; color: var(--eji-cream); }
.eji-hero__title em { font-style: italic; color: var(--eji-gold); }
.eji-hero__lede { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.45; max-width: 560px; color: var(--eji-cream); font-weight: 500; }
.wp-block-group.eji-mission { border-left: 2px solid var(--eji-gold); padding-left: 20px; max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.eji-mission__text { font-size: 16px; line-height: 1.55; color: var(--eji-mist); }

.wp-block-group.eji-hero__media { position: relative; min-height: 560px; overflow: hidden; background: var(--eji-navy-2); }
.wp-block-image.eji-hero__photo { position: absolute; inset: -8% 0; margin: 0; background: var(--eji-navy); will-change: transform; }
.eji-hero__media .eji-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; transform: translateY(-20%); }
.wp-block-group.eji-hero__strip { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, var(--eji-navy) 60%); padding: 120px 24px 24px; }
.eji-hero__strip-label { font-size: 11px; letter-spacing: .24em; color: var(--eji-sky); font-weight: 600; margin-bottom: 12px; text-transform: uppercase; }
.wp-block-group.eji-hero__tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.eji-hero__tiles .wp-block-image { aspect-ratio: 1; overflow: hidden; margin: 0; background: var(--eji-blue); }
.eji-hero__tiles .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 559.98px) {
	.wp-block-group.eji-hero__tiles { grid-template-columns: repeat(3, 1fr); }
	.wp-block-group.eji-hero__media { min-height: 480px; }
}

/* ==========================================================================
   7. What EJI Does
   ========================================================================== */
.wp-block-group.eji-what { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.wp-block-group.eji-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.eji-photo-grid .wp-block-image { aspect-ratio: 4 / 5; margin: 0; background: var(--eji-navy-2); border-bottom: 3px solid var(--eji-blue); overflow: hidden; }
.eji-photo-grid .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Operating model (eji/model-list) */
.eji-model-list__list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); column-gap: 28px;
	border-top: 1px solid var(--eji-navy); counter-reset: eji-model;
}
.eji-model-item { padding: 18px 0; border-bottom: 1px solid var(--eji-hair-dark); display: flex; gap: 14px; align-items: baseline; counter-increment: eji-model; }
.eji-model-item__num::before { content: counter(eji-model, decimal-leading-zero); font-family: var(--eji-sans); font-size: 11px; color: var(--eji-blue); font-weight: 700; letter-spacing: .1em; }
.eji-model-item__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eji-model-item__body h3 { font-size: 22px; line-height: 1.15; font-weight: 600; color: var(--eji-navy); }
.eji-model-item__body p { font-size: 15px; line-height: 1.5; }

/* ==========================================================================
   8. Who We Serve (eji/pathways)
   ========================================================================== */
.eji-pathways__list {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 2px;
	background: rgba(139, 199, 245, .25); border: 2px solid rgba(139, 199, 245, .25); counter-reset: eji-tile;
}
.eji-pathway {
	background: var(--eji-navy); color: var(--eji-cream); padding: 32px 28px; min-height: 220px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 28px; counter-increment: eji-tile;
	transition: background-color .2s ease;
}
a.eji-pathway:hover, a.eji-pathway:focus-visible { background: var(--eji-navy-hover); color: #fff; }
.eji-pathway__num::before { content: counter(eji-tile, decimal-leading-zero); font-family: var(--eji-sans); font-size: 11px; letter-spacing: .24em; font-weight: 700; color: var(--eji-gold); }
.eji-pathway__body { display: flex; flex-direction: column; gap: 10px; }
.eji-pathway__body h3 { font-family: var(--eji-serif); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; font-weight: 700; color: inherit; }
.eji-pathway__body p { font-size: 15px; line-height: 1.5; color: var(--eji-mist); }
.eji-pathway__cta { font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--eji-sky); text-transform: uppercase; }

/* ==========================================================================
   9. Project Owners (eji/pillars)
   ========================================================================== */
.eji-pillars__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; counter-reset: eji-pillar; }
.eji-pillar { border-top: 2px solid var(--eji-navy); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; counter-increment: eji-pillar; }
.eji-pillar__num::before { content: counter(eji-pillar, decimal-leading-zero); font-family: var(--eji-serif); font-size: 56px; line-height: 1; color: var(--eji-blue); }
.eji-pillar__body { display: flex; flex-direction: column; gap: 14px; }
.eji-pillar__body h3 { font-family: var(--eji-sans); font-size: 13px; letter-spacing: .18em; font-weight: 700; color: var(--eji-navy); line-height: 1.4; text-transform: uppercase; }
.eji-pillar__body p { font-size: 15px; line-height: 1.5; }

/* ==========================================================================
   10. Split sections: Infrastructure Partners, Communities
   ========================================================================== */
.wp-block-group.eji-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 56px 72px; align-items: center; }

/* Label/copy rows (eji/rows) */
.eji-rows__list { display: flex; flex-direction: column; border-top: 1px solid var(--eji-navy); }
.eji-section--navy .eji-rows__list { border-top-color: var(--eji-hair-light); }
.eji-row { padding: 20px 0; border-bottom: 1px solid var(--eji-hair-dark); display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; }
.eji-section--navy .eji-row { border-bottom-color: var(--eji-hair-light); }
.eji-row h3 { flex: 0 0 220px; font-family: var(--eji-sans); font-size: 13px; letter-spacing: .18em; font-weight: 700; color: var(--eji-blue); text-transform: uppercase; line-height: 1.4; }
.eji-rows--narrow .eji-row h3 { flex-basis: 200px; }
.eji-section--navy .eji-row h3 { color: var(--eji-gold); }
.eji-row p { flex: 1 1 260px; font-size: 15px; line-height: 1.5; }
.eji-section--navy .eji-row p { color: var(--eji-mist); }

/* ==========================================================================
   11. HBCUs and Workforce
   ========================================================================== */
.eji-hbcu .eji-title--xl { margin-top: 40px; }
.wp-block-group.eji-hbcu__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; margin-top: -16px; align-items: start; }
.wp-block-group.eji-hbcu__copy { padding-top: 64px; display: flex; flex-direction: column; gap: 28px; }
ul.eji-roles { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--eji-navy); list-style: none; margin: 0; padding: 0; counter-reset: eji-role; }
ul.eji-roles li {
	padding: 16px 0; border-bottom: 1px solid rgba(7, 28, 50, .25); display: flex; align-items: baseline; gap: 12px; margin: 0;
	font-family: var(--eji-serif); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.2; color: var(--eji-navy); counter-increment: eji-role;
}
ul.eji-roles li::before { content: counter(eji-role, decimal-leading-zero); font-family: var(--eji-sans); font-size: 11px; color: var(--eji-blue); font-weight: 700; letter-spacing: .1em; }
ul.eji-roles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 479.98px) { ul.eji-roles { grid-template-columns: 1fr; } }
.wp-block-group.eji-hbcu__media { position: relative; margin-top: 24px; }
.wp-block-image.eji-hbcu__photo { aspect-ratio: 4 / 5; background: var(--eji-photo-fallback); border: 1px solid var(--eji-navy); overflow: hidden; margin: 0; }
.eji-hbcu__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-block-group.eji-callout {
	position: absolute; left: -24px; bottom: 40px; background: var(--eji-navy); color: var(--eji-cream); padding: 24px 28px;
	max-width: 320px; box-shadow: 0 20px 40px rgba(7, 28, 50, .25); display: flex; flex-direction: column; gap: 8px;
}
.eji-callout .eji-label { color: var(--eji-gold); }
.eji-callout__text { font-family: var(--eji-serif); font-size: 20px; line-height: 1.3; color: var(--eji-cream); }
@media (max-width: 767.98px) { .wp-block-group.eji-callout { left: 0; bottom: 24px; max-width: calc(100% - 24px); } }

/* ==========================================================================
   12. Small Businesses banner
   ========================================================================== */
.wp-block-group.eji-banner {
	position: relative; background: var(--eji-ink); color: var(--eji-cream); min-height: 80vh;
	display: flex; align-items: flex-end; overflow: hidden; padding: 0;
}
.wp-block-image.eji-banner__photo { position: absolute; inset: 0; margin: 0; background: var(--eji-ink); }
.eji-banner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.eji-banner::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(7, 28, 50, .15) 0%, rgba(7, 28, 50, .3) 28%, rgba(7, 28, 50, .82) 52%, rgba(7, 28, 50, .96) 100%);
}
.wp-block-group.eji-banner__content {
	position: relative; z-index: 1; max-width: var(--eji-container); margin: 0 auto; width: 100%;
	padding: clamp(160px, 20vw, 280px) var(--eji-pad-x) clamp(64px, 8vw, 110px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: end;
}
.eji-banner .eji-eyebrow { color: var(--eji-gold); font-weight: 700; text-shadow: 0 1px 12px rgba(7, 28, 50, .8); }
.eji-banner .eji-title { font-size: clamp(38px, 4.8vw, 76px); line-height: 1; letter-spacing: -.02em; text-shadow: 0 2px 24px rgba(7, 28, 50, .7); }
.eji-banner .eji-lead { color: var(--eji-cream); font-weight: 500; max-width: 520px; text-shadow: 0 1px 12px rgba(7, 28, 50, .8); }

/* ==========================================================================
   13. Community Benefit Strategy
   ========================================================================== */
/* Pathway stages (eji/stages) */
.eji-stages { position: relative; }
.eji-stages__line { width: 100%; height: 40px; display: block; overflow: visible; }
.eji-stages__line .eji-stages__track { stroke: var(--eji-navy); stroke-opacity: .18; stroke-width: 2; fill: none; }
.eji-stages__line .eji-stages__progress { stroke: var(--eji-blue); stroke-width: 3; fill: none; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.eji-stages__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 24px; margin-top: -30px; counter-reset: eji-stage; position: relative; }
.eji-stage { display: flex; flex-direction: column; gap: 14px; counter-increment: eji-stage; }
.eji-stage__dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--eji-navy); transition: background-color .4s, border-color .4s; flex: 0 0 auto; }
.eji-stage.is-on .eji-stage__dot { background: var(--eji-gold); border-color: var(--eji-blue); }
.eji-stage__num::before { content: counter(eji-stage, decimal-leading-zero); font-family: var(--eji-serif); font-size: 56px; line-height: 1; color: var(--eji-gold); font-weight: 400; }
.eji-stage__body { display: flex; flex-direction: column; gap: 14px; }
.eji-stage__body h3 { font-family: var(--eji-sans); font-size: 13px; letter-spacing: .18em; font-weight: 700; color: var(--eji-navy); line-height: 1.4; text-transform: uppercase; }
.eji-stage__body p { font-size: 15px; line-height: 1.5; color: var(--eji-ink); }
@media (max-width: 599.98px) {
	.eji-stages__line { display: none; }
	.eji-stages__list { margin-top: 0; grid-template-columns: 1fr; gap: 32px; }
	.eji-stages__list::before, .eji-stages__list::after { content: ""; position: absolute; left: 7.5px; top: 12px; bottom: 12px; width: 3px; }
	.eji-stages__list::before { background: rgba(7, 28, 50, .18); }
	.eji-stages__list::after { background: var(--eji-blue); transform-origin: top; transform: scaleY(var(--eji-progress, 0)); transition: transform .15s linear; }
	.eji-stage { display: grid; grid-template-columns: 18px 1fr; column-gap: 20px; row-gap: 12px; align-items: start; position: relative; z-index: 1; }
	.eji-stage__dot { grid-column: 1; grid-row: 1; margin-top: 18px; }
	.eji-stage__num, .eji-stage__body { grid-column: 2; }
}

/* Benefit cards (eji/benefit-cards) */
.eji-benefit-cards__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--eji-navy); margin-top: 72px; counter-reset: eji-card; }
@media (max-width: 1199.98px) { .eji-benefit-cards__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .eji-benefit-cards__list { grid-template-columns: 1fr; } }
.eji-benefit-card { background: var(--eji-navy); color: var(--eji-cream); min-height: 500px; display: flex; flex-direction: column; position: relative; overflow: hidden; counter-increment: eji-card; }
.eji-benefit-card__body { display: flex; flex-direction: column; flex: 1; }
.eji-benefit-card__body > .wp-block-image { flex: 1; min-height: 280px; position: relative; margin: 0; background: var(--eji-navy-2); overflow: hidden; }
.eji-benefit-card__body > .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.eji-benefit-card__body > h3 { margin: 28px 28px 0; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; font-weight: 700; color: var(--eji-cream); }
.eji-benefit-card__body > h3::before { content: counter(eji-card, decimal-leading-zero); display: block; font-family: var(--eji-sans); font-size: 11px; letter-spacing: .24em; color: var(--eji-gold); font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.eji-benefit-card__body > p { margin: 12px 28px 28px; font-size: 15px; line-height: 1.5; color: var(--eji-mist); }

/* Measurable outcomes row */
.wp-block-group.eji-outcomes { margin-top: 48px; border-top: 2px solid var(--eji-navy); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: baseline; }
.eji-outcomes ul.eji-chips { flex: 1 1 520px; }

/* ==========================================================================
   14. Technology Infrastructure Readiness (eji/stack-list)
   ========================================================================== */
.wp-block-group.eji-readiness { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 72px; }
.wp-block-group.eji-readiness__col { display: flex; flex-direction: column; }
.eji-col-label { border-top: 2px solid var(--eji-gold); padding-top: 14px; font-size: 12px; letter-spacing: .24em; font-weight: 700; color: var(--eji-gold); text-transform: uppercase; }
.eji-col-label--sky { border-top-color: var(--eji-sky); color: var(--eji-sky); }
.eji-stack-list__list { display: flex; flex-direction: column; }
.eji-stack-item { padding: 24px 0; border-bottom: 1px solid rgba(139, 199, 245, .25); display: flex; flex-direction: column; gap: 8px; }
.eji-stack-item h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; font-weight: 600; color: var(--eji-cream); }
.eji-stack-item p { font-size: 15px; line-height: 1.5; color: var(--eji-mist); }
.eji-section--cream .eji-stack-item, .eji-section--white .eji-stack-item { border-bottom-color: var(--eji-hair-dark); }
.eji-section--cream .eji-stack-item h3, .eji-section--white .eji-stack-item h3 { color: var(--eji-navy); }
.eji-section--cream .eji-stack-item p, .eji-section--white .eji-stack-item p { color: var(--eji-ink); }

/* ==========================================================================
   15. Where We Work
   ========================================================================== */
.wp-block-group.eji-where { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 56px; align-items: end; }
.wp-block-group.eji-where__copy { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
ul.eji-states {
	font-family: var(--eji-serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.45; color: var(--eji-navy);
	border-top: 1px solid var(--eji-navy); padding: 20px 0 0; margin: 0; list-style: none;
}
ul.eji-states li { display: inline; margin: 0; }
ul.eji-states li:not(:last-child)::after { content: "\00a0· "; }

/* ==========================================================================
   16. Leadership (eji/leadership)
   ========================================================================== */
.eji-leadership { display: flex; flex-direction: column; border-top: 2px solid var(--eji-navy); }
.eji-leader { display: flex; flex-wrap: wrap; gap: 28px 56px; padding: 40px 0; border-bottom: 1px solid var(--eji-hair-dark); align-items: flex-start; }
.eji-leader__photo { flex: 0 0 auto; width: min(100%, 280px); aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 3px solid var(--eji-blue); background: var(--eji-photo-fallback); }
.eji-leader__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eji-leader__text { flex: 1 1 420px; max-width: 760px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.eji-leader__head { display: flex; flex-direction: column; gap: 10px; }
.eji-leader__name { font-size: clamp(30px, 2.8vw, 44px); line-height: 1.05; font-weight: 700; color: var(--eji-navy); letter-spacing: -.01em; }
.eji-leader__role { font-size: 12px; letter-spacing: .18em; font-weight: 700; color: var(--eji-blue); text-transform: uppercase; }
.eji-leader__intro { display: flex; flex-direction: column; gap: 14px; }
.eji-leader__intro p { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.6; }
.eji-leader__more { display: flex; flex-direction: column; gap: 14px; }
.eji-leader__more[hidden] { display: none; }
.eji-leader__more p { font-size: 16px; line-height: 1.65; }
.eji-leader__more ul, .eji-leader__more ol { margin: 0; padding-left: 1.3em; font-size: 16px; line-height: 1.65; }
.eji-leader__toggle {
	align-self: flex-start; background: transparent; border: 0; border-bottom: 1px solid var(--eji-blue); padding: 0 0 3px;
	color: var(--eji-blue); font-weight: 700; font-size: 13px; letter-spacing: .16em; cursor: pointer; text-transform: uppercase; border-radius: 0;
}
.eji-leader__toggle:hover { color: var(--eji-navy); border-bottom-color: var(--eji-navy); }
.eji-leader__toggle[hidden] { display: none; }
.eji-leadership__empty { padding: 32px 0; font-size: 16px; color: var(--eji-muted); }

/* ==========================================================================
   17. Join EJI
   ========================================================================== */
.wp-block-group.eji-join { padding: clamp(80px, 10vw, 150px) var(--eji-pad-x); position: relative; overflow: hidden; background: var(--eji-navy); color: var(--eji-cream); }
.eji-join::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(139, 199, 245, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 199, 245, .08) 1px, transparent 1px);
	background-size: 96px 96px;
}
.wp-block-group.eji-join__grid { position: relative; max-width: var(--eji-container); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 72px; align-items: start; }
.wp-block-group.eji-join__copy { display: flex; flex-direction: column; gap: 32px; }
.eji-join__lede { font-size: clamp(17px, 1.3vw, 22px); line-height: 1.5; color: var(--eji-mist); max-width: 560px; }
mark.has-inline-color { background: transparent; color: inherit; }
.eji-title--join .has-sky-color { color: var(--eji-sky); }
.eji-title--join .has-gold-color { color: var(--eji-gold); }

/* Form card (eji/join-form) */
.eji-form-card { background: var(--eji-cream); color: var(--eji-ink); padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 60px rgba(0, 0, 0, .25); position: relative; }
.eji-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px 16px; margin: 0; }
.eji-form__intro { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.eji-form__title { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; font-weight: 700; color: var(--eji-navy); }
.eji-form__help { font-size: 14px; color: var(--eji-muted); }
.eji-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eji-field--full { grid-column: 1 / -1; }
.eji-field label { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--eji-navy); text-transform: uppercase; }
.eji-field__optional { font-weight: 600; letter-spacing: .06em; color: var(--eji-muted); }
.eji-field input, .eji-field select {
	width: 100%; padding: 13px 14px; font-size: 16px; border: 1px solid rgba(7, 28, 50, .4); background: #fff; color: var(--eji-ink);
	border-radius: 0; outline: none; margin: 0; line-height: 1.3;
}
.eji-field input:focus, .eji-field select:focus { border-color: var(--eji-blue); box-shadow: 0 0 0 3px rgba(23, 105, 209, .25); outline: none; }
.eji-field [aria-invalid="true"] { border-color: var(--eji-error); }
.eji-select { position: relative; }
.eji-select select { padding-right: 44px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.eji-select::after { content: "▼"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--eji-navy); font-size: 11px; }
.eji-field__error { font-size: 13px; font-weight: 600; color: var(--eji-error); }
.eji-field__error:empty { display: none; }
.eji-form__notice { grid-column: 1 / -1; font-size: 15px; font-weight: 600; color: var(--eji-error); border-left: 2px solid var(--eji-error); padding-left: 14px; }
.eji-form__notice:empty { display: none; }
.eji-form__submit {
	grid-column: 1 / -1; justify-self: start; background: var(--eji-gold); color: var(--eji-navy); border: 0; font-weight: 700; font-size: 14px;
	letter-spacing: .18em; padding: 18px 32px; cursor: pointer; text-transform: uppercase; border-radius: 0; transition: background-color .2s, color .2s;
}
.eji-form__submit:hover { background: var(--eji-navy); color: #fff; }
.eji-form__submit[disabled] { opacity: .6; cursor: progress; }
.eji-form__privacy { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--eji-muted); }
.eji-form__privacy a { text-decoration: underline; }
.eji-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.eji-form__status { display: flex; flex-direction: column; gap: 16px; padding: 12px 0; }
.eji-form__status[hidden] { display: none; }
.eji-form__status-title { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; font-weight: 700; color: var(--eji-navy); }
.eji-form__status p { font-size: 17px; line-height: 1.55; }
.eji-form__reset { align-self: flex-start; background: transparent; border: 0; border-bottom: 1px solid var(--eji-blue); padding: 0 0 2px; color: var(--eji-blue); font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 0; }
.eji-form__reset:hover { color: var(--eji-navy); border-bottom-color: var(--eji-navy); }
.eji-form[hidden] { display: none; }
.eji-form .cf-turnstile { grid-column: 1 / -1; }

/* ==========================================================================
   18. Footer
   ========================================================================== */
.eji-footer { background: var(--eji-ink); color: var(--eji-cream); padding: 56px var(--eji-pad-x) 32px; border-top: 3px solid var(--eji-blue); }
.wp-block-group.eji-footer__inner { max-width: var(--eji-container); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.wp-block-group.eji-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.wp-block-group.eji-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.eji-footer__name { font-family: var(--eji-serif); font-weight: 800; font-size: 34px; letter-spacing: .04em; line-height: 1; color: var(--eji-cream); }
.eji-footer__name a { color: var(--eji-cream); }
.eji-footer__name a:hover { color: var(--eji-gold); }
.eji-footer__sub { font-size: 12px; letter-spacing: .2em; color: var(--eji-sky); font-weight: 600; text-transform: uppercase; }
.eji-footer__tagline { font-family: var(--eji-serif); font-style: italic; font-size: 17px; line-height: 1.35; color: var(--eji-cream); margin-top: 8px; max-width: 340px; }
.wp-block-group.eji-footer__links { display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 600; }
.eji-footer__links .wp-block-navigation { font-size: 14px; font-weight: 600; color: var(--eji-cream); }
.eji-footer__links .wp-block-navigation__container { gap: 16px 28px; }
.eji-footer .wp-block-navigation-item__content.wp-block-navigation-item__content { color: var(--eji-cream); }
.eji-footer .wp-block-navigation-item__content.wp-block-navigation-item__content:hover { color: var(--eji-gold); }
.eji-footer__links p a { color: var(--eji-cream); }
.eji-footer__links p a:hover { color: var(--eji-gold); }
.wp-block-group.eji-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(246, 242, 233, .15); padding-top: 20px; font-size: 13px; color: var(--eji-slate); }
.eji-footer__bottom p, .eji-footer__bottom .eji-copyright { font-size: 13px; color: var(--eji-slate); }
.eji-footer__bottom a { color: var(--eji-slate); text-decoration: underline; text-underline-offset: 3px; }
.eji-footer__bottom a:hover { color: var(--eji-gold); }

/* ==========================================================================
   19. Interior pages, news and articles
   ========================================================================== */
.wp-block-group.eji-page-hero { background: var(--eji-navy); color: var(--eji-cream); padding: clamp(48px, 6vw, 88px) var(--eji-pad-x); border-bottom: 1px solid rgba(139, 199, 245, .18); }
.wp-block-group.eji-page-hero__inner { max-width: var(--eji-container); margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.eji-page-hero .eji-title, .eji-page-hero .wp-block-post-title, .eji-page-hero .wp-block-query-title { color: var(--eji-cream); font-family: var(--eji-serif); font-size: clamp(38px, 4.4vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.eji-page-hero .wp-block-term-description, .eji-page-hero .eji-page-hero__lede { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; color: var(--eji-mist); max-width: 640px; }
.eji-page-hero .wp-block-term-description p { margin: 0; }
.wp-block-group.eji-post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--eji-sky); }
.eji-post-meta a { color: var(--eji-sky); }
.eji-post-meta a:hover { color: var(--eji-gold); }
.eji-post-meta .wp-block-post-terms__separator { margin: 0 .35em; }

.wp-block-group.eji-page-body { background: var(--eji-cream); padding: var(--eji-pad-y) var(--eji-pad-x); }
.wp-block-group.eji-page-body--white { background: var(--eji-white); }
.wp-block-group.eji-page-body__inner { max-width: 900px; margin: 0 auto; }
.wp-block-post-featured-image.eji-post-featured { margin: 0 0 40px; border-bottom: 3px solid var(--eji-blue); overflow: hidden; }
.eji-post-featured img { width: 100%; height: auto; display: block; }

/* Long-form content (pages, posts) */
.eji-prose { font-size: clamp(17px, 1.2vw, 19px); line-height: 1.6; color: var(--eji-ink); }
.eji-prose > * { margin-block: 0 0 1.25em; }
.eji-prose > *:last-child { margin-block-end: 0; }
.eji-prose h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.1; color: var(--eji-navy); margin: 1.5em 0 .5em; font-weight: 700; letter-spacing: -.01em; }
.eji-prose h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: var(--eji-navy); margin: 1.4em 0 .4em; font-weight: 600; }
.eji-prose h4 { font-family: var(--eji-sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--eji-blue); margin: 1.6em 0 .6em; font-weight: 700; }
.eji-prose > h2:first-child, .eji-prose > h3:first-child { margin-top: 0; }
.eji-prose ul, .eji-prose ol { padding-left: 1.3em; }
.eji-prose li { margin-bottom: .35em; }
.eji-prose li::marker { color: var(--eji-blue); }
.eji-prose a { color: var(--eji-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.eji-prose a:hover { color: var(--eji-gold); }
.eji-prose blockquote, .eji-prose .wp-block-quote { border-left: 2px solid var(--eji-gold); padding: 4px 0 4px 24px; margin: 1.5em 0; font-family: var(--eji-serif); font-size: 1.15em; line-height: 1.4; color: var(--eji-navy); }
.eji-prose .wp-block-quote p { margin-bottom: .6em; }
.eji-prose .wp-block-quote cite { font-family: var(--eji-sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--eji-blue); }
.eji-prose .wp-block-pullquote { border-top: 2px solid var(--eji-navy); border-bottom: 2px solid var(--eji-navy); padding: 1.5em 0; text-align: left; }
.eji-prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.eji-prose .wp-block-image { margin: 1.5em 0; }
.eji-prose .wp-block-image img { display: block; }
.eji-prose figcaption, .eji-prose .wp-element-caption { font-size: 14px; color: var(--eji-muted); margin-top: .6em; text-align: left; }
.eji-prose hr, .eji-prose .wp-block-separator { border: 0; border-top: 1px solid var(--eji-navy); margin: 2em 0; width: 100%; opacity: 1; }
.eji-prose .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .95em; }
.eji-prose .wp-block-table td, .eji-prose .wp-block-table th { border: 1px solid var(--eji-hair-dark); padding: 10px 12px; text-align: left; }
.eji-prose .wp-block-table th { font-family: var(--eji-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--eji-navy); background: rgba(7, 28, 50, .04); }
.eji-prose .wp-block-file { font-weight: 600; }
.eji-prose .wp-block-file a:not(.wp-block-file__button) { text-decoration: underline; }
.eji-prose .wp-block-file .wp-block-file__button { background: var(--eji-navy); color: #fff; border-radius: 0; padding: 10px 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; text-decoration: none; margin-left: 12px; }
.eji-prose .wp-block-file .wp-block-file__button:hover { background: var(--eji-blue); color: #fff; }
.eji-prose .wp-block-buttons { margin: 1.5em 0; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.eji-prose .wp-block-embed { margin: 1.5em 0; }
.eji-prose .wp-block-embed iframe { max-width: 100%; }
.eji-prose .wp-block-columns { display: flex; gap: 32px; flex-wrap: wrap; }
.eji-prose .wp-block-column { flex: 1 1 280px; min-width: 0; }
.eji-prose .wp-block-details { border-top: 1px solid var(--eji-navy); border-bottom: 1px solid var(--eji-navy); padding: 14px 0; }
.eji-prose .wp-block-details summary { font-family: var(--eji-serif); font-size: 1.1em; font-weight: 600; color: var(--eji-navy); cursor: pointer; }
.eji-prose .wp-block-group { margin: 1.5em 0; }
.eji-prose .has-text-align-center { text-align: center; }
.eji-prose .wp-block-code, .eji-prose pre { background: #fff; border: 1px solid var(--eji-hair-dark); padding: 16px; overflow: auto; font-size: 14px; }
.eji-prose .wp-block-cover { margin: 1.5em 0; }
.eji-prose .wp-block-media-text { margin: 1.5em 0; }
.eji-prose .wp-block-latest-posts, .eji-prose .wp-block-latest-posts.wp-block-latest-posts__list { padding-left: 0; list-style: none; }
.eji-text-link { display: inline-block; font-size: 13px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: var(--eji-blue); border-bottom: 1px solid var(--eji-blue); padding-bottom: 3px; }
.eji-text-link:hover { color: var(--eji-navy); border-bottom-color: var(--eji-navy); }
.eji-post-back { margin-top: 56px; }
.eji-post-back a { display: inline-block; font-size: 13px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: var(--eji-blue); border-bottom: 1px solid var(--eji-blue); padding-bottom: 3px; text-decoration: none; }
.eji-post-back a:hover { color: var(--eji-navy); border-bottom-color: var(--eji-navy); }

/* News listing */
.eji-news__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 40px; }
.eji-news__list.is-layout-flex, .wp-block-post-template.eji-news__list { display: grid; }
.eji-news__list > .wp-block-post { display: flex; flex-direction: column; gap: 14px; border-top: 2px solid var(--eji-navy); padding-top: 20px; margin: 0; }
.eji-news__list > .wp-block-post .wp-block-post-featured-image { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 3px solid var(--eji-blue); background: var(--eji-navy-2); margin: 0 0 6px; }
.eji-news__list > .wp-block-post .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eji-news__list > .wp-block-post .wp-block-post-featured-image a { display: block; height: 100%; }
.wp-block-group.eji-news-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--eji-blue); }
.eji-news-card__meta a { color: var(--eji-blue); }
.eji-news__list > .wp-block-post .wp-block-post-title { font-size: clamp(24px, 2vw, 30px); line-height: 1.1; font-weight: 700; }
.eji-news__list > .wp-block-post .wp-block-post-title a { color: var(--eji-navy); }
.eji-news__list > .wp-block-post .wp-block-post-title a:hover { color: var(--eji-blue); }
.eji-news__list > .wp-block-post .wp-block-post-excerpt { font-size: 16px; line-height: 1.55; }
.eji-news__list > .wp-block-post .wp-block-post-excerpt__excerpt { margin: 0; }
.eji-news__list > .wp-block-post .wp-block-post-excerpt__more-text { margin: 10px 0 0; }
.eji-news__list > .wp-block-post .wp-block-post-excerpt__more-link, .eji-news__list > .wp-block-post .wp-block-read-more { display: inline-block; font-size: 12px; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; color: var(--eji-blue); border-bottom: 1px solid var(--eji-blue); padding-bottom: 2px; text-decoration: none; }
.eji-news__list > .wp-block-post .wp-block-post-excerpt__more-link:hover, .eji-news__list > .wp-block-post .wp-block-read-more:hover { color: var(--eji-navy); border-bottom-color: var(--eji-navy); }
.wp-block-query-pagination.eji-pagination { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.eji-pagination a { color: var(--eji-blue); border-bottom: 1px solid var(--eji-blue); padding-bottom: 2px; }
.eji-pagination a:hover { color: var(--eji-navy); border-bottom-color: var(--eji-navy); }
.eji-pagination .wp-block-query-pagination-numbers { display: flex; gap: 12px; }
.eji-pagination .page-numbers.current { color: var(--eji-navy); }
.eji-news__empty, .wp-block-query-no-results.eji-news__empty p { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; color: var(--eji-muted); }

/* Search form (search template, 404) */
.wp-block-search.eji-search { max-width: 560px; margin-top: 24px; }
.eji-search .wp-block-search__inside-wrapper { display: flex; gap: 0; border: 0; padding: 0; }
.eji-search .wp-block-search__input { flex: 1; padding: 13px 14px; font-size: 16px; border: 1px solid rgba(7, 28, 50, .4); background: #fff; color: var(--eji-ink); border-radius: 0; }
.eji-search .wp-block-search__input:focus { border-color: var(--eji-blue); box-shadow: 0 0 0 3px rgba(23, 105, 209, .25); outline: none; }
.eji-search .wp-block-search__button { background: var(--eji-navy); color: #fff; border: 0; border-radius: 0; padding: 13px 24px; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; margin: 0; }
.eji-search .wp-block-search__button:hover { background: var(--eji-blue); }
.eji-search .wp-block-search__label { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--eji-navy); text-transform: uppercase; margin-bottom: 6px; display: block; }

/* ==========================================================================
   20. Motion (progressive enhancement; see assets/js/view.js)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.js .eji-reveal { transition: opacity .8s ease, transform .8s ease; }
	.js .eji-reveal.is-pending { opacity: 0; transform: translateY(28px); }
	.js .eji-reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   21. Print
   ========================================================================== */
@media print {
	.eji-header, .eji-footer, .eji-form-card, .eji-leader__toggle { display: none !important; }
	.eji-leader__more[hidden] { display: flex !important; }
	.eji-section, .eji-hero, .eji-join, .eji-banner { break-inside: avoid; }
}
