/* main.css */

/** Design Tokens **/
:root {
	--rs-brand: #d63c1a;
	--rs-brand-hover: #b8320f;
	--rs-brand-light: #ff7a45;
	--rs-brand-gradient: linear-gradient(135deg, #ff7a45 0%, #d63c1a 100%);
	--rs-primary: #d63c1a;
	--rs-primary-hover: #b8320f;
	--rs-primary-soft: rgba(214, 60, 26, .1);
	--rs-accent: #fedafe;
	--rs-space: #121833;
	--rs-space-2: #1d2550;
	--rs-space-gradient: linear-gradient(135deg, #121833 0%, #1d2550 60%, #2b1f52 100%);
	--rs-body-bg: #f4f5f9;
	--rs-surface: #ffffff;
	--rs-surface-2: #eef0f6;
	--rs-text: #1b1f30;
	--rs-text-muted: #5f667c;
	--rs-border: #e2e5ee;
	--rs-radius: 16px;
	--rs-radius-sm: 10px;
	--rs-shadow-sm: 0 1px 2px rgba(18, 24, 51, .06);
	--rs-shadow: 0 1px 2px rgba(18, 24, 51, .05), 0 8px 24px rgba(18, 24, 51, .08);
	--rs-shadow-lg: 0 12px 40px rgba(18, 24, 51, .18);
	--rs-nav-height: 58px;
	--rs-transition: .2s ease;
	--rs-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
	--bs-body-font-family: var(--rs-font-family);
	--bs-body-bg: var(--rs-body-bg);
	--bs-body-color: var(--rs-text);
	--bs-link-color-rgb: 214, 60, 26;
	--bs-link-hover-color-rgb: 184, 50, 15;
}

[data-bs-theme="dark"] {
	--rs-primary: #ff7f5c;
	--rs-primary-hover: #ffa083;
	--rs-primary-soft: rgba(255, 127, 92, .14);
	--rs-body-bg: #0b0f21;
	--rs-surface: #141a33;
	--rs-surface-2: #1d2445;
	--rs-text: #e6e8f2;
	--rs-text-muted: #a0a6be;
	--rs-border: #262e54;
	--rs-shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--rs-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .35);
	--rs-shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
	--bs-body-bg: var(--rs-body-bg);
	--bs-body-color: var(--rs-text);
	--bs-link-color-rgb: 255, 127, 92;
	--bs-link-hover-color-rgb: 255, 160, 131;
}

/** Base **/
html {
	scroll-padding-top: calc(var(--rs-nav-height) + 16px);
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--rs-font-family);
	background-color: var(--rs-body-bg);
	color: var(--rs-text);
	position: relative;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--rs-primary);
	text-decoration: none;
	transition: color var(--rs-transition), background-color var(--rs-transition), border-color var(--rs-transition);
}

a:hover {
	color: var(--rs-primary-hover);
}

img {
	max-width: 100%;
	height: auto;
}

textarea {
	max-height: 220px;
	resize: vertical;
}

:focus-visible {
	outline: 3px solid var(--rs-primary);
	outline-offset: 2px;
}

.site-main {
	min-height: 60vh;
	padding-bottom: 3rem;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 2000;
	padding: 10px 18px;
	border-radius: var(--rs-radius-sm);
	background-color: var(--rs-surface);
	color: var(--rs-text);
	box-shadow: var(--rs-shadow-lg);
}

/** Buttons **/
.rs-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background-color: var(--rs-brand);
	color: #fff;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.rs-button:hover {
	background-color: var(--rs-brand-hover);
	color: #fff;
}

.rs-button-outline {
	background-color: transparent;
	border-color: var(--rs-border);
	color: var(--rs-text);
}

.rs-button-outline:hover {
	background-color: transparent;
	border-color: var(--rs-primary);
	color: var(--rs-primary);
}

/** Section Heading **/
.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.section-heading-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--rs-text);
}

.section-heading-title > i {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 10px;
	background: var(--rs-brand-gradient);
	color: #fff;
	font-size: 1rem;
	box-shadow: 0 6px 16px rgba(214, 60, 26, .3);
}

