/* General */
:root {
	--border-radius: 4px;
	--border-radius2x: 8px;
	--default: #777;
}
/* Skin Colors */
:root {
	--primary: #008bab;
	--primary-100: #007692;
	--primary-200: #006c85;
	--primary-300: #006278;
	--primary--100: #00a0c4;
	--primary--200: #00aad1;
	--primary--300: #00b4de;
	--primary-rgba-0: rgba(0, 139, 171, 0);
	--primary-rgba-10: rgba(0, 139, 171, 0.1);
	--primary-rgba-20: rgba(0, 139, 171, 0.2);
	--primary-rgba-30: rgba(0, 139, 171, 0.3);
	--primary-rgba-40: rgba(0, 139, 171, 0.4);
	--primary-rgba-50: rgba(0, 139, 171, 0.5);
	--primary-rgba-60: rgba(0, 139, 171, 0.6);
	--primary-rgba-70: rgba(0, 139, 171, 0.7);
	--primary-rgba-80: rgba(0, 139, 171, 0.8);
	--primary-rgba-90: rgba(0, 139, 171, 0.9);
	--secondary: #07b3da;
	--secondary-100: #069fc1;
	--secondary-200: #0695b5;
	--secondary-300: #058aa9;
	--secondary--100: #08c7f3;
	--secondary--200: #10cdf7;
	--secondary--300: #1ccff8;
	--secondary-rgba-0: rgba(7, 179, 218, 0);
	--secondary-rgba-10: rgba(7, 179, 218, 0.1);
	--secondary-rgba-20: rgba(7, 179, 218, 0.2);
	--secondary-rgba-30: rgba(7, 179, 218, 0.3);
	--secondary-rgba-40: rgba(7, 179, 218, 0.4);
	--secondary-rgba-50: rgba(7, 179, 218, 0.5);
	--secondary-rgba-60: rgba(7, 179, 218, 0.6);
	--secondary-rgba-70: rgba(7, 179, 218, 0.7);
	--secondary-rgba-80: rgba(7, 179, 218, 0.8);
	--secondary-rgba-90: rgba(7, 179, 218, 0.9);
	--tertiary: #0f1620;
	--tertiary-100: #282929;
	--tertiary-200: #222323;
	--tertiary-300: #0f1620;
	--tertiary--100: #424343;
	--tertiary--200: #484949;
	--tertiary--300: #0f1620;
	--tertiary-rgba-0: rgba(53, 54, 54, 0);
	--tertiary-rgba-10: rgba(53, 54, 54, 0.1);
	--tertiary-rgba-20: rgba(53, 54, 54, 0.2);
	--tertiary-rgba-30: rgba(53, 54, 54, 0.3);
	--tertiary-rgba-40: rgba(53, 54, 54, 0.4);
	--tertiary-rgba-50: rgba(53, 54, 54, 0.5);
	--tertiary-rgba-60: rgba(53, 54, 54, 0.6);
	--tertiary-rgba-70: rgba(53, 54, 54, 0.7);
	--tertiary-rgba-80: rgba(53, 54, 54, 0.8);
	--tertiary-rgba-90: rgba(53, 54, 54, 0.9);
	--quaternary: #272e32;
	--quaternary-100: #1c2124;
	--quaternary-200: #161a1d;
	--quaternary-300: #111415;
	--quaternary--100: #323b40;
	--quaternary--200: #384247;
	--quaternary--300: #3d484f;
	--quaternary-rgba-0: rgba(39, 46, 50, 0);
	--quaternary-rgba-10: rgba(39, 46, 50, 0.1);
	--quaternary-rgba-20: rgba(39, 46, 50, 0.2);
	--quaternary-rgba-30: rgba(39, 46, 50, 0.3);
	--quaternary-rgba-40: rgba(39, 46, 50, 0.4);
	--quaternary-rgba-50: rgba(39, 46, 50, 0.5);
	--quaternary-rgba-60: rgba(39, 46, 50, 0.6);
	--quaternary-rgba-70: rgba(39, 46, 50, 0.7);
	--quaternary-rgba-80: rgba(39, 46, 50, 0.8);
	--quaternary-rgba-90: rgba(39, 46, 50, 0.9);
	--dark: #0f1620;
	--dark-100: #0f1620;
	--dark-200: #0f1620;
	--dark-300: #0f1620;
	--dark--100: #0f1620;
	--dark--200: #0f1620;
	--dark--300: #0f1620;
	--dark-rgba-0: rgba(15, 22, 32, 0);
	--dark-rgba-10: rgba(15, 22, 32, 0.1);
	--dark-rgba-20: rgba(15, 22, 32, 0.2);
	--dark-rgba-30: rgba(15, 22, 32, 0.3);
	--dark-rgba-40: rgba(15, 22, 32, 0.4);
	--dark-rgba-50: rgba(15, 22, 32, 0.5);
	--dark-rgba-60: rgba(15, 22, 32, 0.6);
	--dark-rgba-70: rgba(15, 22, 32, 0.7);
	--dark-rgba-80: rgba(15, 22, 32, 0.8);
	--dark-rgba-90: rgba(15, 22, 32, 0.9);
	--light: #FFF;
	--light-100: #f2f2f2;
	--light-200: #ececec;
	--light-300: #e6e6e6;
	--light--100: #ffffff;
	--light--200: #ffffff;
	--light--300: #ffffff;
	--light-rgba-0: rgba(255, 255, 255, 0);
	--light-rgba-10: rgba(255, 255, 255, 0.1);
	--light-rgba-20: rgba(255, 255, 255, 0.2);
	--light-rgba-30: rgba(255, 255, 255, 0.3);
	--light-rgba-40: rgba(255, 255, 255, 0.4);
	--light-rgba-50: rgba(255, 255, 255, 0.5);
	--light-rgba-60: rgba(255, 255, 255, 0.6);
	--light-rgba-70: rgba(255, 255, 255, 0.7);
	--light-rgba-80: rgba(255, 255, 255, 0.8);
	--light-rgba-90: rgba(255, 255, 255, 0.9);
}
/* Skin Colors - Inverse */
:root {
	--primary-inverse: #FFF;
	--secondary-inverse: #FFF;
	--tertiary-inverse: #FFF;
	--quaternary-inverse: #FFF;
	--dark-inverse: #FFF;
	--light-inverse: #777;
}
/* Grey Colors */
:root {
	--grey: #969696;
	--grey-100: #f4f4f4;
	--grey-200: #eaeaea;
	--grey-300: #e5e5e5;
	--grey-400: #e0e0e0;
	--grey-500: #dbdbdb;
	--grey-600: #cecece;
	--grey-700: #c1c1c1;
	--grey-800: #a8a8a8;
	--grey-900: #8e8e8e;
	--grey-1000: #757575;
}

