/*
Theme Name: Mithila Samachar
Theme URI: https://mithilasamachar.com
Author: Mithila Samachar
Author URI: https://mithilasamachar.com
Description: A fast, responsive Nepali-language news theme for the Mithila region. Features a featured-story hero slider, breaking-news ticker, Bikram Sambat date and live NST clock, colour-coded categories, video and photo sections, ad slots, dark mode, and a Madhubani-inspired border motif. No plugins required.
Version: 1.0.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: mithila-samachar
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, editor-style, accessibility-ready, custom-colors
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--red: #c0392b;
	--gold: #f39c12;
	--navy: #1a1a2e;

	--bg: #f4f5f8;
	--surface: #ffffff;
	--surface-2: #eceef4;
	--ink: #171723;
	--ink-2: #444457;
	--ink-3: #6a6c7e;
	--rule: #e1e3ec;
	--accent: var(--red);
	--accent-ink: #ffffff;

	--font-text: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Tiro Devanagari Nepali", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;

	--radius: 6px;
	--radius-lg: 12px;
	--shadow: 0 1px 2px rgba(20, 20, 40, 0.06), 0 10px 28px -14px rgba(20, 20, 40, 0.22);

	--container: 1280px;
	--gutter: 16px;
	--sticky-top: 0px;

	color-scheme: light;
}

@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

html.dark {
	--bg: #0f0f1b;
	--surface: #181829;
	--surface-2: #212139;
	--ink: #eceef6;
	--ink-2: #b9bdd0;
	--ink-3: #8f93aa;
	--rule: #2b2c47;
	--accent: color-mix(in srgb, var(--red) 66%, #ffffff);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.drawer-open,
body.modal-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.4;
	font-synthesis-weight: none;
	color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 0; }
ul, ol { padding-inline-start: 1.25em; }
button { font: inherit; color: inherit; cursor: pointer; }
mark { background: #fde68a; color: #1f1f1f; border-radius: 2px; padding: 0 2px; }
html.dark mark { background: rgba(250, 204, 21, 0.28); color: #fff; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--red) 65%, #ffffff);
	outline-offset: 2px;
	border-radius: 3px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	background: var(--surface); color: var(--ink); clip: auto !important; clip-path: none;
	display: block; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 20px;
	z-index: 1000; box-shadow: var(--shadow); font-weight: 700;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--medium { max-width: calc(980px + var(--gutter) * 2); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.icon { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: middle; }
.icon--xs { width: 0.8125rem; height: 0.8125rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.icon--xl { width: 3rem; height: 3rem; }

/* Buttons ------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: 0.95rem; line-height: 1.4; text-align: center;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: color-mix(in srgb, var(--red) 82%, #000); color: #fff; }
.btn--outline { border-color: var(--red); color: var(--accent); background: transparent; }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--sm { padding: 6px 16px; font-size: 0.8125rem; }
.btn--block { display: flex; width: 100%; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
	color: var(--ink-3); transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.icon-btn--sm { width: 38px; height: 38px; }

.theme-icon { display: inline-flex; }
.theme-icon--sun { display: none; color: var(--gold); }
html.dark .theme-icon--sun { display: inline-flex; }
html.dark .theme-icon--moon { display: none; }

/* Ping dot ------------------------------------------------------------- */
.ping { position: relative; display: inline-block; width: 8px; height: 8px; margin-inline-end: 7px; border-radius: 50%; background: #fff; flex: none; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ==========================================================================
   3. Madhubani band: the theme's signature border
   ========================================================================== */
.mithila-band { position: relative; height: 10px; background: var(--red); }
.mithila-band::before {
	content: ""; position: absolute; inset: 0; background: var(--gold);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M10 1 15 5 10 9 5 5z'/%3E%3Ccircle cx='0' cy='5' r='1.2'/%3E%3Ccircle cx='20' cy='5' r='1.2'/%3E%3C/svg%3E") center / auto 100% repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M10 1 15 5 10 9 5 5z'/%3E%3Ccircle cx='0' cy='5' r='1.2'/%3E%3Ccircle cx='20' cy='5' r='1.2'/%3E%3C/svg%3E") center / auto 100% repeat-x;
}
.mithila-band--thin { height: 7px; }

/* ==========================================================================
   4. Top bar
   ========================================================================== */
.topbar { display: none; background: var(--navy); color: #fff; font-size: 0.8125rem; }
@media (min-width: 768px) { .topbar { display: block; } }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar__sep { opacity: 0.25; }
.topbar__date { opacity: 0.85; }
.topbar__clock { font-variant-numeric: tabular-nums; opacity: 0.9; }
.topbar__chip { background: rgba(255, 255, 255, 0.1); padding: 1px 12px; border-radius: 999px; }
.topbar__lang { border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 4px; padding: 1px 12px; opacity: 0.8; }
.topbar__lang:hover { color: var(--gold); border-color: var(--gold); opacity: 1; }

.social-list { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.social-list a { display: inline-flex; opacity: 0.7; transition: opacity 0.15s, color 0.15s; }
.social-list a:hover { opacity: 1; color: var(--gold); }
.social-list--footer a { opacity: 0.6; }
.social-list--footer .icon, .social-list--drawer .icon, .social-list--contact .icon { width: 1.25rem; height: 1.25rem; }
.social-list--drawer { margin-top: 14px; justify-content: center; color: var(--ink-3); }
.social-list--contact { color: var(--ink-3); margin-top: 8px; }

/* ==========================================================================
   5. Masthead + navigation
   ========================================================================== */
.site-header {
	position: sticky; top: var(--sticky-top); z-index: 40;
	background: var(--surface); border-bottom: 1px solid var(--rule);
}
.header__inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.site-branding { flex: none; }
.site-title { margin: 0; font-size: 1rem; line-height: 0; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { height: 46px; width: auto; max-width: 180px; object-fit: contain; }

.header__ad { display: none; flex: 1; min-width: 0; justify-content: center; }
.header__ad .ad-slot { width: 100%; max-width: 728px; min-height: 90px; padding-top: 0; background: transparent; }
.header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.header__subscribe { display: none; margin-inline-start: 8px; }

.site-nav { display: none; }

@media (min-width: 900px) {
	.site-header { position: static; }
	.header__inner { min-height: 100px; gap: 24px; }
	.custom-logo { height: 70px; }
	.header__ad { display: flex; }
	.header__subscribe { display: inline-flex; }
	.menu-toggle { display: none; }

	.site-nav {
		display: block; position: sticky; top: var(--sticky-top); z-index: 40;
		background: var(--surface); border-bottom: 1px solid var(--rule);
		transition: box-shadow 0.2s;
	}
	.site-nav.is-stuck { box-shadow: 0 8px 24px -12px rgba(10, 10, 30, 0.35); }
}

.nav__inner { display: flex; align-items: center; }
.nav__brand { display: block; flex: none; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 0.25s ease, opacity 0.25s ease, margin 0.25s ease; line-height: 0; }
.nav__brand img { width: 46px; height: 32px; object-fit: contain; }
.site-nav.is-stuck .nav__brand { max-width: 50px; opacity: 1; margin-inline-end: 12px; }

.nav-list { display: flex; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li { flex: none; }
.nav-list a {
	display: inline-flex; align-items: center; padding: 14px 14px 11px;
	font-weight: 600; font-size: 0.95rem; white-space: nowrap; color: var(--ink-2);
	border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s;
}
.nav-list a:hover { color: var(--accent); }
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a,
.nav-list .current-post-ancestor > a,
.nav-list .current-menu-parent > a { color: var(--accent); border-bottom-color: var(--accent); }
.nav-dot { flex: none; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--cat, var(--red)); }

.nav__tools { display: none; align-items: center; gap: 2px; margin-inline-start: 8px; }
.site-nav.is-stuck .nav__tools { display: flex; }

/* Mobile drawer -------------------------------------------------------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 155; background: rgba(8, 8, 18, 0.62); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer {
	position: fixed; inset: 0 auto 0 0; z-index: 160; width: min(320px, 86vw);
	display: flex; flex-direction: column; background: var(--surface);
	transform: translateX(-100%); visibility: hidden; box-shadow: 8px 0 40px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform 0.3s ease; }
@media (min-width: 900px) { .drawer, .drawer-overlay { display: none; } }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.drawer__head .custom-logo { height: 44px; }
.drawer__nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-list { margin: 0; padding: 0; list-style: none; }
.drawer-list a { display: flex; align-items: center; gap: 4px; padding: 13px 24px; font-size: 1.0625rem; font-weight: 600; border-inline-start: 4px solid transparent; color: var(--ink-2); }
.drawer-list .nav-dot { margin-inline-end: 10px; }
.drawer-list li:not(:has(.nav-dot)) a { padding-inline-start: 42px; }
.drawer-list .current-menu-item > a { color: var(--accent); border-inline-start-color: var(--accent); background: color-mix(in srgb, var(--red) 7%, transparent); }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--rule); }

/* Search overlay ------------------------------------------------------- */
.search-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(8, 8, 18, 0.55); }
.search-overlay[hidden] { display: none; }
.search-overlay__bar { background: var(--surface); box-shadow: var(--shadow); animation: dropIn 0.22s ease-out; }
.search-overlay__inner { display: flex; align-items: center; gap: 8px; padding-block: 18px; }
@keyframes dropIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

.search-form { position: relative; display: flex; flex: 1; align-items: center; gap: 8px; margin: 0; }
.search-form__icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-form__input {
	flex: 1; min-width: 0; padding: 12px 16px 12px 42px; font: inherit; font-size: 1.0625rem;
	color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
}
.search-form__input::placeholder { color: var(--ink-3); }
.search-form__input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.search-form__submit { flex: none; border-radius: 10px; }

/* Ad slots ------------------------------------------------------------- */
.ad-slot { position: relative; padding: 24px 8px 8px; border-radius: var(--radius); background: var(--surface-2); text-align: center; overflow: hidden; }
.ad-slot__label { position: absolute; top: 4px; inset-inline-start: 8px; font-size: 0.6875rem; letter-spacing: 0.02em; color: var(--ink-3); }
.ad-slot img { margin-inline: auto; }
.ad-widget { margin: 0; }
.ad-slot--box { margin-bottom: 24px; min-height: 250px; }
.ad-slot--inline { margin: 2em 0; clear: both; }

/* ==========================================================================
   6. Breaking ticker
   ========================================================================== */
.ticker { background: var(--surface); border-bottom: 1px solid color-mix(in srgb, var(--red) 28%, transparent); }
.ticker__inner { display: flex; align-items: center; gap: 12px; height: 42px; }
.ticker__label { flex: none; display: inline-flex; align-items: center; padding: 3px 14px 3px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, #000 92%, transparent); mask-image: linear-gradient(to right, #000 92%, transparent); }
.ticker__track { display: inline-flex; white-space: nowrap; animation: ticker 30s linear infinite; will-change: transform; }
.ticker__track:hover, .ticker__track:focus-within { animation-play-state: paused; }
.ticker__line { display: inline-block; font-size: 0.9375rem; padding-inline-start: 8px; }
.ticker__line a { color: var(--ink-2); }
.ticker__line a:hover { color: var(--accent); }
.ticker__sep { margin-inline: 28px; color: color-mix(in srgb, var(--red) 55%, transparent); font-weight: 700; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   7. Layout
   ========================================================================== */
.site-main { padding-bottom: 8px; }
.layout { display: grid; gap: 32px; margin-top: 28px; }
.layout__main, .article { min-width: 0; }
@media (min-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
	.layout > .sidebar { position: sticky; top: calc(var(--sticky-top) + 72px); align-self: start; }
}

.home-section { margin-bottom: 44px; }

/* Section heading: lozenge + serif title + rule + link */
.sec-title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; --cat: var(--red); }
.sec-title__mark { flex: none; width: 10px; height: 10px; background: var(--cat); transform: rotate(45deg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 24%, transparent); }
.sec-title__text { margin: 0; font-size: 1.5rem; line-height: 1.35; }
.sec-title__rule { flex: 1; height: 1px; background: var(--rule); }
.sec-title__more { display: inline-flex; align-items: center; gap: 2px; font-size: 0.9rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.sec-title__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   8. Hero
   ========================================================================== */
.hero { display: grid; gap: 12px; margin-top: 16px; }
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); aspect-ratio: 4 / 3; isolation: isolate; touch-action: pan-y; }
@media (min-width: 560px) { .hero-slider { aspect-ratio: 16 / 9; } }

.hero-slider__track { display: flex; height: 100%; transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1); will-change: transform; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; color: #fff; }
.hero-slide__media, .hero-slide__media img, .hero-slide__media .thumb-ph { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 6, 16, 0.92) 0%, rgba(6, 6, 16, 0.5) 42%, rgba(6, 6, 16, 0) 78%); pointer-events: none; }
.hero-slide__body { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 20px 18px 46px; max-width: 52rem; }
.hero-slide__title { margin: 10px 0 8px; font-size: clamp(1.3rem, 0.95rem + 1.7vw, 2.3rem); line-height: 1.4; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero-slide__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.5); text-underline-offset: 5px; }
.hero-slide__excerpt { display: none; margin: 0 0 10px; color: rgba(255, 255, 255, 0.82); font-size: 1rem; line-height: 1.65; }
.hero-slide__meta { color: rgba(255, 255, 255, 0.78); }
.hero-slide__meta .meta__by { color: #fff; }

.hero-slider__nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; background: rgba(6, 6, 16, 0.5); color: #fff; backdrop-filter: blur(4px); transition: background-color 0.15s, border-color 0.15s; }
.hero-slider__nav:hover { background: rgba(6, 6, 16, 0.85); border-color: rgba(255, 255, 255, 0.6); }
.hero-slider__nav--prev { inset-inline-start: 14px; }
.hero-slider__nav--next { inset-inline-end: 14px; }
.hero-slider__dots { position: absolute; z-index: 3; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; }
.hero-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.5); transition: width 0.3s, background-color 0.3s; }
.hero-slider__dot:hover { background: rgba(255, 255, 255, 0.85); }
.hero-slider__dot[aria-current="true"] { width: 24px; background: var(--red); }
.hero-slider__count { position: absolute; z-index: 3; top: 12px; inset-inline-end: 14px; padding: 1px 10px; border-radius: 999px; background: rgba(6, 6, 16, 0.45); color: rgba(255, 255, 255, 0.85); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

.hero-stack { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) and (max-width: 899px) { .hero-stack { grid-template-columns: 1fr 1fr; } .hero-stack .card--overlay { aspect-ratio: 16 / 10; } }
@media (max-width: 559px) { .hero-stack .card--overlay { aspect-ratio: 16 / 10; } }

@media (min-width: 900px) {
	.hero { margin-top: 24px; gap: 16px; }
	.hero--with-stack { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.hero-slider { aspect-ratio: auto; height: 500px; }
	.hero-stack { grid-template-rows: 1fr 1fr; height: 500px; gap: 16px; }
	.hero-slide__body { padding: 32px 40px 54px; }
	.hero-slide__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.hero-slider__nav { display: inline-flex; }
	.hero-slider__dots { bottom: 20px; }
}
@media (min-width: 1200px) { .hero-slide__title { font-size: 2.25rem; } }

/* ==========================================================================
   9. Meta, labels, pills
   ========================================================================== */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-3); }
.meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-inline-end: 12px; border-radius: 50%; background: currentColor; opacity: 0.5; vertical-align: middle; }
.meta__by { font-weight: 600; color: var(--ink-2); }
.meta__views { display: inline-flex; align-items: center; gap: 4px; }
.meta .icon { margin-inline-end: 0; }

.pill { display: inline-flex; align-items: center; padding: 1px 13px; border-radius: 999px; background: var(--cat, var(--red)); color: #fff; font-size: 0.8125rem; font-weight: 700; line-height: 1.7; }
.pill:hover { color: #fff; filter: brightness(1.08); }
.pill--live { background: var(--red); }

.label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 700; line-height: 1.5; color: var(--cat, var(--accent)); }
.label::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }
html.dark .label { color: color-mix(in srgb, var(--cat, var(--red)) 58%, #ffffff); }
.label:hover { filter: brightness(0.85); color: var(--cat, var(--accent)); }

/* ==========================================================================
   10. Cards
   ========================================================================== */
.card { position: relative; min-width: 0; }
.card__media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface-2); }
.card__media img, .card__media .thumb-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__title { margin: 0; font-family: var(--font-text); font-weight: 700; font-size: 1.0625rem; line-height: 1.5; }
.card__title a { display: block; transition: color 0.15s; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: 8px; }

