:root {
	--theme-main: #0f5e78;
	--theme-main-dark: #0a3f51;
	--theme-main-light: #e5f4f7;
	--theme-accent-bg: #d9eff4;
	--color-text: #171b1f;
	--color-muted: #66717c;
	--color-border: #dfe5ea;
	--color-soft: #f6f8fa;
	--color-white: #ffffff;
	--shadow-soft: 0 12px 32px rgba(17, 24, 39, 0.08);
	--wrap: 1180px;
}

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

body {
	margin: 0;
	background: #f2f4f6;
	color: var(--color-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

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

a {
	color: var(--theme-main);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--theme-main-dark);
	text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.75rem;
	line-height: 1.18;
	letter-spacing: 0;
}

p {
	margin: 0 0 1rem;
}

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;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--color-white);
	color: var(--theme-main-dark);
	box-shadow: var(--shadow-soft);
}

.content-wrap,
.site-header__inner,
.site-navigation__inner,
.site-footer__inner,
.site-footer__bottom {
	width: min(calc(100% - 32px), var(--wrap));
	margin: 0 auto;
}

.site-header {
	background: var(--color-white);
	border-top: 4px solid var(--theme-main);
	box-shadow: 0 1px 0 rgba(17, 24, 39, 0.06);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(300px, 728px);
	gap: 1.5rem;
	align-items: center;
	padding: 1.3rem 0;
}

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

.custom-logo-link,
.text-logo {
	display: inline-flex;
	align-items: flex-start;
	flex-direction: column;
	max-width: 100%;
	color: var(--color-text);
	text-decoration: none;
}

.custom-logo-link img {
	width: auto;
	max-height: 76px;
}

.text-logo__name {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 850;
	letter-spacing: 0;
	color: var(--theme-main-dark);
}

.text-logo__tagline {
	margin-top: 0.2rem;
	color: var(--color-muted);
	font-size: 0.94rem;
	font-weight: 600;
}

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

.ad-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--theme-main-light);
	background: var(--theme-accent-bg);
	color: var(--theme-main-dark);
	text-align: center;
}

.ad-slot img,
.ad-slot iframe {
	max-width: 100%;
	border: 0;
}

.ad-slot--header {
	min-height: 90px;
}

.ad-slot--sidebar {
	min-height: 600px;
}

.ad-slot--fallback {
	position: relative;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
		var(--theme-accent-bg);
	border-style: dashed;
}

.ad-slot--fallback::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid var(--theme-main-light);
	pointer-events: none;
}

.ad-slot--fallback span {
	position: relative;
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-navigation {
	background: var(--theme-main-dark);
}

.site-navigation__inner {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.latest-strip {
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
}

.latest-strip__inner {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	width: min(calc(100% - 32px), var(--wrap));
	min-height: 49px;
	margin: 0 auto;
	padding: 0.3rem 0;
	overflow: hidden;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.latest-strip__label {
	flex: 0 0 auto;
	padding: 0.2rem 0.55rem;
	background: var(--theme-main-light);
	color: var(--theme-main-dark);
	font-size: 0.74rem;
	font-weight: 850;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.latest-strip__link {
	min-width: 0;
	overflow: hidden;
	color: var(--color-text);
	font-weight: 750;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-decoration: none;
}

.latest-strip__link:hover,
.latest-strip__link:focus {
	color: var(--theme-main);
	text-decoration: none;
}

.latest-strip__date {
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 0.82rem;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0.8rem 0;
	border: 0;
	background: transparent;
	color: var(--color-white);
	font-weight: 750;
	cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 99px;
	content: "";
}

.menu-toggle__icon {
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	position: absolute;
	left: 0;
}

.menu-toggle__icon::before {
	top: -7px;
}

.menu-toggle__icon::after {
	top: 7px;
}

.menu-wrap {
	width: 100%;
}

.primary-menu,
.primary-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 2px 2px;
	padding: 0.32rem 0;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: flex;
	align-items: center;
	min-height: 36px;
	padding: 0.5rem 0.58rem;
	color: var(--color-white);
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.18;
	white-space: nowrap;
	border-radius: 3px;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	background: var(--theme-main);
	color: var(--color-white);
}

.primary-menu .sub-menu {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	display: none;
	width: 230px;
	background: var(--color-white);
	box-shadow: var(--shadow-soft);
}

.primary-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	min-height: 0;
	padding: 0.62rem 0.75rem;
	border-bottom: 1px solid var(--color-border);
	color: var(--color-text);
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.25;
	white-space: normal;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
	background: var(--theme-main-light);
	color: var(--theme-main-dark);
}

.site-main {
	padding: 2rem 0 2.5rem;
}

.site-main--front {
	padding-top: 1.4rem;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 1.7rem;
	align-items: start;
}

.content-column,
.site-sidebar,
.single-article,
.empty-state,
.archive-header {
	min-width: 0;
}

.magazine-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	gap: 1.2rem;
	margin-bottom: 1.7rem;
}

.magazine-hero--count-1 {
	grid-template-columns: 1fr;
}

.magazine-hero__side {
	display: grid;
	gap: 1.2rem;
}

.post-card {
	overflow: hidden;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.post-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--theme-main-light);
	text-decoration: none;
}

