/*
 * Fobino Blog - main stylesheet.
 * Hand-written (no build step). Persian/RTL first: the document is always dir="rtl".
 * Design tokens follow the existing Fobino blog (React/Tailwind) so both look related.
 */

@font-face {
	font-family: "Shabnam";
	src: url("../fonts/Shabnam.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--fb-red: #d50000;
	--fb-red-dark: #b80000;
	--fb-red-soft: #ff6b6b;
	--fb-red-tint: #fff5f5;
	--fb-navy: #151c2e;
	--fb-navy-2: #202942;
	--fb-hero: #10152a;
	--fb-nav: #172554;
	--fb-nav-hover: #1e3a8a;
	--fb-bg: #f6f7f9;
	--fb-surface: #fff;
	--fb-soft: #f8f9fb;
	--fb-line: #d8dde6;
	--fb-text: #334155;
	--fb-text-2: #475569;
	--fb-muted: #5a6a80;
	--fb-thumb: #f1f5f9;
	--fb-radius-sm: 6px;
	--fb-radius: 8px;
	--fb-radius-lg: 12px;
	--fb-radius-xl: 16px;
	--fb-shadow-sm: 0 1px 2px rgba(21, 28, 46, 0.06);
	--fb-shadow-md: 0 6px 16px -4px rgba(21, 28, 46, 0.14);
	--fb-shadow-lg: 0 20px 40px -12px rgba(21, 28, 46, 0.16);
	--fb-header-h: 4rem;
	--fb-font: "Shabnam", Tahoma, "Segoe UI", Arial, sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	min-width: 320px;
	background: var(--fb-bg);
	color: var(--fb-text);
	font-family: var(--fb-font);
	font-size: 1rem;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--fb-red);
	text-underline-offset: 4px;
}

