/*
Theme Name: ABCnews Swift
Theme URI: https://abcnews.com.ua/
Author: ABCnews
Description: Лёгкая редакционная тема для ABCnews: акцентная главная, удобные статьи, рекламные зоны без сдвигов и минимум JavaScript.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: abcnews-swift
*/

:root {
	--ink: #0b1220;
	--ink-soft: #344054;
	--muted: #667085;
	--line: #e4e7ec;
	--surface: #ffffff;
	--surface-soft: #f4f6f8;
	--accent: #2563eb;
	--signal: #ffd43b;
	--focus: #0b63f6;
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 22px;
	--shadow: 0 14px 38px rgba(16, 24, 40, 0.08);
	--container: 1240px;
	--content: 780px;
	--font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

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

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

button,
summary,
a {
	-webkit-tap-highlight-color: transparent;
}

:focus-visible {
	outline: 3px solid #8ab4ff;
	outline: 3px solid color-mix(in srgb, var(--focus) 65%, white);
	outline-offset: 3px;
}

.container {
	width: min(calc(100% - 40px), var(--container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	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 {
	top: 8px;
	left: 8px;
	z-index: 99999;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--surface);
	color: var(--ink);
	font-weight: 700;
}

/* Header */
.site-header {
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}

.utility-bar {
	background: var(--ink);
	color: #d0d5dd;
	font-size: 0.78rem;
}

.utility-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 34px;
}

.utility-date {
	text-transform: lowercase;
}

.utility-link {
	font-weight: 800;
	letter-spacing: 0.08em;
}

.utility-link:hover {
	color: #fff;
}

.branding-row__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 104px;
	gap: 24px;
}

.site-branding {
	display: flex;
	align-items: baseline;
	gap: 18px;
	min-width: 0;
}

.custom-logo-link {
	display: block;
}

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

.wordmark {
	display: inline-flex;
	align-items: baseline;
	font-size: clamp(2rem, 4vw, 3.15rem);
	font-weight: 950;
	letter-spacing: -0.075em;
	line-height: 0.9;
}

.wordmark__abc {
	color: var(--ink);
}

.wordmark__news {
	color: var(--accent);
}

.wordmark__dot {
	width: 0.2em;
	height: 0.2em;
	margin-left: 0.1em;
	border-radius: 50%;
	background: var(--signal);
}

.site-description {
	max-width: 260px;
	margin: 0;
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.35;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-search {
	position: relative;
}

.header-search summary {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 750;
	list-style: none;
}

.header-search summary::-webkit-details-marker {
	display: none;
}

.header-search summary:hover,
.header-search[open] summary {
	border-color: var(--ink);
}

.header-search summary svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.header-search__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 80;
	width: min(390px, calc(100vw - 32px));
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.search-form {
	display: flex;
	gap: 8px;
	width: 100%;
}

.search-field {
	min-width: 0;
	flex: 1;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #cfd4dc;
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--ink);
}

.search-field:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(37, 99, 235, 0.18);
	outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.search-submit,
.button-link,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #fff;
	cursor: pointer;
	font-weight: 800;
}

.search-submit:hover,
.button-link:hover,
input[type="submit"]:hover {
	background: var(--accent);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 800;
}

.menu-toggle__lines {
	display: grid;
	gap: 4px;
	width: 18px;
}

.menu-toggle__lines span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 160ms ease, opacity 160ms ease;
}

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

.menu-toggle[aria-expanded="true"] .menu-toggle__lines span:nth-child(2) {
	opacity: 0;
}

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

.primary-navigation {
	border-top: 1px solid var(--line);
}

.primary-navigation__inner {
	position: relative;
}

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

.primary-navigation .menu {
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.5vw, 36px);
	min-height: 55px;
}

.primary-navigation .menu > li {
	position: relative;
}

.primary-navigation a {
	display: flex;
	align-items: center;
	min-height: 55px;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a,
.primary-navigation a:hover {
	color: var(--accent);
}

.primary-navigation .current-menu-item > a::after,
.primary-navigation .current-menu-ancestor > a::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--accent);
	content: "";
}

