/*
 * Stuvila Agency header in the style of the Stuvila Learning and Skills headers:
 * white bar, round logo, "Stuvila" with a blue badge, blue outlined and filled buttons.
 * The header is in the page flow (sticky), so sections no longer leave room for the old fixed header.
 */
.sag-site { --sag-header-h: 0px; }
.sag-lhh {
	position: sticky;
	top: 0;
	z-index: 9990;
	background: var(--stuvila-surface,#FFFFFF);
	border-bottom: 1px solid var(--stuvila-border,#E2E8F0);
	box-shadow: 0 8px 24px -20px rgba(13, 19, 48, .45);
	font-family: "Noto Sans", system-ui, sans-serif;
	color: var(--stuvila-heading,#081B40);
}
body.admin-bar .sag-lhh { top: 32px; }
@media (max-width: 782px) {body.admin-bar .sag-lhh { top: 46px; } }
@media (max-width: 600px) {body.admin-bar .sag-lhh { top: 0; } }

.sag-lhh .sag-lhh__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 75px;
	padding: 0 32px;
	box-sizing: border-box;
}
.sag-lhh .sag-lhh__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--stuvila-heading,#081B40);
	text-decoration: none !important;
	flex: none;
}
.sag-lhh .sag-lhh__logo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; display: block; }
.sag-lhh .sag-lhh__name {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	font: 800 21px/1.1 "Plus Jakarta Sans", "Noto Sans", sans-serif;
	letter-spacing: -.01em;
	color: var(--stuvila-heading,#081B40);
}
.sag-lhh .sag-lhh__badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--stuvila-primary,#004EE4);
	color: #fff;
	font: 700 11px/1.1 "Noto Sans", sans-serif;
	letter-spacing: .02em;
}

.sag-lhh .sag-lhh__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sag-lhh .sag-lhh__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1.2px solid var(--stuvila-primary,#004EE4);
	border-radius: 10px;
	background: var(--stuvila-surface,#FFFFFF);
	color: var(--stuvila-heading,#081B40);
	font: 700 14px/1 "Noto Sans", sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	box-sizing: border-box;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.sag-lhh .sag-lhh__btn svg { flex: none; }
.sag-lhh .sag-lhh__icon { width: 40px; padding: 0; border-color: var(--stuvila-border,#E2E8F0); }
.sag-lhh .sag-lhh__icon:hover { border-color: var(--stuvila-primary,#004EE4); color: var(--stuvila-primary,#004EE4); }
.sag-lhh .sag-lhh__outline:hover { background: var(--stuvila-soft,#EEF3FF); }
.sag-lhh .sag-lhh__outline svg { color: var(--stuvila-primary,#004EE4); }
.sag-lhh .sag-lhh__primary { background: var(--stuvila-primary,#004EE4); border-color: var(--stuvila-primary,#004EE4); color: #fff; }
.sag-lhh .sag-lhh__primary:hover { background: var(--stuvila-navy,#081B40); border-color: var(--stuvila-heading,#081B40); color: #fff; }
.sag-lhh .sag-lhh__chev { display: inline-flex; transition: transform .15s; }
.sag-lhh .sag-lhh__chev svg { width: 16px; height: 16px; color: var(--stuvila-heading,#081B40); }


/* All Books dropdown */
.sag-lhh__all { position: relative; }
.sag-lhh .sag-lhh__all > summary { list-style: none; }
.sag-lhh .sag-lhh__all > summary::-webkit-details-marker { display: none; }
.sag-lhh .sag-lhh__all[open] > summary { background: var(--stuvila-soft,#EEF3FF); }
.sag-lhh .sag-lhh__all[open] .sag-lhh__chev { transform: rotate(180deg); }
.sag-lhh .sag-lhh__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	min-width: 240px;
	padding: 8px;
	border: 1px solid var(--stuvila-border,#E2E8F0);
	border-radius: 14px;
	background: var(--stuvila-surface,#FFFFFF);
	box-shadow: 0 18px 40px -22px rgba(13, 19, 48, .55);
	z-index: 2;
}
.sag-lhh .sag-lhh__panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: left; }
.sag-lhh .sag-lhh__panel li { margin: 0; }
.sag-lhh .sag-lhh__panel a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
	min-height: 42px;
	padding: 0 12px;
	border-radius: 10px;
	color: var(--stuvila-heading,#081B40);
	font: 600 14.5px/1.2 "Noto Sans", sans-serif;
	text-decoration: none !important;
}
.sag-lhh .sag-lhh__panel a:hover, .sag-lhh .sag-lhh__panel .current-menu-item > a, .sag-lhh .sag-lhh__panel a[aria-current="page"] { background: var(--stuvila-soft,#EEF3FF); color: var(--stuvila-primary,#004EE4); }
.sag-lhh .sag-lhh__panel .sub-menu { padding-left: 12px; }

/* Phones and tablets: icons only, like the Learning and Skills headers. */
@media (max-width: 900px) {
.sag-lhh .sag-lhh__bar { min-height: 64px; padding: 0 14px; gap: 10px; }
.sag-lhh .sag-lhh__logo { width: 42px; height: 42px; }
.sag-lhh .sag-lhh__name { font-size: 18px; }
.sag-lhh .sag-lhh__actions { gap: 8px; }
.sag-lhh .sag-lhh__lbl, .sag-lhh .sag-lhh__chev { display: none; }
.sag-lhh .sag-lhh__btn { width: 40px; padding: 0; }
.sag-lhh .sag-lhh__panel { min-width: 220px; right: -48px; }
}
@media (max-width: 380px) {
.sag-lhh .sag-lhh__name { font-size: 16px; }
.sag-lhh .sag-lhh__actions { gap: 6px; }
.sag-lhh .sag-lhh__btn { width: 36px; height: 36px; }
}

/* Services panel */
.sag-lhh .sag-lhh__panel { min-width: 320px; max-height: min(70vh, 560px); overflow-y: auto; }
.sag-lhh .sag-lhh__k { margin: 6px 12px 4px; font: 700 11px/1.4 "Noto Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--stuvila-muted,#64748B); }
.sag-lhh .sag-lhh__k + ul { margin-bottom: 6px; }
.sag-lhh .sag-lhh__si { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 8px; background: var(--stuvila-soft,#EEF3FF); color: var(--stuvila-primary,#004EE4); flex: none; }
.sag-lhh .sag-lhh__si svg { width: 16px; height: 16px; }
.sag-lhh .sag-lhh__panel a.sag-lhh__more { color: var(--stuvila-primary,#004EE4); }
.sag-lhh .sag-lhh__panel ul.sag-lhh__cols { display: grid; grid-template-columns: 1fr 1fr; }
.sag-lhh .sag-lhh__primary svg, .sag-lhh .sag-lhh__primary { color: #fff; }
.sag-lhh .sag-lhh__icon { color: var(--stuvila-heading,#081B40); }
@media (max-width: 900px) {
	.sag-lhh .sag-lhh__panel { min-width: 280px; right: -48px; }
}
