/* ==========================================================
   RAKMHSU Library (RAK Medical & Health Sciences University) – base layer, loaded from commonhead on every page.
   Fonts, brand tokens and the logo lockup. "Pulse": the university's indigo with an energetic coral,
   a mint "vital signs" green for live states and a sunshine yellow for badges, on warm cream paper.
   The home page lives in rak-home.css (shared header, footer, showcase) + rak-pulse.css (home layout);
   inner pages use the theme3 "modern" layer plus rak-app.css / rak-popups.css.
   Token names were kept from the IMT port so every inner stylesheet still works:
   --rak-blue* = indigo, --rak-gold* = sunshine, --rak-sky = coral, --rak-serif = the display face (Sora).
   Fonts are self-hosted (Sora 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: "Sora";
	src: url("../webfonts/sora-var.woff2") format("woff2");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
}

:root {
	/* indigo (university brand) carries white text; sunshine is for fills with dark text */
	--rak-blue: #36298b;
	--rak-blue-dark: #2c2275;
	--rak-blue-deep: #1b144b;
	--rak-blue-soft: #eeeffb;
	--rak-sky: #ff7a59;
	/* coral: calls to action and highlights (white text on --rak-coral-dark only) */
	--rak-coral: #ff7a59;
	--rak-coral-dark: #d9482a;
	--rak-coral-soft: #ffeae3;
	/* mint: live dots, the ECG line, "open" states (text on white uses --rak-mint-dark) */
	--rak-mint: #2bc4a0;
	--rak-mint-dark: #0f7a62;
	--rak-mint-soft: #ddf6ef;
	/* gold is for rules, dots and fills with dark text; --rak-gold-dark is gold text on white */
	--rak-gold: #ffc857;
	--rak-gold-dark: #9a5b00;
	--rak-gold-ink: #4a3200;
	--rak-gold-soft: #fff3d6;
	--rak-ivory: #fff8ec;
	--rak-brick: #2c2275;
	/* accent cycle for cards and chips */
	--rak-line-1: #ffc857;
	--rak-line-2: #ff7a59;
	--rak-line-3: #36298b;
	--rak-line-4: #2bc4a0;
	--rak-line-5: #544cb7;
	--rak-line-6: #1f9e84;
	--rak-night: #1b144b;
	--rak-ink: #1a1733;
	--rak-muted: #5d5a78;
	--rak-line: #e6e3f1;
	--rak-paper: #fbf8f4;
	--rak-danger: #c4291c;
	--rak-radius: 18px;
	--rak-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	--rak-serif: "Sora", "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
	--rak-shadow: 0 1px 2px rgba(26, 23, 51, 0.05), 0 10px 30px -14px rgba(44, 34, 117, 0.22);
}

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

/* ---------- The four-dot motif (kickers, popup titles) ---------- */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.rak-btn-gold:hover {
	background: #ffbb3d;
	border-color: #ffbb3d;
}

.rak-btn-line {
	background: #fff;
	border-color: rgba(26, 23, 51, 0.18);
	color: var(--rak-ink) !important;
}

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