.post-card__media img,
.fallback-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fallback-thumb {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 18% 16%, var(--fallback-pop, rgba(255, 255, 255, 0.34)), transparent 0 26%),
		radial-gradient(circle at 86% 78%, var(--fallback-warm, rgba(255, 255, 255, 0.2)), transparent 0 30%),
		linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
		linear-gradient(120deg, var(--fallback-dark, var(--theme-main-dark)), var(--fallback-main, var(--theme-main)));
	color: var(--color-white);
}

.fallback-thumb::before,
.fallback-thumb::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.fallback-thumb::before {
	inset: 14px;
	z-index: 2;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.08);
}

.fallback-thumb::after {
	inset: 0;
	z-index: 1;
	opacity: 0.84;
}

.fallback-thumb--pattern-1 {
	--fallback-main: #0f7f8c;
	--fallback-dark: #173f5f;
	--fallback-pop: rgba(255, 196, 87, 0.34);
	--fallback-warm: rgba(238, 82, 83, 0.22);
}

.fallback-thumb--pattern-1::after {
	--fallback-main: #0f7f8c;
	--fallback-dark: #173f5f;
	--fallback-pop: rgba(255, 196, 87, 0.34);
	--fallback-warm: rgba(238, 82, 83, 0.22);
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 16px),
		linear-gradient(90deg, rgba(255, 196, 87, 0.12), transparent);
}

.fallback-thumb--pattern-2 {
	--fallback-main: #4b65a2;
	--fallback-dark: #232f5d;
	--fallback-pop: rgba(118, 214, 186, 0.34);
	--fallback-warm: rgba(255, 185, 95, 0.22);
}

.fallback-thumb--pattern-2::after {
	--fallback-main: #4b65a2;
	--fallback-dark: #232f5d;
	--fallback-pop: rgba(118, 214, 186, 0.34);
	--fallback-warm: rgba(255, 185, 95, 0.22);
	background:
		radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.24) 0 5px, transparent 6px 28px),
		radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.16) 0 6px, transparent 7px 34px),
		linear-gradient(135deg, rgba(118, 214, 186, 0.16), transparent);
	background-size: 82px 82px, 110px 110px;
}

.fallback-thumb--pattern-3 {
	--fallback-main: #2f7d62;
	--fallback-dark: #1e4b43;
	--fallback-pop: rgba(255, 214, 102, 0.3);
	--fallback-warm: rgba(87, 171, 204, 0.24);
}

