/* Shared styles for the 2026 homepage design (MyFI Design System). Content is 1200px wide, like the footer and the rest of the site */

:root {
	--navy-100: #DADEEE;
	--navy-600: #24306E;
	--navy-700: #1D2758;
	--navy-900: #1A224E;
	--sky-50: #E8F9FE;
	--sky-300: #55D3F5;
	--sky-400: #0BBBEF;
	--sky-500: #069CC9;
	--sky-600: #067CA1;
	--gray-100: #E9EDF4;
	--gray-200: #D8DEE9;
	--gray-600: #4A5468;
	--green-50: #E6F7EF;
	--green-500: #12A366;
	--font-2026: 'IBM Plex Sans', system-ui, sans-serif;
	--radius-2026: 8px;
	--shadow-2026-card: 0 4px 12px rgba(15, 20, 45, 0.08), 0 1px 3px rgba(15, 20, 45, 0.05);
	--shadow-2026-lg: 0 12px 28px rgba(15, 20, 45, 0.10), 0 2px 6px rgba(15, 20, 45, 0.06);
}

.design_2026 {
	font-family: var(--font-2026);
	-webkit-font-smoothing: antialiased;
	color: var(--gray-600);
	box-sizing: border-box;
}

/* The theme gives every section a bottom margin; the 2026 blocks set their own spacing */
section.design_2026 {
	margin-top: 0;
	margin-bottom: 0;
}

.design_2026 *,
.design_2026 *::before,
.design_2026 *::after {
	box-sizing: border-box;
}

.design_2026 h1,
.design_2026 h2,
.design_2026 h3 {
	font-family: var(--font-2026);
	color: var(--navy-600);
	letter-spacing: -0.02em;
	margin: 0;
}

.design_2026 h1,
.design_2026 h2,
.design_2026 h3 {
	text-wrap: balance;
}

.design_2026 p {
	margin: 0;
	text-wrap: pretty;
}

.design_2026_container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
}

.design_2026_title {
	font-size: 36px;
	line-height: 1.2;
	font-weight: 700;
}

/* Two-tone headings get taller lines, so every line is evenly spaced, also when the first part wraps */
.design_2026_title:has(.title_highlight) {
	line-height: 1.3;
}

.design_2026_title .title_highlight {
	display: block;
	color: var(--sky-400);
}

.design_2026_lead {
	font-size: 19px;
	line-height: 1.55;
}

.design_2026 .button_2026 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--radius-2026);
	background: var(--sky-400);
	color: #ffffff;
	font-family: var(--font-2026);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.14s ease;
}

.design_2026 .button_2026:hover,
.design_2026 .button_2026:focus-visible {
	background: var(--sky-500);
	color: #ffffff;
}

.design_2026 .button_2026 svg {
	flex: none;
	display: block;
}

.design_2026 a:focus-visible,
.design_2026 button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 187, 239, 0.45);
}

.design_2026 .design_2026_custom_icon {
	display: block;
	flex: none;
	max-width: none;
}

.design_2026 .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Page template: the hero holds the navigation, so the regular header is hidden */
.page-template-page-home-2026 header {
	display: none;
}

.page-template-page-home-2026.mobile_menu_open header,
.page-template-page-home-2026.account_menu_open header {
	display: block;
}

/* The theme removes the page offset for the admin bar, so the 2026 heroes make room for it themselves to keep their white space on top */
.admin-bar .hero_2026 {
	padding-top: calc(32px + var(--wp-admin--admin-bar--height, 32px));
}

.page-template-page-home-2026 article.page {
	padding-top: 0;
	padding-bottom: 0;
	background: #ffffff;
}

@media (max-width: 767px) {
	/* The theme hides the admin bar on phones */
	.admin-bar .hero_2026 {
		padding-top: 12px;
	}

	.design_2026_container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.design_2026_title {
		font-size: 28px;
		line-height: 1.15;
	}

	.design_2026_lead {
		font-size: 17px;
	}

	/* Mobile buttons are centered with a minimum width, not stretched */
	.design_2026 .button_2026 {
		min-width: 240px;
		padding: 0 28px;
		font-size: 18px;
		gap: 12px;
	}
}

/* Number badge, like the number of training requests in the menu */
.design_2026_count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--sky-400);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

/* Round profile photo of the signed in user */
.design_2026_photo {
	flex: none;
	display: block;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 50%;
	background: linear-gradient(180deg, #cfeefb, #9fdcf3);
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px var(--gray-100);
}

.design_2026_photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
