:root {
	--navy-950: #081a2f;
	--navy-900: #0c2a4b;
	--navy-800: #14365c;
	--green-500: #85b537;
	--green-600: #6b9d2a;
	--purple-500: #603c96;
	--orange-500: #ef7c00;
	--bg: #f4f6f9;
	--surface: #ffffff;
	--surface-muted: #edf1f6;
	--text: #172233;
	--text-soft: #687488;
	--border: #dce3ec;
	--shadow-lg: 0 24px 64px rgba(12, 32, 56, 0.14);
	--shadow-md: 0 14px 34px rgba(12, 32, 56, 0.12);
	--radius-xl: 28px;
	--radius-lg: 22px;
	--radius-md: 16px;
	--radius-sm: 12px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Segoe UI", Arial, sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top center, rgba(133, 181, 55, 0.14), transparent 28%),
		linear-gradient(180deg, #eff3f7 0%, #f7f9fb 100%);
}

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

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

button,
input,
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;
}

/* Layout */

.site-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-frame {
	flex: 1;
}

.site-main {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 12px;
}

/* Bootstrap-like container widths */
@media (min-width: 576px) {
	.site-main,
	.header-inner,
	.header-search-panel__inner,
	.site-footer__inner {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	.site-main,
	.header-inner,
	.header-search-panel__inner,
	.site-footer__inner {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	.site-main,
	.header-inner,
	.header-search-panel__inner,
	.site-footer__inner {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	.site-main,
	.header-inner,
	.header-search-panel__inner,
	.site-footer__inner {
		max-width: 1140px;
	}
}

@media (min-width: 1400px) {
	.site-main,
	.header-inner,
	.header-search-panel__inner,
	.site-footer__inner {
		max-width: 1320px;
	}
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: linear-gradient(180deg, var(--navy-900) 0%, #0b2643 100%);
	color: #fff;
	box-shadow: 0 10px 32px rgba(6, 18, 32, 0.18);
}

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

.header-inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 18px 12px;
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(16px, 2vw, 32px);
}

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

.site-brand__link,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 25px;
	color: #fff;
}

.site-brand__icon,
.site-brand__icon svg {
	width: 52px;
	height: 52px;
}

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

.site-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.site-brand__name {
	font-size: clamp(1.8rem, 2vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.site-brand__accent {
	color: var(--green-500);
}

.site-brand__tag {
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-size: 0.66rem;
	margin-top: 4px;
	opacity: 0.82;
}

.primary-nav {
	justify-self: end;
}

.primary-nav__list,
.fallback-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(10px, 1.3vw, 20px);
}

.primary-nav__list li,
.fallback-menu__item {
	margin: 0;
}

.primary-nav__list a,
.fallback-menu__item a {
	position: relative;
	display: inline-flex;
	padding: 10px 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(0.72rem, 0.72vw, 0.88rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.035em;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.primary-nav__list a:hover,
.fallback-menu__item a:hover,
.primary-nav__list .current-menu-item > a,
.fallback-menu__item.is-active a {
	color: #fff;
}

.primary-nav__list .current-menu-item > a::after,
.fallback-menu__item.is-active a::after,
.primary-nav__list a:hover::after,
.fallback-menu__item a:hover::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	border-radius: 999px;
	background: var(--green-500);
}

.header-toggle,
.header-search-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-toggle:hover,
.header-search-button:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

.header-toggle svg,
.header-search-button svg {
	width: 22px;
	height: 22px;
}

.header-toggle {
	display: none;
}

.header-search-panel {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.header-search-panel__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 14px 12px 20px;
}

.mobile-nav {
	display: none;
	background: var(--navy-950);
}

.mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0 24px 24px;
	display: grid;
	gap: 4px;
}

.mobile-nav__list a {
	display: block;
	padding: 14px 18px;
	border-radius: 14px;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.88rem;
	background: rgba(255, 255, 255, 0.06);
}

/* Buttons and shared UI */

.section-tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(133, 181, 55, 0.18);
	color: var(--green-500);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.section-tag--inline {
	margin-bottom: 12px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	border-radius: 12px;
	border: none;
	background: linear-gradient(180deg, var(--green-500) 0%, var(--green-600) 100%);
	color: #fff;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(107, 157, 42, 0.28);
}

.button:hover {
	filter: brightness(1.03);
}

.button--small {
	padding: 11px 18px;
	font-size: 0.74rem;
}

.button--secondary {
	background: var(--navy-900);
	box-shadow: none;
}

.button--light {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: none;
}

.button--ghost {
	background: transparent;
	color: var(--navy-900);
	border: 1px solid var(--border);
	box-shadow: none;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--navy-900);
	font-weight: 700;
}

.text-link::after {
	content: "›";
	font-size: 1.2em;
}

/* Hero */

.home-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) 340px;
	gap: 24px;
}

