/*
Theme Name: GNS24 Newsroom
Theme URI: https://gns24.info/
Author: GNS24.INFO
Author URI: https://gns24.info/
Description: Lightweight bilingual editorial theme for GNS24.INFO, based on the approved light and dark newsroom mockups.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gns24-newsroom
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: news, two-columns, custom-logo, featured-images, translation-ready, accessibility-ready
*/

:root {
	--bg: #f6f7f9;
	--surface: #ffffff;
	--surface-soft: #eef1f5;
	--text: #111827;
	--text-muted: #5b6473;
	--border: #dfe3ea;
	--accent: #e50920;
	--accent-strong: #bd0014;
	--accent-contrast: #ffffff;
	--accent-secondary: #e50920;
	--accent-tertiary: #e50920;
	--header-bg: rgba(255, 255, 255, 0.98);
	--overlay: linear-gradient(180deg, rgba(8, 13, 24, 0.02) 25%, rgba(8, 13, 24, 0.92) 100%);
	--section-line: linear-gradient(180deg, #e50920, #e50920);
	--shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
	--shadow-small: 0 6px 18px rgba(17, 24, 39, 0.07);
	--radius: 16px;
	--radius-small: 11px;
	--shell: 1200px;
	--font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
	color-scheme: dark;
	--bg: #111522;
	--surface: #1b2130;
	--surface-soft: #222a3b;
	--text: #e9eaf2;
	--text-muted: #aeb5c5;
	--border: #343d51;
	--accent: #e50920;
	--accent-strong: #ff2f43;
	--accent-contrast: #ffffff;
	--accent-secondary: #ff8a24;
	--accent-tertiary: #8b5cf6;
	--header-bg: rgba(17, 21, 34, 0.98);
	--overlay: linear-gradient(180deg, rgba(7, 11, 20, 0.06) 22%, rgba(7, 11, 20, 0.96) 100%);
	--section-line: linear-gradient(180deg, #ff8a24, #8b5cf6);
	--shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
	--shadow-small: 0 8px 22px rgba(0, 0, 0, 0.2);
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-width: 320px;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}

body.menu-open,
body.search-open {
	overflow: hidden;
}

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

img {
	height: auto;
}

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

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

button,
input {
	font: inherit;
}

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

:focus-visible {
	outline: 3px solid var(--accent-secondary);
	outline-offset: 3px;
}

.shell {
	width: min(calc(100% - 32px), var(--shell));
	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: 10000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 14px;
	background: var(--surface);
	color: var(--text);
}

.site-header {
	position: relative;
	z-index: 100;
	background: var(--header-bg);
	border-bottom: 1px solid var(--border);
}

.site-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 102px;
	padding-block: 14px;
}

.site-branding {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.custom-logo-link,
.brand-placeholder {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
}

.custom-logo {
	width: auto;
	max-width: min(370px, 48vw);
	max-height: 66px;
	object-fit: contain;
}

.brand-placeholder__mark {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 3px solid var(--accent);
	border-radius: 50%;
	background:
		linear-gradient(145deg, transparent 45%, var(--accent) 46% 50%, transparent 51%),
		radial-gradient(circle at center, transparent 46%, color-mix(in srgb, var(--accent), transparent 55%) 47% 52%, transparent 53%);
	color: var(--text);
	font-size: 22px;
	font-weight: 900;
	font-style: italic;
}

.brand-placeholder__name {
	display: flex;
	align-items: baseline;
	font-size: clamp(28px, 4vw, 46px);
	font-style: italic;
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.brand-placeholder__name strong {
	font-weight: 900;
}

.brand-placeholder__name em {
	padding: 0.05em 0.16em 0.08em 0.1em;
	background: var(--accent);
	color: #fff;
	font-weight: 900;
	font-style: italic;
	letter-spacing: -0.04em;
}

.site-tagline {
	margin: 0 0 0 66px;
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 650;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 auto;
}

.language-switch {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border-radius: 999px;
	background: var(--surface-soft);
}

.language-switch__item {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 34px;
	padding-inline: 8px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 850;
}

.language-switch__item.is-active {
	background: var(--accent);
	color: #fff;
}

.icon-button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}

.icon-button:hover {
	border-color: var(--border);
	background: var(--surface-soft);
}

.icon-button svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-toggle__moon,
html[data-theme="dark"] .theme-toggle__sun {
	display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
	display: block;
}

.site-search {
	padding-bottom: 14px;
}

.site-search[hidden] {
	display: none;
}

.search-form {
	display: flex;
	gap: 8px;
	width: min(100%, 720px);
	margin-left: auto;
}

.search-field {
	min-width: 0;
	flex: 1;
	height: 46px;
	padding: 0 15px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
}

.search-submit,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.site-nav {
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.site-nav__inner {
	display: flex;
	align-items: stretch;
	min-height: 54px;
	border-bottom: 3px solid var(--accent);
}

.site-nav__home {
	display: grid;
	place-items: center;
	width: 64px;
	min-width: 64px;
	background: var(--accent);
	color: #fff;
	clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}

.site-nav__home svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.site-nav__list {
	display: flex;
	align-items: stretch;
	gap: clamp(10px, 2.4vw, 38px);
	margin: 0;
	padding: 0 18px;
	list-style: none;
}

.site-nav__list > li {
	position: relative;
	display: flex;
	align-items: stretch;
}

.site-nav__list a {
	display: flex;
	align-items: center;
	min-height: 51px;
	font-weight: 800;
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list a:hover {
	color: var(--accent-strong);
}

.site-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: 0 0 12px 12px;
	background: var(--surface);
	box-shadow: var(--shadow-small);
}

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

.site-nav__list .sub-menu a {
	min-height: 40px;
	padding: 7px 10px;
	border-radius: 7px;
}

.menu-toggle {
	display: none;
}

.ad-slot {
	margin-block: 18px;
	min-height: 72px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: var(--surface-soft);
	text-align: center;
}

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

.ad-widget > :first-child {
	margin-top: 0;
}

.ad-widget > :last-child {
	margin-bottom: 0;
}

.ad-slot .widget_search,
.ad-slot .widget_recent_entries,
.ad-slot .widget_recent_comments,
.ad-slot .wp-block-search,
.ad-slot .wp-block-latest-posts,
.ad-slot .wp-block-latest-comments {
	display: none !important;
}

.site-main {
	padding-block: 18px 54px;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.78fr) minmax(310px, 0.92fr);
	gap: 14px;
}

.hero-grid__side {
	display: grid;
	grid-template-rows: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.news-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-small);
	background: var(--surface);
	box-shadow: var(--shadow-small);
	transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.news-card:hover {
	border-color: color-mix(in srgb, var(--accent-tertiary), var(--border) 42%);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.news-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-soft);
}

.news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

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

.news-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 72% 25%, color-mix(in srgb, var(--accent-tertiary), transparent 48%), transparent 24%),
		linear-gradient(135deg, color-mix(in srgb, var(--surface-soft), var(--accent-secondary) 12%), var(--surface-soft));
}