/* Default: image above text */
.card--default .card__body { padding-top: 12px; }
.card--default .label { margin-bottom: 4px; }

/* Horizontal: thumb + text */
.card--horizontal { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--horizontal .card__media { aspect-ratio: 4 / 3; }
.card--horizontal .card__title { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--horizontal .label { margin-bottom: 2px; font-size: 0.75rem; }
.card--horizontal .card__meta { margin-top: 4px; font-size: 0.75rem; }

/* Minimal: text only */
.card--minimal .card__title { font-size: 0.9375rem; }

/* Lead: big image, serif headline */
.card--lead .card__body { padding-top: 14px; }
.card--lead .card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.45; }
.card--lead .card__excerpt { -webkit-line-clamp: 3; font-size: 1rem; margin-top: 10px; }
.card--lead .label { margin-bottom: 6px; }

/* Wide: image left, text right (category lead) */
.card--wide { display: grid; gap: 16px; align-items: center; }
.card--wide .card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.45; }
.card--wide .label { margin-bottom: 6px; }
.card--wide .card__excerpt { -webkit-line-clamp: 3; }
@media (min-width: 640px) { .card--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; } }

/* Overlay: text on image (hero stack) */
.card--overlay { overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: #fff; min-height: 180px; isolation: isolate; }
.card--overlay .card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.card--overlay::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(6, 6, 16, 0.9) 0%, rgba(6, 6, 16, 0.35) 55%, rgba(6, 6, 16, 0) 100%); pointer-events: none; }
.card--overlay .card__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 16px 18px; }
.card--overlay .pill { font-size: 0.75rem; }
.card--overlay .card__title { margin-top: 8px; font-size: 1.0625rem; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--overlay .card__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.card--overlay .card__meta { color: rgba(255, 255, 255, 0.75); }

/* Placeholder when a post has no image */
.thumb-ph { position: relative; display: block; background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--red) 62%, var(--navy))); }
.thumb-ph::after { content: ""; position: absolute; inset: 14%; background: url("assets/img/logo.png") center / contain no-repeat; opacity: 0.28; }

