/* ==========================================================
   Jamia Millia Islamia, Dr. Zakir Husain Library – base layer (loaded from commonhead on every page)
   Fonts, brand tokens and the logo lockup. The home page layout lives in
   jmi-home.css; inner pages + popups in jmi-app.css / jmi-popups.css on top of the theme3 "modern" layer.
   Fonts are self-hosted: the CSP blocks Google Fonts stylesheets.
   ========================================================== */

@font-face {
	font-family: "Outfit";
	src: url("../webfonts/outfit-var.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("../webfonts/sourceserif4-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("../webfonts/sourceserif4-italic-var.woff2") format("woff2");
	font-weight: 400 600;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Jamia green from the university logo (#378b66 / #2ea76d), deepened so white text stays readable;
	   --jmi-gold is a small decorative accent for the home hero only */
	--jmi-green: #1e6b4a;
	--jmi-dark: #15523a;
	--jmi-deep: #0b3123;
	--jmi-soft: #e5f2eb;
	--jmi-accent: #218c5c;
	--jmi-accent-dark: #176b46;
	--jmi-accent-soft: #e8f5ee;
	--jmi-mist: #f0f7f2;
	--jmi-ink: #13241c;
	--jmi-muted: #4d5e56;
	--jmi-line: #dbe7e0;
	--jmi-paper: #f5f9f6;
	--jmi-logo-green: #378b66;
	--jmi-bright: #2ea76d;
	--jmi-gold: #c9a43a;
	--jmi-danger: #c62828;
	--jmi-sans: "Outfit", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	--jmi-serif: var(--jmi-sans); /* headings stay sans for a modern look */
}

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

.jmi-brand {
	gap: 14px !important;
}

.jmi-brand img.jmi-brand-logo,
.jmi-brand img.jmi-brand-emblem {
	width: auto !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	flex: 0 0 auto !important;
	object-fit: contain;
}

/* the logo is ~7:1 (Hindi + Urdu + English lines) */
.jmi-brand img.jmi-brand-logo {
	height: 40px !important;
}

.jmi-brand img.jmi-brand-emblem {
	height: 42px !important;
}

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

.jmi-brand .hm-brand-text {
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.jmi-brand .hm-brand-text small {
	font-family: var(--jmi-sans);
	letter-spacing: 0.12em !important;
	text-transform: uppercase;
}

.jmi-brand .hm-brand-text strong {
	font-family: var(--jmi-sans);
	font-weight: 600 !important;
}

.jmi-brand-light .hm-brand-text {
	border-left-color: var(--jmi-line);
}

.jmi-brand-light .hm-brand-text small {
	color: var(--jmi-accent-dark) !important;
}

.jmi-brand-light .hm-brand-text strong {
	color: var(--jmi-green) !important;
}

.jmi-brand-light img.jmi-brand-logo {
	height: 36px !important;
}

@media (max-width: 1199.98px) {
	.jmi-brand .hm-brand-text small {
		display: none !important;
	}
}

@media (max-width: 575.98px) {
	.jmi-brand-light img.jmi-brand-logo {
		height: 26px !important;
	}

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

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

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

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

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