.news-card__body {
	padding: 13px 14px 14px;
}

.category-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 7px;
}

.category-badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 2px 9px;
	border-radius: 6px;
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	font-weight: 850;
	line-height: 1.2;
}

.category-badge:hover {
	background: var(--accent-strong);
	color: #fff;
}

.news-card__title {
	margin: 0;
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.news-card__excerpt {
	margin: 9px 0 0;
	color: var(--text-muted);
}

.card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	color: var(--text-muted);
	font-size: 12px;
	font-weight: 650;
}

.news-card--hero {
	min-height: 440px;
	border-radius: var(--radius);
	background: #0b1220;
	color: #fff;
}

.news-card--hero .news-card__media,
.news-card--hero .news-card__media::after {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.news-card--hero .news-card__media {
	aspect-ratio: auto;
}

.news-card--hero .news-card__media::after {
	content: "";
	background: var(--overlay);
}

.news-card--hero .news-card__body {
	position: absolute;
	z-index: 2;
	inset: auto 0 0;
	padding: clamp(20px, 4vw, 34px);
}

.news-card--hero .news-card__title {
	max-width: 780px;
	font-size: clamp(27px, 4.1vw, 48px);
	line-height: 1.02;
	text-wrap: balance;
}

.news-card--hero .news-card__excerpt {
	max-width: 660px;
	color: rgba(255, 255, 255, 0.82);
}

.news-card--hero .card-meta {
	color: rgba(255, 255, 255, 0.84);
}

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

.news-card--compact .news-card__media {
	height: 100%;
	aspect-ratio: auto;
}

.news-card--compact .news-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px 12px;
}

.news-card--compact .news-card__title {
	font-size: clamp(14px, 1.25vw, 17px);
}

.news-card--compact .card-meta {
	margin-top: 6px;
	font-size: 11px;
}

.news-section,
.related-news {
	margin-top: 34px;
}

.section-heading {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	padding-left: 18px;
}

.section-heading::before {
	content: "";
	position: absolute;
	inset: 3px auto 3px 0;
	width: 7px;
	border-radius: 99px;
	background: var(--section-line);
}

