:root {
	--hn-bg: #f2f5f8;
	--hn-surface: #ffffff;
	--hn-text: #102436;
	--hn-muted: #526577;
	--hn-border: #d8e1e8;
	--hn-accent: #c92536;
	--hn-accent-soft: rgba(201, 37, 54, 0.1);
	--hn-footer-bg: #0b1c2b;
	--hn-footer-text: #edf4fa;
	--hn-footer-accent: #ff8293;
	--hn-font-sans: "Noto Sans Devanagari", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--hn-radius: 16px;
	--hn-container: 1240px;
}

html[data-theme="dark"] {
	--hn-bg: #09131d;
	--hn-surface: #101f2d;
	--hn-text: #edf4fa;
	--hn-muted: #a9bdcc;
	--hn-border: #2b3e4e;
	--hn-accent: #ff7e8d;
	--hn-accent-soft: rgba(255, 126, 141, 0.14);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--hn-bg);
	color: var(--hn-text);
	font-family: var(--hn-font-sans);
	line-height: 1.65;
	overflow-x: clip;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--hn-accent);
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.hn-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--hn-accent);
	color: #ffffff;
	padding: 0.65rem 1rem;
	font-weight: 700;
}

.hn-skip-link:focus {
	left: 0.75rem;
	top: 0.75rem;
	border-radius: 10px;
}

.hn-container {
	width: min(100% - 24px, var(--hn-container));
	margin-inline: auto;
}

/* Sticky Breaking News Ticker */
.hn-breaking-ticker {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #0b1c2b;
	color: #ffffff;
	border-bottom: 2px solid #c92536;
	font-size: 0.92rem;
}

.hn-ticker-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 40px;
}

.hn-ticker-badge {
	flex: 0 0 auto;
	background: #c92536;
	color: #ffffff;
	font-weight: 700;
	font-size: 0.78rem;
	padding: 0.22rem 0.6rem;
	border-radius: 6px;
	letter-spacing: 0.02em;
}

.hn-ticker-viewport {
	flex: 1 1 auto;
	overflow: hidden;
	white-space: nowrap;
}

.hn-ticker-track {
	display: inline-flex;
	align-items: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: hn-ticker-scroll 42s linear infinite;
}

.hn-breaking-ticker:hover .hn-ticker-track,
.hn-breaking-ticker:focus-within .hn-ticker-track {
	animation-play-state: paused;
}

.hn-ticker-item a:hover {
	color: #ff8293;
	text-decoration: underline;
}

@keyframes hn-ticker-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

/* Masthead & Category Navigation */
.hn-header {
	background: var(--hn-surface);
	border-bottom: 1px solid var(--hn-border);
}

.hn-masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.85rem;
}

.hn-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
}

.hn-brand-mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #c92536;
	color: #ffffff;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}

.hn-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.hn-brand-title {
	font-size: 1.22rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.hn-brand-subtitle {
	font-size: 0.78rem;
	color: var(--hn-muted);
}

.hn-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.hn-date-chip {
	font-size: 0.85rem;
	color: var(--hn-muted);
	margin-right: 0.35rem;
}

.hn-icon-btn {
	min-height: 44px;
	padding: 0 0.9rem;
	border-radius: 12px;
	border: 1px solid var(--hn-border);
	background: var(--hn-bg);
	color: var(--hn-text);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.hn-icon-btn:hover {
	border-color: var(--hn-accent);
}

.hn-menu-toggle {
	display: none;
}

.hn-nav {
	border-top: 1px solid var(--hn-border);
	background: var(--hn-surface);
}

.hn-nav-list {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.55rem 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.hn-nav-list::-webkit-scrollbar {
	display: none;
}

.hn-nav-list a,
.hn-nav-pill {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
	background: var(--hn-bg);
	border: 1px solid transparent;
}

.hn-nav-list a:hover,
.hn-nav-pill.is-active,
.current-menu-item > a {
	background: var(--hn-accent-soft);
	color: var(--hn-accent);
	border-color: var(--hn-accent);
}

/* Home & Grids */
.hn-main {
	padding-block: 1.5rem 3rem;
}

.hn-lead-card {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 1.5rem;
	background: var(--hn-surface);
	border: 1px solid var(--hn-border);
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 2rem;
}

.hn-lead-media,
.hn-card-media {
	display: block;
	overflow: hidden;
	background: #0b1c2b;
}

.hn-hero-img,
.hn-card-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.hn-lead-body {
	padding: 1.5rem 1.5rem 1.5rem 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
}

.hn-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.85rem;
}

.hn-cat-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--hn-accent-soft);
	color: var(--hn-accent);
	font-weight: 700;
	font-size: 0.8rem;
}

.hn-time {
	color: var(--hn-muted);
}

.hn-lead-title {
	margin: 0;
	font-size: clamp(1.45rem, 2.6vw, 2.15rem);
	line-height: 1.3;
}

.hn-lead-title a:hover,
.hn-card-title a:hover {
	color: var(--hn-accent);
}

.hn-lead-excerpt {
	margin: 0;
	color: var(--hn-muted);
	font-size: 1.02rem;
}

.hn-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--hn-border);
	padding-bottom: 0.45rem;
}