.hero-slider {
	position: relative;
	height: clamp(380px, 45vw, 530px);
	border-radius: var(--radius-xl);
	overflow: hidden;
	background: linear-gradient(135deg, var(--navy-950) 0%, #15345a 100%);
	box-shadow: var(--shadow-lg);
}

.hero-slide,
.hero-empty {
	position: absolute;
	inset: 0;
}

.hero-slide {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.hero-slide__image,
.hero-slide__image img,
.hero-slide__placeholder {
	width: 100%;
	height: 100%;
}

.hero-slide__image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-slide__image img,
.hero-slide__placeholder {
	display: block;
	object-fit: cover;
}

.hero-slide__placeholder {
	background:
		linear-gradient(130deg, rgba(133, 181, 55, 0.22), transparent 40%),
		linear-gradient(135deg, #18365c 0%, #091a2f 100%);
}

.hero-slide__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(3, 11, 20, 0.82) 0%,
		rgba(3, 11, 20, 0.42) 48%,
		rgba(3, 11, 20, 0.08) 100%
	);
}

.hero-slide__link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
}

.hero-slide__content {
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(56%, 560px);
	height: 100%;
	padding: 48px;
	margin-left: 45px;
	box-sizing: border-box;
	color: #fff;
}

.hero-empty {
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: min(56%, 560px);
	height: 100%;
	padding: 48px;
	box-sizing: border-box;
	color: #fff;
}

.hero-slide__title,
.hero-empty h1 {
	margin: 16px 0 12px;
	font-size: clamp(2rem, 3.4vw, 3.2rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.hero-slide__excerpt,
.hero-empty p {
	margin: 0 0 28px;
	font-size: 1.02rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

.hero-slider__control {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 1.7rem;
	cursor: pointer;
	backdrop-filter: blur(10px);
}

.hero-slider__control--prev {
	left: 20px;
}

.hero-slider__control--next {
	right: 20px;
}

.hero-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 3;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}

.hero-slider__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
}

.hero-slider__control,
.hero-slider__dots {
	z-index: 4;
}

.hero-slider__dot.is-active {
	background: #fff;
}

.hero-side {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Cards and panels */

.panel,
.post-card,
.feature-card,
.info-panel,
.page-card,
.article-card,
.archive-hero,
.empty-state {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.panel {
	padding: 22px;
}

.panel--ad,
.ad-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	text-align: center;
	background: linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
	color: #9aa6b6;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.panel--ad span,
.ad-slot span {
	text-transform: uppercase;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.panel__header,
.mobile-most-read .panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.panel__header h2,
.mobile-most-read .panel__header h2 {
	margin: 0;
	font-size: 1.5rem;
	letter-spacing: -0.03em;
}

/* Most read */

.most-read-list,
.mobile-most-read__list,
.feature-card__list,
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.most-read-list__item {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid var(--border);
}

.most-read-list__item:first-child {
	padding-top: 0;
	border-top: none;
}

.most-read-list__rank {
	color: #8793a6;
	font-weight: 800;
}

.most-read-list__link,
.mobile-most-read__link {
	display: grid;
	grid-template-columns: 62px 1fr;
	gap: 12px;
	align-items: center;
}

.most-read-list__thumb img,
.mobile-most-read__thumb img {
	width: 62px;
	height: 62px;
	object-fit: cover;
	border-radius: 10px;
}

.most-read-list__text,
.mobile-most-read__title {
	font-weight: 700;
	line-height: 1.35;
}

/* Search */

.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 18px;
	border-radius: 999px;
	background: var(--surface-muted);
	border: 1px solid var(--border);
}

.search-field {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	color: var(--text);
}

.search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: var(--navy-900);
	color: #fff;
	cursor: pointer;
}

.search-submit svg {
	width: 20px;
	height: 20px;
}

/* Ads */

.home-ad {
	padding: 18px 0 8px;
}

.ad-slot {
	min-height: 120px;
	box-shadow: none;
}

.ad-slot--compact {
	min-height: 118px;
}

/* Feature grid */

.feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin-top: 22px;
}

.feature-card {
	display: grid;
	grid-template-rows: auto 1fr auto;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background: #fff;
}

.feature-card__header {
	display: grid;
	grid-template-rows: 5.1rem 1fr auto;
	gap: 18px;
	padding: 28px 24px 24px;
	color: #fff;
}

.feature-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	align-self: center;
	overflow: hidden;
	margin: 0;
	text-align: center;
	font-size: 1.7rem;
	line-height: 1;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.feature-card__body {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 16px;
	align-items: center;
	min-height: 96px;
}

.feature-card__icon,
.info-panel__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature-card__icon svg {
	width: 66px;
	height: 66px;
}

.feature-card__desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	color: rgba(255, 255, 255, 0.86);
	line-height: 1.55;
}