/* Grids */
.card-grid { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Home: top stories + category blocks */
.top-stories { display: grid; gap: 24px; }
.top-stories__list { display: flex; flex-direction: column; gap: 16px; }
.top-stories__list .card + .card { padding-top: 16px; border-top: 1px solid var(--rule); }
@media (min-width: 700px) {
	.top-stories { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; }
}
@media (min-width: 700px) and (max-width: 1023px) {
	.top-stories { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.cat-block__grid { display: grid; gap: 22px 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
@media (min-width: 560px) { .cat-block__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cat-block__grid .card__title { font-size: 1rem; }
.cat-block__grid .card__excerpt { display: none; }

/* ==========================================================================
   11. Sidebar widgets
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; min-width: 0; }
.widget { margin-bottom: 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.widget__title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 13px 16px; border-inline-start: 4px solid var(--red); border-bottom: 1px solid var(--rule); font-size: 1.2rem; line-height: 1.4; }
.widget > :not(.widget__title):not(ol):not(ul) { padding-inline: 16px; }
.widget ul:not([class]), .widget ol:not([class]) { margin: 0; padding: 12px 16px 12px 36px; }
.widget_search, .widget_block { padding: 16px; }
.widget_categories li, .widget_archive li, .widget_pages li, .widget_nav_menu li, .widget_recent_entries li { margin: 6px 0; }

.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-list__item + .rank-list__item { border-top: 1px solid var(--rule); }
.rank-list__link { display: grid; grid-template-columns: 24px 72px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; transition: background-color 0.15s; }
.rank-list__link:hover { background: var(--surface-2); color: inherit; }
.rank-list__num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; color: var(--accent); }
.rank-list__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.rank-list__thumb img, .rank-list__thumb .thumb-ph { width: 100%; height: 100%; object-fit: cover; }
.rank-list__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 0.9375rem; line-height: 1.5; }
.rank-list__link:hover .rank-list__title { color: var(--accent); }
.rank-list__body .meta { margin-top: 2px; font-size: 0.75rem; gap: 4px; }
.rank-list__body .meta .icon { margin-inline-end: 4px; }

.live-badge { display: inline-flex; align-items: center; font-family: var(--font-text); font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.live-badge .ping { background: var(--red); margin-inline-end: 6px; }
.live-list { margin: 0; padding: 0; list-style: none; max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.live-list__item { display: flex; gap: 12px; padding: 12px 16px; }
.live-list__item + .live-list__item { border-top: 1px solid var(--rule); }
.live-list__item.is-new { background: color-mix(in srgb, var(--red) 6%, transparent); }
.live-list__dot { flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--red); }
.live-list__item a { display: block; font-size: 0.9375rem; line-height: 1.55; font-weight: 500; }
.live-list__item a:hover { color: var(--accent); }
.live-list__item time { display: block; font-size: 0.75rem; color: var(--ink-3); }

/* ==========================================================================
   12. Video + photo
   ========================================================================== */
.band { margin-top: 40px; padding: 40px 0 44px; }
.band--video { background: var(--navy); color: #fff; }
.band--video .sec-title { --cat: var(--gold); }
.band--video .sec-title__text { color: #fff; }
.band--video .sec-title__rule { background: rgba(255, 255, 255, 0.16); }
.band--video .sec-title__more { color: var(--gold); }
.band--video .vcard__title, .band--video .vcard__link { color: #fff; }
.band--video .meta { color: rgba(255, 255, 255, 0.65); }

.video-grid { display: grid; gap: 24px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .video-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.vcard__link { display: block; color: inherit; }
.vcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--navy); margin-bottom: 10px; }
.vcard__media img, .vcard__media .thumb-ph { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.vcard__link:hover .vcard__media img { opacity: 0.78; }
.vcard__dur { position: absolute; right: 8px; bottom: 8px; padding: 0 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.6; font-variant-numeric: tabular-nums; }
.vcard__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(192, 57, 43, 0.92); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); transition: transform 0.2s, background-color 0.2s; }
.vcard__play .icon { width: 1.5rem; height: 1.5rem; margin-inline-start: 2px; }
.vcard__link:hover .vcard__play { transform: scale(1.1); background: var(--red); }
.vcard__title { margin: 0 0 4px; font-family: var(--font-text); font-weight: 700; font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.15s; }
.vcard__link:hover .vcard__title { color: var(--accent); }
.band--video .vcard__link:hover .vcard__title { color: var(--gold); }

.vcard--big .vcard__media { border-radius: 16px; }
.vcard--big .vcard__play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.vcard--big .vcard__play .icon { width: 2.4rem; height: 2.4rem; }
.vcard--big .vcard__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); line-height: 1.45; -webkit-line-clamp: 3; }
.video-feature { margin-bottom: 40px; max-width: 960px; }

.video-embed { position: relative; aspect-ratio: 16 / 9; margin-bottom: 20px; overflow: hidden; border-radius: var(--radius-lg); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .photo-grid--strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.pcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface-2); }
.pcard__media img, .pcard__media .thumb-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.pcard__media:hover img { transform: scale(1.05); }
.pcard__hover { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(8, 8, 18, 0.5); opacity: 0; transition: opacity 0.25s; }
.pcard__media:hover .pcard__hover, .pcard__media:focus-visible .pcard__hover { opacity: 1; }
.pcard__caption { margin-top: 6px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-strip .pcard__caption { display: none; }

.article__figure--photo img { width: 100%; border-radius: var(--radius-lg); }
.photo-article .related { margin-top: 48px; }

/* Lightbox + video modal (built by theme.js) */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px 24px; background: rgba(6, 6, 14, 0.94); animation: fade 0.2s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: 100%; max-height: 74vh; width: auto; object-fit: contain; border-radius: 6px; }
.lightbox__cap { max-width: 44rem; margin-top: 16px; text-align: center; color: #fff; }
.lightbox__cap h2 { margin: 0 0 4px; font-size: 1.2rem; color: #fff; }
.lightbox__cap p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.9375rem; }
.lightbox__count { margin-top: 8px; color: rgba(255, 255, 255, 0.5); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; transition: background-color 0.15s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.lightbox__btn--close { top: 14px; inset-inline-end: 14px; }
.lightbox__btn--prev { top: 50%; inset-inline-start: 14px; transform: translateY(-50%); }
.lightbox__btn--next { top: 50%; inset-inline-end: 14px; transform: translateY(-50%); }
.lightbox__video { width: min(960px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .lightbox { padding: 64px 12px 16px; } .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 16px; transform: none; } .lightbox__btn--prev { inset-inline-start: 16px; } .lightbox__btn--next { inset-inline-end: 16px; } }

/* ==========================================================================
   13. Archive headers, toolbars, pagination, search
   ========================================================================== */
.page-head { padding: 32px 0 4px; }
.page-head--narrow { padding-top: 40px; }
.page-title { margin: 0; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); line-height: 1.4; }
.page-title--underline { display: inline-block; padding-bottom: 6px; border-bottom: 4px solid var(--red); margin-bottom: 28px; }

.archive-hero { position: relative; background: var(--cat, var(--navy)); color: #fff; }
.archive-hero__inner { padding-block: 44px 36px; }
.archive-hero__kicker { margin: 0 0 2px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.78); }
.archive-hero__title { margin: 0 0 6px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); color: #fff; line-height: 1.35; }
.archive-hero__desc { max-width: 44rem; color: rgba(255, 255, 255, 0.9); }
.archive-hero__desc p { margin: 0 0 0.5em; }
.archive-hero__count { margin: 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); }
.archive-hero .mithila-band { background: rgba(0, 0, 0, 0.28); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.toolbar__text { margin: 0; font-size: 0.9375rem; color: var(--ink-3); }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.segmented__item { padding: 4px 18px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); transition: background-color 0.15s, color 0.15s; }
.segmented__item:hover { color: var(--ink); }
.segmented__item.is-active { background: var(--red); color: #fff; }

.pagination { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 36px 0 12px; }
.js .pagination__links { display: none; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; font-weight: 700; color: var(--ink-2); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination .page-numbers.current { background: var(--red); color: #fff; }
.pagination a.page-numbers:hover { background: var(--surface-2); color: var(--accent); }
.load-more[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.search-hero { background: var(--surface); border-bottom: 1px solid var(--rule); }
.search-hero__inner { max-width: 760px; padding-block: 32px; }
.search-hero__summary { margin: 14px 0 0; font-size: 0.9375rem; color: var(--ink-3); }
.search-hero__summary strong { color: var(--ink); }
.accent { font-weight: 700; color: var(--accent); }
.search-body { padding-block: 28px 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.chips__label { font-size: 0.8125rem; color: var(--ink-3); margin-inline-end: 4px; }
.chip { padding: 3px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); transition: border-color 0.15s, color 0.15s; }
.chip:hover { border-color: var(--red); color: var(--accent); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.empty-state { padding: 56px 16px; text-align: center; color: var(--ink-3); }
.empty-state .icon--xl { margin: 0 auto 14px; opacity: 0.5; }
.empty-state__title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-2); }
.empty-state__text { margin: 0; }

.not-found { padding-block: 56px 32px; text-align: center; }
.not-found__code { margin: 0; font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1.1; color: var(--red); }
.not-found__title { margin: 0 0 8px; font-size: 2rem; }
.not-found__text { color: var(--ink-3); }
.not-found .search-form { max-width: 520px; margin: 24px auto; }

/* ==========================================================================
   14. Article
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 3px; pointer-events: none; }
.admin-bar .progress { top: 32px; }
.progress__bar { display: block; width: 100%; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left center; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 0.8125rem; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__current { color: var(--ink-2); }

.article__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.article__title { margin: 0 0 14px; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.42; }
.article__lede { margin: 0 0 20px; padding-inline-start: 16px; border-inline-start: 4px solid var(--red); font-size: 1.15rem; line-height: 1.75; color: var(--ink-2); }

.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-block: 14px; border-block: 1px solid var(--rule); }
.byline__text { display: flex; flex-direction: column; min-width: 0; }
.byline__name { font-weight: 700; line-height: 1.4; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 0.9375rem; line-height: 1; }
.avatar--lg { width: 56px; height: 56px; font-size: 1.15rem; }

.article__figure { margin: 0 0 22px; }
.article__figure img { width: 100%; border-radius: var(--radius-lg); }
.article__figure figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.share__label { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); margin-inline-end: 2px; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 0; border-radius: 999px; color: #fff; font-size: 0.8125rem; font-weight: 700; line-height: 1.6; transition: filter 0.15s; }
.share__btn:hover { color: #fff; filter: brightness(1.12); }
.share__btn--facebook { background: #1877f2; }
.share__btn--x { background: #111; }
html.dark .share__btn--x { background: #2c2c3d; }
.share__btn--whatsapp { background: #128c4a; }
.share__btn--copy, .share__btn--native { background: var(--ink-3); }
.share__btn[hidden] { display: none; }

/* Post content typography */
.entry-content { font-size: 1.1875rem; line-height: 1.95; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 0.6em; line-height: 1.45; }
.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding-inline-start: 1.5em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-inline-start: 4px solid var(--gold); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.7; color: var(--ink); }
.entry-content blockquote p { margin-bottom: 0.5em; }
.entry-content cite { display: block; font-family: var(--font-text); font-style: normal; font-size: 0.9rem; color: var(--ink-3); }
.entry-content img, .entry-content video { border-radius: var(--radius); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; font-size: 0.8125rem; line-height: 1.6; color: var(--ink-3); text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 1rem; line-height: 1.6; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--rule); text-align: start; }
.entry-content th { background: var(--surface-2); }
.entry-content pre { padding: 16px; overflow-x: auto; border-radius: var(--radius); background: var(--navy); color: #eee; font-size: 0.9rem; line-height: 1.6; }
.entry-content code { padding: 1px 6px; border-radius: 4px; background: var(--surface-2); font-size: 0.9em; }
.entry-content pre code { padding: 0; background: none; }
.entry-content .wp-block-embed, .entry-content .wp-block-video { margin: 1.8em 0; }
.entry-content iframe { max-width: 100%; border: 0; }
.entry-content--wide { max-width: none; }
.page-article .entry-content { padding-bottom: 32px; }
.page-links { display: flex; gap: 8px; margin: 1.5em 0; font-weight: 700; }

.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { max-width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.gallery-columns-2 { --cols: 2; } .gallery-columns-4 { --cols: 4; } .gallery-columns-5 { --cols: 5; }
.gallery-item { margin: 0; } .gallery-caption { font-size: 0.8125rem; color: var(--ink-3); }
.sticky .card__title::before { content: "★ "; color: var(--gold); }
.bypostauthor > .comment-body .fn::after { content: "✓"; margin-inline-start: 6px; color: var(--accent); }

.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 24px; }
.tag-list__label { font-weight: 700; font-size: 0.875rem; color: var(--ink-3); }
.tag { padding: 2px 14px; border-radius: 999px; background: var(--surface-2); font-size: 0.875rem; color: var(--ink-2); transition: background-color 0.15s, color 0.15s; }
.tag:hover { background: var(--red); color: #fff; }

.author-box { display: flex; gap: 16px; align-items: center; margin: 28px 0; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.author-box__name { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.author-box__name a:hover { color: var(--accent); }
.author-box__bio { margin: 2px 0 0; font-size: 0.9375rem; color: var(--ink-3); line-height: 1.6; }

.post-navigation { margin: 32px 0; }
.post-navigation .nav-links { display: grid; gap: 12px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; height: 100%; padding: 14px 18px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); transition: border-color 0.15s; }
.post-navigation a:hover { border-color: var(--red); }
.post-navigation .nav-next { text-align: end; }
.post-nav__label { display: block; font-size: 0.75rem; color: var(--ink-3); }
.post-nav__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.5; }

.related { margin-top: 40px; }

/* ==========================================================================
   15. Comments + forms
   ========================================================================== */
.comments { margin-top: 44px; }
.comments__title { margin: 0 0 20px; font-size: 1.5rem; }
.comment-list, .comment-list ol { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-inline-start: 28px; }
.comment-body { margin-bottom: 18px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--ink); font-style: normal; }
.comment-content p:last-child { margin-bottom: 0; }
.reply a { font-size: 0.8125rem; font-weight: 700; color: var(--accent); }
.comments__closed { color: var(--ink-3); }

.comment-form p { margin: 0 0 16px; }
label { font-weight: 600; font-size: 0.9375rem; }
.comment-form label { display: block; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], textarea, select {
	width: 100%; padding: 11px 14px; font: inherit; color: var(--ink);
	background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
input[type="submit"] { cursor: pointer; }
.search-form__input { width: auto; }

.contact { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 860px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.contact-list { margin: 20px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.contact-list .icon { margin-top: 5px; color: var(--accent); }
.contact-form { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; font-size: 0.9375rem; }
.notice--ok { background: #dcfce7; color: #14532d; }
.notice--error { background: #fee2e2; color: #7f1d1d; }
html.dark .notice--ok { background: rgba(34, 197, 94, 0.18); color: #bbf7d0; }
html.dark .notice--error { background: rgba(239, 68, 68, 0.2); color: #fecaca; }

/* ==========================================================================
   16. Footer
   ========================================================================== */
.site-footer { margin-top: 56px; background: var(--navy); color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--gold); }
.footer__grid { display: grid; gap: 36px; padding-block: 52px 40px; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer__wordmark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.3; color: #fff; }
.footer__wordmark::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.4); }
.footer__wordmark:hover { color: #fff; }
.footer__about { margin: 0 0 16px; font-size: 0.9375rem; line-height: 1.75; }
.footer-title { margin: 0 0 16px; font-size: 1.2rem; color: #fff; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a { font-size: 0.9375rem; }
.footer-list .cat-item a::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline-end: 9px; background: var(--gold); transform: rotate(45deg); vertical-align: middle; }
.footer-list--contact a { display: inline-flex; align-items: center; gap: 8px; }
.newsletter input[type="email"], .newsletter input[type="text"] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.newsletter .widget { background: transparent; box-shadow: none; }
.newsletter .widget__title, .newsletter .footer-title { border: 0; padding: 0 0 14px; color: #fff; }
.newsletter button, .newsletter input[type="submit"] { margin-top: 8px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom-inner { padding-block: 18px; font-size: 0.875rem; text-align: center; }
.footer__bottom-inner p { margin: 0; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(192, 57, 43, 0.4); transition: transform 0.2s; }
.to-top:hover { transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* ==========================================================================
   17. Admin bar offsets, motion, print
   ========================================================================== */
@media (min-width: 783px) { .admin-bar { --sticky-top: 32px; } }
@media (max-width: 782px) { .admin-bar { --sticky-top: 46px; } .admin-bar .progress { top: 46px; } }

@media (max-width: 600px) {
	.entry-content { font-size: 1.125rem; }
	.card--horizontal { grid-template-columns: 92px minmax(0, 1fr); }
	.sec-title__text { font-size: 1.3rem; }
	.share__btn--copy span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.ticker__track { animation: none; }
	.ticker__line[aria-hidden="true"] { display: none; }
}

@media print {
	.topbar, .mithila-band, .site-header, .site-nav, .ticker, .sidebar, .share, .related, .comments, .post-navigation, .site-footer, .to-top, .progress, .ad-slot { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.layout { display: block; }
}

/* ==========================================================================
   18. Refinements
   ========================================================================== */
.photo-strip { margin-top: 44px; }

@media (max-width: 559px) {
	/* Compact rows for the secondary cards of each category block on phones. */
	.cat-block__grid { gap: 16px; margin-top: 18px; padding-top: 18px; }
	.cat-block__grid .card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
	.cat-block__grid .card__media { aspect-ratio: 4 / 3; }
	.cat-block__grid .card--default .card__body { padding-top: 0; }
	.cat-block__grid .card__title { font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.cat-block__grid .card__meta { margin-top: 4px; font-size: 0.75rem; }
	.cat-block__grid .meta__views { display: none; }
}

/* Dark mode: the bundled logo has dark lettering, so give it a light seat. */
html.dark .site-header .custom-logo,