a:hover {
	color: var(--fb-red-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--fb-navy);
	font-weight: 900;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

p {
	margin: 0 0 1rem;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 3px solid var(--fb-red);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: rgba(213, 0, 0, 0.14);
	color: var(--fb-navy);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.5rem;
	inset-inline-start: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	clip: auto;
	clip-path: none;
	background: var(--fb-navy);
	color: #fff;
	border-radius: var(--fb-radius);
	font-weight: 900;
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

.section {
	padding-block: 2rem;
}

.section--narrow {
	max-width: 56rem;
}

.icon {
	flex: none;
	vertical-align: middle;
}

.icon--lg {
	width: 1.25rem;
	height: 1.25rem;
}

.icon--xl {
	width: 3rem;
	height: 3rem;
}

/* ---------- Buttons & chips ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.5rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--fb-radius);
	background: var(--fb-navy);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 900;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}

.btn:hover {
	background: var(--fb-red);
	color: #fff;
}

.btn:active {
	transform: scale(0.98);
}

.btn--primary {
	background: var(--fb-red);
}

.btn--primary:hover {
	background: var(--fb-red-dark);
}

.btn--dark {
	background: var(--fb-navy);
}

.btn--outline {
	background: var(--fb-surface);
	border-color: var(--fb-line);
	color: var(--fb-navy);
}

.btn--outline:hover {
	background: var(--fb-red);
	border-color: var(--fb-red);
	color: #fff;
}

.btn--light {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.btn--light:hover {
	background: rgba(255, 255, 255, 0.22);
}

.btn--nav {
	background: var(--fb-nav);
	min-height: 2.5rem;
}

.btn--nav:hover {
	background: var(--fb-nav-hover);
}

.btn--small {
	min-height: 2.25rem;
	padding: 0.4rem 0.75rem;
	font-size: 0.75rem;
}

.btn--block {
	width: 100%;
	padding-block: 0.85rem;
	border-radius: var(--fb-radius-lg);
}

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.chip-list--center {
	justify-content: center;
	margin-block: 1.25rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.65rem;
	border: 1px solid rgba(213, 0, 0, 0.12);
	border-radius: var(--fb-radius-sm);
	background: rgba(213, 0, 0, 0.05);
	color: var(--fb-red);
	font-size: 0.75rem;
	font-weight: 900;
	line-height: 1.7;
	text-decoration: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
	background: rgba(213, 0, 0, 0.1);
	color: var(--fb-red-dark);
}

.chip--plain {
	border-color: var(--fb-line);
	background: var(--fb-surface);
	color: var(--fb-text-2);
}

.chip--plain:hover {
	border-color: rgba(213, 0, 0, 0.4);
	background: var(--fb-surface);
	color: var(--fb-red);
}

.chip__count {
	opacity: 0.75;
	font-size: 0.65rem;
}

.chip-list--dark .chip {
	min-height: 2.25rem;
	padding-inline: 0.75rem;
	border-color: rgba(255, 255, 255, 0.15);
	border-radius: var(--fb-radius);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.chip-list--dark .chip:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.chip-list--dark .chip--active {
	border-color: var(--fb-red);
	background: var(--fb-red);
}

.chip-list--dark .chip:focus-visible,
.hero :focus-visible {
	outline-color: var(--fb-red-soft);
}

.count-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: var(--fb-radius);
	background: var(--fb-surface);
	color: var(--fb-text-2);
	font-size: 0.75rem;
	font-weight: 900;
	white-space: nowrap;
}

.link-strong {
	color: var(--fb-red);
	font-size: 0.875rem;
	font-weight: 900;
	text-decoration: none;
}

.link-strong:hover {
	color: var(--fb-red-dark);
}

.link-strong--small {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--fb-surface);
	border-bottom: 1px solid #e8e8e8;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	height: var(--fb-header-h);
}

.site-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	transition: opacity 0.2s;
}

.site-logo:hover,
.custom-logo-link:hover {
	opacity: 0.9;
}

.site-logo img,
.custom-logo {
	display: block;
	width: auto;
	height: 2.5rem;
	max-width: 9rem;
	object-fit: contain;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid #e8e8e8;
	border-radius: var(--fb-radius);
	background: var(--fb-surface);
	color: #555;
}

.nav-toggle:hover {
	color: var(--fb-red);
	background: var(--fb-soft);
}

.nav-toggle .icon {
	width: 1.35rem;
	height: 1.35rem;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: inline-block;
}

.site-header__panel {
	position: absolute;
	top: 100%;
	inset-inline: 0;
	display: none;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
	background: var(--fb-surface);
	border-bottom: 1px solid #e8e8e8;
	box-shadow: var(--fb-shadow-md);
}

.site-header__panel.is-open {
	display: flex;
}

/* Without JavaScript the menu simply stays visible below the header bar. */
html:not(.js) .site-header__panel {
	display: flex;
	position: static;
	box-shadow: none;
}

html:not(.js) .nav-toggle {
	display: none;
}

html:not(.js) .site-header__inner {
	flex-wrap: wrap;
	height: auto;
	padding-block: 0.5rem;
}

html:not(.js) .site-header__panel {
	width: 100%;
}

.nav-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.nav-list a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1rem;
	border-radius: 0.75rem;
	background: var(--fb-nav);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 900;
	text-decoration: none;
	transition: background-color 0.2s;
}

.nav-list a:hover {
	background: var(--fb-nav-hover);
	color: #fff;
}

.nav-list .current-menu-item > a,
.nav-list a[aria-current="page"] {
	box-shadow: 0 0 0 2px rgba(23, 37, 84, 0.25);
}

.site-header__tools {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* ---------- Search form ---------- */

.search-form__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.5rem;
	align-items: center;
	padding: 0.5rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-lg);
	background: var(--fb-surface);
	box-shadow: var(--fb-shadow-sm);
}

.search-form__icon {
	position: absolute;
	inset-inline-start: 1.25rem;
	top: 50%;
	width: 1rem;
	height: 1rem;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
}

.search-form__input {
	width: 100%;
	height: 2.75rem;
	padding: 0 2.5rem;
	border: 1px solid transparent;
	border-radius: var(--fb-radius);
	background: var(--fb-soft);
	color: var(--fb-navy);
	font-size: 0.875rem;
	font-weight: 700;
	text-align: start;
	-webkit-appearance: none;
	appearance: none;
}

.search-form__input::placeholder {
	color: #7c8aa0;
	opacity: 1;
}

.search-form__input:focus {
	border-color: var(--fb-red);
	background: var(--fb-surface);
	outline: none;
}

.search-form__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-form__submit {
	height: 2.75rem;
	padding-inline: 1.25rem;
}

.search-form__submit-icon {
	display: none;
}

.search-form--dark .search-form__box {
	border-color: rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	box-shadow: none;
}