.fallback-thumb--pattern-3::after {
	--fallback-main: #2f7d62;
	--fallback-dark: #1e4b43;
	--fallback-pop: rgba(255, 214, 102, 0.3);
	--fallback-warm: rgba(87, 171, 204, 0.24);
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
		linear-gradient(0deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
		linear-gradient(135deg, transparent, rgba(255, 214, 102, 0.12));
	background-size: 26px 26px;
}

.fallback-thumb--pattern-4 {
	--fallback-main: #9a4d6f;
	--fallback-dark: #53345f;
	--fallback-pop: rgba(93, 210, 179, 0.28);
	--fallback-warm: rgba(255, 154, 91, 0.26);
}

.fallback-thumb--pattern-4::after {
	--fallback-main: #9a4d6f;
	--fallback-dark: #53345f;
	--fallback-pop: rgba(93, 210, 179, 0.28);
	--fallback-warm: rgba(255, 154, 91, 0.26);
	background:
		repeating-radial-gradient(circle at 30% 40%, transparent 0 12px, rgba(255, 255, 255, 0.16) 13px 14px, transparent 15px 28px),
		linear-gradient(135deg, rgba(93, 210, 179, 0.14), transparent);
}

.fallback-thumb--pattern-5 {
	--fallback-main: #946b2d;
	--fallback-dark: #5a4323;
	--fallback-pop: rgba(69, 179, 157, 0.3);
	--fallback-warm: rgba(247, 143, 83, 0.24);
}

.fallback-thumb--pattern-5::after {
	--fallback-main: #946b2d;
	--fallback-dark: #5a4323;
	--fallback-pop: rgba(69, 179, 157, 0.3);
	--fallback-warm: rgba(247, 143, 83, 0.24);
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px),
		repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 255, 255, 0.14) 13px 14px, transparent 15px 30px),
		linear-gradient(180deg, rgba(69, 179, 157, 0.12), transparent);
}

.fallback-thumb--pattern-6 {
	--fallback-main: #2c7186;
	--fallback-dark: #234154;
	--fallback-pop: rgba(255, 118, 117, 0.26);
	--fallback-warm: rgba(255, 211, 105, 0.24);
}

.fallback-thumb--pattern-6::after {
	--fallback-main: #2c7186;
	--fallback-dark: #234154;
	--fallback-pop: rgba(255, 118, 117, 0.26);
	--fallback-warm: rgba(255, 211, 105, 0.24);
	background:
		radial-gradient(ellipse at 18% 22%, rgba(255, 255, 255, 0.2), transparent 38%),
		radial-gradient(ellipse at 82% 78%, rgba(255, 211, 105, 0.18), transparent 36%),
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 18px);
}

.fallback-thumb--pattern-7 {
	--fallback-main: #637a38;
	--fallback-dark: #30472f;
	--fallback-pop: rgba(136, 203, 171, 0.28);
	--fallback-warm: rgba(250, 181, 92, 0.24);
}

.fallback-thumb--pattern-7::after {
	--fallback-main: #637a38;
	--fallback-dark: #30472f;
	--fallback-pop: rgba(136, 203, 171, 0.28);
	--fallback-warm: rgba(250, 181, 92, 0.24);
	background:
		linear-gradient(30deg, rgba(255, 255, 255, 0.16) 12%, transparent 12% 88%, rgba(255, 255, 255, 0.16) 88%),
		linear-gradient(150deg, rgba(255, 255, 255, 0.11) 12%, transparent 12% 88%, rgba(255, 255, 255, 0.11) 88%),
		linear-gradient(90deg, rgba(250, 181, 92, 0.12), transparent);
	background-size: 54px 54px;
}

.fallback-thumb--pattern-8 {
	--fallback-main: #7d4f8f;
	--fallback-dark: #3e3558;
	--fallback-pop: rgba(91, 209, 215, 0.3);
	--fallback-warm: rgba(255, 190, 118, 0.22);
}

.fallback-thumb--pattern-8::after {
	--fallback-main: #7d4f8f;
	--fallback-dark: #3e3558;
	--fallback-pop: rgba(91, 209, 215, 0.3);
	--fallback-warm: rgba(255, 190, 118, 0.22);
	background:
		repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.16) 19px 20px),
		repeating-linear-gradient(60deg, transparent 0 26px, rgba(255, 255, 255, 0.12) 27px 28px),
		linear-gradient(140deg, rgba(91, 209, 215, 0.14), transparent);
}

.fallback-thumb--pattern-9 {
	--fallback-main: #b45f4d;
	--fallback-dark: #633b3b;
	--fallback-pop: rgba(96, 198, 149, 0.28);
	--fallback-warm: rgba(255, 205, 96, 0.26);
}

