/*
Theme Name: LHN News
Theme URI: https://latesthindinews.com/
Author: Akshay Meena
Author URI: https://akshaymeena.com/
Description: हल्की, तेज़ और साफ़-सुथरी हिंदी न्यूज़ थीम। Google News जैसा सरल होम पेज, न्यूज़ पोर्टल जैसे आर्टिकल पेज, बिल्ट-इन SEO (NewsArticle Schema, Google News सिटमैप), AdSense के लिए तैयार विज्ञापन स्थान और सभी ज़रूरी नीति पेज।
Version: 1.2.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lhn
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ===== Tokens ===== */
:root {
	--bg: #f3f5f8;
	--surface: #ffffff;
	--surface-2: #f0f3f7;
	--text: #1b1f24;
	--text-2: #3c434b;
	--muted: #5d6670;
	--line: #e3e7ec;
	--brand: #c2410c;
	--brand-soft: #fff1e8;
	--accent: #1f5fbf;
	--accent-soft: #e8f0fe;
	--live: #d93025;
	--focus: #1f5fbf;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
	--font: "LHN Sans", system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Mangal", Roboto, sans-serif;
	--header-h: 64px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f1318;
		--surface: #171c22;
		--surface-2: #1f262e;
		--text: #e8ebef;
		--text-2: #c9d0d8;
		--muted: #a3adb8;
		--line: #2a323b;
		--brand: #fb923c;
		--brand-soft: #2a1d14;
		--accent: #8ab4f8;
		--accent-soft: #1d2a3d;
		--live: #f28b82;
		--focus: #8ab4f8;
		--shadow: none;
		color-scheme: dark;
	}
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--surface); color: var(--text);
	border-radius: var(--radius-sm); box-shadow: var(--shadow);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px;
	border: 0; border-radius: 999px;
	background: var(--accent); color: #fff;
	font-weight: 600; cursor: pointer;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #0f1318; } }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 14px; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: transparent; cursor: pointer;
	color: var(--muted);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ===== Header ===== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.header-bar {
	display: flex; align-items: center; gap: 12px;
	min-height: var(--header-h);
}
.brand { margin: 0; font-size: inherit; line-height: 1; flex: none; }
.brand__text { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__text:hover { color: var(--text); }
.brand__mark {
	display: inline-grid; place-items: center;
	width: 36px; height: 36px; border-radius: 10px;
	background: linear-gradient(135deg, var(--brand), #e8590c);
	color: #fff; font-weight: 800; font-size: 20px;
}
.brand__name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.custom-logo { max-height: 44px; width: auto; }

.header-search {
	flex: 1; max-width: 640px; margin: 0 auto;
	display: flex; align-items: center; gap: 10px;
	height: 48px; padding: 0 18px;
	background: var(--surface-2);
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--muted);
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.header-search:focus-within {
	background: var(--surface);
	border-color: var(--line);
	box-shadow: 0 1px 6px rgba(32, 33, 36, .18);
}
.header-search input {
	flex: 1; min-width: 0; height: 100%;
	border: 0; background: transparent; outline: none;
	font: inherit; font-size: 16px; color: var(--text);
}
.header-search input::placeholder { color: var(--muted); }
.header-end { display: flex; align-items: center; gap: 4px; flex: none; }
.header-date { color: var(--muted); font-size: 14px; white-space: nowrap; }
.menu-toggle.icon-btn, .search-toggle.icon-btn { display: none; }

/* Category tabs */
.tabs { border-top: 1px solid transparent; }
.tabs__list {
	display: flex; gap: 4px;
	margin: 0; padding: 0; list-style: none;
	overflow-x: auto; scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list a {
	display: block; position: relative;
	padding: 12px 14px 13px;
	color: var(--muted); font-size: 15px; font-weight: 500;
	white-space: nowrap;
}
.tabs__list a:hover { color: var(--text); }
.tabs__list .current-menu-item > a,
.tabs__list .current-menu-ancestor > a,
.tabs__list .current-post-ancestor > a,
.tabs__list .current-category-ancestor > a { color: var(--accent); font-weight: 600; }
.tabs__list .current-menu-item > a::after,
.tabs__list .current-menu-ancestor > a::after,
.tabs__list .current-post-ancestor > a::after,
.tabs__list .current-category-ancestor > a::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 0;
	height: 3px; border-radius: 3px 3px 0 0; background: var(--accent);
}

/* Breaking strip */
.breaking { background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.breaking__inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.breaking__tag {
	flex: none; padding: 2px 10px; border-radius: 6px;
	background: var(--live); color: #fff; font-size: 13px; font-weight: 700;
}
.breaking__list { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.breaking__list a { white-space: nowrap; font-weight: 600; font-size: 15px; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; z-index: 1;
	width: min(320px, 86vw); overflow-y: auto;
	background: var(--surface); padding: 12px 8px 32px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 12px; border-bottom: 1px solid var(--line); }
.drawer__title { margin: 16px 12px 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a { display: block; padding: 10px 12px; border-radius: 0 999px 999px 0; font-weight: 500; }
.drawer__list a:hover { background: var(--surface-2); color: var(--text); }
.drawer__list .current-menu-item > a { background: var(--accent-soft); color: var(--accent); }
.drawer__list--small a { font-size: 15px; color: var(--text-2); font-weight: 400; }
body.drawer-open { overflow: hidden; }

/* ===== Layout ===== */
.site-main { padding-top: 20px; padding-bottom: 40px; }

.briefing { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.briefing__title { margin: 0; font-size: 26px; font-weight: 600; }
.briefing__date { margin: 0; color: var(--muted); }

.home-grid {
	display: grid; gap: 20px;
	grid-template-columns: minmax(0, 1fr) 340px;
	align-items: start;
	margin-bottom: 20px;
}
.home-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 66px); }

.section-title {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 12px; font-size: 20px; font-weight: 600; color: var(--accent);
}
.section-title a { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); }
.section-title a:hover { text-decoration: underline; }
.section-title .icon { width: 22px; height: 22px; }

.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(217, 48, 37, .15); }

.kicker {
	display: inline-block; margin-bottom: 6px;
	color: var(--brand); font-size: 13px; font-weight: 600;
}
a.kicker:hover { color: var(--brand); text-decoration: underline; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.meta .kicker { margin: 0; font-size: 13px; }
.meta__sep { margin: 0 6px; }

/* Top stories clusters */
.cluster { padding: 16px 0; border-top: 1px solid var(--line); }
.top-stories .section-title + .cluster { border-top: 0; padding-top: 4px; }
.cluster__main { display: flex; gap: 16px; align-items: flex-start; }
.cluster__text { flex: 1; min-width: 0; }
.cluster__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.cluster__title a:hover { text-decoration: underline; color: inherit; }
.cluster--lead .cluster__title { font-size: 24px; line-height: 1.38; }
.cluster__excerpt { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.cluster__media { flex: none; width: 168px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.cluster--lead .cluster__media { width: 46%; aspect-ratio: 16 / 9; }
.cluster__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cluster__media:hover img { transform: scale(1.03); }
.cluster__related { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 3px solid var(--line); }
.cluster__related li { padding: 6px 0; }
.cluster__related a { font-size: 15px; font-weight: 500; line-height: 1.45; }
.cluster__related a:hover { text-decoration: underline; color: inherit; }
.cluster__related .meta { margin-top: 2px; }
.cluster__more {
	display: inline-flex; align-items: center; gap: 2px;
	margin-top: 10px; padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--line); color: var(--accent); font-size: 14px; font-weight: 500;
}
.cluster__more:hover { background: var(--accent-soft); }
.cluster__more .icon { width: 18px; height: 18px; }

/* Compact list (latest) */
.compact-list { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.compact { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); counter-increment: c; }
.compact:first-child { border-top: 0; padding-top: 2px; }
.compact::before {
	content: counter(c);
	position: absolute; left: 0; top: 10px;
	width: 24px; text-align: center;
	color: var(--muted); font-weight: 700; font-size: 18px; line-height: 1.4;
}
.compact:first-child::before { top: 2px; }
.compact__title { font-weight: 500; line-height: 1.45; font-size: 15px; }
.compact__title:hover { text-decoration: underline; color: inherit; }
.compact .meta .kicker { color: var(--brand); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
	display: inline-block; padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface);
	font-size: 14px; color: var(--text-2);
}
.chip:hover { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* Grid cards */
.picks { margin-bottom: 20px; }
.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-card__media {
	display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm);
	overflow: hidden; background: var(--surface-2); margin-bottom: 10px;
}
.grid-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-card__media:hover img { transform: scale(1.03); }
.grid-card__media--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); }
.grid-card__media--empty span { font-size: 40px; font-weight: 800; color: var(--brand); opacity: .5; }
.grid-card__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; }
.grid-card__title a:hover { text-decoration: underline; color: inherit; }