.search-form--dark .search-form__input {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.search-form--dark .search-form__input::placeholder {
	color: #a8b3c7;
}

.search-form--dark .search-form__input:focus {
	border-color: var(--fb-red-soft);
	background: rgba(255, 255, 255, 0.15);
}

.search-form--dark .search-form__icon {
	color: #a8b3c7;
}

.search-form--compact .search-form__box {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.search-form--compact .search-form__input {
	height: 2.5rem;
	border-color: #e5e7eb;
}

.search-form--compact .search-form__submit {
	height: 2.5rem;
	min-height: 2.5rem;
	padding-inline: 0.75rem;
}

.search-form--compact .search-form__submit-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.search-form--compact .search-form__submit-icon {
	display: inline-block;
	width: 1.1rem;
	height: 1.1rem;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--fb-hero);
	color: #cbd5e1;
}

.hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 0% 0%, rgba(213, 0, 0, 0.3), transparent 38%),
		radial-gradient(circle at 100% 100%, rgba(56, 84, 255, 0.26), transparent 42%);
}

.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.06;
	background-image:
		linear-gradient(#fff 1px, transparent 1px),
		linear-gradient(90deg, #fff 1px, transparent 1px);
	background-size: 38px 38px;
}

.hero__inner {
	position: relative;
	display: grid;
	gap: 2.5rem;
	padding-block: 3rem;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid rgba(213, 0, 0, 0.3);
	border-radius: 999px;
	background: rgba(213, 0, 0, 0.1);
	color: var(--fb-red-soft);
	font-size: 0.75rem;
	font-weight: 900;
	line-height: 1.5;
}

.hero__title {
	max-width: 56rem;
	color: #fff;
	font-size: 1.875rem;
	line-height: 1.45;
}

.hero__lead {
	max-width: 48rem;
	margin: 1.25rem 0 0;
	color: #cbd5e1;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 2;
}

.hero__stat {
	display: inline-flex;
	margin: 1.5rem 0 0;
	padding: 0.6rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.06);
	color: #e2e8f0;
	font-size: 0.75rem;
	font-weight: 900;
}

.hero__panel {
	padding: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--fb-radius-xl);
	background: rgba(255, 255, 255, 0.07);
	box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.hero__panel-head h2 {
	margin-bottom: 0.75rem;
	color: #fff;
	font-size: 0.9rem;
}

.hero__panel .chip-list {
	margin: 1rem 0 0;
}

/* ---------- Page header, breadcrumbs, section titles ---------- */

.page-header {
	background: var(--fb-surface);
	border-bottom: 1px solid var(--fb-line);
	padding-block: 1.5rem;
}

.page-header__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.page-header__text {
	flex: 1 1 18rem;
	min-width: 0;
}

.page-header__title {
	font-size: 1.6rem;
	line-height: 1.6;
}

.page-header__desc {
	max-width: 48rem;
	margin-top: 0.5rem;
	color: var(--fb-text-2);
	font-size: 0.9rem;
	font-weight: 500;
}

.page-header__desc > :last-child {
	margin-bottom: 0;
}

.page-header .chip-list {
	margin-top: 1rem;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.35rem;
	color: var(--fb-red);
	font-size: 0.75rem;
	font-weight: 900;
}

.avatar-initial {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--fb-navy);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 900;
}

.avatar-initial--lg {
	width: 4rem;
	height: 4rem;
	font-size: 1.5rem;
}

.breadcrumbs {
	margin-bottom: 1rem;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.8;
	color: var(--fb-muted);
}

.breadcrumbs li + li::before {
	content: "\2039";
	margin-inline: 0.5rem;
	color: #94a3b8;
}

.breadcrumbs a {
	color: var(--fb-text-2);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--fb-red);
	text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
	color: var(--fb-navy);
}

.section-title {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.section-title h2 {
	font-size: 1.25rem;
	line-height: 2;
}

/* ---------- Post grid & cards ---------- */

.post-grid,
.related-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr);
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-surface);
	box-shadow: var(--fb-shadow-sm);
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover,
.post-card:focus-within {
	transform: translateY(-4px);
	border-color: rgba(213, 0, 0, 0.3);
	box-shadow: 0 16px 30px -10px rgba(21, 28, 46, 0.12);
}

.post-card__media {
	position: relative;
	display: block;
	height: 13rem;
	overflow: hidden;
	background: var(--fb-thumb);
}