.section-heading h2,
.related-news > h2,
.ranking-card h2 {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 31px);
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.section-heading a {
	color: var(--accent-strong);
	font-size: 14px;
	font-weight: 850;
}

.latest-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.home-lower-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
	gap: 18px;
	margin-top: 24px;
}

.ranking-card,
.page-card {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-small);
}

.ranking-card h2 {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
	font-size: 23px;
}

.ranking-card__note,
.section-note {
	color: var(--text-muted);
	font-size: 13px;
}

.ranking-list {
	counter-reset: ranking;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.ranking-list li {
	counter-increment: ranking;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 7px 0;
	border-bottom: 1px solid var(--border);
	font-weight: 750;
}

.ranking-list li:last-child {
	border-bottom: 0;
}

.ranking-list li::before {
	content: counter(ranking);
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-weight: 900;
}

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

.empty-state {
	display: grid;
	place-items: center;
	min-height: 360px;
	padding: 42px 24px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	text-align: center;
}

.empty-state--compact {
	min-height: 180px;
	grid-column: 1 / -1;
}

.empty-state__icon {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--surface-soft);
	color: var(--accent);
	font-size: 36px;
}

.empty-state h1,
.empty-state h2 {
	margin: 10px 0 0;
	font-size: clamp(25px, 4vw, 40px);
}

.empty-state p {
	max-width: 560px;
	margin: 6px auto 18px;
	color: var(--text-muted);
}

.error-code {
	margin: 0 !important;
	color: var(--accent) !important;
	font-size: clamp(72px, 15vw, 160px);
	font-weight: 950;
	line-height: 0.85;
}

.archive-main,
.page-main {
	padding-top: 32px;
}

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

.archive-header h1 {
	margin: 0;
	font-size: clamp(32px, 5vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.05em;
}

.archive-description {
	max-width: 740px;
	color: var(--text-muted);
}

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

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

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--surface);
}

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

.article {
	max-width: 1200px;
}

.article-header {
	max-width: 920px;
	margin: 26px auto 24px;
}

.article-header h1 {
	margin: 10px 0 0;
	font-size: clamp(38px, 6.4vw, 72px);
	line-height: 0.98;
	letter-spacing: -0.055em;
	text-wrap: balance;
}

.article-lead {
	margin: 22px 0 0;
	color: var(--text-muted);
	font-size: clamp(19px, 2.5vw, 26px);
	line-height: 1.42;
}

.article-byline {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 650;
}

.article-byline a {
	color: var(--text);
	font-weight: 800;
}

.article-featured {
	max-width: 1080px;
	margin: 0 auto 28px;
}

.article-featured img {
	width: 100%;
	max-height: 680px;
	border-radius: var(--radius);
	object-fit: cover;
	box-shadow: var(--shadow);
}

.article-featured figcaption,
.wp-caption-text {
	margin-top: 8px;
	color: var(--text-muted);
	font-size: 12px;
}

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 820px) minmax(250px, 300px);
	justify-content: center;
	align-items: start;
	gap: 34px;
}

.article-content {
	min-width: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(18px, 2vw, 21px);
	line-height: 1.78;
}

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

.entry-content h2,
.entry-content h3 {
	font-family: var(--font);
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.entry-content h2 {
	margin: 1.9em 0 0.6em;
	font-size: clamp(28px, 4vw, 42px);
}

.entry-content h3 {
	margin: 1.6em 0 0.5em;
	font-size: 25px;
}

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

.entry-content img {
	border-radius: var(--radius-small);
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.5em 0 0.5em 1em;
	border-left: 5px solid var(--accent-secondary);
	font-size: 1.08em;
	font-style: italic;
}

.entry-content .gns24-image-credit {
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--surface-soft);
	font-family: var(--font);
	font-size: 12px;
	line-height: 1.55;
}

.article-sidebar {
	position: sticky;
	top: 18px;
	display: grid;
	gap: 18px;
}

.ranking-card--sidebar {
	padding: 15px;
}

.related-news {
	max-width: 1080px;
	margin-inline: auto;
	padding-top: 26px;
	border-top: 1px solid var(--border);
}

.related-news > h2 {
	margin-bottom: 16px;
}

.site-footer {
	padding: 38px 0 18px;
	border-top: 1px solid var(--border);
	background: var(--surface);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 28px;
	align-items: start;
}

.site-footer .brand-placeholder__mark {
	width: 42px;
	height: 42px;
	font-size: 17px;
}

.site-footer .brand-placeholder__name {
	font-size: 29px;
}

