/* ==========================================================
   Perpustakaan Pusat UIN Syarif Hidayatullah Jakarta (uinjkt.mapmyaccess.com).
   Base layer (loaded from commonhead on every page): fonts, brand tokens, the logo lockup.
   (user, 2026-11-23: modern, energetic UI for education, unique to the university; Bahasa Indonesia by default + EN)
   "Jendela Ilmu" (a window of knowledge): the university calls itself the "Window of Indonesian Islamic Academic
   Excellence". The home page looks at the library through a lattice window built on the eight-point star
   (khatam), the panes are the library's own photos, and each faculty library is a pane of its own.
   Colours come from the emblem (public-domain logo, Wikimedia Commons): UIN blue #7f1416 is the primary (white text
   6:1), the green of the open book #1d6f6a its partner (white text 5.4:1), the orbit gold #f2b632 for rules and fills
   only (navy text on it), the globe's cyan #146c74 the second colour (white text 5.7:1), deep navy #2a0b0c for night
   bands and the footer, on a cool paper wash. --ts-r1 ... --ts-r12 are the twelve faculty libraries.
   Plus Jakarta Sans (made for Jakarta) for text and headings, Source Serif 4 italics for accents, Roboto Mono for
   small labels. Self-hosted (OFL): the CSP blocks Google Fonts.
   Token names were kept from the earlier ports so every inner stylesheet still works:
   --ts-blue* = UIN blue (the primary), --ts-gold* = orbit gold, --ts-sky = book green, --ts-aqua* = globe cyan.
   ========================================================== */