.primary-navigation .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: -16px;
	z-index: 70;
	display: none;
	min-width: 220px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	box-shadow: var(--shadow);
}

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

.primary-navigation .sub-menu a {
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 7px;
}

.primary-navigation .sub-menu a:hover {
	background: var(--surface-soft);
}

.header-ad {
	padding-block: 10px;
}

.ad-slot {
	display: grid;
	place-items: center;
	min-height: 90px;
	overflow: hidden;
	background: var(--surface-soft);
	text-align: center;
}

.ad-slot .widget {
	width: 100%;
	margin: 0;
}

/* Main page */
.site-content {
	min-height: 55vh;
	padding-block: 30px 72px;
}

.lead-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
	gap: 18px;
	height: 548px;
}

.lead-grid__primary,
.lead-grid__secondary {
	min-width: 0;
}

.lead-grid__secondary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.hero-card {
	position: relative;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--ink);
	isolation: isolate;
}

.hero-card__media,
.hero-card__overlay {
	position: absolute;
	inset: 0;
}

.hero-card__media {
	z-index: -2;
}

.hero-card__media img,
.hero-card__media .image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.hero-card:hover .hero-card__media img {
	transform: scale(1.025);
}

.hero-card__overlay {
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(2, 6, 23, 0.08) 10%, rgba(2, 6, 23, 0.42) 52%, rgba(2, 6, 23, 0.96) 100%),
		linear-gradient(90deg, rgba(2, 6, 23, 0.5), transparent 70%);
}

.hero-card__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: clamp(18px, 3vw, 38px);
	color: #fff;
}

.hero-card__content h2 {
	max-width: 900px;
	margin: 12px 0 12px;
	color: #fff;
	font-size: clamp(1.9rem, 3.4vw, 3.35rem);
	font-weight: 900;
	letter-spacing: -0.055em;
	line-height: 1.03;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.hero-card__content h2 a,
.hero-card__content h2 a:visited {
	color: #fff;
}

.hero-card__content h2 a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.hero-card__content .category-badge {
	position: relative;
	z-index: 2;
}

.hero-card__meta {
	display: flex;
	gap: 15px;
	color: #e4e7ec;
	font-size: 0.78rem;
	font-weight: 650;
}

.hero-card--secondary .hero-card__content {
	padding: 17px;
}

.hero-card--secondary .hero-card__content h2 {
	display: -webkit-box;
	margin: 9px 0 7px;
	overflow: hidden;
	font-size: clamp(1rem, 1.4vw, 1.28rem);
	letter-spacing: -0.025em;
	line-height: 1.16;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.hero-card--secondary .hero-card__meta {
	font-size: 0.7rem;
}

.category-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	min-height: 27px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--category-color, var(--accent));
	color: #fff;
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.035em;
	line-height: 1;
	text-transform: uppercase;
}

.category-badge:hover {
	filter: brightness(1.08);
}

.image-placeholder {
	display: block;
	background: var(--ink);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #0b1220), #101828 70%),
		var(--ink);
}

.latest-section {
	margin-top: 54px;
}

.section-heading {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 22px;
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.15;
}

.section-heading__line {
	height: 1px;
	flex: 1;
	background: var(--line);
}

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

.post-card {
	min-width: 0;
	content-visibility: auto;
	contain-intrinsic-size: 420px;
}

.post-card__image {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--surface-soft);
	aspect-ratio: 16 / 9;
}

.post-card__image img,
.post-card__image .image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.post-card__image .image-placeholder {
	width: 100%;
	height: 100%;
}

.post-card:hover .post-card__image img {
	transform: scale(1.025);
}

.post-card__body {
	padding: 14px 3px 0;
}

.post-card__image + .post-card__body {
	position: relative;
}

.post-card__image + .post-card__body::before {
	position: absolute;
	top: 0;
	left: 3px;
	width: 42px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--accent);
	content: "";
}

.post-card__meta,
.post-card__time,
.post-card__date {
	color: var(--muted);
	font-size: 0.76rem;
}

