/*
Theme Name: Story Tale Theme
Author: Oks
Version: 1.0
Description: Minimal custom WordPress theme
*/

:root {
	--accent-soft: #b49cff;
	--accent-soft-dark: #7f63d9;
	--accent-soft-light: #f5f0ff;
	--site-bg: #faf7ff;
	--site-text: #222;
	--site-muted: #6d6258;
	--site-surface: #fff;
	--site-surface-strong: rgba(255, 255, 255, 0.92);
	--site-border: #e7ddd2;
	--site-input-bg: #fff;
	--site-input-text: #231630;
}

html[data-theme="dark"] {
	--site-bg: #120d1d;
	--site-text: #ede8f8;
	--site-muted: #b8afc8;
	--site-surface: #1c1628;
	--site-surface-strong: rgba(28, 22, 40, 0.94);
	--site-border: #3a2f52;
	--site-input-bg: #221b31;
	--site-input-text: #f3edf8;
	--accent-soft-light: #2a2040;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Times New Roman", Times, serif;
	line-height: 1.5;
	color: var(--site-text);
	background: var(--site-bg);
}

button,
input,
select,
textarea {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

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

main {
	display: block;
}

.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px;
}

.container-wide {
	max-width: 1320px;
}

.site-main {
	padding-bottom: 48px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background:
		linear-gradient(135deg, rgba(103, 74, 184, 0.96) 0%, rgba(152, 126, 235, 0.94) 52%, rgba(191, 173, 255, 0.9) 100%);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 14px 34px rgba(77, 51, 145, 0.18);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) minmax(220px, 320px);
	align-items: center;
	gap: 20px;
	max-width: 1520px;
	margin: 0 auto;
	padding: 14px 24px;
}

.site-header__branding {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	min-width: 0;
}

.site-header__logo-wrap {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	width: auto;
	max-height: 72px;
}

.site-header__brand-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 180px;
	min-width: 0;
}

.site-header__title {
	display: block;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.05;
	color: #fff;
}

.site-header__tagline {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.15;
	color: rgba(255, 255, 255, 0.82);
}

.site-header__nav-shell {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.site-header__menu-toggle {
	display: none;
}

.site-header__nav {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.site-header__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 22px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-header__menu li {
	list-style: none;
}

.site-header__menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.site-header__menu a {
	display: inline-flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.82);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__menu .current-menu-item > a,
.site-header__menu a:hover,
.site-header__menu a:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.menu-item__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	margin-left: -4px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-item__toggle:hover,
.menu-item__toggle:focus-visible,
.site-header__menu .menu-item-has-children.is-open > .menu-item__toggle {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.menu-item__toggle-icon {
	position: relative;
	width: 10px;
	height: 10px;
}

.menu-item__toggle-icon::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 1px;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.site-header__menu .menu-item-has-children.is-open > .menu-item__toggle .menu-item__toggle-icon,
.site-header__menu .menu-item-has-children:hover > .menu-item__toggle .menu-item__toggle-icon,
.site-header__menu .menu-item-has-children:focus-within > .menu-item__toggle .menu-item__toggle-icon {
	transform: rotate(180deg);
}

.site-header__menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 220px;
	padding: 10px;
	margin: 0;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background: rgba(49, 34, 87, 0.96);
	box-shadow: 0 18px 34px rgba(32, 20, 62, 0.26);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.site-header__menu .sub-menu li {
	position: relative;
}

.site-header__menu .sub-menu a {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
}

.site-header__menu .sub-menu .sub-menu {
	top: -10px;
	left: calc(100% + 8px);
}

.site-header__menu .menu-item-has-children:hover > .sub-menu,
.site-header__menu .menu-item-has-children:focus-within > .sub-menu,
.site-header__menu .menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-header__actions {
	display: grid;
	grid-template-columns: minmax(0, 220px) 44px auto;
	align-items: center;
	gap: 12px;
	min-width: 0;
	justify-content: end;
}

.site-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.site-search__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-search__toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

.site-search__toggle-icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-search__toggle:hover,
.site-search__toggle:focus-visible,
.site-theme-toggle:hover,
.site-theme-toggle:focus-visible,
.site-header__channel:hover,
.site-header__channel:focus-visible,
.site-header__menu-toggle:hover,
.site-header__menu-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	border-color: rgba(255, 255, 255, 0.34);
	transform: translateY(-1px);
}

.site-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.site-search__icon {
	position: absolute;
	left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: rgba(255, 255, 255, 0.68);
	pointer-events: none;
}

.site-search__icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-search__field {
	width: 100%;
	height: 44px;
	padding: 0 14px 0 40px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font: inherit;
	color: #fff;
}

.site-search__field::placeholder {
	color: rgba(255, 255, 255, 0.72);
}

.site-search__field:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.46);
	box-shadow: 0 0 0 3px rgba(225, 216, 255, 0.16);
}

.site-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.88);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-theme-toggle[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.28);
	border-color: rgba(255, 255, 255, 0.42);
	color: #fff;
}

.site-theme-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
}

.site-theme-toggle__icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.site-header__channel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 8px 18px rgba(55, 35, 109, 0.16);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-header__channel:hover,
.site-header__channel:focus-visible {
	box-shadow: 0 12px 24px rgba(55, 35, 109, 0.22);
}

.site-header__channel-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #1d1627;
	flex: 0 0 auto;
}

.site-header__channel-mark svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.featured-terms {
	padding-top: 18px;
}

.featured-terms__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.featured-terms__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid #ece5ff;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 8px 24px rgba(127, 99, 217, 0.06);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.featured-terms__link:hover,
.featured-terms__link:focus-visible {
	transform: translateY(-2px);
	border-color: var(--accent-soft);
	background: #fff;
	box-shadow: 0 14px 28px rgba(127, 99, 217, 0.14);
}

.featured-terms__link--category {
	background: rgba(184, 255, 103, 0.18);
	border-color: rgba(138, 195, 55, 0.34);
}

