/* ==========================================================================
   Shuttle – EAMC child theme
   EAMC blues, Open Sans, calmer spacing. Structure comes from Shuttle.
   ========================================================================== */


:root {
	--eamc-blue: #2569a9;
	--eamc-blue-dark: #114889;
	--eamc-sky: #73b1ce;
	--eamc-tint: #e7f0f8;
	--eamc-ink: #1c2b33;
	--eamc-slate: #50656e;
	--eamc-line: #d5dfe6;
	--eamc-ground: #f4f7fa;
	--eamc-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--eamc-max: 1180px;
}

/* ---------- Base ---------- */
body.eamc-site,
body.eamc-site #body-core { background: var(--eamc-ground); }
body.eamc-site,
body.eamc-site button,
body.eamc-site input,
body.eamc-site select,
body.eamc-site textarea {
	font-family: var(--eamc-font);
	color: var(--eamc-ink);
	font-weight: 400;
	line-height: 1.6;
}
body.eamc-site h1, body.eamc-site h2, body.eamc-site h3, body.eamc-site h4, body.eamc-site h5, body.eamc-site h6 {
	font-family: var(--eamc-font);
	color: var(--eamc-ink);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	text-transform: none;
	text-wrap: balance;
}
body.eamc-site a { color: var(--eamc-blue); }
body.eamc-site a:hover { color: var(--eamc-blue-dark); }
body.eamc-site strong, body.eamc-site b { font-weight: 700; }
body.eamc-site ::selection { background: var(--eamc-sky); color: #fff; }
body.eamc-site :focus-visible { outline: 3px solid var(--eamc-sky); outline-offset: 2px; }

body.eamc-site #pre-header-core,
body.eamc-site #header-core,
body.eamc-site #content-core,
body.eamc-site #sub-footer-core,
body.eamc-site #intro-core { max-width: var(--eamc-max); padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

/* ---------- Header ---------- */
body.eamc-site #pre-header { display: none; }
body.eamc-site #header {
	font-family: var(--eamc-font);
	background: #fff;
	border-bottom: 0;
	box-shadow: 0 1px 0 var(--eamc-line), 0 4px 18px rgba(17, 72, 137, 0.06);
}
body.eamc-site #header-core { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
body.eamc-site #header-core::after { display: none; }
body.eamc-site #logo { float: none; margin: 0; }
body.eamc-site #logo a { text-decoration: none; display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; justify-content: start; }
body.eamc-site #logo a::before {
	content: "";
	flex: none;
	grid-row: 1 / span 2;
	width: 46px; height: 46px; border-radius: 50%;
	/* Same artwork as the site icon (favicon): white EAMC in a blue circle. */
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Ccircle cx='256' cy='256' r='256' fill='%232569A9'/%3E%3Cpath fill='%23fff' d='M117.1 319.2H56.3V192.9H117.1V218.4H86.4V241.2H114.9V266.7H86.4V293.4H117.1ZM194.1 319.2 189.4 294.6H162.1L157.3 319.2H124.8L155.5 192.9H195.2L226.4 319.2ZM184.7 268.7 179.6 240.5Q178.8 235.7 178 231.2Q177.3 226.8 176.7 222.6Q176.2 218.5 175.7 215Q175.4 218.4 174.8 222.4Q174.3 226.5 173.5 230.9Q172.7 235.4 171.8 240.1L166.5 268.7ZM286.5 319.2 264.7 234.3H264Q264.5 240 264.8 245.3Q265.1 250.6 265.2 255.4Q265.4 260.1 265.4 264.3V319.2H237.3V192.9H278.6L298.2 268.7H298.7L318.4 192.9H359.3V319.2H330.4V263.8Q330.4 259.1 330.6 254.4Q330.7 249.6 331 244.6Q331.3 239.6 331.6 234.3H330.9L308.8 319.2ZM426.8 216.9Q422.4 216.9 419 219.6Q415.5 222.3 413.2 227.5Q410.8 232.6 409.6 240Q408.4 247.3 408.4 256.6Q408.4 269.3 410.6 277.9Q412.8 286.5 417.2 290.7Q421.6 294.9 428.3 294.9Q434.4 294.9 440.1 292.6Q445.7 290.3 451.4 287V313.9Q445.4 317.5 438.4 319.2Q431.3 320.9 423.5 320.9Q408.4 320.9 398.1 313.5Q387.8 306.1 382.5 291.6Q377.1 277.2 377.1 256.4Q377.1 241.8 380.4 229.8Q383.6 217.8 389.8 209.1Q395.9 200.5 404.6 195.8Q413.3 191.1 424.2 191.1Q432.6 191.1 440.3 193.2Q448.1 195.4 455.7 200L447.7 224.7Q442.7 221.1 437.6 219Q432.5 216.9 426.8 216.9Z'/%3E%3C/svg%3E") center / 46px 46px no-repeat;
}
body.eamc-site #logo h1.site-title { font-size: 20px; font-weight: 800; color: var(--eamc-blue-dark); margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
body.eamc-site #logo h2.site-description { font-size: 13px; font-weight: 400; color: var(--eamc-slate); margin: 2px 0 0; line-height: 1.3; }
body.eamc-site #logo h1.site-title { grid-column: 2; align-self: end; }
body.eamc-site #logo h2.site-description { grid-column: 2; align-self: start; }