/* Row cards */
.row-card { display: flex; gap: 14px; align-items: flex-start; }
.row-card__text { flex: 1; min-width: 0; }
.row-card__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }
.row-card__title a:hover { text-decoration: underline; color: inherit; }
.row-card__media { flex: none; width: 104px; height: 104px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.row-card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Topic cards */
.topic-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-grid__full { grid-column: 1 / -1; }
.topic { display: flex; flex-direction: column; }
.topic__list { list-style: none; margin: 12px 0 0; padding: 0; flex: 1; }
.topic__list li { padding: 10px 0; border-top: 1px solid var(--line); }
.topic__list a { font-weight: 500; line-height: 1.45; font-size: 15px; }
.topic__list a:hover { text-decoration: underline; color: inherit; }
.topic__list .meta { display: block; margin-top: 2px; }
.topic__more { align-self: flex-start; margin-top: 8px; color: var(--accent); font-size: 14px; font-weight: 500; }
.topic__more:hover { text-decoration: underline; }

/* ===== Article ===== */
.article-layout, .archive-layout {
	display: grid; gap: 28px;
	grid-template-columns: minmax(0, 1fr) 320px;
	align-items: start;
}
.article {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 24px 32px 32px;
	min-width: 0;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text-2); display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.article__title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; letter-spacing: -.01em; margin: 4px 0 12px; }