.featured-terms__link--post_tag {
	background: rgba(116, 231, 255, 0.16);
	border-color: rgba(74, 186, 212, 0.34);
}

.featured-terms__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.ticker {
	background: #29024f;
	color: #fff7ef;
	overflow: hidden;
}

.ticker__viewport {
	overflow: hidden;
}

.ticker__track {
	display: flex;
	width: max-content;
	animation: ticker-scroll 30s linear infinite;
}

.ticker__group {
	display: flex;
	flex-shrink: 0;
	gap: 28px;
	padding-right: 28px;
}

.ticker__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 4px 0;
	white-space: nowrap;
	font-size: 14px;
}

.ticker__link::after {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #d9a35f;
}

.hero-posts,
.post-grid,
.popular-posts {
	padding-top: 24px;
}

.front-page-intro {
	padding: 14px 0 24px;
}

.front-page-intro__title {
	max-width: 980px;
	margin: 0;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: #2d1748;
	text-wrap: balance;
}

.hero-posts__grid {
	display: grid;
	gap: 20px;
}

.card {
	position: relative;
	background: #fff;
	border: 1px solid #e7ddd2;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(34, 34, 34, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:not(.card-featured) {
	display: flex;
	flex-direction: column;
}

.card:hover,
.card:focus-within {
	transform: translateY(-4px);
	border-color: var(--accent-soft);
	box-shadow: 0 20px 38px rgba(123, 92, 201, 0.14);
}

.card__media {
	position: relative;
	display: block;
	background: #e9dfd3;
}

.card__media:empty {
	min-height: 220px;
}

.card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.card__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	padding: 18px;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 13px;
	color: #6d6258;
}

.card__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.card__term {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border: 1px solid #eadffb;
	border-radius: 999px;
	background: rgba(245, 240, 255, 0.78);
	color: #4c3e66;
	font-size: 12px;
	line-height: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.card__term:hover,
.card__term:focus-visible {
	background: rgba(180, 156, 255, 0.26);
	border-color: rgba(127, 99, 217, 0.34);
	color: #2f2045;
}

.card__term--lime {
	background: #b8ff67;
	border-color: #9ce04f;
	color: #162300;
}

.card__term--pink {
	background: #ff78cf;
	border-color: #f05ebc;
	color: #3f0727;
}

.card__term--blue {
	background: #74e7ff;
	border-color: #54d1eb;
	color: #073243;
}

.card__term--lime:hover,
.card__term--lime:focus-visible,
.card__term--pink:hover,
.card__term--pink:focus-visible,
.card__term--blue:hover,
.card__term--blue:focus-visible {
	filter: brightness(0.97);
	transform: translateY(-1px);
}

.single-article__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 10px;
}

.card__title {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
}

.card__excerpt {
	margin: 0;
	color: #4b433d;
}

.card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid var(--accent-soft);
	border-radius: 999px;
	background: var(--accent-soft-light);
	color: var(--accent-soft-dark);
	font-size: 14px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card__button:hover,
.card__button:focus-visible {
	background: var(--accent-soft-dark);
	border-color: var(--accent-soft-dark);
	color: #fff;
	transform: translateY(-1px);
}

.card__overlay {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 1;
}

.card__title--overlay {
	position: relative;
	display: inline;
	margin: 0;
	padding: 0.04em 0.28em 0.12em;
	font-size: 20px;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 10px rgba(19, 12, 34, 0.32);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	background-image:
		linear-gradient(
			180deg,
			transparent 0.16em,
			rgba(196, 181, 255, 0.32) 0.16em,
			rgba(127, 99, 217, 0.92) 0.44em,
			rgba(127, 99, 217, 0.92) calc(100% - 0.14em),
			rgba(181, 160, 255, 0.52) calc(100% - 0.14em),
			transparent 100%
		),
		linear-gradient(
			90deg,
			rgba(171, 143, 255, 0.12) 0%,
			rgba(210, 193, 255, 0.34) 14%,
			rgba(127, 99, 217, 0.14) 100%
		);
	border-radius: 0.45em 0.75em 0.4em 0.7em;
}

.card__title--overlay::before {
	content: "";
	position: absolute;
	inset: auto -0.16em -0.12em -0.2em;
	height: calc(100% + 0.2em);
	background: rgba(209, 193, 255, 0.22);
	border-radius: 0.7em 0.3em 0.8em 0.45em;
	transform: rotate(-1.7deg);
	opacity: 0.95;
	z-index: -2;
}

.card__title--overlay::after {
	content: "";
	position: absolute;
	inset: auto -0.08em -0.08em -0.08em;
	height: calc(100% + 0.12em);
	background: rgba(111, 82, 198, 0.18);
	border-radius: 0.5em 0.85em 0.35em 0.75em;
	transform: rotate(0.9deg);
	z-index: -1;
}

.post-grid__list,
.popular-posts__list {
	display: grid;
	gap: 20px;
	align-items: stretch;
}

.post-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.post-carousel__viewport {
	flex: 1 1 auto;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 10px;
}

.post-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.post-carousel__list {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.card-grid--carousel {
	flex: 0 0 min(86vw, 320px);
	min-width: 0;
	scroll-snap-align: start;
}

.post-carousel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border: 1px solid var(--accent-soft);
	border-radius: 999px;
	background: #fff;
	color: var(--accent-soft-dark);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.post-carousel__button:hover,
.post-carousel__button:focus-visible {
	background: var(--accent-soft-dark);
	border-color: var(--accent-soft-dark);
	color: #fff;
	transform: translateY(-1px);
}

.post-carousel__button:disabled {
	opacity: 0.45;
	cursor: default;
	transform: none;
}

.card-grid .card__title,
.card-popular .card__title {
	font-size: 21px;
}

.pagination {
	margin-top: 28px;
}

.pagination ul.page-numbers,
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.pagination ul.page-numbers li {
	list-style: none;
}

.pagination a.page-numbers,
.pagination span.page-numbers,
.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #d9ccbf;
	border-radius: 999px;
	background: #fff;
}