.feature-card__header .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	width: 196px;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 999px;
	text-align: center;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.feature-card__header .button:hover,
.feature-card__header .button:focus-visible {
	filter: brightness(0.88);
	transform: translateY(-1px);
}

.feature-card__list {
	display: grid;
	gap: 12px;
	padding: 20px 24px;
}

.feature-card__list li {
	position: relative;
	padding-left: 14px;
	line-height: 1.4;
}

.feature-card__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.feature-card__list a {
	font-weight: 600;
}

.feature-card__footer {
	padding: 18px 24px 22px;
	border-top: 1px solid var(--border);
	font-weight: 800;
	text-transform: uppercase;
	color: var(--navy-900);
}

.feature-card__empty {
	padding: 24px;
	color: var(--text-soft);
}

.feature-card--rules .feature-card__header {
	background: linear-gradient(180deg, #193b68 0%, #0c2a4b 100%);
}

.feature-card--explainer .feature-card__header {
	background: linear-gradient(180deg, #8ab83d 0%, #6c9c2f 100%);
}

.feature-card--var .feature-card__header {
	background: linear-gradient(180deg, #6b47a6 0%, #52317f 100%);
}

.feature-card--news .feature-card__header {
	background: linear-gradient(180deg, #f08918 0%, #d76900 100%);
}

/* Mobile most read */

.mobile-most-read {
	display: none;
	margin-top: 22px;
}

.mobile-most-read__list {
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
}

.mobile-most-read__item {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 12px;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid var(--border);
}

.mobile-most-read__item:first-child {
	padding-top: 0;
	border-top: none;
}

.mobile-most-read__rank {
	font-weight: 800;
	color: #8d98a8;
}

/* Info panels */

.info-panels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 22px 0 0;
}

.info-panel {
	padding: 24px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	align-items: center;
}

.info-panel h2 {
	margin: 0 0 8px;
	font-size: 1.5rem;
	letter-spacing: -0.03em;
}

.info-panel p {
	margin: 0 0 18px;
	color: var(--text-soft);
	line-height: 1.6;
}

.info-panel__icon svg {
	width: 84px;
	height: 84px;
	color: var(--navy-900);
}

.newsletter-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
}

.newsletter-form input {
	padding: 14px 18px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--surface-muted);
}


/* Newsletter panel: prevent icon from colliding with the form */
.info-panel:has(.newsletter-form) {
	grid-template-columns: 1fr;
}

.info-panel:has(.newsletter-form) .info-panel__icon {
	display: none;
}

.info-panel:has(.newsletter-form) .newsletter-form {
	width: 100%;
	grid-template-columns: minmax(0, 1fr) auto;
}

.info-panel:has(.newsletter-form) .newsletter-form input {
	min-width: 0;
}

.info-panel:has(.newsletter-form) .newsletter-form .button {
	white-space: normal;
}

/* Footer */

.site-footer {
	margin-top: 32px;
	background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
	color: rgba(255, 255, 255, 0.9);
}

.site-footer__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 36px 12px 24px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
	gap: 28px;
}

.site-footer__title {
	margin: 0 0 14px;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #fff;
}

.footer-links {
	display: grid;
	gap: 10px;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.8);
}

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

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 22px;
}