@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: "Source Serif 4";
	src: url("../webfonts/sourceserif4-var.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Serif 4";
	src: url("../webfonts/sourceserif4-italic-var.woff2") format("woff2");
	font-weight: 200 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 {
	/* UIN blue carries white text (6:1); orbit gold is for rules and fills with navy text */
	--ts-blue: #7f1416;
	--ts-blue-dark: #5e0e10;
	--ts-blue-deep: #2a0b0c;
	--ts-blue-soft: #f7e9e7;
	--ts-sky: #1d6f6a;
	/* gold is for rules, dots and fills with dark text; --ts-gold-dark is gold text on white */
	--ts-gold: #f2b632;
	--ts-gold-dark: #7a5600;
	--ts-gold-ink: #2b1f00;
	--ts-gold-soft: #fdf3d8;
	--ts-ivory: #fbf8f4;
	--ts-brick: #5e0e10;
	/* line colours (home chips, tracks) */
	--ts-line-1: #f2b632;
	--ts-line-2: #1d6f6a;
	--ts-line-3: #7f1416;
	--ts-line-4: #146c74;
	--ts-line-5: #146c74;
	--ts-line-6: #2a0b0c;
	--ts-night: #2a0b0c;
	--ts-ink: #1f1715;
	--ts-muted: #64584f;
	--ts-line: #ebe3da;
	--ts-paper: #fbf8f4;
	--ts-danger: #9f1239;
	--ts-radius: 18px;
	--ts-sans: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--ts-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
	--ts-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--ts-script: "Source Serif 4", Georgia, serif;
	/* headings: the sans, tight; <em> inside headings switches to the serif italic */
	--ts-display: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
	--ts-saffron: #2a9d94;
	--ts-saffron-soft: #e2f3f1;
	/* globe cyan: the second colour; --ts-aqua-dark is its text colour on white */
	--ts-aqua: #146c74;
	--ts-aqua-dark: #0f5a60;
	--ts-aqua-soft: #e3f0ee;
	--ts-aqua-band: #d8ebe8;
	--ts-site-blue: #1d7f85;
	--ts-indigo: #146c74;
	--ts-green: #1d6f6a;
	--ts-green-soft: #e2f1ee;
	--ts-shadow: 0 1px 2px rgba(31, 23, 21, 0.05), 0 10px 30px -14px rgba(42, 11, 12, 0.22);
	/* extras (old names kept for the home stylesheet) */
	--ts-tangerine: #1d6f6a;
	--ts-pink: #1d6f6a;
	--ts-pink-dark: #146c74;
	--ts-berry: #146c74;
	--ts-wine: #2a0b0c;
	--ts-grad: linear-gradient(120deg, #7f1416 0%, #2a0b0c 100%);
	--ts-grad-warm: linear-gradient(90deg, #7f1416 0 70%, #f2b632 70% 100%);
	/* the "spark": orbit gold to globe cyan to UIN blue, used sparingly for highlights */
	--ts-spark: linear-gradient(100deg, #f2b632 0%, #146c74 45%, #7f1416 100%);
	/* the cool, light page wash */
	--ts-wash: linear-gradient(160deg, #fbf8f4 0%, #f5efe8 50%, #fbf7f2 100%);
	/* UIN blue into the night */
	--ts-brand-grad: linear-gradient(110deg, #7f1416 0%, #4a0f12 48%, #2a0b0c 100%);
	/* the highlighter: an orbit-gold stroke behind words */
	--ts-marker: linear-gradient(100deg, rgba(242, 182, 50, 0) 0, rgba(242, 182, 50, 0.55) 4%, rgba(242, 182, 50, 0.6) 50%, rgba(242, 182, 50, 0.5) 96%, rgba(242, 182, 50, 0) 100%);
	/* the twelve faculty libraries: muted academic tones round the emblem's blue, green and gold */
	--ts-r1: #7f1416;
	--ts-r2: #146c74;
	--ts-r3: #1d6f6a;
	--ts-r4: #4d7a1f;
	--ts-r5: #866a0e;
	--ts-r6: #a4542a;
	--ts-r7: #9b3434;
	--ts-r8: #7a3e6e;
	--ts-r9: #4b4f9e;
	--ts-r10: #1f6f8b;
	--ts-r11: #2f6b5a;
	--ts-r12: #5b6b7f;
	--ts-rays: linear-gradient(90deg, #7f1416, #146c74, #1d6f6a, #4d7a1f, #866a0e, #a4542a, #9b3434, #7a3e6e, #4b4f9e, #1f6f8b, #2f6b5a, #5b6b7f);
	/* old spectrum names, kept for the inner stylesheets */
	--ts-c1: var(--ts-r1);
	--ts-c2: var(--ts-r2);
	--ts-c3: var(--ts-r3);
	--ts-c4: var(--ts-r4);
	--ts-c5: var(--ts-r5);
	--ts-c6: var(--ts-r6);
	--ts-c7: var(--ts-r7);
	--ts-c8: var(--ts-r8);
	--ts-c9: var(--ts-r9);
	--ts-c10: var(--ts-r10);
	--ts-spectrum: var(--ts-rays);
	/* the morning wash: paper, a little gold and a light sky */
	--ts-sunrise: radial-gradient(60% 70% at 85% 10%, rgba(242, 182, 50, 0.12), rgba(242, 182, 50, 0) 70%), radial-gradient(50% 60% at 5% 95%, rgba(127, 20, 22, 0.12), rgba(127, 20, 22, 0) 70%), linear-gradient(170deg, #fbf8f4 0%, #f5efe8 55%, #f3ece0 100%);
}

/* headings stay in the sans; an <em> inside a heading is the serif italic accent */
h1 em, h2 em, h3 em,
.ts-h2 em, .hm-section-title em {
	font-family: var(--ts-serif);
	font-style: italic;
	font-weight: 600;
	letter-spacing: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ts-btn-gold:hover {
	background: #d99a12;
	border-color: #d99a12;
}

.ts-btn-line {
	background: #fff;
	border-color: rgba(31, 23, 21, 0.18);
	color: var(--ts-ink) !important;
}

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

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

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

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

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

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

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

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

.ts-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 .ts-live {
	background: var(--ts-gold);
	box-shadow: 0 0 0 3px rgba(242, 182, 50, 0.22);
}

/* every page with the ribbon (home, /research, /login): the header sits under it and sticks on scroll.
   main.css makes it position: fixed, which slid it over the ribbon on pages without the home stylesheets */
.ts-ribbon + .cnu-header {
	position: sticky;
	top: 0;
}

/* 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 .ts-ribbon,
body.modal-open .navbar.bg-light {
	z-index: 1030 !important;
}

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

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

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

.ts-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);
}

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

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

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

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

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

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

