/* ==========================================================
   IMT Nagpur Learning Resource Centre – base layer (loaded from commonhead on every page)
   Fonts, brand tokens, the logo lockup and the four-dot motif from the IMT logo.
   The home page lives in imtn-home.css; inner pages use the theme3 "modern"
   layer plus imtn-app.css / imtn-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;
}

@font-face {
	font-family: "Instrument Serif";
	src: url("../webfonts/instrumentserif.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Serif";
	src: url("../webfonts/instrumentserif-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	/* colours from the IMT logo: royal blue dots + lettering, gold torch */
	--imtn-blue: #00339a;
	--imtn-blue-dark: #00267a;
	--imtn-blue-deep: #001640;
	--imtn-blue-soft: #e8eefa;
	--imtn-sky: #3f73d9;
	/* gold is for rules, dots and fills with dark text; --imtn-gold-dark is gold text on white */
	--imtn-gold: #d9a21b;
	--imtn-gold-dark: #b88a12;
	--imtn-gold-ink: #5c4000;
	--imtn-gold-soft: #fbf3de;
	--imtn-ivory: #fff8e6;
	--imtn-brick: #b5532f; /* the red-brick campus, photos and small accents only */
	--imtn-ink: #111a2e;
	--imtn-muted: #4d586b;
	--imtn-line: #e1e6ee;
	--imtn-paper: #f6f8fc;
	--imtn-danger: #c4291c;
	--imtn-radius: 14px;
	--imtn-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	--imtn-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--imtn-shadow: 0 1px 2px rgba(17, 26, 46, 0.05), 0 10px 30px -14px rgba(0, 38, 122, 0.22);
}

/* Instrument Serif has a single weight: never fake a bold */
html {
	font-synthesis: none;
}

/* ---------- The four dots of the IMT logo ---------- */

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

.imtn-dots i {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--imtn-blue);
}

.imtn-dots i:last-child {
	background: var(--imtn-gold);
}

.imtn-dots-light i {
	background: #fff;
}

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

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

.imtn-brand img.imtn-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;
}

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

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

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

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

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

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

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

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

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

/* rich footer block in partials/footer.html: shown only by imtn-home.css */
.imtn-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(--imtn-gold);
	outline-offset: 2px;
}

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

.imtn-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(--imtn-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;
}

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

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

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

.imtn-btn-gold:hover {
	background: #e8b53a;
	border-color: #e8b53a;
}

.imtn-btn-line {
	background: #fff;
	border-color: rgba(17, 26, 46, 0.18);
	color: var(--imtn-ink) !important;
}

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