.fallback-thumb--pattern-9::after {
	--fallback-main: #b45f4d;
	--fallback-dark: #633b3b;
	--fallback-pop: rgba(96, 198, 149, 0.28);
	--fallback-warm: rgba(255, 205, 96, 0.26);
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 14px),
		radial-gradient(circle at 72% 24%, rgba(255, 205, 96, 0.18), transparent 0 24%),
		linear-gradient(90deg, rgba(96, 198, 149, 0.13), transparent);
}

.fallback-thumb--pattern-10 {
	--fallback-main: #326b7a;
	--fallback-dark: #263b5f;
	--fallback-pop: rgba(242, 174, 114, 0.3);
	--fallback-warm: rgba(111, 207, 151, 0.22);
}

.fallback-thumb--pattern-10::after {
	--fallback-main: #326b7a;
	--fallback-dark: #263b5f;
	--fallback-pop: rgba(242, 174, 114, 0.3);
	--fallback-warm: rgba(111, 207, 151, 0.22);
	background:
		linear-gradient(120deg, rgba(255, 255, 255, 0.16) 0 12%, transparent 12% 28%, rgba(255, 255, 255, 0.1) 28% 42%, transparent 42%),
		repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.12) 23px 24px);
}

.fallback-thumb--pattern-11 {
	--fallback-main: #3f7863;
	--fallback-dark: #253f52;
	--fallback-pop: rgba(248, 196, 113, 0.28);
	--fallback-warm: rgba(129, 178, 219, 0.24);
}

.fallback-thumb--pattern-11::after {
	--fallback-main: #3f7863;
	--fallback-dark: #253f52;
	--fallback-pop: rgba(248, 196, 113, 0.28);
	--fallback-warm: rgba(129, 178, 219, 0.24);
	background:
		radial-gradient(circle at 20% 80%, rgba(248, 196, 113, 0.18), transparent 0 26%),
		repeating-radial-gradient(circle at 72% 36%, transparent 0 10px, rgba(255, 255, 255, 0.14) 11px 12px, transparent 13px 24px);
}

.fallback-thumb--pattern-12 {
	--fallback-main: #6b647d;
	--fallback-dark: #2f4354;
	--fallback-pop: rgba(105, 207, 191, 0.28);
	--fallback-warm: rgba(243, 156, 91, 0.24);
}

.fallback-thumb--pattern-12::after {
	--fallback-main: #6b647d;
	--fallback-dark: #2f4354;
	--fallback-pop: rgba(105, 207, 191, 0.28);
	--fallback-warm: rgba(243, 156, 91, 0.24);
	background:
		linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.12) 75%),
		linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.1) 75%);
	background-size: 38px 38px;
}

.post-card__content {
	padding: 1rem;
}

.post-card__category {
	display: inline-flex;
	margin-bottom: 0.65rem;
	max-width: 100%;
	padding: 0.13rem 0.42rem;
	background: var(--theme-main-light);
	color: var(--theme-main-dark);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.22;
	overflow-wrap: anywhere;
	text-transform: uppercase;
	text-decoration: none;
}

.post-card__category:hover,
.post-card__category:focus {
	background: var(--theme-main);
	color: var(--color-white);
	text-decoration: none;
}

.post-card__title {
	margin-bottom: 0.5rem;
	font-size: 1.22rem;
	line-height: 1.24;
	overflow-wrap: break-word;
}

.post-card__title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus {
	color: var(--theme-main);
}

.entry-meta {
	color: var(--color-muted);
	font-size: 0.84rem;
	font-weight: 600;
}

.post-card__excerpt {
	margin-top: 0.8rem;
	color: #3e4852;
}

.post-card__excerpt p {
	margin-bottom: 0;
}

.post-card--hero {
	height: 100%;
}

.post-card--hero .post-card__media {
	aspect-ratio: 16 / 9;
}

.post-card--hero.has-fallback-thumb .post-card__media {
	aspect-ratio: 16 / 5.8;
	max-height: 270px;
}

.magazine-hero--count-1 .post-card--hero.has-fallback-thumb .post-card__media {
	aspect-ratio: 16 / 4.8;
}

.post-card--hero .post-card__content {
	padding: 1.15rem 1.2rem 1.25rem;
}