.hn-section-title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 800;
}

.hn-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.hn-card {
	display: flex;
	flex-direction: column;
	background: var(--hn-surface);
	border: 1px solid var(--hn-border);
	border-radius: var(--hn-radius);
	overflow: hidden;
}

.hn-card-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hn-card-title {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.4;
}

.hn-card-excerpt {
	margin: 0;
	color: var(--hn-muted);
	font-size: 0.92rem;
}

/* Single Article & Google Discover >=1200px Hero */
.hn-article {
	background: var(--hn-surface);
	border: 1px solid var(--hn-border);
	border-radius: 20px;
	padding: 1.75rem;
	margin-bottom: 2.5rem;
}

.hn-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	color: var(--hn-muted);
	margin-bottom: 0.85rem;
}

.hn-article-title {
	margin: 0.6rem 0 0.75rem;
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	line-height: 1.32;
}

.hn-article-standfirst {
	margin: 0 0 1rem;
	font-size: 1.12rem;
	color: var(--hn-muted);
	line-height: 1.6;
}

.hn-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--hn-muted);
	margin-bottom: 1rem;
}

.hn-share-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.hn-share-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.9rem;
	border-radius: 12px;
	border: 1px solid var(--hn-border);
	background: var(--hn-bg);
	color: var(--hn-text);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.hn-article-hero {
	margin: 0 0 1.5rem;
	width: 100%;
	max-width: 1200px;
	border-radius: 14px;
	overflow: hidden;
	background: #0b1c2b;
}

.hn-hero-caption {
	padding: 0.55rem 0.85rem;
	font-size: 0.85rem;
	color: var(--hn-muted);
	background: var(--hn-bg);
}

.hn-article-content {
	max-width: 74ch;
	font-size: 1.14rem;
	line-height: 1.85;
}

.hn-article-content p {
	margin: 0 0 1.2rem;
}

.hn-article-content h2,
.hn-article-content h3 {
	margin: 1.6rem 0 0.65rem;
	line-height: 1.38;
}

.hn-ai-notice {
	padding: 0.85rem 1rem;
	border-left: 4px solid var(--hn-accent);
	background: var(--hn-bg);
	border-radius: 10px;
	font-size: 0.94rem;
	color: var(--hn-muted);
}

/* Responsive 16:9 YouTube Embed (handles both bare .hn-video-embed and wp:embed wrapper) */
.wp-block-embed.hn-video-embed {
	width: 100%;
	margin: 1.5rem 0;
}

.hn-video-embed:not(figure),
.wp-block-embed__wrapper > .hn-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	background: #09131d;
}

.hn-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.hn-article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hn-border);
}

.hn-tags-label {
	font-weight: 700;
	font-size: 0.92rem;
}

.hn-tag-pill {
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: var(--hn-bg);
	border: 1px solid var(--hn-border);
	font-size: 0.86rem;
}

/* Archive & Pagination */
.hn-archive-header {
	margin-bottom: 1.5rem;
}

.hn-archive-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.hn-archive-desc {
	color: var(--hn-muted);
}

.hn-pagination {
	margin-top: 2rem;
}

.hn-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hn-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border-radius: 12px;
	background: var(--hn-surface);
	border: 1px solid var(--hn-border);
	font-weight: 600;
}

.hn-pagination .page-numbers.current {
	background: var(--hn-accent);
	color: #ffffff;
	border-color: var(--hn-accent);
}

.hn-empty-state {
	background: var(--hn-surface);
	border: 1px solid var(--hn-border);
	border-radius: var(--hn-radius);
	padding: 2rem;
	text-align: center;
}

/* Footer */
.hn-footer {
	background: var(--hn-footer-bg);
	color: var(--hn-footer-text);
	padding-block: 2.5rem 1.5rem;
}

.hn-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hn-footer-wordmark {
	margin: 0 0 0.5rem;
	color: var(--hn-footer-accent);
	font-size: 1.25rem;
	font-weight: 800;
}

.hn-footer-desc {
	margin: 0;
	color: #c2d2e0;
	max-width: 52ch;
}

.hn-footer-heading {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	color: #ffffff;
}

.hn-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.hn-footer-links a {
	color: #d6e3ee;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}

.hn-footer-links a:hover {
	color: var(--hn-footer-accent);
	text-decoration: underline;
}

.hn-footer-bottom {
	padding-top: 1rem;
	font-size: 0.88rem;
	color: #a9bdcc;
}

@media (max-width: 960px) {
	.hn-lead-card {
		grid-template-columns: 1fr;
	}
	.hn-lead-body {
		padding: 0 1.25rem 1.25rem;
	}
	.hn-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.hn-date-chip {
		display: none;
	}
	.hn-menu-toggle {
		display: inline-flex;
		align-items: center;
	}
	.hn-nav {
		display: none;
	}
	.hn-nav.is-open {
		display: block;
	}
	.hn-nav-list {
		flex-wrap: wrap;
	}
	.hn-grid,
	.hn-footer-grid {
		grid-template-columns: 1fr;
	}
	.hn-article {
		padding: 1.15rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hn-ticker-track {
		animation: none;
	}
	html {
		scroll-behavior: auto;
	}
}
