/**
 * EYM theme — Phase 4 visual parity.
 * Ports live Codebase styles; then crush Dash/BS4 defaults that break chrome.
 */
@import url("assets/css/styles.baseline.css");

/* -------------------------------------------------------------------------- */
/* Dash/BS4 conflict overrides — keep EYM float/justified chrome intact        */
/* -------------------------------------------------------------------------- */

/* Outer shell: Dash BS4 row gutters inflate width past the viewport and shove
   .container to the left (margin:0 + left:-15). Live centers 1240px containers. */
body.body-eym #all > .row.row-offcanvas,
body.body-eym #all > .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.body-eym .site-wrap.col-xs-12,
body.body-eym .site-wrap {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Contained content — restore BS3-style centered containers */
body.body-eym .container {
	margin-left: auto !important;
	margin-right: auto !important;
	max-width: none !important;
	padding-left: 15px;
	padding-right: 15px;
}
@media (min-width: 768px) {
	body.body-eym .container {
		width: 750px !important;
	}
}
@media (min-width: 992px) {
	body.body-eym .container {
		width: 970px !important;
	}
}
@media (min-width: 1200px) {
	body.body-eym .container {
		width: 1170px !important;
	}
}
@media (min-width: 1600px) {
	body.body-eym .container {
		width: 1240px !important;
	}
}

/* Dash public.js adds nav-main-rows when it thinks items overflow; under a
   display:block parent + Dash flex items that became full-width, that always
   stacks. Force a live-like horizontal justified bar. */
body.body-eym .nav-main,
body.body-eym #nav-main,
body.body-eym .nav-main.nav-main-rows,
body.body-eym .nav-main.nav-main-compact {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	justify-content: space-between;
	float: left !important;
	width: 100% !important;
	margin: -5px 0 0 0;
	padding: 0 !important;
	background: #fff;
	border: 0 !important;
	border-radius: 8px;
	box-shadow: 0 0 8px #999;
	list-style: none;
}

body.body-eym .nav-main > li.nav-main-item,
body.body-eym .nav-main.nav-tabs > li.nav-main-item {
	display: block !important;
	float: none !important;
	flex: 1 1 0 !important;
	width: auto !important;
	max-width: none !important;
	margin: 0;
	padding: 0;
	/* Live inset: soft gray fade at the top so the bright white sits
	   visually centered on the gold strip (solid #fff looked top-heavy). */
	background: linear-gradient(
		to bottom,
		rgba(204, 204, 204, 0.65) 0%,
		rgba(147, 147, 147, 0) 28%,
		rgba(0, 0, 0, 0) 100%
	) !important;
	position: relative;
}

/* Vertical rules between items (live look) */
body.body-eym .nav-main > li.nav-main-item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 20%;
	right: 0;
	width: 1px;
	height: 60%;
	background: #ccc;
	pointer-events: none;
}

body.body-eym .nav-main > li.nav-main-item > a.nav-main-item-link,
body.body-eym .nav-tabs > li > a.nav-main-item-link {
	display: block !important;
	width: 100% !important;
	color: #282828 !important;
	font-family: "vista-sans", sans-serif !important;
	/* Live nav weight is 400 (vista-sans still reads bold); 800 was too heavy */
	font-size: 1.25rem !important;
	font-weight: 400 !important;
	line-height: 1.5rem !important;
	padding: 8px !important;
	text-align: center;
	text-transform: uppercase;
	text-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	/* Prevent "Free Resources" wrapping — that stretches the whole flex row */
	white-space: nowrap !important;
}

@media (min-width: 992px) {
	body.body-eym .nav-main > li.nav-main-item > a.nav-main-item-link,
	body.body-eym .nav-tabs > li > a.nav-main-item-link {
		font-size: 1.5rem !important;
		line-height: 1.75rem !important;
		padding: 16px 8px !important;
	}
}