body.eamc-site #header-links,
body.eamc-site #header-links-inner { float: none; }
body.eamc-site #header .header-links > ul { display: flex; align-items: center; gap: 4px; }
body.eamc-site #header .header-links > ul > li { float: none; }
body.eamc-site #header .header-links > ul > li > a {
	padding: 10px 14px;
	font-family: var(--eamc-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--eamc-ink);
	border-radius: 8px;
	text-transform: none;
	letter-spacing: 0;
	transition: background 0.15s, color 0.15s;
}
body.eamc-site #header .header-links > ul > li > a:hover { background: var(--eamc-tint); color: var(--eamc-blue-dark); }
body.eamc-site #header .header-links > ul > li.current-menu-item > a,
body.eamc-site #header .header-links > ul > li.current_page_item > a { color: var(--eamc-blue); box-shadow: inset 0 -3px 0 var(--eamc-blue); border-radius: 8px 8px 0 0; }
body.eamc-site #header .header-links > ul > li.eamc-menu-login > a {
	background: var(--eamc-blue);
	color: #fff;
	margin-left: 18px;
	padding: 10px 18px;
	box-shadow: none;
	border-radius: 8px;
}
body.eamc-site #header .header-links > ul > li.eamc-menu-login > a:hover { background: var(--eamc-blue-dark); color: #fff; }

/* Drop-down (staff "Manage" menu) */
body.eamc-site #header .header-links > ul > li { position: relative; }
/* Replace Shuttle's font-icon arrow with a small chevron that takes up its own space. */
body.eamc-site #header .header-links > ul > li.eamc-menu-manage > a { padding-right: 16px; }
body.eamc-site #header .header-links > ul > li.eamc-menu-manage > a::after { content: "" !important; position: static; display: inline-block; width: 6px; height: 6px; padding: 0; margin: 0 0 3px 9px; font-size: 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
body.eamc-site #header .header-links .sub-menu { min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--eamc-line); border-radius: 10px; box-shadow: 0 12px 30px rgba(17, 72, 137, 0.14); }
body.eamc-site #header .header-links .sub-menu li { float: none; margin: 0; border: 0; background: none; }
body.eamc-site #header .header-links .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-family: var(--eamc-font); font-size: 14px; font-weight: 600; color: var(--eamc-ink); background: none; text-transform: none; letter-spacing: 0; border: 0; }
body.eamc-site #header .header-links .sub-menu a:hover,
body.eamc-site #header .header-links .sub-menu .current-menu-item > a { background: var(--eamc-tint); color: var(--eamc-blue-dark); }