.post-card--featured .post-card__media {
	height: 18rem;
}

.post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.post-card:hover .post-card__media img {
	transform: scale(1.05);
}

.post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--fb-soft);
	color: #cbd5e1;
}

.post-card__badge {
	position: absolute;
	top: 1rem;
	inset-inline-start: 1rem;
	padding: 0.35rem 0.75rem;
	border-radius: var(--fb-radius);
	background: var(--fb-red);
	box-shadow: var(--fb-shadow-md);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 900;
	line-height: 1.6;
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}

.post-card__title {
	font-size: 1.125rem;
	line-height: 2rem;
}

.post-card__title a {
	color: var(--fb-navy);
	text-decoration: none;
	transition: color 0.2s;
}

.post-card:hover .post-card__title a,
.post-card__title a:focus-visible {
	color: var(--fb-red);
}

.post-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	margin: 0.75rem 0 0;
	overflow: hidden;
	color: var(--fb-text-2);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.9;
}

.post-card--featured .post-card__excerpt {
	-webkit-line-clamp: 4;
}

.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
	margin-top: 1rem;
	color: var(--fb-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

.meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.meta-item .icon {
	width: 0.9rem;
	height: 0.9rem;
}

.meta-row--lg {
	margin-top: 1.25rem;
	gap: 0.5rem 1.25rem;
}

.meta-row--lg .icon {
	width: 1rem;
	height: 1rem;
}

.meta-row a {
	color: inherit;
	text-decoration: none;
}

.meta-row a:hover {
	color: var(--fb-red);
	text-decoration: underline;
}

.post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1.25rem;
}

.post-card__author {
	min-width: 0;
	overflow: hidden;
	color: var(--fb-text-2);
	font-size: 0.75rem;
	font-weight: 900;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-card:hover .btn--outline {
	background: var(--fb-red);
	border-color: var(--fb-red);
	color: #fff;
}

.related-card {
	overflow: hidden;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-surface);
	box-shadow: var(--fb-shadow-sm);
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.related-card:hover,
.related-card:focus-within {
	transform: translateY(-4px);
	border-color: rgba(213, 0, 0, 0.3);
	box-shadow: 0 12px 24px -10px rgba(21, 28, 46, 0.14);
}

.related-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.related-card__media {
	display: block;
	height: 11rem;
	overflow: hidden;
	background: var(--fb-thumb);
}

.related-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.related-card:hover .related-card__media img {
	transform: scale(1.05);
}

.related-card__body {
	display: block;
	padding: 1rem;
}

.related-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.875rem;
	line-height: 1.9;
}

.related-card:hover .related-card__title {
	color: var(--fb-red);
}

.related-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.75rem;
	color: var(--fb-muted);
	font-size: 0.75rem;
	font-weight: 700;
}

.related-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--fb-red);
}

.related-card__more .icon {
	width: 0.8rem;
	height: 0.8rem;
}

/* ---------- Pagination ---------- */

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius);
	background: var(--fb-surface);
	color: var(--fb-text-2);
	font-size: 0.875rem;
	font-weight: 900;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
}

a.pagination__item:hover {
	border-color: rgba(213, 0, 0, 0.4);
	color: var(--fb-red);
}

.pagination__item.is-current {
	border-color: var(--fb-navy);
	background: var(--fb-navy);
	color: #fff;
}

.pagination__gap {
	padding-inline: 0.25rem;
	color: var(--fb-muted);
}

/* ---------- Empty state, search, 404 ---------- */

.empty-state {
	padding: 2.5rem 1.25rem;
	border: 1px dashed var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-surface);
	text-align: center;
}

.empty-state__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin-bottom: 1rem;
	border-radius: var(--fb-radius-lg);
	background: var(--fb-thumb);
	color: #94a3b8;
}

.empty-state h2 {
	font-size: 1.125rem;
}

.empty-state p {
	max-width: 36rem;
	margin: 0.5rem auto 0;
	color: var(--fb-text-2);
	font-size: 0.875rem;
	font-weight: 500;
}

.empty-state__search {
	max-width: 36rem;
	margin: 1.5rem auto 0;
	text-align: start;
}

.search-again {
	max-width: 40rem;
	margin-bottom: 1.5rem;
}