@media (min-width: 1200px) {
	body.body-eym .nav-main > li.nav-main-item > a.nav-main-item-link,
	body.body-eym .nav-tabs > li > a.nav-main-item-link {
		font-size: 2rem !important;
		line-height: 2rem !important;
		padding: 24px 16px !important;
	}
}

body.body-eym .nav-main > li.nav-main-item > a.nav-main-item-link:hover,
body.body-eym .nav-main > li.nav-main-item > a.nav-main-item-link:focus {
	background: #fff !important;
	color: #282828 !important;
	text-decoration: none !important;
}

/* Hide Dash search chrome that leaks into EYM header */
body.body-eym .search-wrap,
body.body-eym .search-toggle,
body.body-eym .mobile-action-trigger.search-toggle,
body.body-eym .header-item-nav,
body.body-eym .by {
	display: none !important;
}

/* Soften Dash library spacing that fights EYM floats */
body.body-eym #topbar .header-wrap {
	display: contents;
}

/* Live: .banner-wrapper { padding:0; width:100% } beats BS .container until
   ≥1600 where .container { width:1240px } recenters it. Theme .container
   !important widths/padding were pinning the banner at 1170 and leaving
   dark #282828 gaps on both sides of the header graphic. */
body.body-eym #topbar .banner-wrapper.container {
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
@media (min-width: 1600px) {
	body.body-eym #topbar .banner-wrapper.container {
		width: 1240px !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Footer: Dash/Bootstrap p { color:#333 } beats baseline footer { color:#fff } */
body.body-eym footer,
body.body-eym footer p,
body.body-eym footer .footer-heading {
	color: #fff !important;
}

/* Keep identity/logo plane readable over Dash header defaults.
   Do NOT lock identity/logo heights — baseline media queries set 120/180/200. */
@media (min-width: 768px) {
	body.body-eym .eym-home-mobile-banner,
	body.body-eym .eym-home-mobile-cta {
		display: none !important;
	}
	body.body-eym #topbar.header-navbar {
		overflow: visible !important;
	}
	body.body-eym #topbar .identity {
		position: relative;
		z-index: 4;
		margin-left: 0 !important;
		left: 0 !important;
		/* Dash @1200 adds padding-top:12px which shifts banner-border down inside
		   overflow:hidden and clips the yellow curve tips off the gold strip. */
		padding: 0 !important;
		border-left: 16px solid #282828 !important;
		border-right: 16px solid #282828 !important;
		overflow: hidden !important;
	}
	/* Dash styles.css sets img { max-width:100%; height:auto } — restore EYM sizes */
	body.body-eym #topbar .identity-img,
	body.body-eym #topbar .banner-border {
		width: auto !important;
		max-width: none !important;
		height: 120px !important;
	}
	body.body-eym #topbar .identity-actions {
		z-index: 5;
	}
	body.body-eym #topbar .nav-wrapper {
		clear: both;
		z-index: 5;
	}
}
@media (min-width: 992px) {
	body.body-eym #topbar .identity-img,
	body.body-eym #topbar .banner-border {
		height: 180px !important;
	}
}
@media (min-width: 1200px) {
	body.body-eym #topbar .identity-img,
	body.body-eym #topbar .banner-border {
		height: 200px !important;
	}
}
/* Baseline drops identity side borders at ultra-wide */
@media (min-width: 1600px) {
	body.body-eym #topbar .identity {
		border-left: 0 !important;
		border-right: 0 !important;
	}
}

/* Header wings: Dash paints #topbar white; live uses #282828 behind centered banner.
   Dash .header-navbar also adds padding + a 0 3px 4px shadow. The shadow paints
   under the collapsed (float-escaped) header box and shows as a white/grey seam
   between the dark banner and the gold nav strip — kill both. */
body.body-eym #topbar.header-navbar {
	background: #282828 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

/* Live .nav-wrapper is padding:0 with height 30/40/60 across breakpoints.
   Do not inflate it — extra top pad pushes nav over the teal title. */