/* Mobile menu */
body.eamc-site #header-nav .btn-navbar { border-radius: 8px; background: var(--eamc-blue); }
body.eamc-site #header-nav .btn-navbar .icon-bar { background: #fff; }
body.eamc-site #header-responsive { background: #fff; border-bottom: 1px solid var(--eamc-line); }
body.eamc-site #header-responsive li a { font-family: var(--eamc-font); font-size: 16px; font-weight: 600; color: var(--eamc-ink); padding: 12px 20px; border-top: 1px solid var(--eamc-line); }
body.eamc-site #header-responsive li.current-menu-item > a { color: var(--eamc-blue); }
body.eamc-site #header-responsive .sub-menu li a { padding-left: 38px; font-weight: 400; }

/* ---------- Slider (home hero) ---------- */
body.eamc-site #slider { background: var(--eamc-blue-dark); }
body.eamc-site #slider .rslides li { position: relative; }
body.eamc-site #slider .rslides li::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(17, 72, 137, 0.05) 30%, rgba(17, 72, 137, 0.6) 100%);
	pointer-events: none;
}
body.eamc-site #slider .rslides-content { z-index: 2; }
body.eamc-site #slider .featured-title span {
	font-family: var(--eamc-font);
	font-weight: 800;
	font-size: clamp(26px, 4vw, 46px);
	letter-spacing: -0.02em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
	background: none;
}

/* ---------- Page title band ---------- */
body.eamc-site #intro {
	background: var(--eamc-blue-dark);
	background-image: linear-gradient(120deg, var(--eamc-blue-dark) 0%, var(--eamc-blue) 100%);
	border: 0;
	padding: 36px 0 34px;
}
body.eamc-site #intro .page-title,
body.eamc-site #intro .page-title span {
	font-family: var(--eamc-font);
	color: #fff;
	background: none;
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
	padding: 0;
	border: 0;
	text-align: left;
}
body.eamc-site #intro #intro-core { text-align: left; }
body.eamc-home #intro { display: none; }

/* ---------- Content ---------- */
body.eamc-site #content { padding: 36px 0 56px; }
body.eamc-site.eamc-home #content { padding-top: 40px; }
body.eamc-site #content-core,
body.eamc-site #main-core { font-size: 16px; }
body.eamc-site .entry-content p,
body.eamc-site #main-core p { margin-bottom: 1em; }
body.eamc-site #main-core > article { background: transparent; }
body.eamc-site .eamc-lede { font-size: 18px; color: var(--eamc-slate); max-width: 64ch; }

/* Buttons from the block editor */
body.eamc-site .wp-block-button__link,
body.eamc-site .wp-element-button {
	background: var(--eamc-blue);
	color: #fff;
	border-radius: 8px;
	padding: 11px 20px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: 2px solid var(--eamc-blue);
	line-height: 1.2;
}
body.eamc-site .wp-block-button__link:hover { background: var(--eamc-blue-dark); border-color: var(--eamc-blue-dark); color: #fff; }
body.eamc-site .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--eamc-blue); }
body.eamc-site .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--eamc-tint); color: var(--eamc-blue-dark); }
body.eamc-site .wp-block-buttons { gap: 8px; }