.post-card__body .post-card__top {
	display: flex;
}

.post-card__top,
.post-card__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.post-card__topline time {
	flex: none;
	color: var(--muted);
	font-size: 0.74rem;
}

.post-card__title {
	display: -webkit-box;
	margin: 12px 0 8px;
	overflow: hidden;
	font-size: clamp(1.08rem, 1.6vw, 1.3rem);
	font-weight: 850;
	letter-spacing: -0.03em;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.post-card__title a:hover {
	color: var(--accent);
}

.post-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ink-soft);
	font-size: 0.92rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.post-card__excerpt p {
	margin: 0;
}

/* Homepage category sections */
.home-sections {
	display: grid;
	gap: 76px;
	margin-top: 76px;
}

.category-section {
	min-width: 0;
	content-visibility: auto;
	contain-intrinsic-size: 720px;
}

.category-section__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 24px;
}

.category-section__header > div {
	min-width: 0;
}

.category-section__header h2 {
	margin: 0;
	font-size: clamp(1.85rem, 3.5vw, 3rem);
	font-weight: 950;
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.category-section__header h2 a:hover {
	color: var(--accent);
}

.category-section__header p {
	max-width: 760px;
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.55;
}

.category-section__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 850;
	white-space: nowrap;
}

.category-section__all:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.category-section__grid {
	display: grid;
	min-width: 0;
}

.section-card {
	min-width: 0;
}

.section-card__media {
	display: block;
	overflow: hidden;
	background: var(--surface-soft);
}

.section-card__media img,
.section-card__media .image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms ease;
}

.section-card:hover .section-card__media img {
	transform: scale(1.025);
}

.section-card__body {
	min-width: 0;
}

.section-card__body time {
	display: block;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 700;
}

.section-card__body h3 {
	margin: 8px 0 0;
	font-size: 1.2rem;
	font-weight: 850;
	letter-spacing: -0.03em;
	line-height: 1.22;
}

.section-card__body h3 a:hover {
	color: var(--accent);
}

.section-card__body p {
	margin: 11px 0 0;
	color: var(--ink-soft);
	font-size: 0.9rem;
	line-height: 1.55;
}

/* News: one feature plus four compact rows. */
.category-section--headline-list .category-section__grid {
	grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
	grid-template-rows: repeat(4, minmax(104px, auto));
	gap: 16px 26px;
}

.category-section--headline-list .section-card:first-child {
	display: flex;
	grid-row: 1 / span 4;
	flex-direction: column;
}

.category-section--headline-list .section-card:first-child .section-card__media {
	min-height: 340px;
	flex: 1;
	border-radius: var(--radius-lg);
}

.category-section--headline-list .section-card:first-child .section-card__body {
	padding: 18px 4px 0;
}

.category-section--headline-list .section-card:first-child h3 {
	font-size: clamp(1.55rem, 2.8vw, 2.35rem);
	letter-spacing: -0.045em;
	line-height: 1.08;
}