body.body-eym #topbar .nav-wrapper {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Headings — crush BS4 reboot (h2=2rem/500) back to live vista-sans scale     */
/* -------------------------------------------------------------------------- */
body.body-eym h1,
body.body-eym h2,
body.body-eym h3,
body.body-eym h4,
body.body-eym h5,
body.body-eym h6 {
	font-family: "vista-sans", sans-serif !important;
	font-weight: 800 !important;
	line-height: normal;
}

/* Body section headings (Links, Training, home modules, Contact CTA) — live ~30px */
body.body-eym h2:not(.footer-heading):not(.banner-title),
body.body-eym .eym-contact-heading {
	font-size: 30px !important;
	font-weight: 800 !important;
	line-height: normal !important;
	color: #222 !important;
	margin: 20px 0 10px;
}

/* Home carousel titles stay white over the hero photo (size from baseline).
   Keep live h2 margin — margin:0 pulled titles up under the hanging nav bar. */
body.body-eym h2.banner-title {
	color: #fff !important;
	margin: 20px 0 10px !important;
}

/* Slightly tighter banner copy than baseline 1.85/2.6 — frees a line of room. */
body.body-eym .banner-text {
	font-size: 1.7rem !important;
	line-height: 2.4rem !important;
}

/* Carousel arrows — live Glyphicons @ 30px; Dash has no glyphicon font. */
body.body-eym #home-carousel .carousel-control {
	width: 40px !important;
	opacity: 0.5;
	background: none !important;
	background-image: none !important;
	text-shadow: none;
	z-index: 5;
}
body.body-eym #home-carousel .carousel-control:hover,
body.body-eym #home-carousel .carousel-control:focus {
	opacity: 0.9;
	color: #fff !important;
}
body.body-eym #home-carousel .carousel-control .fas,
body.body-eym #home-carousel .carousel-control .fa {
	position: absolute;
	top: 50%;
	margin-top: -15px;
	font-size: 30px !important;
	line-height: 30px !important;
	color: #fff !important;
	display: block !important;
	width: 30px;
	height: 30px;
	text-align: center;
}
body.body-eym #home-carousel .carousel-control-prev .fas,
body.body-eym #home-carousel .carousel-control.left .fas,
body.body-eym #home-carousel .carousel-control-prev .fa,
body.body-eym #home-carousel .carousel-control.left .fa {
	left: 0;
}
body.body-eym #home-carousel .carousel-control-next .fas,
body.body-eym #home-carousel .carousel-control.right .fas,
body.body-eym #home-carousel .carousel-control-next .fa,
body.body-eym #home-carousel .carousel-control.right .fa {
	right: 0;
}

/* Home carousel CTA — Dash btn-lg is rem-shrunk + weight 900; live is 18/400, pad 10×16. */
body.body-eym .item .btn,
body.body-eym .carousel-item .btn,
body.body-eym #home-carousel .btn {
	background: #282828 !important;
	border: 1px solid #f7b200 !important;
	border-radius: 6px !important;
	color: #f7b200 !important;
	font-family: "vista-sans", sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 24px !important;
	padding: 10px 16px !important;
}
body.body-eym .item .btn img,
body.body-eym .carousel-item .btn img,
body.body-eym #home-carousel .btn img {
	display: inline-block !important;
	width: 24px !important;
	height: auto !important;
	margin: 0 4px 0 0 !important;
	vertical-align: middle;
}

/* Page title band — live .post h1 scale (3.25 → 4 @768 → 5 @1600 only).
   Crush Dash h1.page-title { display:flex; margin-bottom:24px } — live is block
   with UA/Bootstrap margin 20px 0 10px so the teal sits just under the nav. */