.site-footer p {
	color: var(--text-muted);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 750;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: 13px;
}

@media (max-width: 980px) {
	.site-tagline {
		display: none;
	}

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

	.hero-grid__side {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: none;
	}

	.news-card--compact {
		display: block;
	}

	.news-card--compact .news-card__media {
		height: auto;
		aspect-ratio: 16 / 9;
	}

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

	.article-layout {
		grid-template-columns: minmax(0, 760px);
	}

	.article-sidebar {
		position: static;
		grid-template-columns: 1fr 1fr;
	}
}

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

	.site-header__top {
		min-height: 74px;
		gap: 10px;
		padding-block: 9px;
	}

	.brand-placeholder__mark {
		width: 42px;
		height: 42px;
		font-size: 17px;
	}

	.brand-placeholder__name {
		font-size: clamp(23px, 7vw, 31px);
	}

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

	.header-tools {
		gap: 2px;
	}

	.language-switch {
		position: absolute;
		top: 74px;
		right: 66px;
		z-index: 3;
		display: none;
		box-shadow: var(--shadow-small);
	}

	body.menu-open .language-switch {
		display: inline-flex;
	}

	.menu-toggle {
		display: grid;
	}

	.site-nav {
		position: fixed;
		z-index: 1000;
		inset: 74px 0 auto;
		display: none;
		max-height: calc(100dvh - 74px);
		overflow-y: auto;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}

	body.menu-open .site-nav {
		display: block;
	}

	.site-nav__inner {
		align-items: flex-start;
		padding-block: 14px;
		border-bottom: 0;
	}

	.site-nav__home {
		width: 52px;
		min-width: 52px;
		height: 48px;
		clip-path: none;
		border-radius: 9px;
	}

	.site-nav__list {
		display: grid;
		gap: 0;
		width: 100%;
		padding: 0 0 0 10px;
	}

	.site-nav__list > li,
	.site-nav__list a {
		display: block;
	}

	.site-nav__list a {
		min-height: 48px;
		padding: 11px 10px;
		border-bottom: 1px solid var(--border);
	}

	.site-nav__list .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 14px;
		border: 0;
		box-shadow: none;
	}

	.site-search {
		position: fixed;
		z-index: 1001;
		inset: 74px 0 auto;
		width: 100%;
		padding: 12px;
		background: var(--surface);
		box-shadow: var(--shadow);
	}

	.site-main {
		padding-top: 12px;
	}

	.home-main {
		padding-bottom: 24px;
	}

	.home-main .empty-state {
		min-height: 250px;
		padding: 28px 18px;
	}

	.home-main .empty-state__icon {
		width: 58px;
		height: 58px;
		font-size: 30px;
	}

	.home-main .empty-state h2 {
		font-size: clamp(24px, 8vw, 32px);
	}

	.home-main .empty-state p {
		margin-bottom: 4px;
	}

	.hero-grid {
		gap: 10px;
	}

	.news-card--hero {
		min-height: 430px;
	}

	.news-card--hero .news-card__title {
		font-size: clamp(28px, 8.5vw, 40px);
	}

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

	.news-card--compact {
		display: grid;
		grid-template-columns: 122px minmax(0, 1fr);
	}

	.news-card--compact .news-card__media {
		height: 100%;
		aspect-ratio: auto;
	}

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

	.home-lower-grid {
		grid-template-columns: 1fr;
	}

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

	.article-header {
		margin-top: 14px;
	}

	.article-header h1 {
		font-size: clamp(36px, 11vw, 54px);
	}

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

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

	.article-content {
		font-size: 18px;
		line-height: 1.72;
	}

	.article-sidebar {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.brand-placeholder {
		gap: 7px;
	}

	.brand-placeholder__mark {
		display: none;
	}

	.header-tools .icon-button {
		width: 42px;
		height: 42px;
	}

	.latest-grid,
	.topic-grid,
	.archive-grid {
		grid-template-columns: 1fr;
	}

	.latest-grid .news-card,
	.topic-grid .news-card {
		display: grid;
		grid-template-columns: 128px minmax(0, 1fr);
	}

	.latest-grid .news-card__media,
	.topic-grid .news-card__media {
		height: 100%;
		aspect-ratio: auto;
	}

	.latest-grid .news-card__title,
	.topic-grid .news-card__title {
		font-size: 16px;
	}

	.section-heading {
		align-items: flex-end;
	}

	.section-heading h2 {
		font-size: 24px;
	}

	.section-heading a {
		font-size: 12px;
	}

	.article-byline {
		display: grid;
	}

	.site-footer__bottom {
		display: grid;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