.article__dek { font-size: 19px; line-height: 1.6; color: var(--text-2); margin: 0 0 18px; font-weight: 500; }
.article__meta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.byline { display: flex; align-items: center; gap: 10px; }
.byline__avatar { border-radius: 50%; }
.byline__label { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.byline__name { display: block; font-weight: 600; line-height: 1.3; color: var(--accent); }
.dates { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }

.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.share__btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface);
	color: var(--text-2); cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.share__btn:hover { color: #fff; border-color: transparent; }
.share__btn--whatsapp:hover { background: #25d366; }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--x:hover { background: #000; }
.share__btn--telegram:hover { background: #229ed9; }
.share__btn--copy:hover, .share__btn--copy.is-copied { background: var(--accent); color: #fff; }
.share__toast:not(:empty) {
	position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
	padding: 4px 10px; border-radius: 6px; white-space: nowrap;
	background: var(--text); color: var(--surface); font-size: 12px;
}

.article__hero { margin: 22px 0 0; }
.article__hero img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.article__hero figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.entry-content { font-size: 18.5px; line-height: 1.85; color: var(--text); margin-top: 22px; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 25px; margin-top: 1.4em; }
.entry-content h3 { font-size: 21px; margin-top: 1.3em; }
.entry-content h4 { font-size: 19px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
	margin-left: 0; margin-right: 0; padding: 12px 20px;
	border-left: 4px solid var(--brand); background: var(--brand-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.05em;
}
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: left; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--surface-2); }
.entry-content iframe { width: 100%; border-radius: var(--radius-sm); }
.entry-content .wp-block-embed { margin-left: 0; margin-right: 0; }
.entry-content .wp-block-embed__wrapper > * { margin-left: auto; margin-right: auto; }

.also-read {
	padding: 12px 16px; border-radius: var(--radius-sm);
	background: var(--accent-soft); font-size: 16px; line-height: 1.55;
}
.also-read span { font-weight: 700; color: var(--accent); }
.entry-content .also-read a { color: var(--text); text-decoration: none; font-weight: 600; }
.entry-content .also-read a:hover { text-decoration: underline; }

.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.article__tags-label { font-weight: 600; color: var(--muted); font-size: 14px; }

.follow-box {
	display: flex; align-items: center; gap: 12px;
	margin-top: 24px; padding: 14px 18px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface-2); font-size: 15px;
}
.follow-box .icon { width: 28px; height: 28px; color: var(--accent); }
.follow-box strong { display: block; }

.share-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.share-bottom > span { font-weight: 600; font-size: 15px; }
.share-bottom .share { margin: 0; }

.author-box {
	display: flex; gap: 16px; align-items: flex-start;
	margin-top: 24px; padding: 18px; border-radius: var(--radius-sm);
	background: var(--surface-2);
}
.author-box img { border-radius: 50%; flex: none; }
.author-box__name { margin: 0 0 4px; font-weight: 700; font-size: 17px; }
.author-box__bio { margin: 0 0 6px; color: var(--text-2); font-size: 15px; }
.author-box__link { color: var(--accent); font-size: 14px; font-weight: 500; }

.article__note { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.article__note a { color: var(--accent); text-decoration: underline; }

.article-aside { min-width: 0; }
.article-aside__sticky { position: sticky; top: calc(var(--header-h) + 66px); display: grid; gap: 20px; }

.related { margin-top: 28px; }

/* Comments */
.comments { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comment-author img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-respond label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }

/* ===== Forms ===== */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
	width: 100%; padding: 11px 14px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.header-search input[type="search"] { padding: 0; border: 0; border-radius: 0; outline: none; background: transparent; }

.contact-form .field { margin: 0 0 14px; }
.contact-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.field--check label { font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; }
.form-notice--ok { background: #e6f4ea; color: #137333; }
.form-notice--err { background: #fce8e6; color: #a50e0e; }

.search-form { display: flex; gap: 8px; max-width: 560px; margin: 12px 0; }
.search-form input { flex: 1; }

/* ===== Archive ===== */
.archive-header { margin-bottom: 20px; }
.archive-title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 8px; }
.archive-title span { color: var(--muted); font-weight: 500; font-size: .7em; }
.archive-desc { color: var(--text-2); max-width: 72ch; }
.archive-desc p { margin: 0; }
.subcats { margin-top: 12px; }
.archive-list { padding-top: 8px; padding-bottom: 8px; min-width: 0; }

.list-card { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.archive-list > .list-card:first-child, .archive-list > .section-title + .list-card { border-top: 0; }
.list-card__media { flex: none; width: 240px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.list-card__media img { width: 100%; height: 100%; object-fit: cover; }
.list-card__body { min-width: 0; flex: 1; }
.list-card__title { font-size: 19px; font-weight: 600; margin: 0 0 6px; line-height: 1.45; }
.list-card__title a:hover { text-decoration: underline; color: inherit; }
.list-card__excerpt { margin: 0; color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pagination, .navigation.pagination { margin: 16px 0 8px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 999px; font-size: 15px;
}
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (prefers-color-scheme: dark) { .page-numbers.current { color: #0f1318; } }
a.page-numbers:hover { background: var(--accent-soft); color: var(--accent); }

.author-hero { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.author-hero img { border-radius: 50%; flex: none; }
.author-hero p { margin: 4px 0; }

/* Pages */
.page-article { max-width: 860px; margin: 0 auto; padding: 28px 36px 36px; }
.page-title { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 8px; }
.page-article .entry-content { font-size: 17px; line-height: 1.8; }
.policy-updated { color: var(--muted); font-size: 14px; }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list li:empty { display: none; }
.team-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.team-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.team-card img { border-radius: 50%; flex: none; }
.team-card__name { font-weight: 700; text-decoration: none !important; color: var(--text) !important; }
.team-card p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.not-found { text-align: center; padding: 48px 24px; margin-bottom: 20px; }
.not-found__code { font-size: 72px; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; }
.not-found .search-form { margin: 20px auto; }
.empty-state { color: var(--muted); text-align: center; padding: 24px 0; }

/* ===== Ads ===== */
.lhn-ad { margin: 20px auto; text-align: center; max-width: 1200px; overflow: hidden; }
.lhn-ad__label { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.lhn-ad--header { padding: 0 16px; min-height: 120px; }
.lhn-ad--sidebar { margin: 0; min-height: 280px; }
.lhn-ad--incontent-1, .lhn-ad--incontent-2 { min-height: 300px; margin: 1.5em 0; }
.lhn-ad--feed { min-height: 250px; }
.lhn-ad--footer { padding: 0 16px; min-height: 120px; }
.archive-list .lhn-ad { margin: 8px 0; }

/* ===== Footer ===== */
.site-footer { margin-top: 24px; background: var(--surface); border-top: 1px solid var(--line); padding-top: 36px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-about p { color: var(--text-2); font-size: 15px; margin: 12px 0; max-width: 36ch; }
.footer-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text-2); font-size: 15px; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--surface-2); color: var(--text-2);
}
.social a:hover { background: var(--accent); color: #fff; }
.gnews-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
	font-size: 14px; font-weight: 600; color: var(--accent);
}
.gnews-btn:hover { background: var(--accent-soft); }
.footer-bottom { margin-top: 28px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0 0 4px; }
.footer-bottom a { color: var(--accent); }

/* Bottom nav (mobile) */
.bottom-nav { display: none; }

/* Cookie notice */
.cookie-notice {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
	max-width: 720px; margin: 0 auto;
	display: flex; align-items: center; gap: 16px;
	padding: 14px 18px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
	font-size: 14px;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1; }
.cookie-notice a { color: var(--accent); text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
	.home-grid { grid-template-columns: minmax(0, 1fr) 300px; }
	.article-layout, .archive-layout { grid-template-columns: minmax(0, 1fr) 280px; }
	.header-date { display: none; }
}

@media (max-width: 900px) {
	.home-grid, .article-layout, .archive-layout { grid-template-columns: 1fr; }
	.home-aside, .article-aside__sticky { position: static; }
	.grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
	:root { --header-h: 56px; }
	body { padding-bottom: 64px; }
	.container { padding: 0 12px; }
	.card { padding: 16px; border-radius: 14px; }
	.menu-toggle.icon-btn, .search-toggle.icon-btn { display: inline-flex; }
	.header-bar { gap: 4px; }
	.brand { flex: 1; }
	.brand__name { font-size: 19px; }
	.brand__mark { width: 32px; height: 32px; font-size: 18px; }
	.header-search {
		display: none;
		position: absolute; left: 12px; right: 12px; top: calc(var(--header-h) - 4px);
		max-width: none; z-index: 2;
		background: var(--surface); border-color: var(--line);
		box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	}
	.header-search.is-open { display: flex; }
	.tabs__list a { padding: 10px 12px 11px; font-size: 14.5px; }

	.site-main { padding-top: 14px; }
	.briefing__title { font-size: 22px; }
	.cluster__main { flex-direction: column-reverse; gap: 10px; }
	.cluster--lead .cluster__media, .cluster__media { width: 100%; }
	.cluster:not(.cluster--lead) .cluster__main { flex-direction: row; }
	.cluster:not(.cluster--lead) .cluster__media { width: 112px; aspect-ratio: 1; }
	.cluster--lead .cluster__title { font-size: 21px; }
	.cluster__title { font-size: 17px; }
	.topic-grid { grid-template-columns: 1fr; }
	.grid-cards { gap: 16px; }
	.grid-card__title { font-size: 15px; }
	.row-card__media { width: 88px; height: 88px; }

	.article { padding: 16px; border-radius: 14px; }
	.article__dek { font-size: 17px; }
	.entry-content { font-size: 17.5px; line-height: 1.8; }
	.article__meta { flex-direction: column; align-items: flex-start; }
	.list-card { gap: 12px; }
	.list-card__media { width: 120px; aspect-ratio: 1; }
	.list-card__title { font-size: 16.5px; }
	.list-card__excerpt { display: none; }
	.page-article { padding: 18px; }
	.field-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

	.bottom-nav {
		display: grid; grid-template-columns: repeat(4, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		height: 64px; padding-bottom: env(safe-area-inset-bottom);
		background: var(--surface); border-top: 1px solid var(--line);
	}
	.bottom-nav a, .bottom-nav button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		border: 0; background: none; cursor: pointer;
		font-size: 12px; color: var(--muted);
	}
	.bottom-nav .icon { width: 24px; height: 24px; }
	.bottom-nav [aria-current="page"] { color: var(--accent); }
	.bottom-nav [aria-current="page"] .icon { background: var(--accent-soft); border-radius: 999px; padding: 2px 14px; box-sizing: content-box; }
	.cookie-notice { bottom: 72px; left: 8px; right: 8px; gap: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
	.cookie-notice .btn--small { min-height: 34px; padding: 0 14px; flex: none; }
}

@media (max-width: 420px) {
	.grid-cards { grid-template-columns: 1fr; }
	.grid-card { display: flex; gap: 12px; }
	.grid-card__media { width: 112px; flex: none; aspect-ratio: 1; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .bottom-nav, .site-footer, .article-aside, .share, .share-bottom, .lhn-ad, .related, .comments, .cookie-notice, .breaking { display: none !important; }
	body { background: #fff; color: #000; padding: 0; }
	.article { border: 0; box-shadow: none; padding: 0; }
}

/* Key points box in news posts */
.key-points { margin: 1.2em 0 1.4em; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 17px; }
.key-points > p:first-child, .key-points .key-points__title { margin: 0 0 6px; font-weight: 700; color: var(--accent); }
.key-points ul { margin: 0; }
.faq-item h3 { font-size: 18px; margin: 1em 0 .3em; }

/* Credited images and home intro */
.lhn-figure figcaption, .article__hero figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); }
.lhn-figure__alt { margin-right: 6px; }
.lhn-credit { font-size: 12px; }
.lhn-credit a, .article__hero figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.entry-content .lhn-credit a { color: var(--muted); }
.news-sources { margin-top: 1.6em; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 15px; }
.news-disclaimer { margin-top: 1.2em; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.home-intro { margin-top: 20px; }
.home-intro h2 { font-size: 20px; margin-bottom: 8px; }
.home-intro p { margin: 0; color: var(--text-2); }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); }
.sticky, .bypostauthor { outline: 0; }