.site-footer__brand-mark .site-brand__name {
	font-size: 2rem;
}

.site-footer__socials {
	display: flex;
	gap: 10px;
}

.site-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__socials svg {
	width: 20px;
	height: 20px;
}

.site-footer__bottom {
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.65);
}

/* Archive and posts */

.archive-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
	gap: 22px;
	padding: 32px;
}

.archive-hero__title,
.page-card__title,
.article-card__title {
	margin: 14px 0 12px;
	font-size: clamp(2.1rem, 4vw, 3.4rem);
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.archive-hero__description,
.article-card__excerpt {
	color: var(--text-soft);
	line-height: 1.7;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-top: 24px;
}

.post-card {
	overflow: hidden;
}

.post-card__media {
	display: block;
	background: linear-gradient(135deg, rgba(133, 181, 55, 0.16), rgba(12, 42, 75, 0.15));
	aspect-ratio: 16 / 10;
}

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

.post-card__placeholder {
	display: block;
	background: linear-gradient(135deg, rgba(133, 181, 55, 0.14), rgba(12, 42, 75, 0.24));
}

.post-card__meta-wrap,
.article-card__media-meta {
	padding: 14px 18px 0;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	color: var(--text-soft);
	font-size: 0.88rem;
}

.entry-meta__label {
	font-weight: 800;
	color: var(--navy-900);
}

.post-card__body {
	padding: 18px 18px 24px;
}

.post-card__title {
	margin: 0 0 12px;
	font-size: 1.55rem;
	line-height: 1.15;
	letter-spacing: -0.04em;
}

.post-card__excerpt {
	margin: 0 0 18px;
	color: var(--text-soft);
	line-height: 1.65;
}

.pagination-wrap {
	margin-top: 28px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: #fff;
	font-weight: 700;
}

.nav-links .current {
	background: var(--navy-900);
	color: #fff;
	border-color: var(--navy-900);
}

/* Pages and articles */

.page-card,
.article-card {
	padding: 32px;
}

.page-card__media,
.article-card__media {
	margin-top: 20px;
	border-radius: 20px;
	overflow: hidden;
}

.article-card__media-meta--standalone {
	padding: 0;
	margin-bottom: 22px;
}

.page-card__content,
.article-card__content {
	margin-top: 28px;
	line-height: 1.8;
	font-size: 1.04rem;
}

.page-card__content > *:first-child,
.article-card__content > *:first-child {
	margin-top: 0;
}

.article-card__content h2,
.article-card__content h3,
.article-card__content h4 {
	margin-top: 1.8em;
	line-height: 1.2;
}

.article-card__content blockquote {
	margin: 24px 0;
	padding: 18px 22px;
	border-left: 4px solid var(--green-500);
	background: var(--surface-muted);
	border-radius: 14px;
}

/* Author */

.author-box {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 22px;
	align-items: start;
	margin-top: 40px;
	padding: 24px;
	border-radius: 20px;
	background: linear-gradient(180deg, #eef4f9 0%, #ffffff 100%);
	border: 1px solid var(--border);
}

.author-box__avatar img {
	border-radius: 50%;
}

.author-box__eyebrow {
	margin: 0 0 6px;
	color: var(--text-soft);
	font-size: 0.84rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.author-box__name {
	margin: 0 0 10px;
	font-size: 1.8rem;
	letter-spacing: -0.04em;
}

.author-box__bio {
	margin: 0 0 18px;
	color: var(--text-soft);
	line-height: 1.7;
}

.empty-state {
	margin-top: 24px;
	padding: 42px 32px;
	text-align: center;
}

.mobile-bottom-nav {
	display: none;
}

/* Responsive */

/* Header navigation tightening before mobile */
@media (max-width: 1199.98px) {
	.header-inner {
		gap: 18px;
	}

	.primary-nav__list,
	.fallback-menu {
		gap: 10px;
	}

	.primary-nav__list a,
	.fallback-menu__item a {
		font-size: 0.72rem;
		letter-spacing: 0.02em;
	}

	.site-brand__link,
	.custom-logo-link {
		gap: 14px;
	}

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

@media (max-width: 991.98px) {
	.header-inner {
		grid-template-columns: auto 1fr auto;
	}

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

	.primary-nav {
		display: none;
	}

	.mobile-nav {
		display: block;
	}

	.mobile-nav[hidden] {
		display: none;
	}
}

@media (max-width: 1180px) {
	.header-inner,
	.site-main,
	.site-footer__inner {
		padding-left: 18px;
		padding-right: 18px;
	}

	.home-hero,
	.archive-hero {
		grid-template-columns: 1fr;
	}

	.hero-side--desktop {
		display: none;
	}

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

	.info-panels,
	.posts-grid,
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 840px) {
	.header-inner {
		grid-template-columns: auto 1fr auto;
	}

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

	.primary-nav {
		display: none;
	}

	.mobile-nav {
		display: block;
	}

	.mobile-nav[hidden] {
		display: none;
	}

	.posts-grid,
	.info-panels,
	.site-footer__grid,
	.archive-hero,
	.feature-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	html,
	body {
		width: 100%;
		overflow-x: hidden;
	}

	body {
		background: linear-gradient(180deg, #0b2643 0%, #112947 14%, #e7edf4 14%, #e7edf4 100%);
	}

	.site-shell {
		width: 100%;
		max-width: none;
		margin: 0;
		background: transparent;
	}

	.site-header {
		position:fixed;
		top: 0;
		width: 100%;
		border-radius: 0 0 26px 26px;
		z-index: 9999;
	}

	.admin-bar .site-header {
		top: 46px;
	}

	.header-inner {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
		grid-template-columns: auto 1fr auto;
		gap: 20px;
	}

	.site-brand__icon,
	.site-brand__icon svg {
		width: 42px;
		height: 42px;
	}

	.site-brand__name {
		font-size: 1.9rem;
	}

	.site-brand__tag {
		font-size: 0.54rem;
		letter-spacing: 0.16em;
	}

	.header-search-panel__inner {
		width: 100%;
		max-width: none;
		padding-left: 16px;
		padding-right: 16px;
	}

	.mobile-nav {
		width: 100%;
	}

	.mobile-nav__list {
		width: 100%;
		padding-left: 16px;
		padding-right: 16px;
	}

	.site-main {
		width: 100%;
		padding: 14px 12px 94px;
	}

	.site-main.home-main {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 14px 0 94px;
	}

	.home-hero {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
		gap: 0;
	}

	.hero-slider {
		width: 100%;
		height: 340px;
		min-height: 300px;
		margin: 0;
		border-radius: 0 0 24px 24px;
	}

	.hero-slide__content,
	.hero-empty {
		width: 100%;
		max-width: none;
		margin-left: 0;
		padding: 22px 18px;
		justify-content: center;
	}

	.hero-slide__title,
	.hero-empty h1 {
		margin-top: 12px;
		margin-bottom: 0;
		font-size: clamp(2rem, 9vw, 2.6rem);
		line-height: 1;
	}

	.hero-slide__excerpt,
	.hero-empty p {
		max-width: 72%;
		font-size: 1rem;
		line-height: 1.55;
		margin-bottom: 18px;
	}

	.hero-slider__control {
		display: none;
	}

	.hero-slider__dots {
		bottom: 14px;
	}

	.hero-slide__excerpt {
	display: none;
}

.hero-slide__content .button {
	display: none;
}


	.home-ad,
	.home-ad--secondary,
	.site-footer {
		display: none;
	}

	.feature-grid {
		width: 100%;
		margin: 10px 0 0;
		padding: 0 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.feature-card {
		width: 100%;
		border-radius: 16px;
	}

	.feature-card__header {
		min-height: 172px;
		padding: 16px 12px;
		gap: 10px;
		grid-template-rows: auto auto auto;
		justify-items: center;
		text-align: center;
	}

	.feature-card__title {
		font-size: clamp(1.05rem, 4.2vw, 1.3rem);
		line-height: 1;
	}

	.feature-card__body {
		width: 100%;
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 10px;
		align-items: center;
		text-align: left;
	}

	.feature-card__icon svg {
		width: 42px;
		height: 42px;
	}

	.feature-card__desc {
		font-size: 0.82rem;
		line-height: 1.35;
	}

	.feature-card__header .button {
		min-height: 38px;
		padding: 9px 10px;
		font-size: 0.65rem;
	}

	.feature-card__list,
	.feature-card__footer {
		display: none;
	}

	.mobile-most-read {
		display: block;
		width: 100%;
		margin: 18px 0 0;
		border-left: none;
		border-right: none;
		border-radius: 0;
	}

	.mobile-most-read.panel {
		padding: 20px 18px;
	}

	.mobile-most-read__link {
		grid-template-columns: 62px minmax(0, 1fr);
	}

	.mobile-most-read__title {
		overflow-wrap: anywhere;
	}

	.mobile-most-read .ad-slot {
		width: 100%;
	}

	.panel {
		padding: 18px;
	}

	.panel__header h2 {
		font-size: 1.25rem;
	}

	.search-form {
		padding: 8px 8px 8px 14px;
	}

	.info-panels {
		width: 100%;
		max-width: none;
		margin: 22px 0 0;
		padding: 0 28px;
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.info-panel {
		width: 100%;
		max-width: 100%;
		padding: 24px;
		grid-template-columns: 1fr auto;
		gap: 18px;
		border-radius: 18px;
	}

	.info-panel__icon svg {
		width: 64px;
		height: 64px;
	}

	.newsletter-form {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.newsletter-form input,
	.newsletter-form .button {
		width: 100%;
	}

	.archive-hero,
	.page-card,
	.article-card {
		padding: 22px;
	}

	.archive-hero,
	.posts-grid,
	.info-panels,
	.site-footer__grid,
	.feature-grid {
		grid-template-columns: 1fr;
	}

	.archive-hero__title,
	.page-card__title,
	.article-card__title {
		font-size: 2.35rem;
	}

	.author-box {
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
	}

	.mobile-bottom-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		transform: none;
		z-index: 60;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		align-items: stretch;
		width: 100%;
		max-width: none;
		min-height: 78px;
		padding: 10px 8px calc(12px + env(safe-area-inset-bottom));
		background: linear-gradient(180deg, #0b2643 0%, #091d35 100%);
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -18px 42px rgba(8, 26, 47, 0.25);
	}

	.mobile-bottom-nav__item {
		display: grid;
		grid-template-rows: 24px minmax(3.3em, auto);
		align-content: start;
		justify-items: center;
		gap: 6px;
		min-width: 0;
		padding: 0 4px;
		color: rgba(255, 255, 255, 0.8);
		font-size: 0.58rem;
		font-weight: 800;
		text-transform: uppercase;
		text-align: center;
	}

	.mobile-bottom-nav__icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
	}

	.mobile-bottom-nav__icon svg {
		display: block;
		width: 22px;
		height: 22px;
	}

	.mobile-bottom-nav__item.is-active {
		color: var(--green-500);
	}

	.mobile-bottom-nav__label {
		display: block;
		width: 100%;
		max-width: 100%;
		min-height: 3.3em;
		line-height: 1.1;
		text-align: center;
		white-space: normal;
		overflow-wrap: normal;
		word-break: keep-all;
		hyphens: none;
	}

	.feature-card__header {
		display: grid;
		grid-template-rows: auto auto auto auto;
		justify-items: center;
		text-align: center;
	}

	.feature-card__body {
		display: contents;
	}

	.feature-card__icon {
		order: 1;
		margin-bottom: 6px;
	}

	.feature-card__title {
		order: 2;
		text-align: center;
		margin: 0;
	}

	.feature-card__desc {
		order: 3;
		text-align: center;
		margin:30px;
	}

	.feature-card__header .button {
		order: 4;
		margin-top: 10px;
	}

	.feature-card__icon svg {
		width: 44px;
		height: 44px;
	}

}

@media (max-width: 420px) {
	.hero-slide__excerpt,
	.hero-empty p {
		max-width: 74%;
	}

	.site-brand__name {
		font-size: 1.7rem;
	}

	.feature-grid {
		padding-left: 12px;
		padding-right: 12px;
	}

	.feature-card__body {
		grid-template-columns: 40px minmax(0, 1fr);
	}

	.feature-card__icon svg {
		width: 38px;
		height: 38px;
	}

	.feature-card__header .button {
		width: 100%;
	}

	.info-panels {
		padding-left: 28px;
		padding-right: 28px;
	}

	.info-panel {
		padding: 22px;
		grid-template-columns: 1fr;
	}

	.info-panel__icon {
		display: none;
	}
}

/* Single post layout */
/*
   Desktop: article 760px + sidebar 420px + gap 40px + padding 64px = 1284px.
   This fits inside the Bootstrap-like 1320px container without fighting the grid.
*/

.single-main {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 12px;
}

.article-card--single {
	padding: 0;
	overflow: visible;
}

.single-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) 420px;
	gap: 40px;
	align-items: start;
	padding: 32px;
}

.single-article-main {
	min-width: 0;
	max-width: 760px;
}

.article-card__header--single {
	display: block;
}

.article-card__header--single .section-tag {
	margin-bottom: 18px;
}

.article-card__media--single {
	width: 100%;
	margin: 0 0 12px;
	border-radius: 18px;
	overflow: hidden;
}

.article-card__media--single img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.article-card__media-meta--single {
	padding: 0;
	margin: 0 0 24px;
}

.article-card--single .article-card__title {
	max-width: 760px;
	margin: 0 0 16px;
	font-size: clamp(2.1rem, 3.2vw, 3.25rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.article-card--single .article-card__excerpt {
	max-width: 760px;
	margin: 0 0 28px;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--text-soft);
}

.article-card--single .article-card__content {
	max-width: 760px;
	margin-top: 28px;
	line-height: 1.8;
	font-size: 1.04rem;
}

.single-sidebar {
	width: 100%;
	min-width: 0;
	display: grid;
	gap: 18px;
	position: sticky;
	top: 104px;
	align-self: start;
}

.admin-bar .single-sidebar {
	/*top: 136px;*/
}

.single-sidebar__panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 22px;
	margin-top: 70px;
}

.single-sidebar__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.single-sidebar__header h2 {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.2;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.single-sidebar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--green-500);
}

.single-sidebar__icon svg {
	width: 24px;
	height: 24px;
}

.single-sidebar__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.single-sidebar__item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid var(--border);
}

.single-sidebar__item:first-child {
	padding-top: 0;
	border-top: none;
}

.single-sidebar__rank {
	font-weight: 800;
	color: var(--green-500);
}

.single-sidebar__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 82px;
	gap: 12px;
	align-items: center;
}

.single-sidebar__text {
	font-weight: 800;
	line-height: 1.35;
}

.single-sidebar__thumb img {
	width: 82px;
	height: 62px;
	object-fit: cover;
	border-radius: 10px;
}

.single-sidebar__list--simple {
	display: grid;
	gap: 0;
}

.single-sidebar__list--simple li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.single-sidebar__list--simple li:first-child {
	padding-top: 0;
}

.single-sidebar__list--simple li:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

.single-sidebar__list--simple a {
	display: block;
	font-weight: 800;
	line-height: 1.35;
}

.single-sidebar__empty {
	margin: 0;
	color: var(--text-soft);
	line-height: 1.6;
}

.single-sidebar__panel--ad {
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.single-sidebar__panel--cta p {
	margin: 0 0 18px;
	color: var(--text-soft);
	line-height: 1.6;
}

/* Single post responsive */
@media (max-width: 1399.98px) {
	.single-article-layout {
		grid-template-columns: minmax(0, 700px) 360px;
		gap: 32px;
	}

	.single-article-main,
	.article-card--single .article-card__title,
	.article-card--single .article-card__excerpt,
	.article-card--single .article-card__content {
		max-width: 700px;
	}

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

	.single-sidebar__thumb img {
		width: 70px;
		height: 56px;
	}
}

@media (max-width: 1199.98px) {
	.single-article-layout {
		grid-template-columns: 1fr;
	}

	.single-article-main,
	.article-card--single .article-card__title,
	.article-card--single .article-card__excerpt,
	.article-card--single .article-card__content {
		max-width: none;
	}

	.single-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 32px;
	}
}

@media (max-width: 768px) {
	.single-main {
		width: 100%;
		max-width: none;
		padding: 14px 12px 94px;
	}

	.article-card--single {
		border-radius: 20px;
	}

	.single-article-layout {
		display: block;
		padding: 22px;
	}

	.article-card--single .article-card__title {
		font-size: clamp(2rem, 9vw, 2.6rem);
		line-height: 1.05;
	}

	.article-card--single .article-card__content {
		font-size: 1rem;
		line-height: 1.75;
	}

	.single-sidebar {
		display: grid;
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 32px;
	}

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

	.single-sidebar__thumb img {
		width: 64px;
		height: 52px;
	}
}