.not-found__box {
	max-width: 44rem;
	margin: 1rem auto 3rem;
	padding: 2.5rem 1.25rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-surface);
	box-shadow: var(--fb-shadow-sm);
	text-align: center;
}

.not-found__code {
	margin: 0;
	color: var(--fb-red);
	font-size: 4.5rem;
	font-weight: 900;
	line-height: 1.2;
}

.not-found__box h1 {
	font-size: 1.5rem;
}

.not-found__box p {
	color: var(--fb-text-2);
	font-weight: 500;
}

.not-found__search {
	max-width: 30rem;
	margin: 1.5rem auto;
	text-align: start;
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin: 0;
}

/* ---------- Single article ---------- */

.article-hero {
	background: var(--fb-surface);
	border-bottom: 1px solid var(--fb-line);
	padding-block: 1.5rem;
}

.article-hero__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
}

.article-hero__title {
	font-size: 1.75rem;
	line-height: 1.6;
}

.article-hero__lead {
	max-width: 48rem;
	margin: 1rem 0 0;
	color: var(--fb-text-2);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 2;
}

.article-hero__media {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-soft);
	box-shadow: var(--fb-shadow-md);
}

.article-hero__media img {
	display: block;
	width: 100%;
	height: 18rem;
	object-fit: cover;
}

.article-layout {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding-bottom: 1rem;
}

.article-main {
	order: 0;
	min-width: 0;
}

.article-aside {
	display: contents;
}

.article-aside .toc {
	order: -1;
}

.aside-rest {
	order: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.article-card {
	padding: 1.25rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-surface);
	box-shadow: var(--fb-shadow-sm);
}

.aside-card {
	padding: 1rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-surface);
	box-shadow: var(--fb-shadow-sm);
}

.aside-card__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	line-height: 1.8;
}

.aside-card__title .icon {
	color: var(--fb-red);
}

.aside-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.aside-card__head .aside-card__title {
	margin: 0;
}

.aside-card .chip-list {
	margin: 0;
}

.toc__list {
	display: grid;
	gap: 0.15rem;
}

.toc__item a {
	display: block;
	padding: 0.2rem 0.75rem 0.2rem 0;
	border-inline-start: 2px solid transparent;
	color: var(--fb-text-2);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.8;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}

.toc__item a:hover,
.toc__item a[aria-current="true"] {
	border-inline-start-color: var(--fb-red);
	color: var(--fb-navy);
}

.toc__item--l3 {
	margin-inline-start: 0.75rem;
}

.toc__item--l4 {
	margin-inline-start: 1.5rem;
}

.author-box__row {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.author-box__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: rgba(213, 0, 0, 0.08);
	color: var(--fb-red);
}

.author-box__text {
	min-width: 0;
}

.author-box__label {
	margin: 0;
	color: var(--fb-muted);
	font-size: 0.7rem;
	font-weight: 900;
}

.author-box__name {
	margin: 0.15rem 0 0;
	font-size: 0.9rem;
	font-weight: 900;
}

.author-box__name a {
	color: var(--fb-navy);
	text-decoration: none;
}

.author-box__name a:hover {
	color: var(--fb-red);
}

.author-box__bio {
	margin: 0.5rem 0 0;
	color: var(--fb-text-2);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.9;
}

.share__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.share .btn {
	margin-bottom: 0;
}

.latest-list {
	display: grid;
	gap: 0.75rem;
}

.latest-list__item {
	display: grid;
	grid-template-columns: 4.75rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.375rem;
	border-radius: var(--fb-radius);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s;
}

.latest-list__item:hover {
	background: var(--fb-soft);
}

.latest-list__media {
	display: block;
	height: 4rem;
	overflow: hidden;
	border-radius: var(--fb-radius-sm);
	background: #e2e8f0;
}

.latest-list__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.latest-list__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.latest-list__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--fb-navy);
	font-size: 0.8rem;
	font-weight: 900;
	line-height: 1.8;
}

.latest-list__item:hover .latest-list__title {
	color: var(--fb-red);
}

.latest-list .meta-item {
	font-size: 0.7rem;
	color: var(--fb-muted);
	font-weight: 700;
}

.cta-box {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-top: 1.5rem;
	padding: 1.5rem;
	border-radius: var(--fb-radius-xl);
	background: linear-gradient(135deg, var(--fb-navy), var(--fb-navy-2));
	color: #cbd5e1;
}