.section-heading-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .9rem;
	font-weight: 600;
	white-space: nowrap;
}

.post-category-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background-color: var(--rs-primary-soft);
	color: var(--rs-primary);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .5px;
	line-height: 1.7;
	white-space: nowrap;
}

a.post-category-badge:hover {
	background-color: var(--rs-brand);
	color: #fff;
}

/** topbar **/
.site-topbar {
	background-color: #0a0e24;
	color: rgba(255, 255, 255, .75);
	font-size: .8125rem;
}

.site-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 38px;
}

.site-header-date-text {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.site-topbar-links {
	display: flex;
	align-items: center;
	gap: 2px;
}

.site-topbar-link,
.theme-toggle-button {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	color: rgba(255, 255, 255, .75);
	cursor: pointer;
	transition: color var(--rs-transition), background-color var(--rs-transition);
}

.site-topbar-link:hover,
.theme-toggle-button:hover {
	background-color: rgba(255, 255, 255, .1);
	color: #fff;
}

.theme-toggle-button {
	margin-left: 4px;
}

.theme-toggle-button .fa-sun,
[data-bs-theme="dark"] .theme-toggle-button .fa-moon {
	display: none;
}

[data-bs-theme="dark"] .theme-toggle-button .fa-sun {
	display: inline-block;
}

/** header **/
.site-header {
	position: relative;
	overflow: hidden;
	color: #fff;
	background-color: var(--rs-space);
	background-image:
		radial-gradient(1.5px 1.5px at 8% 30%, rgba(255, 255, 255, .9), transparent 70%),
		radial-gradient(1px 1px at 18% 75%, rgba(255, 255, 255, .7), transparent 70%),
		radial-gradient(1.5px 1.5px at 32% 18%, rgba(255, 255, 255, .8), transparent 70%),
		radial-gradient(1px 1px at 46% 62%, rgba(255, 255, 255, .6), transparent 70%),
		radial-gradient(1.5px 1.5px at 58% 28%, rgba(255, 255, 255, .8), transparent 70%),
		radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, .7), transparent 70%),
		radial-gradient(1.5px 1.5px at 92% 40%, rgba(255, 255, 255, .9), transparent 70%),
		radial-gradient(ellipse at 88% -30%, rgba(255, 122, 69, .38), transparent 55%),
		radial-gradient(ellipse at -5% 130%, rgba(254, 218, 254, .2), transparent 50%),
		var(--rs-space-gradient);
}

.site-header-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.site-header-logo-container {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	color: #fff !important;
}

.site-header-logo {
	width: 64px;
	height: 64px;
	flex: 0 0 auto;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .35);
	transition: transform .4s ease;
}

.site-header-logo-container:hover .site-header-logo {
	transform: rotate(-8deg) scale(1.05);
}

.site-header-logo-group {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.site-header-logo-text {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.25;
	white-space: nowrap;
}

.site-header-tagline {
	font-size: .875rem;
	color: rgba(255, 255, 255, .7);
	letter-spacing: 1px;
}

.site-header-search {
	width: 100%;
	max-width: 380px;
}

@media (max-width: 991.98px) {
	.site-header-inner {
		justify-content: center;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.site-header-logo {
		width: 50px;
		height: 50px;
	}

	.site-header-logo-text {
		font-size: 1.4rem;
	}
}

@media (max-width: 575.98px) {
	.site-topbar-link {
		width: 28px;
		height: 28px;
	}

	.site-header-logo {
		width: 44px;
		height: 44px;
	}

	.site-header-logo-text {
		font-size: 1.25rem;
		letter-spacing: 1px;
	}

	.site-header-tagline {
		font-size: .75rem;
	}
}

/** search form **/
.site-search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.site-search-input {
	width: 100%;
	height: 46px;
	padding: 0 52px 0 20px;
	border: 1px solid var(--rs-border);
	border-radius: 999px;
	background-color: var(--rs-surface);
	color: var(--rs-text);
	font-size: 1rem;
	transition: border-color var(--rs-transition), box-shadow var(--rs-transition), background-color var(--rs-transition);
	-webkit-appearance: none;
	appearance: none;
}

.site-search-input::placeholder {
	color: var(--rs-text-muted);
}

.site-search-input:focus {
	outline: none;
	border-color: var(--rs-primary);
	box-shadow: 0 0 0 4px var(--rs-primary-soft);
}

.site-search-button {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rs-brand-gradient);
	color: #fff;
	cursor: pointer;
	transition: transform var(--rs-transition);
}

.site-search-button:hover {
	transform: scale(1.06);
}

.site-header .site-search-input,
.page-header-banner .site-search-input {
	background-color: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .22);
	color: #fff;
}