.pagination span.page-numbers.current,
.navigation.pagination .nav-links .current {
	background: #1f1a17;
	border-color: #1f1a17;
	color: #fff;
}

.archive-layout {
	padding-top: 24px;
}

.archive-header {
	margin-bottom: 24px;
}

.page-title,
.entry-title {
	margin: 0;
	font-size: 40px;
	line-height: 1.1;
	overflow-wrap: anywhere;
	word-break: normal;
}

.archive-description {
	margin-top: 12px;
	color: #6d6258;
}

.search-page__header {
	display: grid;
	gap: 14px;
}

.search-page__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
}

.search-page__summary {
	margin: 0;
	color: #6d6258;
	font-size: 17px;
}

.search-page__form {
	width: min(100%, 720px);
}

.search-page__form-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid rgba(123, 93, 189, 0.18);
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 18px 38px rgba(89, 63, 148, 0.08);
}

.search-page__icon {
	position: absolute;
	left: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: rgba(64, 43, 104, 0.54);
	pointer-events: none;
}

.search-page__icon svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.search-page__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	padding: 0 18px 0 46px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #231630;
}

.search-page__field::placeholder {
	color: rgba(35, 22, 48, 0.54);
}

.search-page__field:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(180, 156, 255, 0.2);
}

.search-page__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 50px;
	padding: 0 22px;
	border: 1px solid rgba(123, 93, 189, 0.12);
	border-radius: 999px;
	background: var(--accent-soft);
	color: #27183a;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-page__button:hover,
.search-page__button:focus-visible {
	background: var(--accent-soft-dark);
	color: #fff;
	transform: translateY(-1px);
}

.search-page__empty {
	padding: 12px 0 8px;
}

.search-page__empty-note {
	margin: 12px 0 0;
	color: #6d6258;
	text-align: center;
}

.archive-grid {
	grid-template-columns: minmax(0, 1fr);
}

.archive-related-topics {
	padding-top: 32px;
}

.entry {
	padding-top: 24px;
}

.entry-header {
	margin-bottom: 24px;
}

.breadcrumbs {
	margin-bottom: 14px;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 0;
	margin: 0;
	list-style: none;
	color: #6d6258;
	font-size: 14px;
}

.breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.breadcrumbs__item:not(:last-child)::after {
	content: "/";
	color: rgba(109, 98, 88, 0.56);
}

.breadcrumbs__item a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.breadcrumbs__item a:hover,
.breadcrumbs__item a:focus-visible {
	color: var(--accent-soft-dark);
	border-color: currentColor;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #6d6258;
}

.entry-thumbnail {
	margin-bottom: 24px;
	border-radius: 20px;
	overflow: hidden;
}

.entry-content {
	max-width: 760px;
	font-size: 18px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	text-decoration: underline;
}

.single-shell {
	max-width: 1560px;
	margin: 0 auto;
	padding: 32px 24px 0;
}

.single-layout {
	display: grid;
	gap: 24px;
	align-items: start;
}

.page-layout {
	display: grid;
	gap: 24px;
	align-items: start;
}

.single-content {
	min-width: 0;
}

.single-article {
	padding: 32px;
	border-radius: 28px;
}

.single-article__header {
	max-width: 900px;
	margin: 0 auto 24px;
}

.single-article__thumbnail {
	max-width: 920px;
	margin: 0 auto 28px;
	border-radius: 0;
	overflow: visible;
	display: flex;
	justify-content: center;
}

.single-article__thumbnail img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto !important;
	max-height: min(72vh, 820px);
	border-radius: 24px;
}

.single-article__content {
	max-width: 920px;
	margin: 0 auto;
	font-size: 20px;
	line-height: 1.75;
}

.single-article__content > * {
	max-width: 100%;
}

.single-article__content img,
.single-article__content a > img {
	display: block;
	width: auto !important;
	max-width: min(100%, 800px) !important;
	height: auto !important;
	border-radius: 18px;
}

.single-article__content .wp-block-image,
.single-article__content .wp-caption,
.single-article__content figure {
	width: fit-content;
	max-width: 100%;
	margin: 1.4em 0;
}

.single-article__content .wp-block-image img,
.single-article__content .wp-caption img,
.single-article__content figure img {
	width: auto !important;
	max-width: min(100%, 800px) !important;
	height: auto !important;
	border-radius: 18px;
}

.single-article__content .aligncenter,
.single-article__content .wp-block-image.aligncenter,
.single-article__content figure.aligncenter,
.single-article__content .wp-caption.aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.single-article__content .aligncenter img,
.single-article__content .wp-block-image.aligncenter img,
.single-article__content figure.aligncenter img,
.single-article__content .wp-caption.aligncenter img {
	margin-left: auto;
	margin-right: auto;
}

.single-article__content .alignleft,
.single-article__content .wp-block-image.alignleft,
.single-article__content figure.alignleft,
.single-article__content .wp-caption.alignleft {
	margin-right: auto;
}

.single-article__content .alignright,
.single-article__content .wp-block-image.alignright,
.single-article__content figure.alignright,
.single-article__content .wp-caption.alignright {
	margin-left: auto;
}

.single-article__content h2,
.single-article__content h3,
.single-article__content h4 {
	scroll-margin-top: 110px;
	line-height: 1.2;
}

.single-article__content h2 {
	margin-top: 1.7em;
	font-size: 34px;
}

.single-article__content h3 {
	margin-top: 1.5em;
	font-size: 28px;
}

.single-article__content h4 {
	margin-top: 1.35em;
	font-size: 23px;
}

.single-article__content p,
.single-article__content ul,
.single-article__content ol,
.single-article__content blockquote {
	margin-bottom: 1.1em;
}

