/* ==========================================================
   NIBM Pune – base layer (loaded from commonhead on every page)
   Fonts, brand tokens and the logo lockup. The home page layout lives in
   nibm-home.css; inner pages use the theme3 "modern" layer.
   Fonts are self-hosted: the CSP blocks Google Fonts stylesheets.
   ========================================================== */

@font-face {
	font-family: "IBM Plex Sans";
	src: url("../webfonts/ibmplexsans-var.woff2") format("woff2");
	font-weight: 100 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Sans";
	src: url("../webfonts/ibmplexsans-italic-var.woff2") format("woff2");
	font-weight: 100 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../webfonts/ibmplexmono-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../webfonts/ibmplexmono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../webfonts/ibmplexmono-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	/* NIBM: logo cyan (#00afef) on deep slate; fills that carry white text use the deeper ocean blues */
	--nibm-blue: #075985;
	--nibm-dark: #0c4a6e;
	--nibm-deep: #0b1724;
	--nibm-soft: #e6f4fb;
	--nibm-accent: #0077b6;
	--nibm-accent-dark: #005f92;
	--nibm-accent-soft: #e3f4fc;
	--nibm-mist: #eef6fa;
	--nibm-ink: #0f1c2a;
	--nibm-muted: #4c5a68;
	--nibm-line: #dce5eb;
	--nibm-paper: #f5f8fa;
	--nibm-cyan: #00afef;
	--nibm-cyan-soft: #7fd8f7;
	--nibm-sans: "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	/* the terminal look has no serif: headings use Plex Sans, figures and labels Plex Mono */
	--nibm-serif: var(--nibm-sans);
	--nibm-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

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

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

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

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

.nibm-brand .hm-brand-text strong {
	font-family: var(--nibm-serif);
	font-weight: 600 !important;
	letter-spacing: 0 !important;
}

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

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

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

.nibm-brand-light img.nibm-brand-crest {
	height: 44px !important;
}

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

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

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

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

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

/* keyboard focus that shows on slate 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(--nibm-accent);
	outline-offset: 2px;
}
