/*
 * Career IHU Modern — main stylesheet
 *
 * Colours, fonts and sizes come from CSS custom properties. The values below
 * are safe defaults; Career IHU → Τυπογραφία & Χρώματα and Design system print
 * the site's own values right after this file (see career_ihu_dynamic_css()).
 *
 * Contents
 *  1. Fonts            7. Sections & hero        13. Footer
 *  2. Tokens           8. Cards & lists          14. Forms & pagination
 *  3. Base             9. Path cards             15. Utilities
 *  4. Layout          10. Inner pages            16. Responsive
 *  5. Header & nav    11. Entry content          17. Motion & print
 *  6. Buttons         12. Archive filters
 */

/* 1. Fonts — Inter is bundled (SIL OFL), so nothing loads from Google. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-greek-wght-normal.woff2") format("woff2");
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.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;
}

/* 2. Tokens */
:root {
	--navy: #0b1f33;
	--navy-deep: #102b46;
	--blue: #3aa6d0;
	--cyan: #79d3e8;
	--green: #92c83e;
	--ink: #182330;
	--muted: #5b6a79;
	--paper: #fff;
	--mist: #f5f8fa;
	--line: #dce4ea;
	--header-bg: #fff;
	--header-text: #274b70;
	--footer-bg: #081624;
	--footer-text: #fff;
	--focus: #ffbf47;
	--accent-ink: #1e6f93; /* accent used for text; recomputed for contrast in PHP */
	--body-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--heading-font: var(--body-font);
	--nav-font: var(--body-font);
	--base-size: 16px;
	--body-weight: 400;
	--heading-weight: 700;
	--nav-weight: 600;
	--button-weight: 700;
	--body-line: 1.6;
	--heading-line: 1.12;
	--h1-size: 64px;
	--h2-size: 44px;
	--h3-size: 30px;
	--hero-title-max: 72px;
	--hero-mobile: 44px;
	--header-height: 84px;
	--radius: 18px;
	--button-radius: 999px;
	--container: 1240px;
	--section-space: 92px;
	--tracking: -0.02em;
	--soft: var(--mist);
	--navy2: var(--navy-deep);
	--white: var(--paper);
	--shadow: 0 14px 40px rgba(11, 31, 51, 0.1);
}

/* 3. Base */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--body-font);
	font-size: var(--base-size);
	font-weight: var(--body-weight);
	line-height: var(--body-line);
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--heading-font);
	font-weight: var(--heading-weight);
	line-height: var(--heading-line);
	letter-spacing: var(--tracking);
	color: var(--navy);
	text-wrap: balance;
	overflow-wrap: break-word;
}
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; }
main:focus { outline: none; }

/* Two-tone ring: readable on light, dark and coloured backgrounds. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--focus);
	border-radius: 4px;
}
:where(.btn, .header-cta, .icon-button, .page-numbers):focus-visible { border-radius: var(--button-radius); }

/* 4. Layout */
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions:empty { display: none; }

/* 5. Header & navigation */
.top-notice { padding: 8px 20px; background: var(--navy); color: #fff; text-align: center; font-size: 14px; }
.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--navy);
	color: #fff;
	border-radius: 0 0 10px 10px;
	font-weight: 700;
}
.skip-link:focus { top: 0; }

.site-header {
	position: relative;
	z-index: 50;
	background: var(--header-bg);
	color: var(--header-text);
	border-bottom: 1px solid var(--line);
}
.site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .site-header.is-sticky { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-height); }

.brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; max-width: 320px; }
.brand-mark {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--blue), var(--green));
	color: var(--navy); /* navy on the gradient keeps the letters above 4.5:1 */
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0;
}
.brand-logo { max-width: 100%; max-height: var(--brand-logo-h, 62px); width: auto; object-fit: contain; }
.brand-mobile { display: none; }
.brand-copy { line-height: 1.2; min-width: 0; max-width: 210px; }
.brand-copy strong { display: block; font-size: 14px; color: var(--navy); font-weight: 700; }
.brand-copy span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.header-minimal .brand-copy > span { display: none; }
.secondary-logo { max-width: 64px; height: auto; }