.cta-box h2 {
	color: #fff;
	font-size: 1.1rem;
	line-height: 1.9;
}

.cta-box p {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	font-weight: 500;
}

.cta-box__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.section--related {
	padding-top: 1rem;
	padding-bottom: 3.5rem;
}

.page-links {
	margin-top: 1.5rem;
	font-weight: 900;
}

/* ---------- Article typography (Gutenberg + classic content) ---------- */

.prose {
	max-width: 780px;
	margin-inline: auto;
	color: var(--fb-text);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 2.1;
	overflow-wrap: anywhere;
}

.prose > :first-child {
	margin-top: 0;
}

.prose > :last-child {
	margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
	scroll-margin-top: 6rem;
	color: var(--fb-navy);
	font-weight: 900;
}

.prose h1 { font-size: 2rem; line-height: 1.55; margin: 2rem 0 1rem; }
.prose h2 { font-size: 1.55rem; line-height: 1.65; margin: 1.9rem 0 0.85rem; }
.prose h3 { font-size: 1.25rem; line-height: 1.75; margin: 1.6rem 0 0.7rem; }
.prose h4 { font-size: 1.08rem; line-height: 1.8; margin: 1.4rem 0 0.6rem; }
.prose h5,
.prose h6 { font-size: 1rem; line-height: 1.8; margin: 1.2rem 0 0.5rem; }

.prose p {
	margin: 0.9rem 0;
}

.prose a {
	color: var(--fb-red);
	font-weight: 900;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.prose a:hover {
	color: var(--fb-red-dark);
}

.prose ul,
.prose ol {
	margin: 1rem 0;
	padding-inline-start: 1.4rem;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
	margin: 0.45rem 0;
	padding-inline-start: 0.25rem;
}

.prose li > ul,
.prose li > ol {
	margin: 0.4rem 0;
}

.prose blockquote,
.prose .wp-block-quote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 0;
	border-inline-start: 4px solid var(--fb-red);
	border-radius: var(--fb-radius);
	background: var(--fb-red-tint);
	color: var(--fb-text);
}

.prose blockquote p:first-child { margin-top: 0; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose blockquote cite,
.prose .wp-block-quote cite {
	display: block;
	margin-top: 0.5rem;
	color: var(--fb-muted);
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 700;
}

.prose img {
	height: auto;
	border-radius: var(--fb-radius);
}

.prose figure {
	margin: 1.5rem 0;
}

.prose figure img {
	display: block;
	margin-inline: auto;
	border: 1px solid #e2e8f0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 0.5rem;
	color: var(--fb-muted);
	font-size: 0.8rem;
	font-weight: 700;
	text-align: center;
}

.prose .alignwide,
.prose .alignfull {
	width: 100%;
	max-width: 100%;
}

.prose .aligncenter {
	margin-inline: auto;
}

.prose .wp-block-table,
.prose .table-scroll {
	margin: 1.5rem 0;
	overflow-x: auto;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.prose th,
.prose td {
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--fb-line);
	text-align: start;
	line-height: 1.8;
}

.prose th {
	background: var(--fb-soft);
	color: var(--fb-navy);
	font-weight: 900;
}

.prose pre {
	margin: 1.25rem 0;
	padding: 1rem;
	overflow-x: auto;
	border-radius: var(--fb-radius);
	background: var(--fb-navy);
	color: #e2e8f0;
	direction: ltr;
	text-align: left;
	font-size: 0.85rem;
	line-height: 1.7;
}

.prose code {
	padding: 0.15rem 0.35rem;
	border-radius: var(--fb-radius-sm);
	background: #f1f5f9;
	color: var(--fb-navy);
	direction: ltr;
	unicode-bidi: embed;
	font-size: 0.9em;
}

.prose pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.prose hr,
.prose .wp-block-separator {
	margin: 2rem auto;
	border: 0;
	border-top: 1px solid var(--fb-line);
	background: transparent;
	opacity: 1;
}

.prose .wp-block-button__link {
	padding: 0.65rem 1.4rem;
	border-radius: var(--fb-radius);
	background: var(--fb-red);
	color: #fff;
	font-weight: 900;
	text-decoration: none;
}

.prose .wp-block-button__link:hover {
	background: var(--fb-red-dark);
	color: #fff;
}

.prose .is-style-outline .wp-block-button__link {
	border: 2px solid var(--fb-red);
	background: transparent;
	color: var(--fb-red);
}

.prose .wp-block-columns {
	gap: 1.25rem;
	margin: 1.5rem 0;
}

.prose .wp-block-embed,
.prose .wp-block-video {
	margin: 1.5rem 0;
}

.prose iframe {
	max-width: 100%;
}

.prose details {
	margin: 0.75rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius);
	background: var(--fb-soft);
}