.single-article__content ul,
.single-article__content ol {
	padding-left: 0;
	list-style: none;
}

.single-article__content ul li,
.single-article__content ol li {
	position: relative;
	padding-left: 2.9em;
}

.single-article__content ul li + li,
.single-article__content ol li + li {
	margin-top: 0.7em;
}

.single-article__content ul li::before {
	content: "";
	position: absolute;
	top: 0.15em;
	left: 0;
	width: 1.45em;
	height: 1.45em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b5dbd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5c0-2.8 3.6-5 8-5s8 2.2 8 5-3.6 5-8 5-8-2.2-8-5Z'/%3E%3Cpath d='M8.8 8.6c.6-1.7 1.8-2.6 3.2-2.6s2.6.9 3.2 2.6'/%3E%3Cpath d='M9 16.8 7.8 19M12 17.4V20M15 16.8 16.2 19'/%3E%3Ccircle cx='9.2' cy='12.4' r='.7' fill='%237b5dbd' stroke='none'/%3E%3Ccircle cx='12' cy='12.9' r='.7' fill='%237b5dbd' stroke='none'/%3E%3Ccircle cx='14.8' cy='12.4' r='.7' fill='%237b5dbd' stroke='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.single-article__content ol {
	counter-reset: article-list;
}

.single-article__content ol li {
	counter-increment: article-list;
	min-height: 2em;
}

.single-article__content ol li::before {
	content: counter(article-list);
	position: absolute;
	top: -0.05em;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.9em;
	height: 1.9em;
	border: 1px solid rgba(123, 93, 189, 0.34);
	border-radius: 999px;
	background: rgba(123, 93, 189, 0.1);
	color: var(--accent-soft-dark);
	font-size: 0.88em;
	font-weight: 700;
	line-height: 1;
}

.single-article__content li > ul,
.single-article__content li > ol {
	margin-top: 0.8em;
	margin-bottom: 0;
}

.single-toc {
	max-width: 920px;
	margin: 0 auto 28px;
	border: 1px solid #e4dafc;
	border-radius: 24px;
	background: linear-gradient(180deg, rgba(245, 240, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
	box-shadow: 0 16px 32px rgba(123, 92, 201, 0.08);
}

.single-toc__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 22px;
	border: 0;
	background: transparent;
	color: #2d2140;
	font-size: 24px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.single-toc__toggle-icon {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-left: 12px;
}

.single-toc__toggle-icon::before {
	content: "";
	position: absolute;
	top: 1px;
	left: 2px;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.single-toc__toggle[aria-expanded="true"] .single-toc__toggle-icon::before {
	transform: rotate(225deg);
}

.single-toc__panel {
	padding: 0 22px 22px;
}

.single-toc__panel[hidden] {
	display: none;
}

.single-toc__list {
	margin: 0;
	padding-left: 22px;
	color: #4b3f63;
}

.single-toc__item + .single-toc__item {
	margin-top: 10px;
}

.single-toc__item--h3 {
	margin-left: 16px;
}

.single-toc__item--h4 {
	margin-left: 32px;
}

.single-toc__item a {
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.single-toc__item a:hover,
.single-toc__item a:focus-visible {
	color: var(--accent-soft-dark);
	border-color: currentColor;
}

.single-sidebar {
	min-width: 0;
	align-self: start;
	position: sticky;
	top: 104px;
}

.single-sidebar__panel {
	padding: 20px;
	border: 1px solid #eadffb;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 14px 30px rgba(71, 48, 129, 0.08);
	backdrop-filter: blur(8px);
}

.single-sidebar--right {
	display: grid;
	gap: 18px;
}

.single-sidebar__panel--promo {
	background: linear-gradient(180deg, rgba(247, 240, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.single-sidebar__title {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.15;
	color: #241935;
}

.single-sidebar__links,
.single-sidebar__links .children {
	padding: 0;
	margin: 0;
	list-style: none;
}

.single-sidebar__links .children {
	display: none;
}

.single-sidebar__links li + li {
	margin-top: 8px;
}

.single-sidebar__links a {
	display: block;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(245, 240, 255, 0.76);
	color: #3f3355;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.single-sidebar__links a:hover,
.single-sidebar__links a:focus-visible,
.single-sidebar__links .current-cat > a {
	background: rgba(180, 156, 255, 0.26);
	color: #25173b;
	transform: translateY(-1px);
}

.single-sidebar__empty {
	margin: 0;
	color: #5d506f;
}

.single-sidebar__ad > *:first-child {
	margin-top: 0;
}

.single-sidebar__ad img {
	width: 100%;
	border-radius: 18px;
}

.single-related {
	padding-top: 28px;
}

.comments-area {
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid rgba(123, 93, 189, 0.14);
}

.comments-area__header {
	margin-bottom: 18px;
}

.comments-area__title,
.comment-reply-title {
	margin: 0 0 16px;
	font-size: 28px;
	line-height: 1.15;
}

.comment-list {
	padding: 0;
	margin: 0 0 28px;
	list-style: none;
}

.comment-list .children {
	padding-left: 18px;
	margin: 16px 0 0;
	list-style: none;
	border-left: 2px solid rgba(180, 156, 255, 0.22);
}

.comment-body {
	padding: 18px 20px;
	border: 1px solid rgba(123, 93, 189, 0.14);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.74);
	box-shadow: 0 12px 28px rgba(89, 63, 148, 0.06);
}

.comment-list > .comment + .comment,
.comment-list .children > .comment + .comment {
	margin-top: 16px;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	font-style: normal;
}

.comment-author .avatar {
	flex: 0 0 auto;
	border-radius: 50%;
}

.comment-author .fn {
	font-weight: 700;
	color: #241935;
}

.comment-metadata {
	font-size: 13px;
	color: #6d6258;
}

.comment-metadata a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.comment-content {
	color: #332742;
}

.comment-content > *:first-child {
	margin-top: 0;
}

.comment-content > *:last-child {
	margin-bottom: 0;
}

.reply {
	margin-top: 12px;
}

.comment-reply-link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(180, 156, 255, 0.16);
	color: #473081;
	font-size: 14px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.comment-reply-link:hover,
.comment-reply-link:focus-visible {
	background: var(--accent-soft-dark);
	color: #fff;
	transform: translateY(-1px);
}

.comment-form {
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

.comment-notes {
	margin: 0;
	color: #6d6258;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	color: #241935;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid rgba(123, 93, 189, 0.18);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	color: #231630;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: rgba(127, 99, 217, 0.38);
	box-shadow: 0 0 0 3px rgba(180, 156, 255, 0.18);
}

.comment-form textarea {
	resize: vertical;
	min-height: 150px;
}

.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 22px;
	border: 1px solid rgba(123, 93, 189, 0.12);
	border-radius: 999px;
	background: var(--accent-soft);
	color: #27183a;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover,
.comment-form .submit:focus-visible {
	background: var(--accent-soft-dark);
	color: #fff;
	transform: translateY(-1px);
}

.comments-area__closed {
	margin: 18px 0 0;
	color: #6d6258;
}

.back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border: 1px solid var(--accent-soft);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--accent-soft-dark);
	box-shadow: 0 14px 28px rgba(71, 48, 129, 0.14);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	z-index: 30;
}

.back-to-top[data-visible] {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
	background: var(--accent-soft-dark);
	color: #fff;
}

.section-heading h2 {
	margin: 0 0 20px;
	font-size: 32px;
	line-height: 1.1;
}

.card-popular {
	background: linear-gradient(180deg, #fffdfd 0%, #f7f1ff 100%);
	border-color: #ddd1ff;
	box-shadow: 0 16px 36px rgba(135, 105, 210, 0.1);
}

.card-popular::before {
	content: "";
	position: absolute;
	top: 0;
	left: 18px;
	right: 18px;
	height: 4px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, #b8ff67 0%, #ff78cf 50%, #74e7ff 100%);
}

.card-popular .card__media {
	margin: 16px 16px 0;
	border-radius: 18px;
	overflow: hidden;
}

.card-popular .card__media img {
	aspect-ratio: 4 / 3;
}

.card-popular .card__content {
	padding: 16px 18px 20px;
}

.card-popular .card__meta {
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.card-popular .card__title {
	font-size: 22px;
	line-height: 1.25;
}

.card-popular .card__button {
	background: #fff;
}

.card-popular:hover,
.card-popular:focus-within {
	box-shadow: 0 24px 44px rgba(135, 105, 210, 0.16);
}

.card__terms--popular .card__term {
	font-weight: 700;
}

.empty-state {
	margin: 0;
	padding: 24px;
	background: #fff;
	border: 1px solid #e7ddd2;
	border-radius: 20px;
}

.site-footer {
	margin-top: 48px;
	background:
		linear-gradient(180deg, rgba(38, 25, 70, 0.98) 0%, rgba(25, 19, 42, 1) 100%);
	color: #f7f3ff;
}

.site-footer__inner {
	padding-top: 36px;
	padding-bottom: 20px;
}

.site-footer__search {
	display: flex;
	justify-content: center;
	margin-bottom: 32px;
}

.site-footer__search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(100%, 560px);
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 18px 34px rgba(7, 4, 20, 0.22);
}

.site-footer__search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	font: inherit;
	color: #231630;
}

.site-footer__search-field::placeholder {
	color: rgba(35, 22, 48, 0.64);
}

.site-footer__search-field:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(180, 156, 255, 0.22);
}

.site-footer__search-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 48px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: var(--accent-soft);
	color: #27183a;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-footer__search-button:hover,
.site-footer__search-button:focus-visible {
	background: #fff;
	color: var(--accent-soft-dark);
	transform: translateY(-1px);
}

.site-footer__columns {
	display: grid;
	gap: 24px;
	padding: 0 0 28px;
}

.site-footer__column {
	min-width: 0;
}

.site-footer__title {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.2;
	color: #fff;
}

.site-footer__note {
	margin: -4px 0 14px;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(247, 243, 255, 0.72);
}

.site-footer__links {
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-footer__links li + li {
	margin-top: 10px;
}

.site-footer__links a,
.site-footer__links li {
	color: rgba(247, 243, 255, 0.84);
}

.site-footer__links a {
	transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
	color: #fff;
}

.site-footer__bottom {
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__copyright {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(247, 243, 255, 0.72);
}

@media (max-width: 767px) {
	.site-header__inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 0;
		padding: 10px 16px;
		position: relative;
	}

	.site-header__branding,
	.site-header__actions {
		justify-content: center;
	}

	.custom-logo {
		max-height: 52px;
	}

	.site-header__branding {
		grid-column: 1;
		flex: 0 0 auto;
		justify-content: flex-start;
		margin-right: 0;
	}

	.site-header__title {
		font-size: 16px;
	}

	.site-header__brand-text {
		display: none;
	}

	.site-header__menu {
		gap: 10px 16px;
	}

	.site-header__actions {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 10px;
		flex-wrap: nowrap;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		padding: 6px;
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.08);
	}

	.site-header__nav-shell {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		grid-column: 3;
		flex: 0 0 auto;
		justify-self: end;
	}

	.site-header__menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0;
		flex-direction: column;
		align-self: auto;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.12);
		color: #fff;
		font: inherit;
		font-weight: 700;
		cursor: pointer;
	}

	.site-header__menu-toggle-line {
		display: block;
		width: 18px;
		height: 2px;
		margin: 2px 0;
		border-radius: 999px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-line:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-line:nth-child(2) {
		opacity: 0;
	}

	.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-line:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.site-header__menu-toggle-text {
		display: none;
	}

	.site-header__nav {
		display: none;
		width: min(100vw - 32px, 420px);
		padding-top: 10px;
	}

	.site-header__nav[data-open] {
		display: block;
		position: absolute;
		top: calc(100% + 8px);
		right: 0;
	}

	.site-header__menu {
		flex-direction: column;
		gap: 8px;
		align-items: stretch;
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 20px;
		background: rgba(59, 39, 110, 0.74);
	}

	.site-header__menu > li {
		display: block;
	}

	.site-header__menu > li > a {
		padding: 10px 12px;
	}

	.site-header__menu .menu-item__toggle {
		display: none;
	}

	.site-header__menu .sub-menu {
		position: static;
		display: flex;
		gap: 6px;
		min-width: 0;
		padding: 8px 0 0 14px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-header__menu .sub-menu .sub-menu {
		left: auto;
		top: auto;
		padding-left: 12px;
	}

	.site-search-wrap {
		position: relative;
	}

	.site-search__toggle {
		display: inline-flex;
	}

	.site-search__toggle,
	.site-theme-toggle,
	.site-header__channel,
	.site-header__menu-toggle {
		width: 42px;
		height: 42px;
	}

	.site-search {
		position: absolute;
		top: calc(100% + 10px);
		left: 50%;
		right: auto;
		width: min(calc(100vw - 32px), 320px);
		transform: translateX(-50%);
		z-index: 30;
		display: none;
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, 0.18);
		border-radius: 20px;
		background: rgba(63, 41, 119, 0.96);
		box-shadow: 0 18px 34px rgba(36, 19, 80, 0.26);
	}

	.site-search[data-open] {
		display: flex;
	}

	.site-search__field {
		background: rgba(255, 255, 255, 0.92);
		border-color: rgba(255, 255, 255, 0.92);
		color: #241935;
		box-shadow: none;
	}

	.site-search__field::placeholder {
		color: rgba(36, 25, 53, 0.62);
	}

	.site-search__icon {
		color: rgba(36, 25, 53, 0.6);
	}

	.featured-terms__list {
		gap: 10px;
	}

	.front-page-intro {
		padding: 22px 0 18px;
	}

	.front-page-intro__title {
		font-size: clamp(28px, 10vw, 40px);
		line-height: 1.08;
	}

	.featured-terms__link {
		width: 100%;
		justify-content: space-between;
	}

	.post-carousel__button {
		display: none;
	}

	.post-carousel__viewport {
		padding: 4px 0 10px;
	}

	.post-carousel__list {
		gap: 16px;
	}

	.card-grid--carousel {
		flex-basis: min(90vw, 360px);
	}

	.card-grid--carousel .card__content {
		padding: 16px;
	}

	.card-grid--carousel .card__title {
		font-size: 20px;
	}

	.card-grid--carousel .card__excerpt {
		font-size: 14px;
	}

	.archive-layout {
		padding-top: 12px;
	}

	.single-shell {
		padding: 24px 16px 0;
	}

	.single-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.page-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-content {
		order: 1;
	}

	.single-sidebar--left {
		order: 2;
	}

	.single-sidebar--right {
		order: 3;
	}

	.single-article {
		padding: 22px 18px;
		border-radius: 24px;
	}

	.single-article__content {
		font-size: 18px;
	}

	.single-article__thumbnail img {
		max-height: min(56svh, 420px);
	}

	.single-article__content h2 {
		font-size: 30px;
	}

	.single-article__content h3 {
		font-size: 25px;
	}

	.single-article__content h4 {
		font-size: 21px;
	}

	.breadcrumbs__list {
		font-size: 13px;
		gap: 6px 10px;
	}

	.page-title,
	.entry-title {
		font-size: clamp(30px, 8vw, 40px);
		line-height: 1.08;
	}

	.single-toc {
		border-radius: 20px;
	}

	.single-toc__toggle {
		padding: 16px 18px;
		font-size: 22px;
	}

	.single-toc__panel {
		padding: 0 18px 18px;
	}

	.single-sidebar__panel {
		position: static;
		padding: 18px;
	}

	.single-sidebar {
		position: static;
		top: auto;
	}

	.back-to-top {
		right: 16px;
		bottom: 16px;
	}

	.site-footer__inner {
		padding-top: 28px;
		padding-bottom: 18px;
	}

	.site-footer__search {
		margin-bottom: 24px;
	}

	.site-footer__search-form {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding: 10px;
		border-radius: 24px;
	}

	.site-footer__search-button {
		width: 100%;
	}

	.search-page__form-inner {
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
	}

	.search-page__icon {
		left: 24px;
		top: 28px;
	}

	.search-page__button {
		width: 100%;
	}

	.comment-list .children {
		padding-left: 12px;
	}

	.comment-body {
		padding: 16px;
	}
}

@media (min-width: 768px) {
	.hero-posts__grid {
		grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.58fr);
		grid-template-rows: repeat(3, minmax(0, 1fr));
		height: 490px;
		align-items: stretch;
	}

	.card-featured {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
		grid-row: 1 / 4;
		height: 100%;
		min-height: 0;
	}

	.card-featured .card__media {
		height: 100%;
	}

	.card-featured .card__content {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 12px;
		padding: 20px;
	}

	.card-featured .card__title {
		font-size: 28px;
	}

	.card-featured .card__excerpt {
		font-size: 15px;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

	.card-hero-secondary {
		height: 100%;
		min-width: 0;
	}

	.card-hero-secondary .card__media {
		height: 100%;
	}

	.card-hero-secondary .card__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(24, 18, 38, 0.05) 0%, rgba(24, 18, 38, 0.55) 100%);
	}

	.card-hero-secondary .card__media img {
		height: 100%;
	}

	.card-hero-secondary .card__content {
		gap: 10px;
		padding: 14px;
	}

	.card-hero-secondary .card__title {
		font-size: 18px;
		line-height: 1.2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.card-featured .card__media img {
		height: 100%;
		aspect-ratio: auto;
		min-height: 0;
	}

	.post-grid__list,
	.popular-posts__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card-grid--carousel {
		flex-basis: calc((100% - 20px) / 2);
	}

	.site-footer__columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.single-layout {
		grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
	}

	.single-sidebar--right {
		grid-column: 1 / -1;
	}

	.page-layout {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
	}

	.archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.site-header__inner {
		grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) minmax(260px, 340px);
		padding-left: 8px;
		padding-right: 24px;
	}

	.site-header__branding {
		margin-left: -24px;
	}

	.post-grid__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.card-grid--carousel {
		flex-basis: calc((100% - 40px) / 3);
	}

	.popular-posts__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.single-layout {
		grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(220px, 280px);
	}

	.single-sidebar--right {
		grid-column: auto;
	}

	.page-layout {
		grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
	}

	.archive-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.error-404 {
	background-color: #1d0b33;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	align-items: center;
	min-height: calc(100vh - 96px);
	min-height: calc(100svh - 96px);
	padding: 40px 0 48px;
}

.error-404__inner {
	display: flex;
	justify-content: center;
}

.error-404__content {
	width: min(100%, 760px);
	padding: 28px 22px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 28px;
	background: rgba(25, 11, 43, 0.58);
	backdrop-filter: blur(10px);
	color: #fff8fb;
	text-align: center;
	box-shadow: 0 26px 60px rgba(12, 3, 24, 0.28);
}

.error-404__title {
	margin: 0;
	font-size: clamp(34px, 10vw, 58px);
	line-height: 1;
	color: #ffffff;
}

.error-404__lead {
	margin: 18px 0 0;
	font-size: clamp(21px, 5vw, 30px);
	font-weight: 700;
	color: #f3dcff;
}

.error-404__text {
	margin: 14px auto 0;
	max-width: 34rem;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 248, 251, 0.95);
}

.error-404__home-link {
	color: #fbd6ff;
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.error-404__categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

.error-404__category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff8fb;
	font-size: 15px;
	line-height: 1.2;
	transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.error-404__category:hover,
.error-404__category:focus-visible {
	background: rgba(205, 166, 255, 0.28);
	border-color: rgba(238, 222, 255, 0.5);
	transform: translateY(-2px);
}

body.error404 .site-main {
	padding-bottom: 0;
	background: #1d0b33;
}

body.error404 .site-footer {
	margin-top: 0;
}

html[data-theme="dark"] body:not(.error404) .site-header {
	background:
		linear-gradient(135deg, rgba(40, 28, 73, 0.98) 0%, rgba(72, 48, 122, 0.96) 52%, rgba(104, 81, 161, 0.92) 100%);
	box-shadow: 0 14px 34px rgba(7, 5, 17, 0.42);
}

html[data-theme="dark"] body:not(.error404) .featured-terms__link,
html[data-theme="dark"] body:not(.error404) .card,
html[data-theme="dark"] body:not(.error404) .single-sidebar__panel,
html[data-theme="dark"] body:not(.error404) .single-toc,
html[data-theme="dark"] body:not(.error404) .single-article,
html[data-theme="dark"] body:not(.error404) .comment-body,
html[data-theme="dark"] body:not(.error404) .search-page__form-inner,
html[data-theme="dark"] body:not(.error404) .site-footer__search-form,
html[data-theme="dark"] body:not(.error404) .pagination a.page-numbers,
html[data-theme="dark"] body:not(.error404) .pagination span.page-numbers,
html[data-theme="dark"] body:not(.error404) .navigation.pagination .nav-links a,
html[data-theme="dark"] body:not(.error404) .navigation.pagination .nav-links span,
html[data-theme="dark"] body:not(.error404) .post-carousel__button {
	background: var(--site-surface-strong);
	border-color: var(--site-border);
	color: var(--site-text);
	box-shadow: 0 14px 28px rgba(5, 4, 14, 0.22);
}

html[data-theme="dark"] body:not(.error404) .card__media,
html[data-theme="dark"] body:not(.error404) .single-toc,
html[data-theme="dark"] body:not(.error404) .single-sidebar__panel--promo,
html[data-theme="dark"] body:not(.error404) .card-popular,
html[data-theme="dark"] body:not(.error404) .site-footer {
	background:
		linear-gradient(180deg, rgba(28, 22, 40, 0.98) 0%, rgba(19, 15, 31, 0.98) 100%);
}

html[data-theme="dark"] body:not(.error404) .site-main,
html[data-theme="dark"] body:not(.error404) .single-shell {
	background: transparent;
}

html[data-theme="dark"] body:not(.error404) .front-page-intro__title {
	color: #f3ecff;
}

html[data-theme="dark"] body:not(.error404) .card__meta,
html[data-theme="dark"] body:not(.error404) .archive-description,
html[data-theme="dark"] body:not(.error404) .search-page__summary,
html[data-theme="dark"] body:not(.error404) .search-page__empty-note,
html[data-theme="dark"] body:not(.error404) .breadcrumbs__list,
html[data-theme="dark"] body:not(.error404) .entry-meta,
html[data-theme="dark"] body:not(.error404) .comment-metadata,
html[data-theme="dark"] body:not(.error404) .comment-notes,
html[data-theme="dark"] body:not(.error404) .comments-area__closed,
html[data-theme="dark"] body:not(.error404) .single-sidebar__empty,
html[data-theme="dark"] body:not(.error404) .site-footer__note,
html[data-theme="dark"] body:not(.error404) .site-footer__copyright {
	color: var(--site-muted);
}

html[data-theme="dark"] body:not(.error404) .breadcrumbs__item:not(:last-child)::after {
	color: rgba(184, 175, 200, 0.58);
}

html[data-theme="dark"] body:not(.error404) .card__excerpt,
html[data-theme="dark"] body:not(.error404) .entry-content,
html[data-theme="dark"] body:not(.error404) .comment-content,
html[data-theme="dark"] body:not(.error404) .single-toc__list,
html[data-theme="dark"] body:not(.error404) .single-sidebar__links a,
html[data-theme="dark"] body:not(.error404) .search-page__field,
html[data-theme="dark"] body:not(.error404) .comment-form input[type="text"],
html[data-theme="dark"] body:not(.error404) .comment-form input[type="email"],
html[data-theme="dark"] body:not(.error404) .comment-form input[type="url"],
html[data-theme="dark"] body:not(.error404) .comment-form textarea,
html[data-theme="dark"] body:not(.error404) .site-footer__search-field {
	color: var(--site-text);
}

html[data-theme="dark"] body:not(.error404) .page-title,
html[data-theme="dark"] body:not(.error404) .entry-title,
html[data-theme="dark"] body:not(.error404) .single-sidebar__title,
html[data-theme="dark"] body:not(.error404) .single-toc__toggle,
html[data-theme="dark"] body:not(.error404) .comments-area__title,
html[data-theme="dark"] body:not(.error404) .comment-reply-title,
html[data-theme="dark"] body:not(.error404) .site-footer__title,
html[data-theme="dark"] body:not(.error404) .comment-author .fn {
	color: #f6f1ff;
}

html[data-theme="dark"] body:not(.error404) .card__media {
	background: #241d33;
}

html[data-theme="dark"] body:not(.error404) .card__button,
html[data-theme="dark"] body:not(.error404) .comment-form .submit,
html[data-theme="dark"] body:not(.error404) .search-page__button,
html[data-theme="dark"] body:not(.error404) .site-footer__search-button,
html[data-theme="dark"] body:not(.error404) .back-to-top {
	background: var(--accent-soft-dark);
	border-color: var(--accent-soft-dark);
	color: #fff;
}

html[data-theme="dark"] body:not(.error404) .card__button:hover,
html[data-theme="dark"] body:not(.error404) .card__button:focus-visible,
html[data-theme="dark"] body:not(.error404) .comment-form .submit:hover,
html[data-theme="dark"] body:not(.error404) .comment-form .submit:focus-visible,
html[data-theme="dark"] body:not(.error404) .search-page__button:hover,
html[data-theme="dark"] body:not(.error404) .search-page__button:focus-visible,
html[data-theme="dark"] body:not(.error404) .site-footer__search-button:hover,
html[data-theme="dark"] body:not(.error404) .site-footer__search-button:focus-visible,
html[data-theme="dark"] body:not(.error404) .back-to-top:hover,
html[data-theme="dark"] body:not(.error404) .back-to-top:focus-visible {
	background: var(--accent-soft);
	border-color: var(--accent-soft);
	color: #1a1029;
}

html[data-theme="dark"] body:not(.error404) .site-search__field,
html[data-theme="dark"] body:not(.error404) .search-page__field,
html[data-theme="dark"] body:not(.error404) .site-footer__search-field,
html[data-theme="dark"] body:not(.error404) .comment-form input[type="text"],
html[data-theme="dark"] body:not(.error404) .comment-form input[type="email"],
html[data-theme="dark"] body:not(.error404) .comment-form input[type="url"],
html[data-theme="dark"] body:not(.error404) .comment-form textarea {
	background: var(--site-input-bg);
	border-color: #3f3458;
	color: var(--site-input-text);
}

html[data-theme="dark"] body:not(.error404) .site-search__field::placeholder,
html[data-theme="dark"] body:not(.error404) .search-page__field::placeholder,
html[data-theme="dark"] body:not(.error404) .site-footer__search-field::placeholder,
html[data-theme="dark"] body:not(.error404) .comment-form input[type="text"]::placeholder,
html[data-theme="dark"] body:not(.error404) .comment-form input[type="email"]::placeholder,
html[data-theme="dark"] body:not(.error404) .comment-form input[type="url"]::placeholder,
html[data-theme="dark"] body:not(.error404) .comment-form textarea::placeholder {
	color: rgba(243, 237, 248, 0.56);
}

html[data-theme="dark"] body:not(.error404) .site-search,
html[data-theme="dark"] body:not(.error404) .search-page__form-inner,
html[data-theme="dark"] body:not(.error404) .site-footer__search-form {
	background: rgba(28, 22, 40, 0.88);
}

html[data-theme="dark"] body:not(.error404) .single-sidebar__links a,
html[data-theme="dark"] body:not(.error404) .comment-reply-link {
	background: rgba(180, 156, 255, 0.14);
	color: #e8defd;
}

html[data-theme="dark"] body:not(.error404) .single-sidebar__links a:hover,
html[data-theme="dark"] body:not(.error404) .single-sidebar__links a:focus-visible,
html[data-theme="dark"] body:not(.error404) .single-sidebar__links .current-cat > a,
html[data-theme="dark"] body:not(.error404) .comment-reply-link:hover,
html[data-theme="dark"] body:not(.error404) .comment-reply-link:focus-visible {
	background: rgba(180, 156, 255, 0.3);
	color: #fff;
}

html[data-theme="dark"] body:not(.error404) .pagination span.page-numbers.current,
html[data-theme="dark"] body:not(.error404) .navigation.pagination .nav-links .current {
	background: var(--accent-soft-dark);
	border-color: var(--accent-soft-dark);
	color: #fff;
}

html[data-theme="dark"] body:not(.error404) .card:hover,
html[data-theme="dark"] body:not(.error404) .card:focus-within,
html[data-theme="dark"] body:not(.error404) .card-popular:hover,
html[data-theme="dark"] body:not(.error404) .card-popular:focus-within {
	border-color: var(--accent-soft);
	box-shadow: 0 22px 42px rgba(8, 7, 19, 0.36);
}

html[data-theme="dark"] body:not(.error404) .site-header__channel-mark {
	color: #120d1d;
}

@media (prefers-reduced-motion: reduce) {
	.ticker__track {
		animation: none;
	}

	.post-carousel__viewport {
		scroll-behavior: auto;
	}
}

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

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