.main-nav { margin-left: auto; flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.nav-list, .main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul, .main-nav > .nav-list { display: flex; align-items: center; gap: 16px; }
.main-nav li { position: relative; }
.main-nav a {
	font-family: var(--nav-font);
	font-weight: var(--nav-weight);
	font-size: 14px;
	color: var(--header-text);
	white-space: nowrap;
}
.main-nav li > a { display: inline-block; padding: 14px 0; }
.main-nav a:hover { color: var(--navy); }
.main-nav [aria-current="page"],
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--navy);
	text-decoration: underline;
	text-decoration-color: var(--blue);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.main-nav .menu-item-has-children { display: flex; align-items: center; }
.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: 2px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: 50%;
}
.submenu-toggle svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
.submenu-open > .submenu-toggle svg { transform: rotate(180deg); }
.main-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 70;
	min-width: 240px;
	max-width: 80vw;
	padding: 10px;
	background: var(--header-bg);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow);
}
.main-nav .sub-menu .sub-menu { left: 100%; top: 0; }
.main-nav .sub-menu a { display: block; padding: 10px 12px; white-space: normal; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--mist); }
.main-nav .submenu-open > .sub-menu { display: block; }
.main-nav .career-mega-menu > .sub-menu { width: 560px; max-width: 80vw; left: auto; right: 0; }
.main-nav .career-mega-menu.submenu-open > .sub-menu { display: grid; grid-template-columns: 1fr 1fr; }

.header-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--navy);
	cursor: pointer;
}
.icon-button:hover { background: var(--mist); }
.icon-button svg { width: 22px; height: 22px; }
.language-menu { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; }
.utility-nav ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 8px 0; list-style: none; font-size: 13px; color: var(--muted); }

.menu-toggle { display: none; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Collapsed navigation: used under 1050px, or earlier when JS finds the menu does not fit. */
.js .site-header.nav-collapsed .menu-toggle { display: inline-grid; }
.js .site-header.nav-collapsed .header-tools { margin-left: auto; }
.js .site-header.nav-collapsed .main-nav { display: none; }
.js .site-header.nav-collapsed .main-nav.is-open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--header-height));
	overflow-y: auto;
	padding: 12px 20px 24px;
	background: var(--header-bg);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
}
.js .site-header.nav-collapsed .main-nav > ul { display: block; }
.js .site-header.nav-collapsed .main-nav li { display: block; }
.js .site-header.nav-collapsed .main-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
.js .site-header.nav-collapsed .main-nav li > a { display: block; flex: 1; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
.js .site-header.nav-collapsed .submenu-toggle { width: 44px; height: 44px; }
.js .site-header.nav-collapsed .main-nav .sub-menu,
.js .site-header.nav-collapsed .main-nav .sub-menu .sub-menu,
.js .site-header.nav-collapsed .main-nav .career-mega-menu > .sub-menu {
	position: static;
	flex-basis: 100%;
	width: auto;
	max-width: none;
	margin: 0 0 8px 12px;
	padding: 0;
	border: 0;
	box-shadow: none;
}
.js .site-header.nav-collapsed .main-nav .career-mega-menu.submenu-open > .sub-menu { display: block; }
.js .site-header.nav-collapsed .main-nav [aria-current="page"] { text-underline-offset: 6px; }

/* 6. Buttons */
.btn, .header-cta, .wp-element-button, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid var(--navy);
	border-radius: var(--button-radius);
	font-family: var(--nav-font);
	font-weight: var(--button-weight);
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary, .header-cta { background: var(--navy); color: #fff; }
.btn-primary:hover, .header-cta:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

/* 7. Sections & hero */
.section { padding: var(--section-space) 0; }
.section-soft { background: var(--mist); }
.section-dark { background: var(--navy); color: #fff; }
.section-copy .entry-content { max-width: 62ch; }
.section .section-copy .entry-content { margin-top: 18px; }
.section h2 { margin: 0; font-size: clamp(30px, 4vw, var(--h2-size)); }
.section .entry-content p { color: var(--muted); font-size: 18px; margin: 0 0 1em; }
.section .entry-content > *:last-child { margin-bottom: 0; }

.kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0;
	color: var(--accent-ink);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.hero { padding: 88px 0 66px; }
.hero-grid, .feature, .cta-panel { display: grid; gap: 68px; align-items: center; }
.hero-grid { grid-template-columns: 1.05fr 0.95fr; }
.feature { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.feature.image-left .feature-media { order: -1; }
.kind-hero { padding-top: 84px; padding-bottom: 72px; }
.hero h1, .kind-hero h1 {
	margin: 0;
	font-size: clamp(42px, 6vw, var(--hero-title-max));
	line-height: 1.08;
	letter-spacing: var(--tracking);
}
.kind-hero .entry-content p, .hero p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); margin: 26px 0 0; }
.kind-hero .actions, .hero .actions { margin-top: 32px; }

.hero-art { position: relative; display: flex; justify-content: center; }
.section-picture { display: block; width: 100%; }
.section-picture img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); }
.kind-hero .section-picture img, .photo-shell { border-radius: 46% 46% 18% 18% / 32% 32% 18% 18%; }
.kind-hero .section-picture img { height: min(600px, 62vw); }
.photo-shell {
	width: 100%;
	max-width: 515px;
	aspect-ratio: 4 / 5;
	background: linear-gradient(145deg, rgba(11, 31, 51, 0.05), rgba(58, 166, 208, 0.18)), url("../hero-placeholder.svg") center / cover no-repeat;
}
.visual-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 420px;
	border-radius: var(--radius);
	background: linear-gradient(145deg, #dcecf3, #cfe7db);
	color: var(--navy);
	font-size: 2.5rem;
	font-weight: 800;
}
.kind-hero .visual-placeholder { min-height: 520px; border-radius: 46% 46% 18% 18% / 32% 32% 18% 18%; }