.post-card--hero.has-fallback-thumb .post-card__content {
	border-top: 3px solid var(--theme-main-light);
	background: linear-gradient(180deg, #ffffff, rgba(246, 248, 250, 0.72));
}

.post-card--hero.has-fallback-thumb .fallback-thumb::after {
	opacity: 0.48;
}

.post-card--hero .post-card__title {
	font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.post-card--compact {
	display: grid;
	grid-template-columns: 42% minmax(0, 1fr);
	min-height: 0;
}

.post-card--compact .post-card__media {
	aspect-ratio: auto;
	min-height: 178px;
}

.post-card--compact .post-card__content {
	padding: 0.9rem;
}

.post-card--compact .post-card__title {
	font-size: 1.03rem;
}

.post-card--compact .entry-meta {
	font-size: 0.78rem;
}

.front-content {
	margin-top: 0;
}

.content-section {
	margin-bottom: 2rem;
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
	border-bottom: 2px solid var(--color-border);
}

.section-heading h2 {
	position: relative;
	margin: 0;
	padding-bottom: 0.55rem;
	font-size: 1.35rem;
}

.section-heading h2::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--theme-main);
}

.section-heading a {
	color: var(--color-text);
	text-decoration: none;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem;
}

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

.archive-header {
	margin-bottom: 1rem;
	padding: 1rem 1.1rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.archive-header h1 {
	margin-bottom: 0.3rem;
	font-size: clamp(1.45rem, 2.8vw, 2.05rem);
}

.archive-description {
	color: var(--color-muted);
}

.archive-list {
	display: grid;
	gap: 0.85rem;
}

.post-card--list {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
}

.post-card--list .post-card__media {
	aspect-ratio: auto;
	min-height: 156px;
}

.post-card--list .post-card__content {
	padding: 0.88rem 0.95rem;
}

.post-card--list .post-card__title {
	font-size: 1.08rem;
}

.single-article,
.empty-state {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.single-article {
	padding: clamp(1.2rem, 3vw, 2rem);
}

.single-article__header {
	margin-bottom: 1.3rem;
}

.single-article__title {
	max-width: 850px;
	font-size: clamp(1.32rem, 2vw, 2.05rem);
	line-height: 1.2;
	overflow-wrap: break-word;
}

.single-post .single-article__header {
	margin-bottom: 1.7rem;
}

.single-post .single-article__title {
	margin-top: 0.65rem;
	margin-bottom: 0;
}

.single-article__media {
	margin-bottom: 1.5rem;
	overflow: hidden;
	border-radius: 8px;
	background: var(--theme-main-light);
}

.single-article__media img,
.single-article__media .fallback-thumb {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.entry-content {
	font-size: 1.05rem;
}

.entry-content > * {
	max-width: 760px;
}

.entry-content img,
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-embed {
	max-width: 100%;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.entry-content blockquote {
	margin: 1.4rem 0;
	padding: 1rem 1.2rem;
	border-left: 4px solid var(--theme-main);
	background: var(--theme-main-light);
}

.in-article-ad {
	max-width: 760px;
	margin: 1.45rem 0;
}

.in-article-ad .ad-slot--header {
	min-height: 90px;
}

.breadcrumbs {
	margin: 0 0 0.7rem;
	color: var(--color-muted);
	font-size: 0.78rem;
	line-height: 1.35;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.18rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
	min-width: 0;
}

.breadcrumbs li + li::before {
	content: ">";
	margin: 0 0.38rem;
	color: #9aa6b2;
}

.breadcrumbs a {
	color: var(--color-muted);
	text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
	color: var(--theme-main);
	text-decoration: none;
}

.breadcrumbs span {
	color: #7c8792;
}

.single-meta-line {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
	color: #b0bac4;
	font-size: 0.76rem;
	line-height: 1.35;
	overflow: hidden;
	white-space: nowrap;
}

.single-meta-line .breadcrumbs {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow: hidden;
}

.single-meta-line .breadcrumbs ol {
	flex-wrap: nowrap;
	overflow: hidden;
}

.single-meta-line .breadcrumbs ol::before {
	flex: 0 0 auto;
	content: "|";
	margin-right: 0.35rem;
	color: #c4ccd4;
}

.single-meta-line .breadcrumbs li {
	flex: 0 0 auto;
}

.single-meta-line .breadcrumbs li:last-child {
	flex: 1 1 auto;
	overflow: hidden;
}

.single-meta-line .breadcrumbs a,
.single-meta-line .breadcrumbs span {
	color: #b0bac4;
	white-space: nowrap;
}

.single-meta-line .breadcrumbs a:hover,
.single-meta-line .breadcrumbs a:focus {
	color: var(--theme-main);
}

.single-meta-line .breadcrumbs li:last-child span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
}

.single-meta-line__date {
	display: inline-flex;
	flex: 0 0 auto;
	color: #b0bac4;
	font-weight: 500;
}

.related-posts {
	max-width: 760px;
	margin-top: 1.6rem;
	padding: 1rem 1.05rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.related-posts h2 {
	margin-bottom: 0.7rem;
	color: var(--color-text);
	font-size: 0.98rem;
	font-weight: 700;
}

.related-posts ul {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-posts li {
	padding-bottom: 0.45rem;
	border-bottom: 1px solid var(--color-border);
}

.related-posts li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.related-posts a {
	color: var(--color-text);
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.related-posts a:hover,
.related-posts a:focus {
	color: var(--theme-main);
}

.related-post-navigation h2 {
	margin-bottom: 0.7rem;
	color: var(--color-text);
	font-size: 0.98rem;
	font-weight: 700;
}

.related-post-navigation ul {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-post-navigation li {
	padding: 0.54rem 0;
	border-bottom: 1px solid var(--color-border);
}

.related-post-navigation li:first-child {
	padding-top: 0;
}

.related-post-navigation li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.related-post-navigation a {
	color: var(--theme-main);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.related-post-navigation a:hover,
.related-post-navigation a:focus {
	color: var(--theme-main-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.page-links,
.post-navigation,
.comments-area,
.pagination {
	margin-top: 1.5rem;
}

.post-navigation,
.comments-area {
	padding: 1rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.3rem;
	min-height: 2.3rem;
	padding: 0.3rem 0.7rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	color: var(--color-text);
	font-weight: 700;
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus {
	background: var(--theme-main);
	border-color: var(--theme-main);
	color: var(--color-white);
	text-decoration: none;
}

.site-sidebar {
	display: grid;
	gap: 1rem;
}

.sidebar-block {
	padding: 1rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.sidebar-block--ad {
	padding: 0;
	border: 0;
	background: transparent;
}

.sidebar-block--ad-bottom {
	margin-top: 0.35rem;
}

.sidebar-block h2 {
	margin-bottom: 0.8rem;
	padding-bottom: 0.45rem;
	border-bottom: 2px solid var(--theme-main-light);
	font-size: 1.05rem;
}

.search-form {
	display: flex;
	gap: 0.45rem;
}

.search-field {
	min-width: 0;
	flex: 1;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background: var(--color-white);
}

.search-submit,
.wp-block-search__button,
input[type="submit"],
button[type="submit"] {
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--theme-main);
	border-radius: 4px;
	background: var(--theme-main);
	color: var(--color-white);
	font-weight: 750;
	cursor: pointer;
}

.search-submit:hover,
.search-submit:focus,
.wp-block-search__button:hover,
.wp-block-search__button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
button[type="submit"]:hover,
button[type="submit"]:focus {
	background: var(--theme-main-dark);
	border-color: var(--theme-main-dark);
}

.sidebar-post-list,
.footer-post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-post-list {
	display: grid;
	gap: 0.75rem;
}

.sidebar-post-list li {
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--color-border);
}

.sidebar-post-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sidebar-post-list a,
.footer-post-list a {
	color: var(--color-text);
	font-weight: 750;
	text-decoration: none;
}

.sidebar-post-list a:hover,
.sidebar-post-list a:focus,
.footer-post-list a:hover,
.footer-post-list a:focus {
	color: var(--theme-main);
}

.sidebar-post-list span {
	display: block;
	margin-top: 0.15rem;
	color: var(--color-muted);
	font-size: 0.8rem;
}

.empty-state {
	padding: 2rem;
}

.empty-state--front {
	margin-bottom: 1.5rem;
}

.site-footer {
	background: #111820;
	color: #d8e1e8;
}

.site-footer a {
	color: #ffffff;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(160px, 0.5fr);
	gap: 1.25rem;
	padding: 1.45rem 0;
}

.site-footer .text-logo__name {
	color: #ffffff;
	font-size: 1.42rem;
}

.site-footer .text-logo__tagline,
.site-footer__tagline,
.site-footer__disclaimer {
	color: #b8c5cf;
}

.site-footer__ad {
	max-width: 460px;
	margin-top: 1rem;
}

.site-footer__ad .ad-slot--header {
	min-height: 86px;
}

.site-footer__ad .ad-slot--fallback {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
		var(--theme-accent-bg);
}

.site-footer .custom-logo-link img {
	max-height: 62px;
}

.site-footer h2 {
	margin-bottom: 0.55rem;
	font-size: 0.92rem;
	font-weight: 650;
	color: #ffffff;
}

.footer-post-list {
	display: grid;
	gap: 0.38rem;
}

.site-footer .footer-post-list a {
	color: #d8e1e8;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.35;
}

.footer-contact-link {
	display: inline-flex;
	padding: 0.34rem 0.58rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.footer-contact-link:hover,
.footer-contact-link:focus {
	background: var(--theme-main);
	text-decoration: none;
}

.site-footer__bottom {
	padding: 0.72rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #b8c5cf;
	font-size: 0.86rem;
}

.site-footer__bottom p {
	margin: 0;
}

@media (max-width: 980px) {
	.site-header__inner,
	.layout-with-sidebar,
	.magazine-hero,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-header__ad {
		max-width: 728px;
	}

	.ad-slot--sidebar {
		min-height: 460px;
	}

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

	.sidebar-block--ad {
		grid-column: span 2;
	}
}

@media (max-width: 780px) {
	.site-header__inner {
		padding: 1rem 0;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.site-navigation__inner {
		display: block;
	}

	.menu-wrap {
		display: none;
		padding-bottom: 0.6rem;
	}

	.site-navigation.is-open .menu-wrap {
		display: block;
	}

	.latest-strip__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
		padding: 0.65rem 0;
	}

	.latest-strip__link {
		width: 100%;
		white-space: normal;
	}

	.latest-strip__date {
		margin-left: 0;
	}

	.primary-menu {
		display: block;
		gap: 0;
		padding: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
	}

	.primary-menu a {
		justify-content: space-between;
		min-height: 0;
		padding: 0.85rem 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 0;
		font-size: 0.92rem;
		white-space: normal;
	}

	.primary-menu .sub-menu,
	.primary-menu .sub-menu .sub-menu {
		position: static;
		display: block;
		width: auto;
		padding-left: 1rem;
		background: rgba(0, 0, 0, 0.12);
		box-shadow: none;
	}

	.primary-menu .sub-menu a {
		border-color: rgba(255, 255, 255, 0.12);
		color: var(--color-white);
	}

	.primary-menu .sub-menu a:hover,
	.primary-menu .sub-menu a:focus {
		background: rgba(255, 255, 255, 0.08);
		color: var(--color-white);
	}

	.post-grid,
	.post-grid--compact,
	.site-sidebar {
		grid-template-columns: 1fr;
	}

	.sidebar-block--ad {
		grid-column: auto;
	}

	.post-card--list,
	.post-card--compact {
		grid-template-columns: 1fr;
	}

	.post-card--list .post-card__media,
	.post-card--compact .post-card__media {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}
}

@media (max-width: 520px) {
	.content-wrap,
	.site-header__inner,
	.site-navigation__inner,
	.latest-strip__inner,
	.site-footer__inner,
	.site-footer__bottom {
		width: min(calc(100% - 24px), var(--wrap));
	}

	.site-main {
		padding-top: 1rem;
	}

	.post-card__content,
	.post-card--hero .post-card__content,
	.single-article,
	.empty-state,
	.archive-header {
		padding: 1rem;
	}

	.search-form {
		flex-direction: column;
	}

	.search-submit {
		width: 100%;
	}

	.ad-slot--sidebar {
		min-height: 360px;
	}

	.in-article-ad .ad-slot--header {
		min-height: 74px;
	}
}