.site-header .site-search-input::placeholder,
.page-header-banner .site-search-input::placeholder {
	color: rgba(255, 255, 255, .65);
}

.site-header .site-search-input:focus,
.page-header-banner .site-search-input:focus {
	background-color: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .55);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}

/** nav **/
.site-nav {
	position: sticky;
	top: 0;
	z-index: 1020;
	background-color: rgba(255, 255, 255, .92);
	border-bottom: 1px solid var(--rs-border);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	transition: box-shadow var(--rs-transition);
}

[data-bs-theme="dark"] .site-nav {
	background-color: rgba(20, 26, 51, .92);
}

.admin-bar .site-nav {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-nav {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-nav {
		top: 0;
	}
}

.is-scrolled .site-nav {
	box-shadow: var(--rs-shadow);
}

.site-nav-inner {
	display: flex;
	align-items: center;
	gap: 6px;
	height: var(--rs-nav-height);
}

.site-nav-toggler,
.site-nav-search-button {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background-color: transparent;
	color: var(--rs-text);
	font-size: 1.15rem;
	cursor: pointer;
}

.site-nav-toggler:hover,
.site-nav-search-button:hover {
	background-color: var(--rs-surface-2);
}

.site-nav-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	color: var(--rs-text) !important;
	font-weight: 700;
	white-space: nowrap;
	transition: max-width .35s ease, opacity .35s ease;
}

.site-nav-brand img {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	border-radius: 50%;
}

.is-scrolled .site-nav-brand {
	max-width: 190px;
	opacity: 1;
}

.site-nav-scroller {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 28px), transparent 100%);
}

.site-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0 24px 0 8px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

.site-nav-list::-webkit-scrollbar {
	display: none;
}

.site-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 15px;
	border-radius: 999px;
	color: var(--rs-text);
	font-size: .95rem;
	font-weight: 500;
	white-space: nowrap;
}

.site-nav-link i {
	font-size: .85em;
	color: var(--rs-primary);
}

.site-nav-link:hover {
	background-color: var(--rs-surface-2);
	color: var(--rs-primary);
}

.site-nav-item.active .site-nav-link {
	background: var(--rs-brand-gradient);
	color: #fff;
	box-shadow: 0 4px 12px rgba(214, 60, 26, .3);
}

.site-nav-item.active .site-nav-link i {
	color: #fff;
}

@media (max-width: 991.98px) {
	.site-nav-brand span {
		display: none;
	}

	.is-scrolled .site-nav-brand {
		max-width: 34px;
	}

	.site-nav-link {
		padding: 6px 12px;
		font-size: .9rem;
	}
}

/** reading progress **/
.reading-progress {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	overflow: hidden;
	pointer-events: none;
}

.reading-progress-bar {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--rs-brand-light), var(--rs-brand), #a84cff);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform .1s linear;
}

/** latest news ticker **/
.site-ticker {
	border-bottom: 1px solid var(--rs-border);
	background-color: var(--rs-surface);
	font-size: .875rem;
}

.site-ticker-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 42px;
}

.site-ticker-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--rs-brand-gradient);
	color: #fff !important;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.site-ticker-label i {
	animation: rs-ticker-pulse 1.6s ease-in-out infinite;
}