body.body-eym h1.page-title,
body.body-eym .post h1,
body.body-eym main > h1.page-title {
	background: #80afd2 !important;
	color: #fff !important;
	font-family: "vista-sans", sans-serif !important;
	font-weight: 800 !important;
	font-size: 3.25rem !important;
	line-height: 3.75rem !important;
	padding: 36px 12px 28px 12px !important;
	margin: 20px 0 10px !important;
	display: block !important;
	justify-content: initial;
	align-items: initial;
	flex-wrap: nowrap;
	min-height: 0 !important;
	text-align: center !important;
	text-shadow: 2px 2px 2px #000 !important;
	width: 100% !important;
	float: left;
}
@media (min-width: 768px) {
	body.body-eym h1.page-title,
	body.body-eym .post h1,
	body.body-eym main > h1.page-title {
		font-size: 4rem !important;
		line-height: 4.5rem !important;
		padding: 44px 24px !important;
	}
}
@media (min-width: 1200px) {
	body.body-eym h1.page-title,
	body.body-eym .post h1,
	body.body-eym main > h1.page-title {
		/* Live keeps 4rem here; only padding grows */
		font-size: 4rem !important;
		line-height: 4.5rem !important;
		padding: 54px 24px !important;
	}
}
@media (min-width: 1600px) {
	body.body-eym h1.page-title,
	body.body-eym .post h1,
	body.body-eym main > h1.page-title {
		font-size: 5rem !important;
		line-height: 5.5rem !important;
	}
}

/* Page body breathing room */
body.body-eym .post-body,
body.body-eym .pan .post-body,
body.body-eym main .pan {
	padding-top: 24px;
	padding-bottom: 24px;
}
body.body-eym .post-body h2 {
	margin: 20px 0 10px;
}
body.body-eym .post-body p {
	margin: 0 0 1.1em;
	line-height: 1.55;
	color: #222;
}

/* Contact / CTA hooks */
body.body-eym .eym-contact {
	padding: 32px 0 48px;
}
body.body-eym .eym-contact-heading {
	text-align: center;
	margin: 0 0 20px !important;
}
body.body-eym .eym-contact-mailto {
	display: inline-block;
	background: #80afd2 !important;
	border: 1px solid #27ae60 !important;
	color: #fff !important;
	font-size: 24px !important;
	font-weight: 900 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 20px 40px !important;
	border-radius: 6px;
	text-decoration: none !important;
}
body.body-eym .eym-contact-mailto:hover,
body.body-eym .eym-contact-mailto:focus {
	background: #6a9ec2 !important;
	color: #fff !important;
}
body.body-eym .eym-contact .btn-wrap {
	text-align: center;
}
body.body-eym .eym-cta {
	margin-top: 1.5rem;
}
body.body-eym .eym-cta .btn {
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
}

/* Home modules */
body.body-eym .eym-home-body,
body.body-eym .eym-home-modules {
	float: left;
	width: 100%;
}
body.body-eym .featured-media .featured-media-item-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 12px;
}
/* Live featured titles: BS3 link blue + 18px / 800 (not BS4 primary blue) */
body.body-eym a.featured-media-item {
	color: #337ab7 !important;
	text-decoration: none !important;
}
body.body-eym a.featured-media-item:hover,
body.body-eym a.featured-media-item:focus {
	color: #23527c !important;
}
body.body-eym .featured-media:not(.featured-media-tags) .featured-media-item-heading {
	margin: 10px 0 !important;
	padding: 0 4px;
	font-size: 18px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	color: inherit !important;
	text-align: center;
}

