/* ==========================================================
   IMT Hyderabad 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.
   "Campus Metro": warm colours from the IMT gold torch and the terracotta campus walls,
   with a deep aubergine for dark bands. The home page lives in imth-home.css + imth-metro.css;
   inner pages use the theme3 "modern" layer plus imth-app.css / imth-popups.css.
   Token names were kept from the IMT Hyderabad port so every inner stylesheet still works:
   --imth-blue* = terracotta, --imth-gold* = marigold, --imth-sky = coral, --imth-serif = the display face.
   Fonts are self-hosted (Unbounded and Plus Jakarta Sans, SIL OFL): 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: "Unbounded";
	src: url("../webfonts/unbounded-var.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

:root {
	/* terracotta (campus walls) carries white text; marigold (IMT torch) is for fills with dark text */
	--imth-blue: #b8441f;
	--imth-blue-dark: #8f3216;
	--imth-blue-deep: #2a1330;
	--imth-blue-soft: #fbe9df;
	--imth-sky: #e8734a;
	/* gold is for rules, dots and fills with dark text; --imth-gold-dark is gold text on white */
	--imth-gold: #f2a516;
	--imth-gold-dark: #a86a00;
	--imth-gold-ink: #4a2e00;
	--imth-gold-soft: #fdf0d2;
	--imth-ivory: #fff6e3;
	--imth-brick: #8f3216;
	/* metro line colours (home stations, chips) */
	--imth-line-1: #f2a516;
	--imth-line-2: #e8734a;
	--imth-line-3: #b8441f;
	--imth-line-4: #c2366b;
	--imth-line-5: #7b2d6b;
	--imth-line-6: #c98a12;
	--imth-night: #2a1330;
	--imth-ink: #241a22;
	--imth-muted: #66575e;
	--imth-line: #efe1d6;
	--imth-paper: #fdf8f1;
	--imth-danger: #c4291c;
	--imth-radius: 18px;
	--imth-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	--imth-serif: "Unbounded", "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
	--imth-shadow: 0 1px 2px rgba(36, 26, 34, 0.05), 0 10px 30px -14px rgba(143, 50, 22, 0.22);
}

/* no faux bold or italic on the display face */
html {
	font-synthesis: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.imth-btn-gold:hover {
	background: #f6b938;
	border-color: #f6b938;
}

.imth-btn-line {
	background: #fff;
	border-color: rgba(36, 26, 34, 0.18);
	color: var(--imth-ink) !important;
}

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