.site-ticker-viewport {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.site-ticker-track {
	display: flex;
	width: max-content;
	animation: rs-ticker-scroll 60s linear infinite;
}

.site-ticker:hover .site-ticker-track,
.site-ticker:focus-within .site-ticker-track {
	animation-play-state: paused;
}

.site-ticker-list {
	display: flex;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-ticker-list li {
	position: relative;
	padding: 0 22px;
	white-space: nowrap;
}

.site-ticker-list li::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: var(--rs-brand-light);
	transform: translateY(-50%);
}

.site-ticker-list a {
	color: var(--rs-text);
}

.site-ticker-list a:hover {
	color: var(--rs-primary);
}

@keyframes rs-ticker-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@keyframes rs-ticker-pulse {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: .4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-ticker-viewport {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.site-ticker-track {
		animation: none;
	}

	.site-ticker-list[aria-hidden="true"] {
		display: none;
	}
}

@media (max-width: 575.98px) {
	.site-ticker-inner {
		gap: 8px;
		height: 38px;
	}

	.site-ticker {
		font-size: .8125rem;
	}
}

/** offcanvas **/
.site-offcanvas {
	--bs-offcanvas-width: min(86vw, 340px);
	background-color: var(--rs-surface);
	color: var(--rs-text);
}

.site-offcanvas .offcanvas-header {
	background: var(--rs-space-gradient);
	color: #fff;
}

.site-offcanvas-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff !important;
	font-size: 1.15rem;
	font-weight: 700;
}

.site-offcanvas-brand img {
	border-radius: 50%;
}

.site-offcanvas-list {
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.site-offcanvas-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--rs-radius-sm);
	color: var(--rs-text);
	font-weight: 500;
}

.site-offcanvas-list a > span i {
	width: 20px;
	margin-right: 8px;
	color: var(--rs-primary);
}

.site-offcanvas-list a > i {
	font-size: .75rem;
	opacity: .4;
}

.site-offcanvas-list a:hover {
	background-color: var(--rs-surface-2);
}

.site-offcanvas-list .active a {
	background-color: var(--rs-primary-soft);
	color: var(--rs-primary);
}

.site-offcanvas-social {
	display: flex;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--rs-border);
}

.site-offcanvas-social .footer-social-media-link {
	background-color: var(--rs-surface-2);
	color: var(--rs-text) !important;
}

/** footer **/
.site-footer {
	margin-top: 3rem;
	padding-top: 56px;
	background-color: var(--rs-space);
	background-image:
		radial-gradient(ellipse at 100% 0%, rgba(255, 122, 69, .18), transparent 45%),
		var(--rs-space-gradient);
	color: rgba(255, 255, 255, .75);
	font-size: .95rem;
}

.footer-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff !important;
}

.footer-logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
}

.footer-brand-name {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 1px;
}

.footer-brand-text {
	max-width: 420px;
	margin: 16px 0;
	line-height: 1.8;
}

.footer-title {
	position: relative;
	margin-bottom: 18px;
	padding-bottom: 10px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
}

.footer-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--rs-brand-light), var(--rs-accent));
}

.footer-links-container {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-link {
	padding-bottom: 10px;
}

.footer-links-container a,
.footer-contacts a {
	color: rgba(255, 255, 255, .75);
}

.footer-links-container a:hover,
.footer-contacts a:hover {
	color: #fff;
}

.footer-social-media-links {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.footer-social-media-link {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background-color: rgba(255, 255, 255, .08);
	color: #fff !important;
	font-size: 1.05rem;
	transition: background-color var(--rs-transition), transform var(--rs-transition);
}

.footer-social-media-link:hover {
	background-color: var(--rs-brand) !important;
	color: #fff !important;
	transform: translateY(-2px);
}

.footer-contact-text i {
	margin-right: 8px;
}

.footer-facebook-container {
	max-width: 100%;
	overflow: hidden;
	border-radius: 12px;
}

.site-footer-bottom {
	margin-top: 40px;
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: .85rem;
}

.site-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}

.footer-developer-text {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer-developer-label {
	color: rgba(255, 255, 255, .55);
	font-size: .75rem;
	letter-spacing: .5px;
	white-space: nowrap;
}

.footer-developer-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, .85) !important;
}