.prose summary {
	color: var(--fb-navy);
	font-weight: 900;
	cursor: pointer;
}

/* Block styles registered by the theme (inc/setup.php). */
.prose .is-style-fobino-callout {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(213, 0, 0, 0.18);
	border-inline-start: 4px solid var(--fb-red);
	border-radius: var(--fb-radius);
	background: var(--fb-red-tint);
}

.prose .is-style-fobino-callout > :first-child { margin-top: 0; }
.prose .is-style-fobino-callout > :last-child { margin-bottom: 0; }

.prose .is-style-fobino-checklist {
	padding-inline-start: 0;
	list-style: none;
}

.prose .is-style-fobino-checklist li {
	position: relative;
	padding-inline-start: 1.75rem;
}

.prose .is-style-fobino-checklist li::before {
	content: "\2713";
	position: absolute;
	inset-inline-start: 0;
	color: var(--fb-red);
	font-weight: 900;
}

/* ---------- Comments ---------- */

.comments-area {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-xl);
	background: var(--fb-surface);
	box-shadow: var(--fb-shadow-sm);
}

.comments-title,
.comment-reply-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.1rem;
}

.comments-title .icon {
	color: var(--fb-red);
}

.comment-list {
	margin: 1.25rem 0;
	display: grid;
	gap: 1rem;
}

.comment-list .children {
	display: grid;
	gap: 1rem;
	margin-top: 1rem;
	margin-inline-start: 1rem;
	padding-inline-start: 1rem;
	border-inline-start: 2px solid #e2e8f0;
}

.comment-body {
	display: flex;
	gap: 0.75rem;
}

.comment-avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--fb-navy);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 900;
}

.comment-main {
	flex: 1;
	min-width: 0;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
}

.comment-author {
	color: var(--fb-navy);
	font-size: 0.9rem;
	font-weight: 900;
}

.comment-badge {
	padding: 0 0.5rem;
	border-radius: var(--fb-radius-sm);
	background: rgba(213, 0, 0, 0.08);
	color: var(--fb-red);
	font-size: 0.7rem;
	font-weight: 900;
}