/* Products / free-resources catalogue */
body.body-eym .eym-catalogue .container {
	padding-top: 16px;
	padding-bottom: 40px;
}
body.body-eym .eym-blog-intro {
	padding: 8px 0 16px;
	font-size: 1.75rem;
	line-height: 1.45;
	color: #222;
}
body.body-eym .eym-blog-intro a {
	color: #337ab7;
}
body.body-eym .eym-catalogue-empty {
	padding: 24px 0;
	font-size: 1.6rem;
}
body.body-eym .eym-catalogue-mobile-cats {
	margin-bottom: 16px;
}
body.body-eym .eym-catalogue .badge,
body.body-eym .eym-catalogue .js-tag.badge {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 9px;
	background: #777;
	border-radius: 10px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
}
body.body-eym .eym-catalogue-tags {
	padding-top: 2px;
}
body.body-eym .eym-catalogue .postlist-item-link {
	border-bottom: 1px solid #ddd;
	color: #333;
}
body.body-eym .eym-catalogue .postlist-item-link:hover,
body.body-eym .eym-catalogue .postlist-item-link:focus {
	color: #80afd2;
	text-decoration: none;
}
body.body-eym .eym-catalogue .postlist-item-link-title {
	font-weight: 900;
}
body.body-eym .eym-catalogue .postlist-item-text.js-desc {
	padding-top: 6px;
	padding-bottom: 4px;
}
body.body-eym .eym-catalogue-sidenav {
	margin-top: 8px;
}
body.body-eym aside.sidenav h3,
body.body-eym aside.sidenav .sidenav-heading {
	font-size: 2.6rem !important;
	line-height: 2.6rem !important;
	font-weight: 800 !important;
	color: #222 !important;
	padding: 0 16px;
}

