/* Indore Express — main stylesheet. Plain CSS, mobile first. */

:root {
	--brand: #b3121b;
	--brand-dark: #8a0d14;
	--text: #1a1a1a;
	--muted: #5f6368;
	--bg: #ffffff;
	--surface: #f5f5f4;
	--border: #e3e3e0;
	--link: #0b4fa3;
	--radius: 6px;
	--wrap: 1200px;
	--gutter: 16px;
	/* System Devanagari fonts: Noto (Android), Nirmala UI (Windows), Kohinoor (Apple). No webfont download. */
	--font: "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", "Mangal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #ececec;
		--muted: #a8adb3;
		--bg: #121212;
		--surface: #1e1e1e;
		--border: #2e2e2e;
		--link: #8ab4f8;
	}
}

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--brand);
	color: #fff;
	padding: 8px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.topbar {
	background: var(--surface);
	font-size: 13px;
	color: var(--muted);
	padding: 4px 0;
}

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--brand);
	letter-spacing: -.5px;
}
.custom-logo { max-height: 44px; width: auto; }
@media (min-width: 960px) { .custom-logo { max-height: 52px; } }
/* The logo's dark "EXPRESS" needs a light backing in dark mode. */
@media (prefers-color-scheme: dark) {
	.custom-logo { background: #fff; padding: 4px 8px; border-radius: var(--radius); }
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: transparent;
	cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
	display: block;
	width: 20px; height: 2px;
	background: var(--text);
	position: relative;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

.primary-nav {
	display: none;
	background: var(--brand);
}
.primary-nav.is-open { display: block; }

.primary-nav .wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
	padding-bottom: 12px;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
.menu a {
	display: block;
	color: #fff;
	font-weight: 600;
	padding: 8px 4px;
}
.menu a:hover,
.menu .current-menu-item > a,
.menu .current-cat > a { color: #fff; text-decoration: underline; }

.search-form { display: flex; gap: 6px; }
.search-form input {
	flex: 1;
	min-width: 0;
	font: inherit;
	font-size: 15px;
	padding: 6px 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--text);
}
.search-form button,
.button {
	display: inline-block;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 6px 14px;
	border: 0;
	border-radius: var(--radius);
	background: var(--brand-dark);
	color: #fff;
	cursor: pointer;
}

@media (min-width: 960px) {
	.menu-toggle { display: none; }
	.primary-nav { display: block; }
	.primary-nav .wrap {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-top: 0;
		padding-bottom: 0;
	}
	.menu {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		min-width: 0;
	}
	.menu::-webkit-scrollbar { display: none; }
	.menu a { padding: 12px 10px; white-space: nowrap; }
	.primary-nav .search-form { flex: none; width: 220px; margin-left: 12px; }
}

/* ---------- Breaking bar ---------- */

.breaking {
	border-bottom: 1px solid var(--border);
	font-size: 15px;
}
.breaking .wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	overflow: hidden;
	padding-top: 8px;
	padding-bottom: 8px;
}
.breaking-label {
	flex: none;
	background: var(--brand);
	color: #fff;
	font-size: 13px;
	padding: 2px 10px;
	border-radius: 3px;
}
.breaking ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}
.breaking ul::-webkit-scrollbar { display: none; }

/* ---------- Cards ---------- */

.badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var(--brand);
	margin-bottom: 4px;
}

.card { display: flex; flex-direction: column; gap: 8px; }
.card-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--surface);
}
.card-title { font-size: 18px; margin: 0; }
.card-date { font-size: 13px; color: var(--muted); }
.card-excerpt { color: var(--muted); margin: 6px 0; }

.card-lead .card-title { font-size: 26px; }

.card-list {
	flex-direction: row;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}
.card-list:last-child { border-bottom: 0; }
.card-list .card-image { flex: none; width: 110px; }
.card-list .card-title { font-size: 15px; line-height: 1.5; }

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media (min-width: 600px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-bottom: 3px solid var(--brand);
	margin-bottom: 16px;
}
.section-head h2 { font-size: 20px; margin: 0 0 6px; }
.section-head .more { font-size: 14px; color: var(--link); }