.comment-date {
	color: var(--fb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.comment-pending {
	margin: 0.5rem 0 0;
	color: var(--fb-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.comment-content {
	margin-top: 0.35rem;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 2;
	overflow-wrap: anywhere;
}

.comment-content p {
	margin: 0 0 0.5rem;
}

.comment-reply a {
	font-size: 0.8rem;
	font-weight: 900;
	text-decoration: none;
}

.comment-respond {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #eceff3;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--fb-navy);
	font-size: 0.85rem;
	font-weight: 900;
}

.comment-form .required {
	color: var(--fb-red);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius);
	background: var(--fb-soft);
	color: var(--fb-navy);
	font-size: 0.9rem;
	font-weight: 500;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--fb-red);
	background: var(--fb-surface);
	outline: none;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 700;
}

.comment-notes,
.comments-closed {
	color: var(--fb-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.85rem;
	font-weight: 900;
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: 2rem;
	border-top: 1px solid #e2e8f0;
	background: var(--fb-surface);
	padding-block: 2rem 1.5rem;
}

.site-footer__grid {
	display: grid;
	gap: 2rem;
}

.site-footer__about {
	max-width: 28rem;
	margin: 1.25rem 0;
	color: var(--fb-text-2);
	font-size: 0.875rem;
	font-weight: 500;
}

.support-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 24rem;
	padding: 0.875rem;
	border: 1px solid #e2e8f0;
	border-radius: var(--fb-radius-xl);
	background: linear-gradient(135deg, var(--fb-soft), #fff);
	box-shadow: var(--fb-shadow-sm);
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s;
}

.support-card:hover {
	box-shadow: var(--fb-shadow-md);
}

.support-card__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: linear-gradient(90deg, #3b82f6, #2563eb);
	color: #fff;
}

.support-card strong {
	display: block;
	color: #1e293b;
	font-size: 0.75rem;
	font-weight: 900;
	line-height: 1.7;
}

.support-card small {
	display: block;
	color: var(--fb-muted);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.7;
}

.site-footer__groups {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-group__title {
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #e2e8f0;
	color: #1e293b;
	font-size: 0.875rem;
}

.footer-group ul {
	display: grid;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.footer-group a {
	display: inline-block;
	color: var(--fb-text-2);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s, transform 0.2s;
}

.footer-group a:hover {
	color: #1e293b;
	transform: translateX(4px);
}

.site-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e2e8f0;
}

.site-footer__address {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 0;
	color: var(--fb-text-2);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.9;
}

.site-footer__address .icon {
	margin-top: 0.35rem;
}

.footer-legal__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.footer-legal a {
	color: var(--fb-text-2);
	font-size: 0.75rem;
	font-weight: 900;
	text-decoration: none;
}

.footer-legal a:hover {
	color: var(--fb-red);
	text-decoration: underline;
}

.site-footer__copyright {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
	color: var(--fb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (min-width: 640px) {
	.container {
		padding-inline: 1.5rem;
	}

	.hero__inner {
		padding-block: 3rem;
	}

	.hero__title {
		font-size: 2.25rem;
	}

	.hero__lead {
		font-size: 1rem;
	}

	.page-header__title {
		font-size: 1.875rem;
	}

	.section-title {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
	}

	.section-title h2 {
		font-size: 1.5rem;
	}

	.article-hero__title {
		font-size: 2.25rem;
	}

	.article-hero__lead {
		font-size: 1rem;
	}

	.article-hero__media img {
		height: 20rem;
	}

	.article-card,
	.comments-area {
		padding: 2rem;
	}

	.prose {
		font-size: 1rem;
		line-height: 2.25;
	}

	.cta-box {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.site-footer__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.post-card__body {
		padding: 1.25rem;
	}

	.post-card--featured .post-card__body {
		padding: 1.75rem;
	}

	.post-card--featured .post-card__title {
		font-size: 1.5rem;
		line-height: 2.5rem;
	}
}

@media (min-width: 768px) {
	.post-grid,
	.related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-card--featured {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}

	.post-card--featured .post-card__media {
		height: 100%;
		min-height: 18rem;
	}
}

@media (min-width: 1024px) {
	:root {
		--fb-header-h: 4.5rem;
	}

	.container {
		padding-inline: 2rem;
	}

	.nav-toggle {
		display: none;
	}

	.site-header__panel,
	html:not(.js) .site-header__panel {
		position: static;
		display: flex;
		flex: 1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		width: auto;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	html:not(.js) .site-header__inner {
		flex-wrap: nowrap;
		height: var(--fb-header-h);
		padding-block: 0;
	}

	.primary-nav {
		margin-inline-start: 1rem;
	}

	.nav-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.nav-list a {
		min-height: 2.5rem;
	}

	.site-header__tools {
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
	}

	.search-form--compact {
		width: 15rem;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr) 25rem;
		align-items: end;
		padding-block: 4rem;
	}

	.hero__title {
		font-size: 3rem;
		line-height: 1.35;
	}

	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.related-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.post-card--featured {
		grid-column: span 2;
	}

	.article-hero {
		padding-block: 2rem 2.5rem;
	}

	.article-hero__grid {
		grid-template-columns: minmax(0, 1fr) 31rem;
	}

	.article-hero__grid--text-only {
		grid-template-columns: minmax(0, 1fr);
	}

	.article-hero__title {
		font-size: 2.6rem;
	}

	.article-hero__media img {
		height: 24rem;
	}

	.article-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 19rem;
		align-items: start;
	}

	.article-aside {
		position: sticky;
		top: 6rem;
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.admin-bar .article-aside {
		top: 8rem;
	}

	.article-aside .toc,
	.aside-rest {
		order: 0;
	}

	.site-footer__grid {
		grid-template-columns: 1.2fr 2fr;
	}

	.site-footer__groups {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.search-form--compact {
		width: 18rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	.post-card:hover,
	.related-card:hover,
	.post-card:focus-within,
	.related-card:focus-within {
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.article-aside,
	.cta-box,
	.comments-area,
	.share,
	.section--related {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.article-card {
		border: 0;
		box-shadow: none;
		padding: 0;
	}
}