.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .entry-content p, .section-dark p { color: #cfe0ec; }
.section-dark .kicker { color: var(--cyan); }
.section-dark .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.section-dark .btn-primary:hover { background: var(--cyan); border-color: var(--cyan); }
.section-dark .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.section-dark .btn-outline:hover { background: #fff; color: var(--navy); }
.section-dark .cta-panel { padding: 0; }
.cta-panel { grid-template-columns: minmax(0, 1fr); }
.cta-panel h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 20ch; }
.setup-notice p, .expiry-notice, .cihum-warning { margin: 0; padding: 16px 18px; background: #fff3cd; color: #453815; border-radius: 12px; }

/* 8. Cards & lists */
.cihum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; }
.cihum-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cihum-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.cihum-card:focus-within { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus); }
.cihum-card :focus-visible { outline: none; box-shadow: none; }
.card-picture { display: block; }
.card-picture img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 26px; }
.card-body h2, .card-body h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; color: var(--navy); }
.card-body h2 a::after, .card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-body h2 a:hover, .card-body h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blue); }
.card-body p { margin: 0; font-size: 15px; color: var(--muted); }
.card-body .card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.card-meta time { white-space: nowrap; }
.card-meta .card-place { color: var(--muted); font-weight: 500; }
.section-dark .cihum-card .card-body h3, .section-dark .cihum-card .card-body h2 { color: var(--navy); }
.section-dark .cihum-card .card-body p { color: var(--muted); }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 24px; background: var(--mist); border-radius: var(--radius); color: var(--muted); }
.cihum-grid + .actions { margin-top: 32px; }

/* 9. Path cards (block pattern) */
.wp-block-columns.career-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.career-paths > .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 200px;
	padding: 26px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.career-paths .wp-block-column h2, .career-paths .wp-block-column h3 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
.career-paths .wp-block-column p { margin: 0; font-size: 15px; color: var(--muted); }