/* ---------- Homepage ---------- */

.home { padding-top: 20px; padding-bottom: 40px; }

.home-top {
	display: grid;
	gap: 24px;
	margin-bottom: 36px;
}
.home-secondary {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
@media (min-width: 600px) {
	.home-secondary { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.home-top { grid-template-columns: 3fr 2fr; }
	.card-lead .card-title { font-size: 30px; }
}

.cat-block { margin-bottom: 36px; }

/* ---------- Layout with sidebar ---------- */

.home-columns,
.layout-article,
.layout-archive {
	display: grid;
	gap: 40px;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
	.home-columns,
	.layout-article,
	.layout-archive { grid-template-columns: minmax(0, 1fr) 320px; }
	.sidebar { position: sticky; top: 16px; align-self: start; }
}

.layout-article,
.layout-archive,
.layout-page { padding-top: 20px; padding-bottom: 48px; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	color: var(--muted);
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 6px; }
.breadcrumbs a { color: var(--link); }
.breadcrumbs.rank-math .rank-math-breadcrumb p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.breadcrumbs.rank-math .separator { margin: 0 6px; }
.breadcrumbs [aria-current] {
	max-width: 40ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Article ---------- */

.article { max-width: 760px; }
.article-title { font-size: 28px; font-weight: 800; }
@media (min-width: 960px) { .article-title { font-size: 36px; } }
.article-dek { font-size: 19px; color: var(--muted); margin: 0 0 12px; }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 16px;
}
.post-meta a { color: var(--link); font-weight: 600; }

.article-image { margin: 0 0 24px; }
.article-image img { width: 100%; border-radius: var(--radius); }
.article-image figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.entry-content { font-size: 18px; line-height: 1.85; }
.entry-content a { color: var(--link); text-decoration: underline; }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content img,
.entry-content figure { border-radius: var(--radius); }
.entry-content figure { margin: 1.5em 0; }
.entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 18px;
	border-left: 4px solid var(--brand);
	color: var(--muted);
}
.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(--border); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--surface); }

.article-foot { margin-top: 32px; display: grid; gap: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
	font-size: 14px;
	padding: 2px 10px;
	border: 1px solid var(--border);
	border-radius: 99px;
}

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.share a,
.share button {
	font: inherit;
	padding: 6px 12px;
	border-radius: var(--radius);
	border: 0;
	color: #fff;
	cursor: pointer;
}
.share-whatsapp { background: #128c4b; }
.share-facebook { background: #1559c7; }
.share-x { background: #111; }
.share-telegram { background: #1b7fb8; }
.share-copy { background: var(--muted); }
.share a:hover { color: #fff; opacity: .9; }

.author-box {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px;
	background: var(--surface);
	border-radius: var(--radius);
}
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.author-name { font-weight: 700; }

.related { margin-top: 40px; }

/* ---------- Archive ---------- */

.archive-head { margin-bottom: 24px; }
.archive-head h1 { font-size: 28px; }
.archive-desc { color: var(--muted); }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Page / 404 ---------- */

.layout-page { max-width: 820px; }
.not-found { text-align: center; }
.not-found .search-form { max-width: 420px; margin: 0 auto 20px; }

/* ---------- Footer ---------- */

.site-footer {
	background: #111;
	color: #ccc;
	padding: 32px 0 20px;
	font-size: 15px;
}
.site-footer .site-title { color: #fff; font-size: 22px; }.footer-menu {
	list-style: none;
	margin: 16px 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}
.footer-menu a { color: #ddd; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.copyright { font-size: 13px; color: #999; margin: 16px 0 0; }

/* ---------- WordPress core classes ---------- */

.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text,
.wp-element-caption { font-size: 13px; color: var(--muted); }
