/* ==========================================================
   LPU Central Library – base layer (loaded from commonhead on every page)
   Fonts, brand tokens, the logo lockup and the four-colour dot motif.
   The home page lives in lpu-home.css; inner pages use the theme3 "modern"
   layer plus lpu-app.css / lpu-popups.css.
   Fonts are self-hosted: the CSP blocks Google Fonts stylesheets.
   ========================================================== */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../webfonts/plusjakarta-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../webfonts/plusjakarta-italic-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

/* display face for headings and big numbers (variable: weight 400-800, optical size 12-96) */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../webfonts/bricolage-var.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

:root {
	/* LPU orange (#f58220) and logo ink (#2b1e18); --lpu-primary is the deeper orange that carries white text */
	--lpu-primary: #d4570a;
	--lpu-primary-dark: #a8430a;
	--lpu-deep: #2b1e18;
	--lpu-primary-soft: #fff0e3;
	--lpu-orange: #f58220;
	/* sunny yellow: fills and dots with dark text; --lpu-sun-text is yellow-family text on white */
	--lpu-sun: #e9b949;
	--lpu-sun-text: #8a5f12;
	--lpu-sun-ink: #4a3410;
	--lpu-sun-soft: #f8ecd0;
	/* playful accents for tiles and tags (fills; text on them is ink or white as noted where used) */
	--lpu-pink: #b5532f;
	--lpu-violet: #8e3b1f;
	--lpu-aqua: #c9962b;
	--lpu-sky: #a0673a;
	--lpu-cream: #f6ead9;
	--lpu-ink: #2b1e18;
	--lpu-muted: #6b5a4e;
	--lpu-line: #eadccb;
	--lpu-paper: #fbf4ea;
	--lpu-danger: #c4291c;
	--lpu-radius: 18px;
	--lpu-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	/* the heading face (kept under the old --lpu-serif name the page CSS uses) */
	--lpu-serif: "Bricolage Grotesque", "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
	--lpu-display: var(--lpu-serif);
	--lpu-shadow: 0 1px 2px rgba(43, 30, 24, 0.05), 0 12px 30px -14px rgba(168, 67, 10, 0.25);
}

/* no fake italics or bolds: an <em> in a heading is coloured instead (below) */
html {
	font-synthesis: none;
}

.home-modern :is(h1, h2, h3) em,
.res-modern :is(h1, h2, h3) em,
.modal :is(h1, h2, h3, h4, h5) em {
	font-style: normal;
	color: var(--lpu-primary);
}

/* ---------- Dot motif: four colour dots (orange, sun, aqua, pink) ---------- */

.lpu-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: middle;
}

.lpu-dots i {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--lpu-orange);
}

.lpu-dots i:nth-child(2) {
	background: var(--lpu-sun);
}

.lpu-dots i:nth-child(3) {
	background: var(--lpu-aqua);
}

.lpu-dots i:nth-child(4) {
	background: var(--lpu-pink);
}

.lpu-dots-light i {
	box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}

/* ---------- Logo lockup (header brand): emblem + set type ---------- */

.lpu-brand {
	gap: 12px !important;
}

.lpu-brand img.lpu-brand-crest {
	width: auto !important;
	height: 46px !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	flex: 0 0 auto !important;
	object-fit: contain;
}

.lpu-brand:hover img {
	transform: none !important;
}

.lpu-brand .hm-brand-text {
	padding-left: 12px;
	border-left: 1px solid var(--lpu-line);
}

.lpu-brand .hm-brand-text small {
	font-family: var(--lpu-sans);
	font-size: 10.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase;
	color: var(--lpu-muted) !important;
}

.lpu-brand .hm-brand-text strong {
	font-family: var(--lpu-sans);
	font-size: 17px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
	color: var(--lpu-primary) !important;
}

.lpu-brand-light img.lpu-brand-crest {
	height: 42px !important;
}

@media (max-width: 575.98px) {
	.lpu-brand-light img.lpu-brand-crest {
		height: 36px !important;
	}

	.lpu-brand-light .hm-brand-text small {
		display: none !important;
	}
}

@media (max-width: 991.98px) {
	.lpu-brand.hm-brand-mobile .hm-brand-text small {
		display: block !important;
	}
}

@media (max-width: 380px) {
	.lpu-brand.hm-brand-mobile .hm-brand-text {
		display: none !important;
	}
}

/* rich footer block in partials/footer.html: shown only by lpu-home.css */
.lpu-footer {
	display: none;
}

/* keyboard focus that shows on blue and on white */
.home-modern a:focus-visible,
.home-modern button:focus-visible,
.res-modern a:focus-visible,
.res-modern button:focus-visible {
	outline: 3px solid var(--lpu-sun);
	outline-offset: 2px;
}

/* ---------- Shared buttons ---------- */

.lpu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 22px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--lpu-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lpu-btn-blue {
	background: var(--lpu-primary);
	border-color: var(--lpu-primary);
	color: #fff !important;
	box-shadow: 0 8px 20px -10px rgba(212, 87, 10, 0.7);
}

.lpu-btn-blue:hover {
	background: var(--lpu-primary-dark);
	border-color: var(--lpu-primary-dark);
	transform: translateY(-1px);
}

.lpu-btn-gold {
	background: var(--lpu-sun);
	border-color: var(--lpu-sun);
	color: var(--lpu-deep) !important;
}

.lpu-btn-gold:hover {
	background: #f0c766;
	border-color: #f0c766;
}

.lpu-btn-line {
	background: #fff;
	border-color: rgba(43, 30, 24, 0.18);
	color: var(--lpu-ink) !important;
}

.lpu-btn-line:hover {
	border-color: var(--lpu-primary);
	color: var(--lpu-primary) !important;
}