.resource-image-block {
	position: relative;
}

.resource-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--theme-overlay);
	color: var(--theme-text-inverse);
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
	z-index: 2;
}

.resource-image-block:hover .resource-overlay,
.resource-overlay:focus {
	opacity: 1;
}

@media (max-width: 991px) {
	.resource-overlay {
		opacity: 1;
	}
}

.resource-overlay-content {
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	padding: 0 18px;
}

.resource-download-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--theme-text-inverse);
	font-weight: 600;
	text-decoration: none;
	margin-top: 12px;
}

.resource-download-link:hover {
	color: var(--theme-text-inverse);
	text-decoration: underline;
}

.pdf-flipbook-open {
	overflow: hidden;
}

.resource-flipbook-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.resource-flipbook-backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: var(--theme-overlay);
	cursor: pointer;
}

.resource-flipbook-dialog {
	position: relative;
	width: 100%;
	height: 100%;
	max-height: none;
	display: flex;
	flex-direction: column;
	background: var(--theme-card);
	border-radius: 0;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
	border: 1px solid var(--theme-card-border);
	overflow: hidden;
	z-index: 1;
}

.resource-flipbook-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 24px;
	background: var(--theme-surface-muted);
	border-bottom: 1px solid var(--theme-divider);
}

.resource-flipbook-title {
	color: var(--theme-text);
	font-weight: 700;
	letter-spacing: 0.01em;
	font-size: 16px;
}

.resource-flipbook-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.resource-flipbook-download,
.resource-flipbook-close {
	border: 1px solid var(--theme-border);
	background: transparent;
	color: var(--theme-text);
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.resource-flipbook-download:hover,
.resource-flipbook-close:hover {
	background: var(--theme-surface-muted);
	color: var(--theme-text);
}

.resource-flipbook-body {
	flex: 1;
	min-height: 0;
	background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%);
	padding: 24px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.resource-flipbook-body > * {
	width: 100%;
	height: 100%;
}

.resource-flipbook-canvas {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	/* justify-content: center; */
	position: relative;
	flex-direction: column;
}

.resource-flipbook-book {
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.resource-flipbook-page {
	background: var(--theme-surface);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px var(--theme-divider);
}

.resource-flipbook-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 0 12px 18px;
	color: var(--theme-text);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.resource-flipbook-count {
	font-size: 14px;
}

.resource-flipbook-nav {
	border: 1px solid var(--theme-border);
	background: var(--theme-surface-muted);
	color: var(--theme-text);
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.resource-flipbook-nav:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.resource-flipbook-loading {
	color: var(--theme-text);
	font-weight: 600;
	letter-spacing: 0.02em;
}

@media (max-width: 767px) {
	.resource-flipbook-dialog {
		max-height: 90vh;
		border-radius: 0;
	}

	.resource-flipbook-header {
		padding: 14px 16px;
	}

	.resource-flipbook-body {
		padding: 16px;
	}

	.resource-flipbook-toolbar {
		padding-bottom: 12px;
	}
}