.footer-developer-link:hover {
	color: #fff !important;
}

/* The Rainty Square logo has a dark "R", keep it on a light tile so it stays visible on the dark footer. */
.footer-developer-logo {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	transition: transform var(--rs-transition);
}

.footer-developer-link:hover .footer-developer-logo {
	transform: translateY(-1px);
}

.footer-developer-logo img {
	width: 22px;
	height: auto;
}

.footer-developer-name {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	line-height: 1.3;
}

.footer-developer-name small {
	color: rgba(255, 255, 255, .55);
	font-size: .7rem;
	font-weight: 400;
	letter-spacing: .5px;
}

@media (max-width: 575.98px) {
	.site-footer {
		padding-top: 40px;
	}

	.site-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.footer-developer-text {
		justify-content: center;
		text-align: left;
	}
}

/** privacy agreement **/
.privacy-agreement-container {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1050;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 560px;
	padding: 16px 18px;
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	background-color: var(--rs-surface);
	color: var(--rs-text);
	box-shadow: var(--rs-shadow-lg);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .3s ease, transform .3s ease;
}

.privacy-agreement-container[hidden] {
	display: none !important;
}

.privacy-agreement-container.is-visible {
	opacity: 1;
	transform: none;
}

.privacy-agreement-logo {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 50%;
}

.privacy-agreement-text {
	margin: 0;
	font-size: .875rem;
	line-height: 1.65;
}

.privacy-agreement-button {
	flex: 0 0 auto;
	padding: 8px 22px;
	border: 0;
	border-radius: 999px;
	background-color: var(--rs-brand);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.privacy-agreement-button:hover {
	background-color: var(--rs-brand-hover);
}

@media (min-width: 768px) {
	.privacy-agreement-container {
		left: 24px;
		right: auto;
		bottom: 24px;
	}
}

@media (max-width: 575.98px) {
	.privacy-agreement-container {
		flex-wrap: wrap;
	}

	.privacy-agreement-text {
		flex: 1 1 0;
		min-width: 0;
	}

	.privacy-agreement-button {
		width: 100%;
	}
}

/** go to top **/
.gototop-button {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 1040;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--rs-brand-gradient);
	color: #fff;
	box-shadow: var(--rs-shadow-lg);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.is-scrolled .gototop-button {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gototop-button:hover {
	transform: translateY(-2px);
}

/* Keep clear of the Google AdSense anchor ad. */
body:has(ins.adsbygoogle[data-anchor-status="displayed"]) .gototop-button {
	bottom: 116px;
}

/** toast **/
.rs-toast {
	position: fixed;
	left: 50%;
	bottom: 84px;
	z-index: 1080;
	padding: 10px 20px;
	border-radius: 999px;
	background-color: var(--rs-space);
	color: #fff;
	font-size: .9rem;
	box-shadow: var(--rs-shadow-lg);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .25s ease, transform .25s ease;
}

.rs-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/** Google Ads **/
.rs-ad {
	position: relative;
	clear: both;
	width: 100%;
	min-height: 100px;
	margin: 28px auto;
	text-align: center;
}

.rs-ad-label {
	display: block;
	margin-bottom: 6px;
	color: var(--rs-text-muted);
	font-size: .6875rem;
	letter-spacing: 2px;
}

.rs-ad ins.adsbygoogle {
	display: block;
	width: 100%;
}

.rs-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]),
ins.adsbygoogle[data-ad-status="unfilled"] {
	display: none !important;
}

.site-sidebar .rs-ad {
	margin: 0;
}

/* Auto ads: always give the ad a full row so it never gets a zero width slot. */
.google-auto-placed {
	clear: both;
	width: 100%;
	max-width: 100%;
}

.row > .google-auto-placed {
	flex: 0 0 100%;
}

.home-headline-grid > .google-auto-placed {
	grid-column: 1 / -1;
}