/* 10. Inner pages */
.inner-hero { padding: 64px 0 48px; background: var(--mist); border-bottom: 1px solid var(--line); }
.inner-hero h1 { margin: 0; font-size: clamp(34px, 5vw, var(--h1-size)); line-height: 1.1; }
.inner-hero p { max-width: 62ch; margin: 20px 0 0; font-size: 19px; color: var(--muted); }
.breadcrumbs { margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.breadcrumbs a:hover { color: var(--navy); text-decoration-color: currentColor; }
.content-wrap { padding-block: 64px 80px; }
.content-wrap > * { max-width: 900px; }
.page-layout-full .content-wrap > *,
.page-layout-landing .content-wrap > *,
.template-audience .content-wrap > *,
.template-counselling .content-wrap > * { max-width: none; }
.page-banner { width: 100%; max-height: 440px; margin-bottom: 32px; object-fit: cover; border-radius: var(--radius); }
.content-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 28px;
	margin: 0 0 36px;
	padding: 24px 28px;
	background: var(--mist);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.content-facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.content-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
.content-wrap .actions { margin-top: 36px; }
.page-cta { margin: 40px 0 0; }
.advisors h2 { margin-top: 56px; }

/* 11. Entry content (editor output) */
.entry-content > * { max-width: 68ch; }
.entry-content > .alignwide, .entry-content > .wp-block-columns, .entry-content > .cihum-section, .entry-content > .wp-block-group, .entry-content > .wp-block-gallery { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; }
.entry-content { font-size: 17px; line-height: 1.7; color: #3c4a58; }
.entry-content h1 { font-size: clamp(34px, 5vw, var(--h1-size)); }
.entry-content h2 { margin: 1.6em 0 0.5em; font-size: clamp(26px, 3.4vw, var(--h2-size)); }
.entry-content h3 { margin: 1.5em 0 0.5em; font-size: clamp(21px, 2.6vw, var(--h3-size)); }
.entry-content h4 { font-size: 24px; }
.entry-content h5 { font-size: 20px; }
.entry-content h6 { font-size: 17px; }
.entry-content a:not(.wp-element-button):not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: 12px; }
.entry-content iframe { max-width: 100%; }
.entry-content details { margin: 16px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.entry-content summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.entry-content blockquote { margin: 28px 0; padding: 12px 0 12px 24px; border-left: 4px solid var(--blue); }
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.section .entry-content { font-size: 18px; line-height: 1.6; }
.section-dark .entry-content { color: #cfe0ec; }

/* 12. Archive filters */
.archive-content { padding-block: 40px 80px; }
.archive-filters, .search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; }
.archive-filters { margin-bottom: 8px; padding: 18px 20px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-field { display: grid; gap: 6px; }
.archive-filters label, .search-form label { font-size: 14px; font-weight: 600; color: var(--navy); }
.archive-filters a { align-self: center; padding: 8px 4px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.inner-hero .search-form { margin-top: 28px; }
.cihum-jump { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.cihum-jump label { font-size: 14px; font-weight: 600; color: var(--navy); }
.cihum-jump select { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--button-radius, var(--radius)); background: #fff; font: inherit; color: var(--ink); }
.cihum-level-section { scroll-margin-top: calc(var(--header-height) + 24px); }
.cihum-level-section + .cihum-level-section { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.cihum-level-section > h2 { margin: 0 0 8px; font-size: clamp(30px, 4.2vw, 42px); }
.cihum-program-group { scroll-margin-top: calc(var(--header-height) + 24px); }
.cihum-program-group + .cihum-program-group { margin-top: 40px; }
.cihum-program-group h2, .cihum-program-group h3 { margin: 0; font-size: clamp(22px, 2.8vw, 28px); }
.cihum-program-group .cihum-grid { margin-top: 20px; }

/* 13. Footer */
.site-footer { padding: 64px 0 28px; background: var(--footer-bg); color: var(--footer-text); }
.footer-compact { padding-top: 36px; }
.site-footer p, .site-footer a, .site-footer h2 { color: inherit; }
.footer-grid { display: grid; grid-template-columns: repeat(var(--footer-columns, 3), minmax(0, 1fr)); gap: 48px; }
.footer-brand strong { font-size: 19px; line-height: 1.3; }
.footer-brand p { max-width: 42ch; margin: 12px 0 0; opacity: 0.8; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.footer-logos img { max-width: 100%; max-height: var(--footer-logo-h, 80px); object-fit: contain; }
.footer-col h2 { margin: 0 0 14px; font-size: 16px; font-weight: 700; letter-spacing: 0; color: #fff; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a { display: block; margin: 0; padding: 5px 0; font-size: 15px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { margin: 10px 0 0; font-size: 15px; opacity: 0.85; }
.footer-col address { font-style: normal; font-size: 15px; opacity: 0.85; }
.social-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.funding { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); text-align: center; }
.funding img, .funding a { display: inline-block; }
.funding img { max-width: 100%; max-height: var(--espa-logo-h, 120px); object-fit: contain; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13px; opacity: 0.85; }
.footer-widget h2 { font-size: 16px; }
.site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--navy); }

/* 14. Forms & pagination */
input, select, textarea {
	max-width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #9aa9b7;
	border-radius: 8px;
	background: var(--paper);
	color: var(--ink);
}
textarea { min-height: 120px; }
.pagination, .navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--button-radius);
	font-weight: 600;
	color: var(--navy);
}
a.page-numbers:hover { border-color: var(--navy); }
.page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-numbers.dots { border-color: transparent; }

/* 15. Utilities */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.hide_desktop { display: none; }

/* 16. Responsive */
@media (max-width: 1050px) {
	.js .site-header .menu-toggle { display: inline-grid; }
	.js .site-header .main-nav { display: none; }
	.js .site-header .main-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - var(--header-height));
		overflow-y: auto;
		padding: 12px 20px 24px;
		background: var(--header-bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}
	.js .site-header .main-nav > ul { display: block; }
	.js .site-header .main-nav li { display: block; }
	.js .site-header .main-nav .menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.js .site-header .main-nav li > a { display: block; flex: 1; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
	.js .site-header .submenu-toggle { width: 44px; height: 44px; }
	.js .site-header .main-nav .sub-menu,
	.js .site-header .main-nav .sub-menu .sub-menu,
	.js .site-header .main-nav .career-mega-menu > .sub-menu { position: static; flex-basis: 100%; width: auto; max-width: none; margin: 0 0 8px 12px; padding: 0; border: 0; box-shadow: none; }
	.js .site-header .main-nav .career-mega-menu.submenu-open > .sub-menu { display: block; }
	.js .site-header .header-tools { margin-left: auto; }
	.hero-grid, .feature { grid-template-columns: 1fr; gap: 40px; }
	.feature.image-left .feature-media { order: 0; }
	.kind-hero .section-picture img { height: 420px; border-radius: 28px; }
	.cihum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wp-block-columns.career-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .site-header.is-sticky { top: 46px; }
}
@media (max-width: 680px) {
	.container { width: min(calc(100% - 32px), var(--container)); }
	.header-inner { gap: 10px; min-height: 68px; }
	.brand { gap: 10px; }
	.brand-copy strong { font-size: 13px; }
	.brand-copy span, .secondary-logo { display: none; }
	.brand-logo { max-width: 70px; max-height: min(var(--brand-logo-h, 62px), 44px); }
	.brand-mobile { display: block; max-width: 64px; }
	.brand:has(.brand-mobile) .brand-desktop { display: none; }
	.brand-mark { width: 38px; height: 38px; font-size: 13px; }
	.header-cta { min-height: 40px; max-width: 108px; padding: 6px 12px; font-size: 12px; white-space: normal; line-height: 1.15; }
	.hero { padding: 48px 0 40px; }
	.kind-hero { padding-top: 44px; padding-bottom: 44px; }
	.hero h1, .kind-hero h1 { font-size: var(--hero-mobile); }
	.section { padding: calc(var(--section-space) * 0.68) 0; }
	.section-picture img, .kind-hero .section-picture img { height: 300px; }
	.visual-placeholder, .kind-hero .visual-placeholder { min-height: 280px; }
	.cihum-grid, .content-facts, .footer-grid { grid-template-columns: 1fr; }
	.wp-block-columns.career-paths { grid-template-columns: 1fr; }
	.career-paths > .wp-block-column { min-height: 0; }
	.footer-grid { gap: 32px; }
	.inner-hero { padding: 40px 0 32px; }
	.content-wrap { padding-block: 40px 56px; }
	.archive-filters > *, .filter-field { width: 100%; }
	.archive-filters select, .archive-filters input { width: 100%; }
	.actions .btn { flex: 1 1 auto; }
	.hide_desktop { display: block; }
	.hide_mobile { display: none; }
}
@media (max-width: 600px) {
	.admin-bar .site-header.is-sticky { top: 0; }
}

/* 17. Motion & print */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
	.btn-primary, .header-cta, .page-numbers.current { border: 2px solid ButtonText; }
	.kicker::before { background: CanvasText; }
}
@media print {
	.site-header, .site-footer, .skip-link, .top-notice, .archive-filters, .actions { display: none !important; }
	body { color: #000; background: #fff; }
	.section { padding: 24px 0; }
}
