/* ==========================================================
   Universitas Terbuka – Perpustakaan UT
   Base layer (loaded from commonhead on every page): fonts, brand tokens, the logo lockup, the ribbon and the ID | EN switch.
   (user, 2026-11-06: modern, energetic UI for education and tech, made for Indonesia, warm and light blue-and-yellow
   gradients matching ut.ac.id): "Nusantara network". UT blue #0a4799 (ut.ac.id and the logo globe; white text 8.6:1)
   is the primary, ocean blue #0e7fc0 the second colour, UT yellow #ffd400 (logo book pages, #ffde00 on ut.ac.id)
   for rules, dots and fills with navy text only, deep navy #0b2a5b for dark bands and the footer, on a warm
   sunrise-yellow-to-sky light wash. Plus Jakarta Sans (made for the city of Jakarta) for headings and text,
   Roboto Mono for small labels.
   Home: ut-home.css + ut-nusa.css; inner pages: the theme3 "modern" layer plus ut-app.css / ut-popups.css.
   Token names were kept from the earlier ports so every inner stylesheet still works:
   --ut-blue* = UT blue (the primary), --ut-gold* = UT yellow, --ut-sky = sky blue, --ut-aqua* = ocean blue.
   Fonts are self-hosted (Plus Jakarta Sans, DM Sans, Bricolage Grotesque, Roboto Mono: OFL / Apache): 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: "DM Sans";
	src: url("../webfonts/dmsans-var.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "DM Sans";
	src: url("../webfonts/dmsans-italic-var.woff2") format("woff2");
	font-weight: 300 800;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../webfonts/bricolage-var.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	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 {
	/* UT blue carries white text (8.6:1); UT yellow is for rules, small marks and fills with navy text */
	--ut-blue: #0a4799;
	--ut-blue-dark: #083a7d;
	--ut-blue-deep: #0b2a5b;
	--ut-blue-soft: #e8f0fb;
	--ut-sky: #1f8ad6;
	/* gold is for rules, dots and fills with dark text; --ut-gold-dark is gold text on white */
	--ut-gold: #ffd400;
	--ut-gold-dark: #7a5c00;
	--ut-gold-ink: #2b2300;
	--ut-gold-soft: #fff8d6;
	--ut-ivory: #fffdf3;
	--ut-brick: #083a7d;
	/* line colours (home chips, tracks) */
	--ut-line-1: #ffd400;
	--ut-line-2: #1f8ad6;
	--ut-line-3: #0a4799;
	--ut-line-4: #0e7fc0;
	--ut-line-5: #0e7fc0;
	--ut-line-6: #0b2a5b;
	--ut-night: #0b2a5b;
	--ut-ink: #13213b;
	--ut-muted: #55627a;
	--ut-line: #e1e8f2;
	--ut-paper: #fbfdff;
	--ut-danger: #9f1239;
	--ut-radius: 18px;
	--ut-sans: "Plus Jakarta Sans", "DM Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--ut-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
	--ut-serif: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
	--ut-script: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
	--ut-display: "Plus Jakarta Sans", "Segoe UI", "Arial Narrow", sans-serif;
	/* crest red: the second colour; --ut-aqua-dark is its text colour on white */
	--ut-aqua: #0e7fc0;
	--ut-aqua-dark: #0a6399;
	--ut-aqua-soft: #e9f6fd;
	--ut-aqua-band: #d6eefb;
	--ut-indigo: #0e7fc0;
	--ut-shadow: 0 1px 2px rgba(19, 33, 59, 0.05), 0 10px 30px -14px rgba(11, 42, 91, 0.22);
	/* the archipelago: sunrise yellow over a sky-to-sea blue */
	--ut-sunrise: linear-gradient(115deg, #fff6c2 0%, #fffbe8 28%, #eaf3ff 62%, #d9eafc 100%);
	/* extras (old names kept for the home stylesheet) */
	--ut-tangerine: #1f8ad6;
	--ut-pink: #1f8ad6;
	--ut-pink-dark: #0e7fc0;
	--ut-berry: #0e7fc0;
	--ut-wine: #0b2a5b;
	--ut-grad: linear-gradient(0deg, #0a4799, #0a4799);
	--ut-grad-warm: linear-gradient(90deg, #0a4799 0 70%, #ffd400 70% 100%);
	--ut-grad-sea: linear-gradient(120deg, #0a4799 0%, #1f8ad6 100%);
	/* the "spark": gold to orange to blue, used sparingly for highlights */
	--ut-spark: linear-gradient(100deg, #ffd400 0%, #1f8ad6 50%, #0a4799 100%);
	/* the warm, light page wash */
	--ut-wash: linear-gradient(160deg, #fffdf3 0%, #fff8dc 40%, #eaf2fd 100%);
}

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

/* ---------- Four dots (blue, orange, gold, orange) ---------- */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ut-btn-gold:hover {
	background: #f2b800;
	border-color: #f2b800;
}

.ut-btn-line {
	background: #fff;
	border-color: rgba(19, 33, 59, 0.18);
	color: var(--ut-ink) !important;
}

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

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

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

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

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

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

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

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

.ut-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 .ut-live {
	background: var(--ut-gold);
	box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.22);
}

/* main.css gives the header z-index 9999, above Bootstrap's modal (1050) and backdrop (1040):
   while a popup is open, drop the header and the strip under the backdrop so they dim with the page */
body.modal-open .cnu-header,
body.modal-open .ut-ribbon,
body.modal-open .navbar.bg-light {
	z-index: 1030 !important;
}

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

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


/* ---------- ID | EN language switch (ribbon on the home page, top bar on inner pages; assets/js/ut-i18n.js) ---------- */

.ut-lang {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.ut-lang-opt {
	border: 0;
	background: transparent;
	color: inherit;
	font: 700 11px/1 var(--ut-mono);
	letter-spacing: 0.06em;
	padding: 5px 9px;
	border-radius: 999px;
	cursor: pointer;
}

.ut-lang-opt.active {
	background: var(--ut-gold);
	color: var(--ut-blue-deep);
}

.ut-lang-opt:focus-visible {
	outline: 2px solid var(--ut-gold);
	outline-offset: 1px;
}

/* light version (white inner top bar) */
.ut-lang-light {
	background: var(--ut-blue-soft);
	border-color: var(--ut-line);
	color: var(--ut-blue);
}

/* the page waits for its Indonesian text (ut-i18n.js); ut-i18n-ready is also set after 1.2 s whatever happens */
html.ut-lang-id:not(.ut-i18n-ready) body {
	opacity: 0;
}

html.ut-i18n-ready body {
	opacity: 1;
	transition: opacity 0.12s ease-out;
}

/* step numbers (home "how remote access works", Single search intro): UT blue, not the yellow's dark text tone */
.ut-steps li::before {
	color: var(--ut-blue) !important;
}