/* Home sections */
body.eamc-site .eamc-welcome {
	background: var(--eamc-blue);
	background-image: linear-gradient(135deg, var(--eamc-blue) 0%, var(--eamc-blue-dark) 100%);
	color: #fff;
	border-radius: 18px;
	padding: clamp(24px, 4vw, 44px);
	margin: 0 0 32px; /* Sits below the header photo with a clear gap (#content adds the space above). */
	position: relative;
	z-index: 5;
	box-shadow: 0 16px 40px rgba(17, 72, 137, 0.2);
}
body.eamc-site .eamc-welcome h1 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
body.eamc-site .eamc-welcome p,
body.eamc-site .eamc-welcome .eamc-lede { color: rgba(255, 255, 255, 0.9); font-size: 18px; max-width: 60ch; }
body.eamc-site .eamc-welcome .eamc-dir-quicksearch input { border-color: transparent; }
body.eamc-site .eamc-welcome .eamc-dir-quicksearch .eamc-btn--primary { background: #fff; color: var(--eamc-blue-dark) !important; border-color: #fff; }
body.eamc-site .eamc-welcome .eamc-dir-quicksearch .eamc-btn--primary:hover { background: var(--eamc-tint); }

body.eamc-site .eamc-home-cards { gap: 20px; margin: 0 0 36px; }
body.eamc-site .eamc-home-cards > .wp-block-column {
	background: #fff;
	border: 1px solid var(--eamc-line);
	border-radius: 14px;
	padding: 24px 26px;
	display: flex;
	flex-direction: column;
}
body.eamc-site .eamc-home-cards h3 { font-size: 21px; margin: 0 0 8px; }
body.eamc-site .eamc-home-cards p { color: var(--eamc-slate); }
body.eamc-site .eamc-home-cards .wp-block-buttons { margin-top: auto; }

body.eamc-site #main-core > article h2.wp-block-heading { font-size: 24px; margin: 8px 0 16px; }
body.eamc-site .eamc-facilities { gap: 20px; margin-bottom: 36px; }
body.eamc-site .eamc-photo { margin: 0; }
body.eamc-site .eamc-photo img { border-radius: 14px; width: 100%; height: 320px; object-fit: cover; display: block; }
body.eamc-site .eamc-visit {
	border-left: 4px solid var(--eamc-sky);
	background: #fff;
	border-radius: 0 12px 12px 0;
	padding: 18px 22px;
}
body.eamc-site .eamc-visit h3 { margin: 0 0 6px; font-size: 18px; }
body.eamc-site .eamc-visit p { margin: 0; color: var(--eamc-slate); }

/* ---------- Footer ---------- */
body.eamc-site footer #sub-footer {
	background: var(--eamc-blue-dark);
	color: rgba(255, 255, 255, 0.85);
	border: 0;
	padding: 22px 0 16px;
}
/* Copyright line: its own bar at the very bottom of every page. */
body.eamc-site .eamc-copyright { background: var(--eamc-blue-dark); color: rgba(255, 255, 255, 0.78); font-family: var(--eamc-font); font-size: 13px; line-height: 1.5; }
body.eamc-site .eamc-copyright-core { max-width: var(--eamc-max); margin: 0 auto; padding: 14px 20px 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); text-align: center; box-sizing: border-box; }

/* Short pages: stretch the content so the footer sits at the bottom of the window. */
body.eamc-site #body-core { display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); }
@supports (min-height: 100dvh) {
	body.eamc-site #body-core { min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }
}
body.eamc-site #body-core > #content { flex: 1 0 auto; }
body.eamc-site #body-core > header,
body.eamc-site #body-core > footer { flex: none; }
body.eamc-site #sub-footer-core { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
body.eamc-site #sub-footer-core::after { display: none; }
body.eamc-site #sub-footer .copyright { float: none; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
body.eamc-site #sub-footer .sub-footer-links { float: none; }
body.eamc-site #sub-footer .sub-footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0; }
body.eamc-site #sub-footer .sub-footer-links li { float: none; margin: 0; padding: 0; border: 0; }
body.eamc-site #sub-footer .sub-footer-links a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
body.eamc-site #sub-footer .sub-footer-links a:hover { text-decoration: underline; }
body.eamc-site #sub-footer .sub-footer-links li::before,
body.eamc-site #sub-footer .sub-footer-links li::after { display: none; }

/* Hide the theme's scroll-to-top if it clashes */
body.eamc-site #scrollUp { background: var(--eamc-blue); border-radius: 8px; }

/* ---------- Small screens ---------- */
@media (max-width: 979px) {
	body.eamc-site #header-core { min-height: 72px; }
	body.eamc-site #header-links { display: none; }
	body.eamc-site #header-nav { position: static; margin: 0; }
}
@media (max-width: 600px) {
	body.eamc-site #logo a::before { width: 38px; height: 38px; background-size: 38px 38px; }
	body.eamc-site #logo h1.site-title { font-size: 17px; }
	body.eamc-site #logo h2.site-description { font-size: 12px; }
	body.eamc-site .eamc-welcome { border-radius: 14px; }
	body.eamc-site .eamc-photo img { height: 220px; }
	body.eamc-site #content { padding: 24px 0 40px; }
	body.eamc-site #sub-footer .sub-footer-links ul { flex-direction: column; align-items: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	body.eamc-site * { transition: none !important; }
}