.category-section--headline-list .section-card:not(:first-child) {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 15px;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.category-section--headline-list .section-card:not(:first-child) .section-card__media {
	height: 92px;
	border-radius: var(--radius-sm);
}

.category-section--headline-list .section-card:not(:first-child) h3 {
	display: -webkit-box;
	margin-top: 5px;
	overflow: hidden;
	font-size: 1rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Articles: clean editorial cards. */
.category-section--editorial-grid {
	padding-top: 30px;
	border-top: 5px solid var(--ink);
}

.category-section--editorial-grid .category-section__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.category-section--editorial-grid .section-card {
	padding-right: 18px;
	border-right: 1px solid var(--line);
}

.category-section--editorial-grid .section-card:last-child {
	padding-right: 0;
	border-right: 0;
}

.category-section--editorial-grid .section-card__media {
	border-radius: var(--radius-md);
	aspect-ratio: 4 / 3;
}

.category-section--editorial-grid .section-card__body {
	padding-top: 15px;
}

/* Business: compact dark magazine panel. */
.category-section--dark-panel {
	padding: clamp(24px, 4vw, 48px);
	border-radius: calc(var(--radius-lg) + 4px);
	background: var(--ink);
	color: #fff;
}

.category-section--dark-panel .category-section__header h2,
.category-section--dark-panel .category-section__header h2 a,
.category-section--dark-panel .category-section__header p {
	color: #fff;
}

.category-section--dark-panel .category-section__header p {
	opacity: 0.72;
}

.category-section--dark-panel .category-section__all {
	border-color: #475467;
	color: #fff;
}

.category-section--dark-panel .category-section__all:hover {
	border-color: #fff;
	background: #fff;
	color: var(--ink);
}

.category-section--dark-panel .category-section__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.category-section--dark-panel .section-card {
	overflow: hidden;
	border: 1px solid #344054;
	border-radius: var(--radius-md);
	background: #182230;
}

.category-section--dark-panel .section-card__media {
	aspect-ratio: 16 / 9;
}

.category-section--dark-panel .section-card__body {
	padding: 18px;
}

.category-section--dark-panel .section-card__body time,
.category-section--dark-panel .section-card__body p {
	color: #b9c2d0;
}

.category-section--dark-panel .section-card__body h3,
.category-section--dark-panel .section-card__body h3 a {
	color: #fff;
}

.category-section--dark-panel .section-card__body h3 a:hover {
	color: #8ab4ff;
}

/* Education: structured two-column reading list. */
.category-section--numbered-list .category-section__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 34px;
}

.category-section--numbered-list .section-card {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 18px 0;
	border-top: 1px solid var(--line);
}

.category-section--numbered-list .section-card__media {
	height: 104px;
	border-radius: var(--radius-sm);
}

.category-section--numbered-list .section-card__body {
	position: relative;
	padding-left: 42px;
}

.section-card__number {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 900;
}

.category-section--numbered-list .section-card__body h3 {
	font-size: 1.05rem;
}

/* Technology: a visual mosaic with high-contrast overlays. */
.category-section--tech-mosaic {
	padding: clamp(24px, 4vw, 42px);
	border-radius: calc(var(--radius-lg) + 4px);
	background: #eff6ff;
}

.category-section--tech-mosaic .category-section__grid {
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: 218px;
	gap: 14px;
}

.category-section--tech-mosaic .section-card {
	position: relative;
	grid-column: span 3;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--ink);
	isolation: isolate;
}

.category-section--tech-mosaic .section-card:first-child {
	grid-column: span 6;
	grid-row: span 2;
}

.category-section--tech-mosaic .section-card__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.category-section--tech-mosaic .section-card::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.94));
	content: "";
}

.category-section--tech-mosaic .section-card__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 18px;
}

.category-section--tech-mosaic .section-card:first-child .section-card__body {
	padding: clamp(22px, 3vw, 34px);
}

.category-section--tech-mosaic .section-card__body time,
.category-section--tech-mosaic .section-card__body p {
	color: #d0d5dd;
}