/** Page Header **/
.page-header-banner {
	position: relative;
	overflow: hidden;
	margin: 28px 0;
	padding: 44px 36px;
	border-radius: var(--rs-radius);
	background-color: var(--rs-space);
	background-image:
		radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 255, 255, .8), transparent 70%),
		radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, .6), transparent 70%),
		radial-gradient(1.5px 1.5px at 62% 22%, rgba(255, 255, 255, .7), transparent 70%),
		var(--rs-space-gradient);
	color: #fff;
	box-shadow: var(--rs-shadow);
}

.page-header-banner::after {
	content: '';
	position: absolute;
	top: -70px;
	right: -50px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 32%, #ffb38f 0%, #ff7a45 35%, #d63c1a 68%, transparent 70%);
	opacity: .4;
	pointer-events: none;
}

.page-header-banner-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.page-header-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 4px 14px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .12);
	font-size: .8rem;
	letter-spacing: 1px;
}

.page-header-title {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
	font-weight: 700;
	line-height: 1.3;
	word-break: break-word;
}

.page-header-subtitle {
	margin: 0;
	color: rgba(255, 255, 255, .75);
}

.page-header-search {
	max-width: 480px;
	margin-top: 20px;
}

@media (max-width: 575.98px) {
	.page-header-banner {
		margin: 18px 0;
		padding: 30px 22px;
	}

	.page-header-banner::after {
		width: 160px;
		height: 160px;
		top: -50px;
		right: -50px;
	}
}

/** General Page **/
.general-page-content-container {
	max-width: 880px;
	margin: 0 auto;
}

.general-page-content-box {
	margin-bottom: 20px;
	padding: 28px;
	border: 1px solid var(--rs-border);
	border-radius: var(--rs-radius);
	background-color: var(--rs-surface);
	box-shadow: var(--rs-shadow-sm);
	font-size: 1.0625rem;
	line-height: 1.9;
	overflow-wrap: break-word;
}

.general-page-content-box h2 {
	margin: 28px 0 10px;
	font-size: 1.2rem;
	font-weight: 700;
}

.general-page-content-box h2:first-child {
	margin-top: 0;
}

.general-page-content-box ul {
	padding-left: 1.25rem;
}

.general-page-content-box li {
	margin-bottom: 14px;
}

.general-page-content-box > :last-child {
	margin-bottom: 0;
}

.general-page-content-subtitle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px !important;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.5;
}

.general-page-content-subtitle i {
	color: var(--rs-primary);
}

.general-page-content-overflow-box {
	position: relative;
	width: 100%;
	overflow: auto;
	text-align: center;
}

.post-page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}

.post-page-links a,
.post-page-links > span:not(.post-page-links-title) {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--rs-border);
	border-radius: 10px;
}

@media (max-width: 575.98px) {
	.general-page-content-box {
		padding: 20px;
		font-size: 1rem;
	}
}

/** Follow Links **/
.follow-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.follow-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px 12px;
	border-radius: 12px;
	background-color: var(--rs-surface-2);
	color: var(--rs-text);
	font-size: .9rem;
	font-weight: 600;
	transition: transform var(--rs-transition), box-shadow var(--rs-transition);
}

.follow-link:hover {
	color: var(--rs-text);
	box-shadow: var(--rs-shadow);
	transform: translateY(-2px);
}

.follow-link > i {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	color: #fff;
}

.follow-link span {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.follow-link small {
	overflow: hidden;
	color: var(--rs-text-muted);
	font-weight: 400;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.follow-link-facebook > i {
	background-color: #1877f2;
}

.follow-link-instagram > i {
	background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.follow-link-telegram > i {
	background-color: #229ed9;
}

.follow-link-email > i {
	background: var(--rs-brand-gradient);
}

.follow-links-large {
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.follow-links-large .follow-link {
	padding: 14px 16px;
	font-size: 1rem;
}

.follow-links-large .follow-link > i {
	width: 42px;
	height: 42px;
	font-size: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
