/* ==========================================================
   Dr. O.P. Bhalla Central Library, MRIIRS (Manav Rachna) - base layer (loaded from commonhead on every page)
   Fonts, brand tokens, the logo lockup and the dot motif.
   (user, 2026-11-04: modern, energetic, education + tech, warm light gradients, matching the
   college site): Manav Rachna crimson and gold on warm white. Roboto light + bold, as on manavrachna.edu.in.
   Home: mrx-home.css + mrx-pipeline.css; inner pages: the theme3 "modern" layer plus mrx-app.css / mrx-popups.css.
   Token names were kept from the earlier ports so every inner stylesheet still works:
   --mrx-blue* = crimson, --mrx-gold* = gold, --mrx-sky = vermilion, --mrx-serif = Roboto (display).
   Fonts are self-hosted (Roboto and Roboto Mono, OFL): the CSP blocks Google Fonts stylesheets.
   ========================================================== */

@font-face {
	font-family: "Roboto";
	src: url("../webfonts/roboto-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Roboto";
	src: url("../webfonts/roboto-ext-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Roboto";
	src: url("../webfonts/roboto-italic-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Roboto Mono";
	src: url("../webfonts/robotomono-var.woff2") format("woff2");
	font-weight: 100 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* crimson carries white text (6.3:1); gold is for rules, small marks and fills with dark text */
	--mrx-blue: #b22b2e;
	--mrx-blue-dark: #8a1f22;
	--mrx-blue-deep: #2a1418;
	--mrx-blue-soft: #fbe9e2;
	--mrx-sky: #d9532f;
	/* gold is for rules, dots and fills with dark text; --mrx-gold-dark is gold text on white */
	--mrx-gold: #d9a848;
	--mrx-gold-dark: #7f5a12;
	--mrx-gold-ink: #3a2406;
	--mrx-gold-soft: #fdf3dc;
	--mrx-ivory: #fff8f1;
	--mrx-brick: #8a1f22;
	/* metro line colours (home stations, chips) */
	--mrx-line-1: #d9a848;
	--mrx-line-2: #d9532f;
	--mrx-line-3: #b22b2e;
	--mrx-line-4: #8a1f22;
	--mrx-line-5: #9c2f2a;
	--mrx-line-6: #b4541f;
	--mrx-night: #2a1418;
	--mrx-ink: #2a1a1c;
	--mrx-muted: #6e5a5c;
	--mrx-line: #f2e4dc;
	--mrx-paper: #fffcf8;
	--mrx-danger: #c4291c;
	--mrx-radius: 18px;
	--mrx-sans: "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--mrx-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
	--mrx-serif: "Roboto", "Segoe UI", Arial, sans-serif;
	--mrx-shadow: 0 1px 2px rgba(42, 26, 28, 0.05), 0 10px 30px -14px rgba(42, 20, 24, 0.22);
	/* academic extras (old names kept for the home stylesheet) */
	--mrx-tangerine: #d9532f;
	--mrx-pink: #d9532f;
	--mrx-pink-dark: #9c2f2a;
	--mrx-berry: #9c2f2a;
	--mrx-wine: #2a1418;
	--mrx-grad: linear-gradient(0deg, #b22b2e, #b22b2e);
	--mrx-grad-warm: linear-gradient(90deg, #b22b2e 0 70%, #d9a848 70% 100%);
}

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

/* ---------- Four dots (red, slate, gold, navy) ---------- */

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

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

.mrx-dots i:nth-child(2) {
	background: var(--mrx-tangerine);
}

.mrx-dots i:nth-child(3) {
	background: var(--mrx-gold);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mrx-btn-gold:hover {
	background: #c99a3c;
	border-color: #c99a3c;
}

.mrx-btn-line {
	background: #fff;
	border-color: rgba(42, 26, 28, 0.18);
	color: var(--mrx-ink) !important;
}

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

/* ---------- Slim line above the header (partials/navbar.html) ---------- */

.mrx-ribbon {
	background: var(--mrx-night);
	color: #f6e9dd;
	font-size: 13px;
	position: relative;
	z-index: 2;
}

.mrx-ribbon-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: min(1320px, 100%);
	margin: 0 auto;
	padding: 7px 24px;
}

.mrx-ribbon-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.mrx-ribbon-links {
	display: inline-flex;
	gap: 22px;
	white-space: nowrap;
}

.mrx-ribbon-links a {
	color: inherit !important;
	text-decoration: none;
}

.mrx-ribbon-links a:hover {
	color: var(--mrx-gold) !important;
}

.mrx-live {
	display: inline-block;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #58b368;
	box-shadow: 0 0 0 3px rgba(88, 179, 104, 0.22);
}

.px-status-closed .mrx-live {
	background: var(--mrx-gold);
	box-shadow: 0 0 0 3px rgba(217, 168, 72, 0.22);
}

@media (max-width: 767.98px) {
	.mrx-ribbon-links a:not(:first-child) {
		display: none;
	}

	.mrx-ribbon-in {
		padding: 6px 16px;
		font-size: 12px;
	}
}