/* Footer — white text, smaller copyright, less cramped */
body.body-eym footer,
body.body-eym footer p,
body.body-eym footer .footer-heading {
	color: #fff !important;
}
body.body-eym footer .footer-heading {
	margin: 0 0 12px;
	/* Match baseline responsive scale (2.2 → 2.4 @768 → 2.6 @992) */
	font-size: 2.2rem !important;
	line-height: 2.2rem !important;
	font-weight: 800 !important;
	color: #fff !important;
}
@media (min-width: 768px) {
	body.body-eym footer .footer-heading {
		font-size: 2.4rem !important;
		line-height: 2.4rem !important;
	}
}
@media (min-width: 992px) {
	body.body-eym footer .footer-heading {
		font-size: 2.6rem !important;
		line-height: 2.6rem !important;
	}
}
body.body-eym footer .social {
	margin: 0 0 8px;
}
body.body-eym footer p {
	font-size: 1.35rem !important;
	line-height: 1.5 !important;
	padding: 16px 0 8px !important;
	font-weight: 400;
	max-width: 40em;
}
body.body-eym footer .col-xs-12,
body.body-eym footer [class*="col-"] {
	float: none;
	width: 100% !important;
	max-width: 100%;
	/* Live keeps BS horizontal col pad (15px); without it the row’s -15px
	   margin flushes “Get in touch” to the viewport edge on mobile. */
	padding-left: 15px !important;
	padding-right: 15px !important;
}
@media (max-width: 767px) {
	body.body-eym footer .container {
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
}

@media (max-width: 767px) {
	body.body-eym .nav-main,
	body.body-eym #nav-main {
		display: none !important;
	}

	/* Dash .identity-img { width:36px } — restore live ~126×60 logo */
	body.body-eym #topbar .identity-img,
	body.body-eym #topbar .banner-border {
		width: auto !important;
		max-width: none !important;
		height: 60px !important;
		margin: 0 !important;
	}

	body.body-eym #topbar .banner-wrapper.container {
		padding-left: 8px !important;
		padding-right: 8px !important;
		height: 60px !important;
		/* Keep overflow visible so absolute .mobile-action is not clipped */
		overflow: visible !important;
		position: relative !important;
	}
	body.body-eym #topbar .identity {
		overflow: hidden !important;
		height: 60px !important;
	}

	/* Live mobile home strip (img + products CTA). Hidden with .hero/.b under 768. */
	body.body-eym .eym-home-mobile-banner {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		margin-top: -36px !important;
	}
	body.body-eym .eym-home-mobile-cta {
		display: block !important;
		border-radius: 6px !important;
		text-align: center !important;
	}

	/* Dash emits .mobile-action / .fas; live baseline styles .mobile-menu / .fa.
	   Float wraps the trigger onto the title strip as a black icon — pin it white
	   in the dark bar like production. */
	body.body-eym #topbar .mobile-action {
		display: block !important;
		position: absolute !important;
		top: 0 !important;
		right: 12px !important;
		z-index: 1000 !important;
		float: none !important;
		margin: 4px 0 0 0 !important;
		padding: 8px !important;
		width: auto !important;
		min-height: 0 !important;
	}
	body.body-eym #topbar .mobile-action-trigger {
		border: none !important;
		background: none !important;
		color: #fff !important;
		float: none !important;
		padding: 0 !important;
	}
	body.body-eym #topbar .mobile-action-trigger-icon,
	body.body-eym #topbar .mobile-action .fas,
	body.body-eym #topbar .mobile-action .fa,
	body.body-eym #topbar .mobile-action .far {
		color: #fff !important;
		font-size: 2.6rem !important;
		line-height: 1 !important;
	}
	body.body-eym #topbar .mobile-action-trigger-mask {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		height: 44px;
		width: 100%;
	}

	/* Live .post { margin-top:-24px } pulls the teal title under the 60px bar.
	   About (and other pages) emit bare main > h1 without .post — match the pull. */
	body.body-eym main > .post {
		margin-top: -24px !important;
	}
	body.body-eym main > h1.page-title {
		margin-top: -4px !important;
	}

	/* Mobile offcanvas — Dash paints .offcanvas-nav-item { color:#fff } on an
	   active panel background of #eee, so the menu looks empty (white on light).
	   Live uses .nav-mobile-item: white panel, dark centered links, dark X.
	   Baseline also sets #offcanvas { left:-100% } which keeps the Dash panel
	   off-screen even when .active — pin it fixed/right:0 when open. */
	body.body-eym #offcanvas.sidebar-offcanvas {
		left: auto !important;
		right: -100% !important;
		position: fixed !important;
		top: 0 !important;
		width: 100% !important;
		height: 100vh !important;
		z-index: 999999 !important;
		background-color: #fff !important;
		background: #fff !important;
		color: #333 !important;
		font-size: 2.5rem !important;
		padding-right: 54px !important;
	}
	body.body-eym .row-offcanvas-right.active #offcanvas.sidebar-offcanvas {
		right: 0 !important;
		left: auto !important;
	}
	/* Don't slide the whole page when using fixed panel */
	body.body-eym .row-offcanvas-right.active {
		right: auto !important;
	}
	body.body-eym .row-offcanvas-right.active .sidebar-offcanvas button.offcanvas-close,
	body.body-eym #offcanvas .offcanvas-close {
		background: none !important;
		border: 0 !important;
		color: #333 !important;
		float: right !important;
		font-size: 3rem !important;
		margin: 8px 0 0 0 !important;
		padding: 12px 16px !important;
	}
	body.body-eym #offcanvas .offcanvas-close .fas,
	body.body-eym #offcanvas .offcanvas-close .fa {
		color: #333 !important;
		opacity: 1 !important;
	}
	body.body-eym #offcanvas .offcanvas-nav {
		height: auto !important;
		overflow: visible !important;
		float: left;
		padding-bottom: 24px;
		width: 100%;
	}
	body.body-eym #offcanvas .offcanvas-nav-item,
	body.body-eym #offcanvas a.offcanvas-nav-item {
		background-color: #fff !important;
		background: #fff !important;
		border: 0 !important;
		color: #333 !important;
		display: block !important;
		float: left;
		font-size: 2rem !important;
		line-height: 2.4rem !important;
		margin: 0 !important;
		padding: 16px 12px !important;
		text-align: center !important;
		text-decoration: none !important;
		width: 100% !important;
	}
	body.body-eym #offcanvas .offcanvas-nav-item:hover,
	body.body-eym #offcanvas .offcanvas-nav-item:focus,
	body.body-eym #offcanvas .offcanvas-nav-item:active {
		color: #333 !important;
		text-decoration: none !important;
	}
}