.category-section--tech-mosaic .section-card__body h3,
.category-section--tech-mosaic .section-card__body h3 a {
	color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.category-section--tech-mosaic .section-card:first-child h3 {
	font-size: clamp(1.65rem, 3vw, 2.5rem);
	line-height: 1.08;
}

.category-section--tech-mosaic .section-card:not(:first-child) h3 {
	display: -webkit-box;
	overflow: hidden;
	font-size: 1rem;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Health: calm, spacious cards on a soft green surface. */
.category-section--wellbeing {
	padding: clamp(24px, 4vw, 42px);
	border-radius: calc(var(--radius-lg) + 4px);
	background: #eef8f1;
}

.category-section--wellbeing .category-section__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.category-section--wellbeing .section-card {
	overflow: hidden;
	border: 1px solid #d8eadf;
	border-radius: var(--radius-md);
	background: #fff;
}

.category-section--wellbeing .section-card__media {
	aspect-ratio: 16 / 10;
}

.category-section--wellbeing .section-card__body {
	padding: 18px;
}

.site-pages {
	display: grid;
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
	gap: 36px;
	align-items: start;
	margin-top: 76px;
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-soft);
}

.site-pages__eyebrow {
	margin: 0 0 6px;
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-pages__intro h2 {
	margin: 0;
	font-size: clamp(1.55rem, 2.8vw, 2.35rem);
	font-weight: 950;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.site-pages__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-pages__list li {
	border-bottom: 1px solid #d0d5dd;
}

.site-pages__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	font-size: 0.92rem;
	font-weight: 800;
}

.site-pages__list a:hover {
	color: var(--accent);
}

.homepage-about {
	max-width: 880px;
	margin: 68px auto 0;
	padding-top: 34px;
	border-top: 5px solid var(--ink);
	color: var(--ink-soft);
}

.homepage-about .widget {
	margin: 0;
}

.homepage-about .widget:empty,
.homepage-about .widget_text:has(.textwidget:empty) {
	display: none;
}

.homepage-about h2 {
	margin: 1.75em 0 0.55em;
	color: var(--ink);
	font-size: clamp(1.3rem, 2.4vw, 1.85rem);
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.homepage-about h2:first-child {
	margin-top: 0;
}

.homepage-about p,
.homepage-about li {
	font-size: 1rem;
	line-height: 1.75;
}

.homepage-about a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Archives and pagination */
.listing-page {
	max-width: var(--container);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 24px;
	color: var(--muted);
	font-size: 0.78rem;
}

.breadcrumbs a:hover {
	color: var(--accent);
}

.breadcrumbs .breadcrumb_last {
	color: var(--ink-soft);
}

.archive-header {
	max-width: 900px;
	margin-bottom: 34px;
}

.archive-header h1 {
	margin: 0 0 10px;
	font-size: clamp(2.1rem, 5vw, 4.3rem);
	font-weight: 950;
	letter-spacing: -0.065em;
	line-height: 0.98;
}

.archive-description {
	max-width: 720px;
	color: var(--ink-soft);
	font-size: 1.04rem;
}

.archive-description p {
	margin: 0;
}

.archive-header--search .search-form {
	max-width: 590px;
	margin-top: 22px;
}

.navigation.pagination {
	margin-top: 50px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.page-numbers.dots {
	border-color: transparent;
}

.empty-state {
	max-width: 700px;
	margin: 64px auto;
	padding: 36px;
	border-radius: var(--radius-lg);
	background: var(--surface-soft);
	text-align: center;
}

/* Single article */
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 840px) minmax(260px, 320px);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

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

.single-layout__sidebar {
	position: sticky;
	top: 24px;
	min-width: 0;
}

.article-header {
	margin-bottom: 26px;
}

.article-header h1 {
	margin: 15px 0 17px;
	font-size: clamp(1.7625rem, 3.975vw, 3.5625rem);
	font-weight: 950;
	letter-spacing: -0.035em;
	line-height: 1.08;
	text-wrap: balance;
	word-spacing: 0.1em;
}

.article-deck {
	max-width: 760px;
	margin-bottom: 18px;
	color: var(--ink-soft);
	font-size: clamp(1.08rem, 2vw, 1.28rem);
	line-height: 1.55;
}

.article-deck p {
	margin: 0;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: var(--muted);
	font-size: 0.8rem;
}

.entry-meta a {
	color: var(--ink);
	font-weight: 750;
}

.entry-meta a:hover {
	color: var(--accent);
}

.article-hero {
	margin: 0 0 32px;
}

.article-hero img {
	width: 100%;
	border-radius: var(--radius-lg);
	object-fit: cover;
	aspect-ratio: 16 / 9;
}

.article-hero figcaption,
.wp-caption-text,
.wp-element-caption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.76rem;
	line-height: 1.45;
}

.article-ad {
	margin: 28px 0;
}

.entry-content {
	color: #1d2939;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.08rem, 1.6vw, 1.19rem);
	line-height: 1.78;
}

.entry-content > * {
	max-width: var(--content);
	margin-right: auto;
	margin-left: auto;
}

.entry-content > .alignwide {
	max-width: 100%;
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--ink);
	font-family: var(--font-sans);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.15;
}

.entry-content h2 {
	margin-top: 1.9em;
	margin-bottom: 0.6em;
	font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.entry-content h3 {
	margin-top: 1.65em;
	margin-bottom: 0.55em;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.entry-content h4 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
	font-size: 1.18rem;
}

.entry-content a {
	color: #1459d9;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: #0b3c9d;
}

.entry-content strong {
	color: var(--ink);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content li {
	margin-bottom: 0.45em;
	padding-left: 0.2em;
}

.entry-content blockquote,
.wp-block-quote {
	position: relative;
	margin-top: 1.8em;
	margin-bottom: 1.8em;
	padding: 22px 26px 22px 30px;
	border: 0;
	border-left: 5px solid var(--signal);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--surface-soft);
	color: var(--ink);
	font-size: 1.08em;
	font-style: italic;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content figure,
.entry-content .wp-block-image {
	margin-top: 1.7em;
	margin-bottom: 1.7em;
}

.entry-content figure img,
.entry-content > img {
	border-radius: var(--radius-md);
}

.entry-content table {
	display: block;
	width: 100%;
	margin: 1.8em auto;
	overflow-x: auto;
	border-collapse: collapse;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	-webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td {
	min-width: 130px;
	padding: 11px 13px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--ink);
	color: #fff;
	font-weight: 800;
}

.entry-content tr:nth-child(even) td {
	background: var(--surface-soft);
}

.entry-content iframe {
	max-width: 100%;
}

.entry-content .wp-block-separator {
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--line);
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-weight: 800;
}

.article-footer {
	max-width: var(--content);
	margin: 36px auto 0;
}

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

.article-tags a {
	padding: 7px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink-soft);
	font-size: 0.78rem;
	font-weight: 700;
}

.article-tags a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.author-box {
	margin-top: 34px;
	padding: 24px;
	border-radius: var(--radius-md);
	background: var(--surface-soft);
}

.author-box__eyebrow {
	margin: 0 0 3px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.author-box h2 {
	margin: 0 0 6px;
	font-size: 1.25rem;
	letter-spacing: -0.025em;
}

.author-box p:last-child {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.9rem;
}

.related-posts {
	margin-top: 54px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.related-grid .post-card__title {
	font-size: 1rem;
}

.sidebar-title,
.widget-title {
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--ink);
	font-size: 1.1rem;
	font-weight: 900;
	letter-spacing: -0.025em;
}

.sidebar-widgets .widget {
	margin-bottom: 32px;
}

.sidebar-widgets ul {
	margin: 0;
	padding-left: 18px;
}

.sidebar-list {
	display: grid;
	gap: 15px;
}

.post-card--mini {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--line);
	content-visibility: visible;
	contain-intrinsic-size: auto;
}

.post-card--mini .post-card__image {
	border-radius: 9px;
	aspect-ratio: 4 / 3;
}

.post-card--mini .post-card__body {
	padding: 0;
}

.post-card--mini .post-card__body::before,
.post-card--mini .category-badge {
	display: none;
}

.post-card--mini .post-card__topline {
	justify-content: flex-start;
}

.post-card--mini .post-card__title {
	margin: 4px 0 0;
	font-size: 0.88rem;
	line-height: 1.25;
	-webkit-line-clamp: 3;
}

/* Pages, comments and errors */
.page-shell {
	max-width: 920px;
}

.page-article .article-header h1 {
	margin-top: 0;
}

.comments-area {
	max-width: var(--content);
	margin: 54px auto 0;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.45rem;
	font-weight: 900;
	letter-spacing: -0.035em;
}

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

.comment-list .children {
	margin-left: 28px;
	list-style: none;
}

.comment-body {
	margin: 22px 0;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.comment-metadata {
	margin: 7px 0;
	color: var(--muted);
	font-size: 0.76rem;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.86rem;
	font-weight: 800;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #cfd4dc;
	border-radius: var(--radius-sm);
}

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

.error-page {
	max-width: 720px;
	padding-block: 48px;
	text-align: center;
}

.error-page__code {
	color: var(--accent);
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 950;
	letter-spacing: -0.1em;
	line-height: 0.85;
}

.error-page h1 {
	margin: 22px 0 8px;
	font-size: clamp(2rem, 5vw, 3.4rem);
	letter-spacing: -0.055em;
}

.error-page p {
	color: var(--ink-soft);
}

.error-page .search-form {
	margin: 24px auto 16px;
}

/* Footer */
.site-footer {
	padding-top: 52px;
	background: var(--ink);
	color: #d0d5dd;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px;
	padding-bottom: 42px;
}

.footer-brand {
	grid-column: span 2;
}

.custom-logo-link--footer {
	display: inline-flex;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: #fff;
}

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

.wordmark--footer .wordmark__abc {
	color: #fff;
}

.footer-brand p {
	max-width: 320px;
	margin: 18px 0 0;
	font-size: 0.9rem;
}

.footer-title,
.site-footer .widget-title {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 850;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.site-footer .widget {
	margin: 0;
}

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

.site-footer li + li {
	margin-top: 8px;
}

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

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 62px;
	border-top: 1px solid #344054;
	font-size: 0.78rem;
}

.footer-bottom p {
	margin: 0;
}

/* WordPress core helpers */
.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.sticky {
	position: relative;
}

.sticky::after {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 10px;
	height: 10px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	content: "";
}

.gallery-caption,
.bypostauthor {
	display: initial;
}

@media (max-width: 1060px) {
	.lead-grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
		height: 500px;
	}

	.lead-grid__secondary {
		grid-template-columns: 1fr;
	}

	.lead-grid__secondary .hero-card:nth-child(n + 3) {
		display: none;
	}

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

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

@media (max-width: 860px) {
	.container {
		width: min(calc(100% - 30px), var(--container));
	}

	.branding-row__inner {
		min-height: 82px;
	}

	.site-description {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}

	.primary-navigation {
		display: none;
		position: absolute;
		right: 0;
		left: 0;
		z-index: 65;
		border-top: 1px solid var(--line);
		background: var(--surface);
		box-shadow: 0 14px 30px rgba(16, 24, 40, 0.12);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation .menu {
		display: block;
		max-height: calc(100vh - 116px);
		padding-block: 8px 16px;
		overflow-y: auto;
	}

	.primary-navigation .menu > li {
		border-bottom: 1px solid var(--line);
	}

	.primary-navigation a {
		min-height: 48px;
	}

	.primary-navigation .current-menu-item > a::after,
	.primary-navigation .current-menu-ancestor > a::after {
		display: none;
	}

	.primary-navigation .sub-menu {
		position: static;
		display: block;
		padding: 0 0 8px 16px;
		border: 0;
		box-shadow: none;
	}

	.primary-navigation .sub-menu a {
		min-height: 42px;
	}

	.lead-grid {
		display: block;
		height: auto;
	}

	.lead-grid__primary {
		height: min(70vw, 500px);
		min-height: 380px;
	}

	.lead-grid__secondary {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		margin-top: 16px;
	}

	.lead-grid__secondary .hero-card {
		min-height: 240px;
	}

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

	.single-layout {
		display: block;
	}

	.single-layout__sidebar {
		position: static;
		margin-top: 54px;
		padding-top: 30px;
		border-top: 1px solid var(--line);
	}

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

	.article-header h1 {
		font-size: clamp(1.65rem, 5.25vw, 3rem);
	}

	.category-section--headline-list .category-section__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
	}

	.category-section--editorial-grid .category-section__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-section--editorial-grid .section-card:nth-child(2) {
		padding-right: 0;
		border-right: 0;
	}

	.category-section--dark-panel .category-section__grid,
	.category-section--wellbeing .category-section__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-section--numbered-list .category-section__grid {
		grid-template-columns: 1fr;
	}

	.category-section--tech-mosaic .section-card {
		grid-column: span 6;
	}

	.category-section--tech-mosaic .section-card:first-child {
		grid-column: span 12;
	}
}

@media (max-width: 620px) {
	.container {
		width: min(calc(100% - 24px), var(--container));
	}

	.site-content {
		padding-block: 18px 52px;
	}

	.branding-row__inner {
		min-height: 72px;
		gap: 12px;
	}

	.wordmark {
		font-size: 1.85rem;
	}

	.header-search summary {
		width: 42px;
		min-height: 42px;
		justify-content: center;
		padding: 0;
	}

	.header-search summary span {
		display: none;
	}

	.menu-toggle {
		width: 42px;
		min-height: 42px;
		justify-content: center;
		padding: 0;
	}

	.menu-toggle__label {
		display: none;
	}

	.lead-grid__primary {
		height: 118vw;
		min-height: 430px;
		max-height: 560px;
	}

	.hero-card__content h2 {
		font-size: clamp(1.85rem, 9vw, 2.65rem);
	}

	.lead-grid__secondary {
		display: grid;
		grid-template-columns: 1fr;
	}

	.lead-grid__secondary .hero-card {
		min-height: 235px;
	}

	.lead-grid__secondary .hero-card:nth-child(n + 3) {
		display: block;
	}

	.hero-card--secondary .hero-card__content h2 {
		font-size: 1.25rem;
	}

	.latest-section {
		margin-top: 42px;
	}

	.home-sections {
		gap: 54px;
		margin-top: 54px;
	}

	.category-section__header {
		align-items: start;
		flex-direction: column;
		gap: 16px;
	}

	.category-section--headline-list .category-section__grid {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.category-section--headline-list .section-card:first-child {
		grid-row: auto;
	}

	.category-section--headline-list .section-card:first-child .section-card__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.category-section--headline-list .section-card:not(:first-child) {
		grid-template-columns: 116px minmax(0, 1fr);
	}

	.category-section--editorial-grid .category-section__grid,
	.category-section--dark-panel .category-section__grid,
	.category-section--wellbeing .category-section__grid,
	.site-pages__list {
		grid-template-columns: 1fr;
	}

	.category-section--editorial-grid .section-card {
		padding-right: 0;
		padding-bottom: 22px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.category-section--numbered-list .section-card {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 14px;
	}

	.category-section--numbered-list .section-card__media {
		height: 84px;
	}

	.category-section--numbered-list .section-card__body {
		padding-left: 32px;
	}

	.category-section--tech-mosaic .category-section__grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 245px;
	}

	.category-section--tech-mosaic .section-card,
	.category-section--tech-mosaic .section-card:first-child {
		grid-column: auto;
		grid-row: auto;
	}

	.category-section--tech-mosaic .section-card:first-child {
		min-height: 360px;
	}

	.site-pages {
		grid-template-columns: 1fr;
		gap: 22px;
		margin-top: 54px;
	}

	.post-grid,
	.related-grid,
	.sidebar-list,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.post-grid {
		gap: 32px;
	}

	.post-card__title {
		font-size: 1.22rem;
	}

	.article-header h1 {
		font-size: clamp(1.5375rem, 8.25vw, 2.3625rem);
		letter-spacing: -0.025em;
	}

	.article-hero {
		width: calc(100% + 24px);
		margin-left: -12px;
	}

	.article-hero img {
		border-radius: 0;
	}

	.entry-content {
		font-size: 1.08rem;
		line-height: 1.75;
	}

	.entry-content blockquote,
	.wp-block-quote {
		padding: 18px 18px 18px 21px;
	}

	.post-card--mini {
		grid-template-columns: 110px minmax(0, 1fr);
	}

	.footer-bottom {
		gap: 16px;
	}

	.footer-brand {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.utility-bar,
	.header-actions,
	.primary-navigation,
	.header-ad,
	.article-ad,
	.single-layout__sidebar,
	.related-posts,
	.comments-area,
	.site-footer {
		display: none !important;
	}

	.site-content {
		padding: 0;
	}

	.single-layout {
		display: block;
	}

	.entry-content {
		font-size: 12pt;
	}

	.entry-content a {
		color: inherit;
		text-decoration: none;
	}
}
